/* =========================================================
   القنصل — Shared design system
   Used by every page: index, login, signup, forgot-password,
   404, privacy-policy. Keeps the whole site visually in sync.
   ========================================================= */
@import url('tokens.css');
@import url('galaxy.css');

:root{
  /* —— Foundation: deep navy + refined gold —— */
  --ink:#080B14;
  --ink-2:#0C101C;
  --ink-fixed:#0E1220;
  --surface:#111625;
  --surface-2:#171C2E;
  --surface-raised:#1D2438;
  --surface-band:rgba(255,255,255,.018);
  --glass:rgba(255,255,255,.04);
  --glass-hi:rgba(255,255,255,.065);
  --border:rgba(255,255,255,.07);
  --border-hi:rgba(255,255,255,.12);

  --gold:#B8860B;
  --gold-2:#9A7209;
  --gold-3:#D4A017;
  --gold-soft:rgba(212,168,75,.1);
  --gold-muted:rgba(212,168,75,.06);
  --jade:#3BA99A;
  --jade-2:#2E8F82;
  --jade-soft:rgba(59,169,154,.1);
  --rose:#E06B6B;

  --text-hi:#F2F0EA;
  --text-mid:#A4ADBE;
  --text-low:#6E778A;

  /* —— Spacing scale (8pt grid) —— */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px; --space-10:40px;
  --space-12:48px; --space-16:64px; --space-20:80px; --space-24:96px;

  --r-xl:20px; --r-lg:16px; --r-md:12px; --r-sm:8px; --r-xs:6px;
  --ease:cubic-bezier(.25,.46,.45,.94);
  --maxw:1200px;
  --header-h:80px;

  --shadow-sm:0 1px 2px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.04);
  --shadow-md:0 8px 24px -8px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-lg:0 20px 48px -16px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  --shadow-gold:0 8px 28px -10px rgba(212,168,75,.35);

  --grad-gold:linear-gradient(135deg,var(--gold-2) 0%,var(--gold) 100%);
  --grad-head:linear-gradient(135deg,var(--gold-3) 0%,var(--gold) 100%);
  --grad-jade:linear-gradient(135deg,var(--jade-2) 0%,var(--jade) 100%);

  --font-body:'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-head:'Tajawal', 'Roboto', sans-serif;

  --text-xs:.75rem; --text-sm:.875rem; --text-base:1rem;
  --text-lg:1.125rem; --text-xl:1.25rem;
  --text-2xl:clamp(1.5rem,2.8vw,1.875rem);
  --text-3xl:clamp(1.75rem,3.2vw,2.25rem);
  --text-4xl:clamp(2rem,4vw,3rem);
  --leading-tight:1.3; --leading-normal:1.7; --leading-relaxed:1.85;
}
html[data-theme="light"]{
  --ink:#F6F4EF; --ink-2:#FFFFFF; --surface:#FFFFFF; --surface-2:#F3F1EB;
  --surface-raised:#FFFFFF; --surface-band:rgba(14,18,32,.025);
  --glass:rgba(14,18,32,.03); --glass-hi:rgba(14,18,32,.05);
  --border:rgba(14,18,32,.09); --border-hi:rgba(14,18,32,.14);
  --text-hi:#0E1220; --text-mid:#4A5268; --text-low:#7A8296;
  --shadow-sm:0 1px 2px rgba(14,18,32,.06), 0 0 0 1px rgba(14,18,32,.05);
  --shadow-md:0 8px 24px -8px rgba(14,18,32,.1), 0 0 0 1px rgba(14,18,32,.06);
  --shadow-lg:0 20px 48px -16px rgba(14,18,32,.12), 0 0 0 1px rgba(14,18,32,.07);
  --grad-head:linear-gradient(135deg,var(--gold-2) 0%,var(--gold) 100%);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  background:var(--ink); color:var(--text-hi);
  line-height:var(--leading-normal); font-size:var(--text-base); font-weight:400;
  -webkit-font-smoothing:antialiased; overflow-x:hidden; position:relative;
  transition:background-color .4s var(--ease), color .4s var(--ease);
  min-height:100vh; display:flex; flex-direction:column;
  isolation:isolate;
}
html[data-theme="dark"] body{
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212,168,75,.05), transparent 55%),
    var(--ink);
}
/* Keep page UI above #siteBackdrop — exclude fixed chrome (header, overlays, floats) */
body > *:not(#siteBackdrop):not(#qonsolLoader):not(.galaxy-cursor):not(.galaxy-cursor-ring):not(header):not(#protectOverlay):not(.scroll-bar):not(.mobile-menu):not(.wa-float):not(.scroll-top){
  z-index:1;
}
h1,h2,h3,h4,h5,.brand,.stat-num{font-family:var(--font-head); letter-spacing:-.01em; line-height:var(--leading-tight); font-weight:700;}
h1{font-size:var(--text-4xl); font-weight:800;}
h2{font-size:var(--text-3xl);}
h3{font-size:var(--text-xl);}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
button{font-family:inherit;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 var(--space-6);}
::selection{background:var(--gold-soft); color:var(--text-hi);}
.icon{width:20px; height:20px; display:inline-block; flex-shrink:0;}
.icon svg{width:100%; height:100%; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; display:block;}
.g-text{color:var(--gold); font-weight:800;}
main{flex:1;}

/* Ambient background — inside #siteBackdrop */
.aurora{position:absolute; inset:0; overflow:hidden; pointer-events:none;}
.aurora span{position:absolute; border-radius:50%; filter:blur(90px); opacity:.5; transition:opacity .4s var(--ease), border-radius .6s var(--ease);}
.aurora .a1{width:620px; height:620px; top:-220px; inset-inline-end:-160px; background:radial-gradient(circle,rgba(245,184,65,.55),transparent 62%);}
.aurora .a2{width:520px; height:520px; top:340px; inset-inline-start:-200px; background:radial-gradient(circle,rgba(55,217,196,.42),transparent 62%);}
.aurora .a3{width:560px; height:560px; bottom:-180px; inset-inline-end:8%; background:radial-gradient(circle,rgba(47,182,232,.30),transparent 62%);}
html[data-theme="dark"] .aurora span{opacity:.1; filter:blur(100px);}
html[data-theme="dark"] .aurora .a1{background:radial-gradient(circle,rgba(245,184,65,.28),transparent 65%);}
html[data-theme="dark"] .aurora .a2{background:radial-gradient(circle,rgba(55,217,196,.18),transparent 65%);}
html[data-theme="dark"] .aurora .a3{background:radial-gradient(circle,rgba(47,182,232,.12),transparent 65%);}
html[data-theme="light"] .aurora span{opacity:.32; filter:blur(72px); border-radius:42% 58% 55% 45% / 48% 42% 58% 52%;}
html[data-theme="light"] .aurora .a1{width:680px; height:420px; border-radius:58% 42% 48% 52% / 42% 58% 44% 56%; background:radial-gradient(ellipse,rgba(245,184,65,.28),transparent 68%);}
html[data-theme="light"] .aurora .a2{width:540px; height:380px; border-radius:48% 52% 58% 42% / 55% 45% 52% 48%; background:radial-gradient(ellipse,rgba(55,217,196,.22),transparent 68%);}
html[data-theme="light"] .aurora .a3{width:620px; height:340px; border-radius:52% 48% 42% 58% / 44% 56% 48% 52%; background:radial-gradient(ellipse,rgba(47,182,232,.16),transparent 68%);}
.grain{position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:radial-gradient(rgba(255,255,255,.028) 1px,transparent 1px); background-size:3px 3px; transition:opacity .4s var(--ease);}
html[data-theme="dark"] .grain{opacity:.22;}
html[data-theme="light"] .grain{background-image:radial-gradient(rgba(21,17,10,.05) 1px,transparent 1px); opacity:.5;}

/* Scroll progress */
.scroll-bar{position:fixed; top:0; inset-inline:0; height:3px; z-index:200; background:transparent;}
.scroll-bar-fill{height:100%; width:0%; background:var(--grad-gold); box-shadow:0 0 12px rgba(245,184,65,.6);}

/* Header */
header{
  position:fixed; top:0; inset-inline:0; z-index:100;
  pointer-events:auto;
  background:rgba(8,11,20,.72); backdrop-filter:blur(16px) saturate(120%);
  border-bottom:1px solid var(--border);
  transition:background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
html[data-theme="light"] header{background:rgba(246,244,239,.82);}
header.scrolled{
  background:rgba(8,11,20,.92); backdrop-filter:blur(20px) saturate(130%);
  box-shadow:var(--shadow-md); border-bottom-color:var(--border-hi);
}
html[data-theme="light"] header.scrolled{background:rgba(246,244,239,.95);}
.nav{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  padding:var(--space-3) var(--space-6); min-height:var(--header-h);
  max-width:var(--maxw); margin:0 auto; gap:var(--space-4);
}
.nav-links{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:var(--space-6, 24px); font-weight:500; font-size:var(--text-sm);
  list-style:none; margin:0; padding:0; min-width:0;
}
.nav-links li{display:flex; flex-shrink:0;}
.nav-links a{
  color:var(--text-mid); position:relative; transition:color .2s var(--ease);
  padding:var(--space-1) var(--space-2); white-space:nowrap;
}
.brand{font-size:1.05rem; font-weight:700; display:flex; align-items:center; gap:10px; flex-shrink:0;}
.brand-logo{
  width:52px; height:52px; object-fit:contain; flex-shrink:0; display:block;
  background:transparent; padding:0; border-radius:0; box-shadow:none;
  filter:drop-shadow(0 2px 6px rgba(21,17,10,.12));
  transition:transform .25s var(--ease), filter .25s var(--ease);
}
header .brand-logo{
  width:58px; height:58px;
  background:transparent; padding:0; border-radius:0; box-shadow:none;
}
html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] header .brand-logo{
  background:transparent; padding:0; border-radius:0; box-shadow:none;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
html[data-theme="dark"] header .brand-logo{width:58px; height:58px;}
.brand:hover .brand-logo{transform:scale(1.05);}
.foot-brand-col .brand-logo{width:72px; height:72px; background:transparent; padding:0; border-radius:0; box-shadow:none;}
html[data-theme="dark"] .foot-brand-col .brand-logo{padding:0; background:transparent;}
.nav-links a::after{content:""; position:absolute; bottom:-4px; inset-inline-start:0; height:2px; width:0; background:var(--gold); border-radius:1px; transition:width .25s var(--ease);}
.nav-links a:hover{color:var(--text-hi);}
.nav-links a:hover::after{width:100%;}
.nav-actions{display:flex; gap:var(--space-2); align-items:center; justify-self:end;}
.burger{justify-self:end;}
.nav-actions .btn{padding:var(--space-2) var(--space-4); font-size:var(--text-xs); border-radius:var(--r-xs); font-weight:600; gap:var(--space-1);}
.nav-actions .btn-solid{font-weight:700; box-shadow:var(--shadow-gold);}
.nav-actions .btn-solid::after{display:none;}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2); padding:var(--space-3) var(--space-6); border-radius:var(--r-sm); font-weight:600; font-size:var(--text-sm); border:1px solid transparent; cursor:pointer; transition:background .2s var(--ease), border-color .2s, color .2s, box-shadow .2s, transform .2s; white-space:nowrap;}
.btn-ghost{color:var(--text-hi); border-color:var(--border-hi); background:var(--surface);}
.btn-ghost:hover{border-color:var(--gold); color:var(--gold); background:var(--gold-muted);}
.btn-solid{background:var(--grad-gold); color:var(--ink-fixed); font-weight:700; box-shadow:var(--shadow-gold);}
.btn-solid:hover{transform:translateY(-1px); box-shadow:0 12px 32px -10px rgba(212,168,75,.45);}
.btn-solid::after{display:none;}
.btn-block{width:100%;}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none !important;}
.btn:focus-visible,.btn-solid:focus-visible,.btn-ghost:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}

.icon-btn{width:36px; height:36px; border-radius:var(--r-xs); background:var(--surface); border:1px solid var(--border); color:var(--text-mid); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s var(--ease); flex-shrink:0;}
.icon-btn:hover{border-color:var(--border-hi); color:var(--gold); background:var(--surface-2);}
.icon-btn .icon{width:16px; height:16px;}
.header-tools{display:flex; gap:4px; align-items:center; padding-inline-end:4px; border-inline-end:1px solid var(--border); margin-inline-end:2px;}

.lang-dropdown{position:relative;}
.lang-drop-btn{
  display:inline-flex; align-items:center; gap:2px; height:28px; padding:0 5px 0 4px;
  border-radius:7px; background:var(--glass); border:1px solid var(--border);
  color:var(--text-mid); cursor:pointer; transition:all .22s var(--ease);
}
.lang-drop-btn:hover{border-color:var(--gold); color:var(--gold); background:var(--glass-hi);}
.lang-flag{font-size:.95rem; line-height:1; display:block;}
.lang-chevron{width:11px; height:11px; opacity:.75; transition:transform .2s var(--ease);}
.lang-dropdown.open .lang-chevron{transform:rotate(180deg);}
.lang-drop-menu{
  position:absolute; top:calc(100% + 6px); inset-inline-end:0; min-width:140px;
  margin:0; padding:5px; list-style:none; z-index:130;
  background:var(--surface-2); border:1px solid var(--border-hi); border-radius:10px;
  box-shadow:0 14px 36px -8px rgba(0,0,0,.45);
  opacity:0; visibility:hidden; transform:translateY(-6px); pointer-events:none;
  transition:opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang-dropdown.open .lang-drop-menu{opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto;}
.lang-drop-menu button{
  width:100%; display:flex; align-items:center; gap:8px; padding:7px 9px;
  border:none; border-radius:7px; background:transparent; cursor:pointer;
  font-family:inherit; font-size:.78rem; font-weight:500; color:var(--text-mid);
  transition:background .2s, color .2s;
}
.lang-drop-menu button:hover{background:var(--glass-hi); color:var(--text-hi);}
.lang-drop-menu button.is-active{background:var(--gold-soft); color:var(--gold); font-weight:700;}

.burger{display:none; cursor:pointer; z-index:110; color:var(--text-hi); background:var(--glass); border:1px solid var(--border); width:32px; height:32px; border-radius:7px; align-items:center; justify-content:center;}
.burger .icon{width:16px; height:16px;}
.mobile-menu{display:none; position:fixed; inset:0; z-index:99; background:rgba(9,10,18,.97); backdrop-filter:blur(20px); padding:calc(var(--header-h) + 28px) 24px 24px; flex-direction:column; gap:6px; transition:background-color .4s var(--ease);}
html[data-theme="light"] .mobile-menu{background:rgba(248,246,241,.97);}
.mobile-menu.open{display:flex;}
.mobile-menu .mm-tools{display:flex; gap:10px; margin-bottom:14px;}
.mobile-menu a{font-size:1.1rem; font-weight:500; padding:12px 4px; border-bottom:1px solid var(--border);}
.mobile-menu .btn{margin-top:8px; border-bottom:none; padding:10px 18px; font-size:.88rem;}

/* Sections — consistent rhythm */
section{padding:var(--space-24) 0; position:relative;}
section.section-band{background:var(--surface-band);}
.sec-head{max-width:560px; margin:0 auto var(--space-16); text-align:center;}
.sec-head .eyebrow{margin-inline:auto;}
.sec-head h2{font-size:var(--text-3xl); font-weight:800; margin-bottom:var(--space-4); color:var(--text-hi);}
.sec-head p{color:var(--text-mid); font-size:var(--text-lg); font-weight:400; line-height:var(--leading-relaxed);}
.eyebrow{
  display:inline-flex; align-items:center; gap:var(--space-3);
  color:var(--gold); font-weight:600; font-size:var(--text-xs);
  letter-spacing:.08em; text-transform:uppercase;
  margin-bottom:var(--space-5);
}
.eyebrow::before{
  content:""; width:24px; height:2px; background:var(--gold); border-radius:1px; flex-shrink:0;
}
html[dir="ltr"] .eyebrow::before{order:2;}
.eyebrow .icon{display:none;}

.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover{border-color:var(--border-hi); box-shadow:var(--shadow-md);}

/* Dashboard mockup — always dark, like a device screenshot */
.mockup-shell{position:relative;}
.mockup-shell::before{content:""; position:absolute; inset:-30px; background:radial-gradient(circle at 60% 40%,rgba(245,184,65,.22),transparent 70%); filter:blur(30px); z-index:-1;}
.mockup{--m-surface:#111625; --m-surface-2:#171C2E; --m-border:rgba(255,255,255,.07); --m-border-hi:rgba(255,255,255,.12); --m-text-hi:#F2F0EA; --m-text-mid:#A4ADBE; --m-text-low:#6E778A;
  background:var(--m-surface); border:1px solid var(--m-border-hi); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-lg); animation:none; color:var(--m-text-hi);}
.mockup-bar{display:flex; align-items:center; gap:7px; padding:14px 18px; border-bottom:1px solid var(--m-border); background:rgba(255,255,255,.02);}
.mockup-bar span{width:10px; height:10px; border-radius:50%; background:var(--m-border-hi);}
.mockup-bar span:first-child{background:#FF6058;}
.mockup-bar span:nth-child(2){background:#FFBD2E;}
.mockup-bar span:nth-child(3){background:#28C93F;}
.mockup-bar .title{color:var(--m-text-low); font-size:.78rem; font-weight:400; margin-inline-start:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.mockup-body{padding:24px;}
.mockup-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:22px;}
.mockup-head h4{font-size:1rem; font-weight:800; color:var(--m-text-hi);}
.live-tag{display:flex; align-items:center; gap:7px; font-size:.72rem; font-weight:600; color:var(--rose); background:rgba(255,107,107,.12); padding:6px 12px; border-radius:999px; border:1px solid rgba(255,107,107,.25);}
.live-dot{width:7px; height:7px; border-radius:50%; background:var(--rose); box-shadow:0 0 0 0 rgba(255,107,107,.6); animation:pulse 1.8s infinite;}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,107,107,.55);} 70%{box-shadow:0 0 0 8px rgba(255,107,107,0);} 100%{box-shadow:0 0 0 0 rgba(255,107,107,0);}}
.subject-row{display:flex; align-items:center; gap:14px; padding:13px 0; border-bottom:1px solid var(--m-border);}
.subject-row:last-of-type{border-bottom:none;}
.subject-row .ic{width:38px; height:38px; border-radius:11px; background:var(--gold-soft); display:flex; align-items:center; justify-content:center; color:var(--gold); flex-shrink:0;}
.subject-info{flex:1; min-width:0;}
.subject-top{display:flex; justify-content:space-between; margin-bottom:9px; align-items:baseline;}
.subject-top b{font-size:.9rem; font-weight:600; color:var(--m-text-hi);}
.subject-top span{font-size:.82rem; color:var(--gold); font-weight:700; font-family:var(--font-head);}
.bar-track{height:6px; border-radius:99px; background:var(--m-surface-2); overflow:hidden;}
.bar-fill{height:100%; border-radius:99px; background:var(--grad-gold); width:0%; transition:width 1.2s var(--ease);}
.live-strip{margin-top:20px; display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--jade-soft); border:1px solid rgba(55,217,196,.28); border-radius:var(--r-md); padding:14px 16px;}
.live-strip .info{display:flex; align-items:center; gap:12px;}
.live-strip .l-ic{width:36px; height:36px; border-radius:10px; background:rgba(55,217,196,.18); display:flex; align-items:center; justify-content:center; color:var(--jade);}
.live-strip b{font-size:.86rem; display:block; font-weight:600; color:var(--m-text-hi);}
.live-strip .info span{color:var(--m-text-low); font-size:.76rem;}
.live-strip .join{background:var(--grad-jade); color:var(--ink-fixed); font-size:.78rem; font-weight:700; padding:8px 17px; border-radius:var(--r-sm); transition:transform .2s var(--ease);}
.live-strip .join:hover{transform:scale(1.05);}

/* Footer */
footer.site-footer{
  position:relative; margin-top:var(--space-16); overflow:hidden;
  border-top:1px solid var(--border);
  background:var(--ink-2);
}
html[data-theme="light"] footer.site-footer{background:var(--surface-2);}
.foot-glow{
  position:absolute; top:0; inset-inline:0; height:1px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  opacity:.5;
}
.foot-glow::after{display:none;}
footer.site-footer .wrap{padding-top:56px; padding-bottom:28px;}
.foot-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px;
  padding-bottom:44px; border-bottom:1px solid var(--border);
}
.foot-brand-col .brand{margin-bottom:14px;}
.foot-brand-line{
  margin:0 0 10px;
  color:var(--gold);
  font-weight:700;
  font-size:.92rem;
  font-family:var(--font-head);
}
.foot-brand-col p{
  color:var(--text-mid); font-size:.88rem; line-height:1.75;
  max-width:300px; margin-bottom:22px;
}
.foot-cta-row{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px;}
.foot-cta-row .btn{padding:9px 18px; font-size:.82rem;}
.foot-social{display:flex; gap:8px;}
.foot-social a{
  width:38px; height:38px; border-radius:10px;
  background:var(--glass); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-mid); transition:all .25s var(--ease);
}
.foot-social a:hover{border-color:var(--gold); color:var(--gold); transform:translateY(-2px);}
.foot-social a.wa:hover{border-color:#25D366; color:#25D366;}
.foot-social a .icon{width:17px; height:17px;}
.foot-col h5{
  font-size:var(--text-xs); font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--text-hi); margin-bottom:var(--space-5);
}
.foot-col ul{display:flex; flex-direction:column; gap:11px;}
.foot-col ul a{
  color:var(--text-low); font-size:.86rem;
  display:inline-flex; align-items:center; gap:8px;
  transition:color .2s var(--ease), transform .2s var(--ease);
}
.foot-col ul a:hover{color:var(--text-hi); transform:translateX(-4px);}
html[dir="ltr"] .foot-col ul a:hover{transform:translateX(4px);}
.foot-col ul a .icon{width:15px; height:15px; opacity:.7;}
.foot-contact-item{
  display:flex; align-items:flex-start; gap:11px; margin-bottom:14px;
  color:var(--text-mid); font-size:.84rem; line-height:1.55;
}
.foot-contact-item .f-ic{
  width:34px; height:34px; border-radius:9px; flex-shrink:0;
  background:var(--gold-soft); color:var(--gold);
  display:flex; align-items:center; justify-content:center;
}
.foot-contact-item .f-ic .icon{width:16px; height:16px;}
.foot-contact-item b{display:block; font-size:.82rem; color:var(--text-hi); margin-bottom:1px;}
.foot-contact-item a{color:var(--text-mid); transition:color .2s; word-break:break-word; overflow-wrap:anywhere;}
.foot-contact-item a:hover{color:var(--gold);}
.foot-bottom{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap; padding-top:24px;
  color:var(--text-low); font-size:.8rem;
}
.foot-legal{display:flex; gap:18px; flex-wrap:wrap;}
.foot-legal a{color:var(--text-low); transition:color .2s;}
.foot-legal a:hover{color:var(--gold);}
.foot-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:999px;
  background:var(--jade-soft); border:1px solid rgba(55,217,196,.25);
  color:var(--jade); font-size:.72rem; font-weight:600; margin-top:4px;
}
.foot-badge .dot{width:6px; height:6px; border-radius:50%; background:var(--jade); animation:pulse 1.8s infinite;}

/* Legacy footer fallback */
footer:not(.site-footer){border-top:1px solid var(--border); padding:70px 0 30px; margin-top:40px;}
.foot-grid{display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:44px; margin-bottom:48px;}
.foot-grid h5{font-size:.92rem; font-weight:800; margin-bottom:20px;}
.foot-grid ul li{margin-bottom:12px;}
.foot-grid ul a{color:var(--text-low); font-size:.88rem; display:flex; align-items:center; gap:9px; transition:color .2s var(--ease);}
.foot-grid ul a:hover{color:var(--gold);}
.foot-grid ul a .icon{width:16px; height:16px;}
.foot-brand p{color:var(--text-low); font-size:.88rem; max-width:330px; margin-top:16px; font-weight:300;}

.wa-float{position:fixed; bottom:26px; inset-inline-start:26px; z-index:90; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 10px 30px rgba(37,211,102,.45); transition:transform .25s var(--ease);}
.wa-float:hover{transform:scale(1.08) translateY(-2px);}
.wa-float::before{content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #25D366; animation:ring 2.2s ease-out infinite;}
@keyframes ring{0%{transform:scale(1); opacity:.7;} 100%{transform:scale(1.7); opacity:0;}}
.wa-float .icon{width:26px; height:26px;}

.scroll-top{
  position:fixed; bottom:26px; inset-inline-end:26px; z-index:90;
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:var(--glass); border:1px solid var(--border-hi);
  color:var(--text-mid); cursor:pointer;
  box-shadow:0 8px 28px rgba(0,0,0,.18);
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(14px);
  transition:opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), border-color .25s, color .25s, background .25s;
}
html[data-theme="light"] .scroll-top{box-shadow:0 8px 24px rgba(21,17,10,.08);}
.scroll-top.visible{opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0);}
.scroll-top:hover{border-color:var(--gold); color:var(--gold); background:var(--gold-soft); transform:translateY(-2px);}
.scroll-top.visible:hover{transform:translateY(-2px);}
.scroll-top .icon{width:20px; height:20px;}

/* Protection overlay (see protect.js) */
#protectOverlay{position:fixed; inset:0; z-index:99999; background:var(--ink); display:none; align-items:center; justify-content:center; flex-direction:column; gap:14px; text-align:center; transition:opacity .25s ease;}
#protectOverlay.show{display:flex;}
#protectOverlay .brand-logo{width:64px; height:64px; margin-bottom:4px; background:#fff; border-radius:50%; padding:6px; box-shadow:0 4px 18px rgba(0,0,0,.3);}
#protectOverlay p{color:var(--text-mid); font-size:.9rem; max-width:280px;}

/* Reveal on scroll */
[data-reveal]{opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
[data-reveal].in{opacity:1; transform:translateY(0);}

/* Auth pages (login / signup / forgot-password) */
.auth-shell{padding:calc(var(--header-h) + 48px) 0 90px; min-height:100vh; display:flex; align-items:center;}
.auth-grid{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; width:100%;}
.auth-grid.single{grid-template-columns:1fr; max-width:460px; margin:0 auto;}
.auth-panel h1{font-size:clamp(1.8rem,3.4vw,2.5rem); font-weight:900; margin-bottom:16px; line-height:1.3;}
.auth-panel p{color:var(--text-mid); font-size:1rem; max-width:420px; margin-bottom:28px; font-weight:300;}
.auth-panel .trust-row{display:flex; gap:14px; flex-wrap:wrap; margin-top:32px;}
.auth-card{padding:40px; max-width:460px; margin-inline-start:auto; width:100%;}
.auth-grid.single .auth-card{margin-inline:auto;}
.auth-card h2{font-size:1.4rem; font-weight:800; margin-bottom:8px;}
.auth-card .sub{color:var(--text-low); font-size:.88rem; margin-bottom:28px;}
.field{margin-bottom:18px;}
.field label{display:block; font-size:.85rem; font-weight:600; margin-bottom:9px; color:var(--text-hi);}
.field .input-wrap{position:relative;}
.field input, .field select{
  width:100%; padding:13px 16px; border-radius:var(--r-sm); background:var(--glass); border:1px solid var(--border-hi);
  color:var(--text-hi); font-family:inherit; font-size:.92rem; transition:border-color .25s var(--ease), background-color .4s var(--ease);
  appearance:none;
}
.field select{padding-inline-end:40px;}
.field .select-caret{position:absolute; inset-inline-end:14px; top:50%; transform:translateY(-50%); color:var(--text-low); pointer-events:none;}
.field input::placeholder{color:var(--text-low);}
.field input:focus, .field select:focus{outline:none; border-color:var(--gold); background:var(--glass-hi);}
.field .toggle-pw{position:absolute; inset-inline-end:14px; top:50%; transform:translateY(-50%); color:var(--text-low); cursor:pointer; background:none; border:none; display:flex;}
.field .toggle-pw:hover{color:var(--gold);}
.field .hint{font-size:.76rem; color:var(--text-low); margin-top:7px;}
.field .error-msg{font-size:.78rem; color:var(--rose); margin-top:7px; display:none;}
.field.invalid input{border-color:var(--rose);}
.field.invalid .error-msg{display:block;}
.row-between{display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:10px;}
.checkbox-row{display:flex; align-items:center; gap:9px; font-size:.85rem; color:var(--text-mid);}
.checkbox-row input{width:17px; height:17px; accent-color:var(--gold); cursor:pointer;}
.link-accent{color:var(--gold); font-weight:600; font-size:.85rem;}
.link-accent:hover{text-decoration:underline;}
.divider{display:flex; align-items:center; gap:14px; margin:24px 0; color:var(--text-low); font-size:.8rem;}
.divider::before, .divider::after{content:""; flex:1; height:1px; background:var(--border);}
.auth-foot{text-align:center; font-size:.88rem; color:var(--text-mid); margin-top:22px;}
.form-msg{padding:12px 16px; border-radius:var(--r-sm); font-size:.85rem; margin-bottom:18px; display:none;}
.form-msg.show{display:block;}
.form-msg.success{background:var(--jade-soft); color:var(--jade); border:1px solid rgba(55,217,196,.3);}
.form-msg.error{background:rgba(255,107,107,.1); color:var(--rose); border:1px solid rgba(255,107,107,.25);}
.plan-note{display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:var(--r-sm); background:var(--gold-soft); border:1px solid rgba(245,184,65,.25); font-size:.83rem; color:var(--gold); margin-bottom:20px;}

/* 404 page */
.error-shell{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:calc(var(--header-h) + 48px) 24px 90px; text-align:center;}
.error-code{font-family:var(--font-head); font-weight:800; font-size:clamp(5rem,16vw,9rem); line-height:1; background:var(--grad-head); -webkit-background-clip:text; background-clip:text; color:transparent; margin-bottom:8px;}
.error-shell h1{font-size:clamp(1.4rem,2.6vw,2rem); font-weight:800; margin-bottom:14px;}
.error-shell p{color:var(--text-mid); max-width:420px; margin:0 auto 32px; font-weight:300;}
.error-links{display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:28px;}
.error-links a{color:var(--text-low); font-size:.86rem; padding:9px 16px; border-radius:999px; background:var(--glass); border:1px solid var(--border);}
.error-links a:hover{color:var(--gold); border-color:var(--gold);}

/* Policy / prose pages */
.prose-shell{padding:calc(var(--header-h) + 48px) 0 90px; max-width:820px; margin:0 auto;}
.prose-shell h1{font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:900; margin-bottom:10px;}
.prose-shell .updated{color:var(--text-low); font-size:.85rem; margin-bottom:44px;}
.prose-shell h2{font-size:1.25rem; font-weight:800; margin:38px 0 14px;}
.prose-shell p{color:var(--text-mid); font-weight:300; margin-bottom:14px; font-size:.98rem;}
.prose-shell ul{margin:0 0 14px; display:flex; flex-direction:column; gap:8px;}
.prose-shell ul li{color:var(--text-mid); font-weight:300; font-size:.98rem; padding-inline-start:22px; position:relative;}
.prose-shell ul li::before{content:""; position:absolute; inset-inline-start:0; top:.6em; width:6px; height:6px; border-radius:50%; background:var(--gold);}
.prose-shell a{color:var(--gold); font-weight:600;}
.prose-shell a:hover{text-decoration:underline;}
.disclaimer-box{padding:16px 20px; border-radius:var(--r-md); background:var(--gold-soft); border:1px solid rgba(245,184,65,.25); font-size:.85rem; color:var(--text-mid); margin-bottom:36px;}

@media (max-width:920px){
  .nav{grid-template-columns:auto 1fr auto;}
  .nav-links{display:none;}
  .nav-actions .btn{display:none;}
  .burger{display:flex;}
  .auth-grid{grid-template-columns:1fr; gap:40px;}
  .auth-panel{text-align:center; display:flex; flex-direction:column; align-items:center;}
  .auth-panel .mockup-shell{max-width:400px; width:100%;}
  .auth-card{margin-inline:auto;}

  /* Footer — tablet */
  footer.site-footer{margin-top:40px;}
  footer.site-footer .wrap{padding-top:40px; padding-bottom:96px;}
  .foot-top{
    grid-template-columns:1fr 1fr; gap:28px 24px;
    padding-bottom:32px;
  }
  .foot-brand-col{
    grid-column:1 / -1; padding-bottom:24px;
    border-bottom:1px solid var(--border);
  }
  .foot-brand-col p{max-width:none;}
  .foot-top > .foot-col:last-child{grid-column:1 / -1;}
  .foot-top > .foot-col:last-child{
    display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px;
  }
  .foot-top > .foot-col:last-child h5{grid-column:1 / -1;}
  .foot-top > .foot-col:last-child .foot-contact-item{margin-bottom:0;}
}
@media (max-width:560px){
  .wrap{padding:0 16px;}
  section{padding:72px 0;}
  .sec-head{margin-bottom:36px;}
  .sec-head h2{font-size:1.45rem;}
  .nav{padding:10px 12px; gap:8px; min-height:68px;}
  header .brand-logo{width:48px; height:48px; padding:0; border-radius:0; background:transparent; box-shadow:none;}
  html[data-theme="dark"] header .brand-logo{width:48px; height:48px; padding:0; border-radius:0; background:transparent; box-shadow:none;}

  /* Footer — mobile compact */
  footer.site-footer{margin-top:28px;}
  footer.site-footer .wrap{padding-top:32px; padding-bottom:100px;}
  .foot-top{
    grid-template-columns:1fr 1fr; gap:0 20px;
    padding-bottom:24px;
  }
  .foot-brand-col{
    grid-column:1 / -1;
    padding-bottom:20px; margin-bottom:4px;
    border-bottom:1px solid var(--border);
  }
  .foot-brand-col .brand-logo{width:52px; height:52px; padding:0; background:transparent;}
  .foot-brand-col p{font-size:.84rem; margin-bottom:16px;}
  .foot-cta-row{flex-direction:column; gap:8px;}
  .foot-cta-row .btn{width:100%; justify-content:center; padding:10px 16px;}
  .foot-social{justify-content:flex-start;}
  .foot-col{
    padding:16px 0;
    border-bottom:none;
  }
  .foot-top > .foot-col:nth-child(2),
  .foot-top > .foot-col:nth-child(3){
    padding-top:12px; padding-bottom:16px;
    border-bottom:1px solid var(--border);
  }
  .foot-top > .foot-col:last-child{
    grid-column:1 / -1;
    padding-top:16px; padding-bottom:0;
    border-bottom:none;
  }
  .foot-col h5{margin-bottom:14px; font-size:.74rem;}
  .foot-col ul{gap:10px;}
  .foot-col ul a{font-size:.84rem; padding:2px 0;}
  .foot-col ul a:hover{transform:none;}
  .foot-top > .foot-col:last-child{display:block;}
  .foot-top > .foot-col:last-child .foot-contact-item{
    padding:12px 14px; margin-bottom:10px;
    background:var(--glass); border:1px solid var(--border);
    border-radius:var(--r-md);
  }
  .foot-top > .foot-col:last-child .foot-contact-item:last-child{margin-bottom:0;}
  .foot-contact-item .f-ic{width:30px; height:30px;}
  .foot-bottom{
    flex-direction:column; align-items:flex-start; gap:14px;
    padding-top:20px; font-size:.76rem;
  }
  .foot-legal{width:100%; gap:14px; flex-wrap:wrap;}
  .foot-badge{font-size:.68rem; margin-top:8px;}

  .scroll-top{bottom:88px; inset-inline-end:16px; width:40px; height:40px;}
  .wa-float{bottom:16px; inset-inline-start:16px; width:48px; height:48px;}

  .aurora span.a1{width:min(320px,85vw); height:min(320px,85vw); top:-90px; inset-inline-end:-50px;}
  .aurora span.a2{width:min(260px,75vw); height:min(260px,75vw); inset-inline-start:-70px;}
  .aurora span.a3{width:min(280px,80vw); height:min(280px,80vw); bottom:-70px;}

  .mobile-menu{padding:calc(var(--header-h) + 20px) 16px 24px;}
  .auth-shell{padding:calc(var(--header-h) + 32px) 0 72px;}
  .auth-card{padding:28px 22px;}
  .prose-shell{padding:calc(var(--header-h) + 32px) 0 72px;}
  .error-shell{padding:calc(var(--header-h) + 32px) 16px 72px;}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important;}
  [data-reveal]{opacity:1; transform:none;}
}
