/* =====================================================================
   BASHA PLATFORM — الواجهة العامة
   الهيدر · الهيرو · الخط الزمني · العصور · الصفوف · الفوتر · صفحات الدخول
   ===================================================================== */

/* ============================ الهيدر ============================ */
.bs-hdr{
  position:sticky;
  top:0;
  z-index:1200;
  background:var(--hdr-bg);
  border-bottom:1px solid var(--hdr-border);
  box-shadow:0 2px 0 rgba(117,18,28,.06), var(--shadow-soft);
}

/* الشريط العلوي: اسم المدرّس */
.bs-hdr__top{
  background:var(--grad-brand);
  color:#fff;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.3px;
}
.bs-hdr__topInner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:38px;
  padding-block:6px;
  text-align:center;
}
.bs-hdr__topName{
  font-family:var(--font-display);
  font-size:1rem;
  font-weight:700;
  line-height:1.5;
}
.bs-hdr__topDot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:rgba(255,255,255,.6);
  flex:none;
}
.bs-hdr__topSub{ opacity:.92; }

/* الشريط الرئيسي */
.bs-hdr__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:78px;
  padding-block:10px;
}

/* العلامة */
.bs-brand{
  display:flex;
  align-items:center;
  gap:13px;
  text-decoration:none;
  color:inherit;
  min-width:0;
}
.bs-brand__mark{
  position:relative;
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  flex:none;
  border-radius:50%;
  border:2px solid var(--accent);
  background:var(--card-bg);
  color:var(--accent);
  overflow:hidden;
  transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bs-brand:hover .bs-brand__mark{
  transform:rotate(-6deg) scale(1.04);
  box-shadow:0 8px 22px rgba(117,18,28,.28);
}
.bs-brand__logo{ width:100%; height:100%; object-fit:contain; padding:5px; }
.bs-brand__logoFallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:700;
  color:var(--accent);
  background:var(--surface-soft);
}
.bs-brand__text{ display:grid; gap:1px; min-width:0; }
.bs-brand__name{
  font-family:var(--font-display);
  font-size:1.35rem;
  font-weight:700;
  color:var(--text-strong);
  line-height:1.25;
  white-space:nowrap;
}
.bs-brand__sub{
  font-size:.8rem;
  font-weight:700;
  color:var(--accent);
  letter-spacing:.4px;
  white-space:nowrap;
}

/* التنقّل */
.bs-hdr__nav{
  display:flex;
  align-items:center;
  gap:12px;
}
.bs-hdr__links{
  display:flex;
  align-items:center;
  gap:4px;
  margin-inline-end:6px;
}
.bs-hdr__link{
  position:relative;
  padding:9px 14px;
  border-radius:var(--radius);
  font-size:.96rem;
  font-weight:800;
  color:var(--muted-strong);
  text-decoration:none;
  transition:color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.bs-hdr__link::after{
  content:"";
  position:absolute;
  inset-inline:14px;
  bottom:4px;
  height:2px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform var(--dur) var(--ease);
}
.bs-hdr__link:hover{ color:var(--accent); }
.bs-hdr__link:hover::after{ transform:scaleX(1); }
html[data-theme="dark"] .bs-hdr__link{
  color:#F6E6E8;
}
html[data-theme="dark"] .bs-hdr__link:hover{
  color:#fff;
}
html[data-theme="dark"] .bs-head__sub,
html[data-theme="dark"] .bs-hero__plaqueTop,
html[data-theme="dark"] .bs-time__hint,
html[data-theme="dark"] .bs-era__desc,
html[data-theme="dark"] .bs-feat__text,
html[data-theme="dark"] .bs-grade__hint,
html[data-theme="dark"] .bs-note__desc,
html[data-theme="dark"] .bs-about__lead,
html[data-theme="dark"] .auth-head__sub,
html[data-theme="dark"] .hint{
  color:var(--muted);
}

.bs-hdr__mobileTheme{ display:none; }

/* زر القائمة */
.bs-burger{
  display:none;
  width:46px;
  height:46px;
  flex:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  padding:0;
  border-radius:var(--radius);
  border:1.5px solid var(--border-strong);
  background:var(--card-bg);
  cursor:pointer;
}
.bs-burger span{
  display:block;
  width:20px;
  height:2px;
  border-radius:2px;
  background:var(--accent);
  transition:transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* القائمة المنسدلة للجوال */
.bs-drawer{
  display:none;
  overflow:hidden;
  border-top:1px solid var(--border);
  background:var(--card-bg);
}
.bs-drawer.is-open{ display:block; animation:bsDrawer .28s var(--ease-out) both; }
@keyframes bsDrawer{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:none; } }
.bs-drawer__box{
  display:grid;
  gap:10px;
  padding:16px;
}
.bs-drawer__link{
  padding:12px 14px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--surface-soft);
  color:var(--text-strong);
  font-weight:800;
  text-decoration:none;
}
.bs-drawer__link:hover{ background:var(--surface-strong); color:var(--accent); }

/* ============================= الهيرو ============================= */
.bs-hero{
  position:relative;
  overflow:hidden;
  background:var(--grad-hero);
  color:#fff;
  padding-block:64px 0;
  isolation:isolate;
}
/* زخرفة: خطوط زمنية مائلة */
.bs-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    repeating-linear-gradient(115deg,rgba(255,255,255,.045) 0 2px,transparent 2px 46px),
    radial-gradient(70% 60% at 78% 12%,rgba(255,255,255,.10),transparent 68%);
}
/* زخرفة: ختم كبير باهت */
.bs-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:min(46vw,520px);
  aspect-ratio:1;
  inset-block-start:-12%;
  inset-inline-start:-10%;
  border-radius:50%;
  border:2px dashed rgba(255,255,255,.10);
}

/* لوحة تاريخية خلف الهيرو */
.bs-hero__backdrop{
  position:absolute;
  z-index:-1;
  inset-block-end:0;
  inset-inline:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 62%;
  opacity:.26;
  mix-blend-mode:luminosity;
  -webkit-mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.55) 46%,transparent 88%);
          mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.55) 46%,transparent 88%);
  pointer-events:none;
}

.bs-hero__stage{
  width:min(100% - 32px,var(--container));
  margin-inline:auto;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:48px;
  align-items:center;
  padding-bottom:56px;
}

.bs-hero__kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 18px;
  padding:8px 16px;
  border-radius:var(--radius-pill);
  border:1.5px solid rgba(255,255,255,.34);
  background:rgba(255,255,255,.09);
  font-size:.88rem;
  font-weight:800;
  letter-spacing:.4px;
}
.bs-hero__kicker .bs-ico{ width:17px; height:17px; }

.bs-hero__name{
  margin:0 0 16px;
  padding-bottom:.12em;
  font-family:var(--font-display);
  font-size:clamp(2.4rem,5.6vw,4.1rem);
  font-weight:700;
  line-height:1.55;
  color:#fff;
  text-shadow:0 4px 24px rgba(0,0,0,.28);
}
.bs-hero__role{
  margin:0 0 18px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.12rem;
  font-weight:800;
  line-height:1.7;
  color:rgba(255,255,255,.9);
}
.bs-hero__role::before{
  content:"";
  width:42px;
  height:2px;
  background:rgba(255,255,255,.7);
  flex:none;
}
.bs-hero__desc{
  margin:0 0 26px;
  max-width:56ch;
  font-size:1.06rem;
  font-weight:600;
  line-height:2.05;
  color:rgba(255,255,255,.86);
}

.bs-hero__chips{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-bottom:30px;
}
.bs-hero__chips span{
  padding:7px 15px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.07);
  font-size:.88rem;
  font-weight:800;
}

.bs-hero__actions{ display:flex; flex-wrap:wrap; gap:13px; }

/* لوحة الصورة */
.bs-hero__photo{
  position:relative;
  justify-self:center;
  width:min(100%,380px);
}
.bs-hero__photoFrame{
  position:relative;
  border:3px solid rgba(255,255,255,.42);
  border-radius:var(--radius-xl);
  padding:9px;
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(2px);
}
.bs-hero__photoFrame::before{
  content:"";
  position:absolute;
  inset:-13px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:calc(var(--radius-xl) + 8px);
  pointer-events:none;
}
.bs-hero__photoFrame img{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:calc(var(--radius-xl) - 6px);
}
.bs-hero__photoEmpty{
  display:grid;
  place-items:center;
  gap:12px;
  width:100%;
  aspect-ratio:4/5;
  border-radius:calc(var(--radius-xl) - 6px);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.7);
  text-align:center;
  padding:24px;
}
.bs-hero__photoEmpty .bs-seal{ width:110px; height:110px; opacity:.85; }

/* بديل الصورة: لوحة محفورة + ختم المنصة فوقها */
.bs-hero__photoFrame:has(.bs-hero__photoArt){ overflow:hidden; }
.bs-hero__photoArt{ opacity:.92; }
.bs-hero__photoCrest{
  position:absolute;
  inset-block-start:22px;
  inset-inline-end:22px;
  display:grid;
  place-items:center;
  width:82px;
  height:82px;
  border-radius:50%;
  background:rgba(43,5,8,.62);
  border:1.5px solid rgba(255,255,255,.34);
  backdrop-filter:blur(3px);
  color:#fff;
  pointer-events:none;
}
.bs-hero__photoCrest .bs-seal{ width:58px; height:58px; opacity:.95; }

.bs-hero__plaque{
  position:absolute;
  inset-inline-start:-14px;
  bottom:26px;
  display:grid;
  gap:6px;
  padding:12px 18px;
  border-radius:var(--radius);
  background:#fff;
  color:var(--red-800);
  box-shadow:0 14px 32px rgba(0,0,0,.32);
  border-inline-start:4px solid var(--red-700);
}
.bs-hero__plaqueTop{ font-size:.74rem; font-weight:800; letter-spacing:.6px; color:var(--muted); line-height:1.5; }
.bs-hero__plaqueMain{ font-family:var(--font-display); font-size:1.06rem; font-weight:700; line-height:1.5; }

/* شريط سفلي للهيرو */
.bs-hero__strip{
  border-top:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.18);
}
.bs-hero__stripRow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}
.bs-hero__stripItem{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  padding:20px 12px;
  font-weight:800;
  font-size:.96rem;
  color:rgba(255,255,255,.9);
  text-align:center;
}
.bs-hero__stripItem + .bs-hero__stripItem{ border-inline-start:1px solid rgba(255,255,255,.14); }
.bs-hero__stripItem .bs-ico{ width:22px; height:22px; color:rgba(255,255,255,.75); }

/* ========================= رؤوس الأقسام ========================= */
.bs-section{ padding-block:76px; }
.bs-section--alt{ background:var(--page-bg-alt); }

.bs-head{ text-align:center; margin-bottom:46px; }
.bs-head__kicker{
  display:inline-block;
  margin:0 0 10px;
  padding:6px 15px;
  border-radius:var(--radius-pill);
  background:var(--surface-strong);
  color:var(--accent);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.6px;
}
.bs-head__title{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(1.75rem,3.6vw,2.6rem);
  font-weight:700;
  color:var(--text-strong);
}
.bs-head__sub{
  margin:12px auto 0;
  max-width:62ch;
  color:var(--muted);
  font-size:1.02rem;
  font-weight:600;
  line-height:1.95;
}

/* ============================ عن المدرّس ============================ */
.bs-about__body{
  max-width:760px;
  margin-inline:auto;
  display:grid;
  gap:40px;
}
.bs-about__group{
  display:grid;
  gap:10px;
}
.bs-about__groupTitle{
  margin:0 0 6px;
  font-family:var(--font-display);
  font-size:1.32rem;
  font-weight:700;
  text-align:center;
  color:var(--text-strong);
  line-height:1.6;
}
.bs-about__lead{
  margin:0;
  text-align:center;
  color:var(--text);
  font-size:1.08rem;
  font-weight:600;
  line-height:2;
}
.bs-about__list{
  position:relative;
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:0;
}
/* عمود زمني خفيف يربط المؤهلات */
.bs-about__list::before{
  content:"";
  position:absolute;
  inset-block:10px;
  inset-inline-start:11px;
  width:2px;
  background:repeating-linear-gradient(180deg,var(--rule) 0 8px,transparent 8px 14px);
  pointer-events:none;
}
.bs-about__item{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding-block:14px;
  border-bottom:1px solid var(--border);
  color:var(--text);
  font-size:1.01rem;
  font-weight:600;
  line-height:1.85;
}
.bs-about__item:last-child{ border-bottom:0; }
.bs-about__mark{
  position:relative;
  z-index:1;
  flex:none;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  margin-top:4px;
  border-radius:50%;
  background:var(--surface-strong);
  color:var(--accent);
  box-shadow:0 0 0 4px var(--page-bg);
}
.bs-about__mark .bs-ico{ width:14px; height:14px; }

/* ========================== الخط الزمني ========================== */
.bs-time__row{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin:0;
  padding:0;
  list-style:none;
}
/* العمود الفقري */
.bs-time__row::before{
  content:"";
  position:absolute;
  inset-inline:8%;
  top:38px;
  height:2px;
  background:repeating-linear-gradient(90deg,var(--rule) 0 10px,transparent 10px 18px);
}
.bs-time__step{
  position:relative;
  display:grid;
  justify-items:center;
  gap:8px;
  text-align:center;
  padding-top:0;
}
.bs-time__num{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:76px;
  height:76px;
  border-radius:50%;
  background:var(--card-bg);
  border:2.5px solid var(--border-strong);
  color:var(--accent);
  font-family:var(--font-display);
  font-size:1.7rem;
  font-weight:700;
  transition:transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
             color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bs-time__step:hover .bs-time__num,
.bs-time__step.is-active .bs-time__num{
  background:var(--red-700);
  border-color:var(--red-700);
  color:#fff;
  transform:translateY(-5px);
  box-shadow:var(--shadow-red);
}
.bs-time__label{
  margin-top:6px;
  font-family:var(--font-display);
  font-size:1.24rem;
  font-weight:700;
  color:var(--text-strong);
}
.bs-time__hint{ color:var(--muted); font-size:.94rem; font-weight:600; }

/* =========================== العصور =========================== */
.bs-eras{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:22px;
}
.bs-era{
  position:relative;
  display:grid;
  gap:10px;
  padding:28px 24px 26px;
  border-radius:var(--radius-lg);
  background:var(--card-bg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bs-era::before{
  content:"";
  position:absolute;
  inset-inline:0;
  top:0;
  height:4px;
  background:var(--grad-brand);
  transform:scaleX(.25);
  transform-origin:right;
  transition:transform .38s var(--ease-out);
}
.bs-era:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-strong);
  border-color:var(--border-strong);
}
.bs-era:hover::before{ transform:scaleX(1); }

.bs-era__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.bs-era__ico{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:var(--radius);
  background:var(--surface-strong);
  color:var(--accent);
}
.bs-era__ico .bs-ico{ width:26px; height:26px; }
.bs-era__num{
  font-family:var(--font-display);
  font-size:2.6rem;
  font-weight:700;
  line-height:1;
  color:var(--surface-highlight-strong);
}
.bs-era__name{
  margin:6px 0 0;
  font-family:var(--font-display);
  font-size:1.4rem;
  font-weight:700;
  color:var(--text-strong);
}
.bs-era__span{
  display:inline-block;
  padding:4px 11px;
  border-radius:var(--radius);
  background:var(--surface-soft);
  border:1px solid var(--border);
  color:var(--accent);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.3px;
}
.bs-era__desc{
  margin:4px 0 0;
  color:var(--muted);
  font-size:.97rem;
  font-weight:600;
  line-height:1.95;
}

/* =========================== الإحصائيات =========================== */
.bs-stats{
  background:var(--grad-brand);
  color:#fff;
  padding-block:52px;
  position:relative;
  overflow:hidden;
}
.bs-stats::before{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(115deg,rgba(255,255,255,.04) 0 2px,transparent 2px 42px);
}
.bs-stats__row{
  position:relative;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:18px;
}
.bs-stat{
  display:grid;
  justify-items:center;
  gap:6px;
  padding:18px 14px;
  text-align:center;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}
.bs-stat__val{
  font-family:var(--font-display);
  font-size:clamp(2rem,4vw,2.9rem);
  font-weight:700;
  line-height:1.1;
  color:#fff;
}
.bs-stat__lbl{ font-size:.95rem; font-weight:700; color:rgba(255,255,255,.85); }

/* =========================== المميزات =========================== */
.bs-feats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:22px;
}
.bs-feat{
  position:relative;
  display:grid;
  gap:12px;
  padding:30px 24px;
  border-radius:var(--radius-lg);
  background:var(--card-bg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bs-feat:hover{ transform:translateY(-5px); box-shadow:var(--shadow-strong); }
.bs-feat__top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bs-feat__ico{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:50%;
  background:var(--red-700);
  color:#fff;
  box-shadow:var(--shadow-red);
}
.bs-feat__ico .bs-ico{ width:27px; height:27px; }
.bs-feat__ico img{ width:30px; height:30px; object-fit:contain; }
.bs-feat__num{
  font-family:var(--font-latin);
  font-size:.82rem;
  font-weight:700;
  letter-spacing:2px;
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  padding:5px 12px;
}
.bs-feat__title{
  margin:0;
  font-family:var(--font-display);
  font-size:1.3rem;
  font-weight:700;
  color:var(--text-strong);
}
.bs-feat__text{
  margin:0;
  color:var(--muted);
  font-size:.98rem;
  font-weight:600;
  line-height:1.95;
}

/* =========================== الصفوف =========================== */
.bs-grades{
  display:block;
}
.bs-grade{
  display:grid;
  grid-template-rows:auto 1fr;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--card-bg);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  text-decoration:none;
  color:inherit;
  transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bs-grade:hover{
  transform:translateY(-7px);
  box-shadow:var(--shadow-strong);
  border-color:var(--border-strong);
}
.bs-grade__media{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--surface-strong);
}
.bs-grade__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .55s var(--ease-out);
}
.bs-grade:hover .bs-grade__media img{ transform:scale(1.07); }
.bs-grade__mediaEmpty{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  background:var(--grad-brand);
  color:rgba(255,255,255,.9);
  font-family:var(--font-latin);
  font-size:3.4rem;
  font-weight:700;
  letter-spacing:4px;
}
.bs-grade__body{
  display:grid;
  align-content:space-between;
  gap:12px;
  padding:20px 22px 22px;
}
.bs-grade__name{
  margin:0;
  font-family:var(--font-display);
  font-size:1.4rem;
  font-weight:700;
  color:var(--text-strong);
}
.bs-grade__hint{
  margin:4px 0 0;
  color:var(--muted);
  font-size:.95rem;
  font-weight:600;
  line-height:1.85;
}
.bs-grade__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:var(--accent);
}
.bs-grade__cta .bs-ico{ width:18px; height:18px; transition:transform var(--dur) var(--ease); }
.bs-grade:hover .bs-grade__cta .bs-ico{ transform:translateX(-5px); }

/* ============================= CTA ============================= */
.bs-cta{ padding-block:80px; }
.bs-cta__box{
  position:relative;
  overflow:hidden;
  display:grid;
  justify-items:center;
  gap:14px;
  padding:56px 32px;
  text-align:center;
  border-radius:var(--radius-xl);
  background:var(--grad-hero);
  color:#fff;
  box-shadow:var(--shadow-strong);
}
.bs-cta__box::before{
  content:"";
  position:absolute;
  inset:12px;
  border:1.5px solid rgba(255,255,255,.22);
  border-radius:calc(var(--radius-xl) - 6px);
  pointer-events:none;
}
.bs-cta__box::after{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(115deg,rgba(255,255,255,.04) 0 2px,transparent 2px 44px);
  pointer-events:none;
}
.bs-cta__seal{ width:74px; height:74px; color:rgba(255,255,255,.85); }
.bs-cta__kicker{ margin:0; font-size:.9rem; font-weight:800; letter-spacing:1px; color:rgba(255,255,255,.78); }
.bs-cta__title{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(1.7rem,3.8vw,2.6rem);
  font-weight:700;
  color:#fff;
}
.bs-cta__sub{
  margin:0 0 10px;
  max-width:56ch;
  color:rgba(255,255,255,.85);
  font-size:1.02rem;
  font-weight:600;
  line-height:1.95;
}

/* ============================ الفوتر ============================ */
.bs-ftr{
  position:relative;
  background:var(--red-950);
  color:rgba(255,255,255,.82);
  margin-top:auto;
}
.bs-ftr__rule{ height:5px; background:var(--grad-brand); }
.bs-ftr__inner{ padding-block:52px 0; }
.bs-ftr__grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr;
  gap:40px;
}
.bs-ftr__brandLink{
  display:inline-flex;
  align-items:center;
  gap:13px;
  text-decoration:none;
  color:#fff;
  margin-bottom:14px;
}
.bs-ftr__mark{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  flex:none;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.4);
  color:#fff;
  overflow:hidden;
}
.bs-ftr__mark img{ width:100%; height:100%; object-fit:contain; padding:5px; }
.bs-ftr__name{
  margin:0;
  font-family:var(--font-display);
  font-size:1.5rem;
  font-weight:700;
  color:#fff;
}
.bs-ftr__role{ font-size:.85rem; font-weight:700; color:rgba(255,255,255,.62); }
.bs-ftr__tag{
  margin:0 0 18px;
  max-width:46ch;
  font-size:.97rem;
  font-weight:600;
  line-height:1.95;
  color:rgba(255,255,255,.7);
}
.bs-ftr__nav{ display:flex; flex-wrap:wrap; gap:9px; }
.bs-ftr__nav a{
  padding:8px 15px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.86);
  font-size:.9rem;
  font-weight:700;
  text-decoration:none;
  transition:background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.bs-ftr__nav a:hover{ background:#fff; color:var(--red-800); border-color:#fff; }

.bs-ftr__heading{
  margin:0 0 16px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.16);
  font-family:var(--font-display);
  font-size:1.16rem;
  font-weight:700;
  color:#fff;
}
.bs-ftr__list{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.bs-ftr__link{
  display:flex;
  align-items:center;
  gap:9px;
  color:rgba(255,255,255,.78);
  font-weight:700;
  font-size:.95rem;
  text-decoration:none;
  transition:color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.bs-ftr__link:hover{ color:#fff; transform:translateX(-4px); }
.bs-ftr__linkIco{ width:22px; height:22px; object-fit:contain; border-radius:4px; flex:none; }

.bs-ftr__phones{ display:grid; gap:10px; }
.bs-ftr__phone{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:11px 15px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-weight:800;
  font-size:1rem;
  letter-spacing:.6px;
  text-decoration:none;
  direction:ltr;
  justify-content:center;
  transition:background-color var(--dur) var(--ease);
}
.bs-ftr__phone:hover{ background:rgba(255,255,255,.14); color:#fff; }

.bs-ftr__bottom{
  margin-top:40px;
  padding-block:20px;
  border-top:1px solid rgba(255,255,255,.14);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:.9rem;
  font-weight:700;
  color:rgba(255,255,255,.6);
}
.bs-ftr__bottom p{ margin:0; }

/* ====================== صفحات الدخول والتسجيل ====================== */
.auth-page{
  display:flex;
  align-items:center;
  min-height:calc(100vh - 240px);
  padding-block:52px;
}
.auth-page > .container{ width:min(100% - 32px,1060px); }

.auth-card{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-xl);
  background:var(--card-bg);
  border:1px solid var(--border-strong);
  box-shadow:var(--shadow-strong);
}
.auth-card::before{
  content:"";
  position:absolute;
  inset-inline:0;
  top:0;
  height:5px;
  background:var(--grad-brand);
  z-index:2;
}

.auth-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  min-height:560px;
}

/* لوحة النموذج */
.auth-formPane{
  padding:46px 44px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.auth-step{ display:none; }

.auth-head{ text-align:center; margin-bottom:28px; }
.auth-head__logo{
  display:grid;
  place-items:center;
  width:78px;
  height:78px;
  margin:0 auto 16px;
  border-radius:50%;
  border:2px solid var(--accent);
  background:var(--card-bg);
  color:var(--accent);
  overflow:hidden;
}
.auth-head__logo img{ width:100%; height:100%; object-fit:contain; padding:7px; }
.auth-head__logoFallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-family:var(--font-display);
  font-size:1.5rem;
  font-weight:700;
  color:var(--accent);
}
.auth-head__title{
  margin:0 0 8px;
  font-family:var(--font-display);
  font-size:clamp(1.7rem,3.2vw,2.2rem);
  font-weight:700;
  color:var(--text-strong);
}
.auth-head__sub{
  margin:0;
  color:var(--muted);
  font-size:.98rem;
  font-weight:600;
  line-height:1.9;
}

.auth-form{ display:grid; gap:2px; }
.auth-form .field{ margin-bottom:15px; }
.fgrid{ display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.hint{ display:block; margin-top:6px; color:var(--muted); font-size:.85rem; font-weight:600; }

.btn-submit{
  width:100%;
  margin-top:8px;
  padding:15px 24px;
  border:0;
  border-radius:var(--radius);
  background:var(--red-700);
  color:#fff;
  font-family:var(--font-body);
  font-size:1.06rem;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--shadow-red);
  transition:background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-submit:hover{ background:var(--red-800); transform:translateY(-2px); }
.btn-submit:active{ transform:translateY(0); }

.auth-foot{
  margin-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:.95rem;
  font-weight:700;
}
.auth-link{
  color:var(--accent);
  font-weight:800;
  text-decoration:none;
  border-bottom:1.5px solid transparent;
  transition:border-color var(--dur) var(--ease);
}
.auth-link:hover{ border-bottom-color:var(--accent); }

/* لوحة الصورة */
.auth-imgPane{
  position:relative;
  overflow:hidden;
  background:var(--grad-hero);
  display:grid;
}
.auth-imgPane::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(115deg,rgba(255,255,255,.05) 0 2px,transparent 2px 44px),
    linear-gradient(to top,rgba(43,5,8,.72),transparent 62%);
  pointer-events:none;
}
.auth-img{
  grid-area:1/1;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.72;
}
.auth-imgFallback{
  grid-area:1/1;
  display:grid;
  place-items:center;
  align-content:center;
  gap:16px;
  padding:36px;
  text-align:center;
  color:rgba(255,255,255,.82);
  font-weight:700;
  line-height:1.9;
}
.auth-imgFallback__hero{
  display:block;
  width:130px;
  height:130px;
  color:rgba(255,255,255,.8);
}
.auth-imgFallback__hero svg{ width:100%; height:100%; }

.auth-imgPane__brand{
  position:relative;
  z-index:2;
  grid-area:1/1;
  align-self:end;
  display:grid;
  gap:5px;
  padding:30px;
  color:#fff;
}
.auth-imgPane__brand strong{
  font-family:var(--font-display);
  font-size:1.6rem;
  font-weight:700;
}
.auth-imgPane__brand span{ font-size:.96rem; font-weight:700; color:rgba(255,255,255,.78); }

/* ====================== صفحة استبدال الكود ====================== */
.redeem-shell{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:32px 16px;
  background:var(--grad-hero);
}
.redeem-card{
  width:min(100%,520px);
  border-radius:var(--radius-xl);
  border:1px solid var(--border);
  background:var(--card-bg);
  box-shadow:var(--shadow-strong);
  padding:34px 30px;
}
.redeem-card .h1{
  margin:0 0 8px;
  font-family:var(--font-display);
  font-size:1.7rem;
  font-weight:700;
  color:var(--text-strong);
}
.redeem-card .box{
  margin-top:16px;
  padding:14px 16px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--surface-soft);
  font-weight:700;
  line-height:1.9;
}
.redeem-card .ok{ border-color:var(--success-soft-border); background:var(--success-soft-bg); color:var(--success); }
.redeem-card .bad{ border-color:var(--danger-soft-border); background:var(--danger-soft-bg); color:var(--danger); }
.redeem-card .warn{ border-color:var(--warning-soft-border); background:var(--warning-soft-bg); color:var(--warning); }

/* ========================== الاستجابة ========================== */
@media (max-width:1080px){
  .bs-hero__stage{ gap:32px; }
  .bs-ftr__grid{ grid-template-columns:1.4fr 1fr; }
}

@media (max-width:960px){
  .bs-hdr__links{ display:none; }
  .bs-hdr__nav .bs-btn{ display:none; }
  .bs-hdr__nav{ gap:8px; }
  .bs-hdr__mobileTheme{ display:block; }
  .bs-hdr__nav > .bs-hdr__theme{ display:none; }
  .bs-burger{ display:flex; }

  .bs-hero{ padding-block:44px 0; }
  .bs-hero__stage{ grid-template-columns:1fr; text-align:center; padding-bottom:42px; }
  .bs-hero__role{ justify-content:center; }
  .bs-hero__role::before{ display:none; }
  .bs-hero__desc{ margin-inline:auto; }
  .bs-hero__chips,.bs-hero__actions{ justify-content:center; }
  .bs-hero__photo{ order:-1; width:min(100%,300px); }
  .bs-hero__plaque{ inset-inline-start:50%; transform:translateX(50%); bottom:-18px; }
  .bs-hero__stripRow{ grid-template-columns:repeat(2,1fr); }
  .bs-hero__stripItem:nth-child(3){ border-inline-start:0; }
  .bs-hero__stripItem:nth-child(n+3){ border-top:1px solid rgba(255,255,255,.14); }

  .bs-section{ padding-block:56px; }
  .bs-time__row{ grid-template-columns:repeat(2,1fr); gap:30px 16px; }
  .bs-time__row::before{ display:none; }

  .auth-grid{ grid-template-columns:1fr; min-height:0; }
  .auth-imgPane{ min-height:210px; order:-1; }
  .auth-formPane{ padding:36px 26px; }

  .bs-ftr__grid{ grid-template-columns:1fr; gap:32px; }
}

@media (max-width:640px){
  .bs-hdr__top{ font-size:.78rem; }
  .bs-hdr__topName{ font-size:.92rem; }
  .bs-hdr__topSub{ display:none; }
  .bs-hdr__topDot{ display:none; }
  .bs-hdr__bar{ min-height:66px; }
  .bs-brand__mark{ width:48px; height:48px; }
  .bs-brand__name{ font-size:1.12rem; }
  .bs-brand__sub{ font-size:.72rem; }

  .bs-hero__name{ font-size:clamp(2rem,9vw,2.7rem); }
  .bs-hero__actions .bs-btn{ width:100%; }
  .bs-hero__stripRow{ grid-template-columns:1fr; }
  .bs-hero__stripItem + .bs-hero__stripItem{ border-inline-start:0; border-top:1px solid rgba(255,255,255,.14); }

  .bs-time__row{ grid-template-columns:1fr; }
  .bs-cta__box{ padding:40px 20px; }
  .fgrid{ grid-template-columns:1fr; }
  .auth-formPane{ padding:30px 20px; }
  .bs-ftr__bottom{ flex-direction:column; text-align:center; }
}
