/* AstraSuwayda R10F1 — external-only CSS, CSP-safe */
*,*::before,*::after{box-sizing:border-box}
html{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
body{width:100%;max-width:100%;margin:0;overflow-x:hidden}
img,svg,video,canvas{max-width:100%;height:auto}
main,header,footer,section,nav,article,aside{min-width:0;max-width:100%}
input,select,textarea,button{max-width:100%}
table{max-width:100%}

.container,.wrapper,.shell,.section-inner,.hero-inner,.content,.page,
[class*="container"],[class*="wrapper"],[class*="section-inner"]{
  width:min(100%,1280px);
  max-width:100%;
  min-width:0;
  margin-inline:auto;
}

[class*="grid"],[class*="row"],[class*="cards"],[class*="list"]{
  min-width:0;
}

[class*="carousel"],[class*="slider"],[class*="scroller"],[class*="track"]{
  max-width:100%;
  min-width:0;
}

.astra-local-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
}

.astra-hidden{display:none!important}

.astra-auth-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  text-decoration:none;
  background:#6d28d9;
  color:#fff!important;
  font-weight:800;
  white-space:nowrap;
}

.astra-auth-chip.admin{
  background:#172554;
}

.astra-account{
  width:min(1180px,calc(100% - 32px));
  margin:32px auto 56px;
  direction:rtl;
}

.astra-account-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.astra-account-kicker{
  color:#7c3aed;
  font-size:12px;
  font-weight:900;
}

.astra-account-title{
  margin:5px 0 0;
  color:#0f2747;
  font-size:clamp(24px,3vw,34px);
  line-height:1.25;
}

.astra-account-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.astra-account-card{
  min-width:0;
  padding:20px;
  border:1px solid #e4e7ec;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,39,71,.05);
}

.astra-account-card h3{
  margin:5px 0 14px;
  color:#102a4d;
}

.astra-account-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #eef2f6;
}

.astra-account-row:last-child{border-bottom:0}

.astra-role-badge{
  display:inline-flex;
  margin:3px;
  padding:5px 9px;
  border-radius:999px;
  background:#f4f3ff;
  color:#5925dc;
  font-size:12px;
  overflow-wrap:anywhere;
}

.astra-muted{
  color:#667085;
  line-height:1.8;
}

.astra-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border:0;
  border-radius:11px;
  padding:9px 14px;
  font:inherit;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.astra-btn.secondary{
  background:#f4f3ff;
  color:#5925dc;
}

.astra-btn.primary{
  background:#6d28d9;
  color:#fff;
}

.astra-details-page{
  min-height:100vh;
  background:#f7f9fc;
  color:#12233f;
  direction:rtl;
}

.astra-details-shell{
  width:min(1080px,calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 60px;
}

.astra-details-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.astra-details-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#102a4d;
  text-decoration:none;
  font-weight:900;
}

.astra-details-brand img{
  width:54px;
  height:54px;
  object-fit:contain;
}

.astra-details-back{
  color:#2563eb;
  text-decoration:none;
  font-weight:800;
}

.astra-details-hero{
  padding:26px;
  border:1px solid #dce6f1;
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 40px rgba(16,42,77,.06);
}

.astra-details-kicker{
  color:#2563eb;
  font-size:13px;
  font-weight:900;
}

.astra-details-title{
  margin:6px 0 8px;
  font-size:clamp(28px,4vw,44px);
  line-height:1.25;
}

.astra-details-subtitle{
  color:#667085;
  line-height:1.8;
}

.astra-details-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:18px;
  margin-top:18px;
}

.astra-details-card{
  min-width:0;
  padding:20px;
  border:1px solid #dce6f1;
  border-radius:20px;
  background:#fff;
}

.astra-details-card h2{
  margin:0 0 14px;
  font-size:20px;
}

.astra-detail-line{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #eef2f6;
}

.astra-detail-line:last-child{border-bottom:0}

.astra-rating{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.astra-stars{color:#f59e0b;letter-spacing:1px}

.astra-review{
  padding:12px 0;
  border-bottom:1px solid #eef2f6;
}

.astra-review:last-child{border-bottom:0}

.astra-error{
  padding:18px;
  border-radius:14px;
  background:#fff1f2;
  color:#9f1239;
}

@media(max-width:900px){
  .astra-account-grid{grid-template-columns:1fr 1fr}
  .astra-details-grid{grid-template-columns:1fr}
}

@media(max-width:640px){
  .astra-account{
    width:min(100% - 20px,1180px);
    margin-top:20px;
  }
  .astra-account-grid{grid-template-columns:1fr}
  .astra-account-row{
    display:grid;
    grid-template-columns:1fr;
    gap:4px;
  }
  .astra-details-shell{
    width:min(100% - 20px,1080px);
    padding-top:16px;
  }
  .astra-details-hero,.astra-details-card{padding:16px}
  .astra-detail-line{grid-template-columns:1fr;gap:4px}
}
