:root{
  color-scheme: dark;
  --bg:#07080d;
  --bg-elevated:#0c0e17;
  --surface: rgba(255,255,255,.045);
  --surface-strong: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.18);
  --text:#edf0f7;
  --text-muted:#8b93a9;
  --text-faint:#565d73;
  --accent:#b03052;
  --accent-2:#ff7a90;
  --accent-soft: rgba(176,48,82,.18);
  --good:#3ddc97;
  --shadow: 0 24px 70px rgba(0,0,0,.5);
  --radius-lg:28px;
  --radius-md:20px;
  --radius-sm:12px;
  --font-display:'Unbounded',system-ui,sans-serif;
  --font-body:'Manrope',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    color-scheme: light;
    --bg:#f3f5fb;
    --bg-elevated:#ffffff;
    --surface: rgba(20,30,60,.04);
    --surface-strong: rgba(20,30,60,.075);
    --border: rgba(20,30,60,.1);
    --border-strong: rgba(20,30,60,.2);
    --text:#12141d;
    --text-muted:#565f78;
    --text-faint:#8890a6;
    --accent:#8a2035;
    --accent-2:#c23d54;
    --accent-soft: rgba(138,32,53,.1);
    --good:#0d9a63;
    --shadow: 0 24px 70px rgba(20,30,60,.14);
  }
}
:root[data-theme="light"]{
  color-scheme: light;
  --bg:#f3f5fb;
  --bg-elevated:#ffffff;
  --surface: rgba(20,30,60,.04);
  --surface-strong: rgba(20,30,60,.075);
  --border: rgba(20,30,60,.1);
  --border-strong: rgba(20,30,60,.2);
  --text:#12141d;
  --text-muted:#565f78;
  --text-faint:#8890a6;
  --accent:#8a2035;
  --accent-2:#c23d54;
  --accent-soft: rgba(138,32,53,.1);
  --good:#0d9a63;
  --shadow: 0 24px 70px rgba(20,30,60,.14);
}

*,*::before,*::after{box-sizing:border-box;}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important;}
}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding-inline:20px;
  position:relative;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(900px 500px at 15% -10%, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(0deg, rgba(127,141,163,.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(127,141,163,.05) 0 1px, transparent 1px 64px);
  background-color:var(--bg);
}
::selection{background:var(--accent);color:#fff;}
img{max-width:100%;}
[hidden]{display:none!important;}
a{color:inherit;}
:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px;border-radius:4px;}
h1,h2,h3{font-family:var(--font-display);font-weight:700;margin:0;text-wrap:balance;letter-spacing:-.01em;}
p{margin:0;}
.wrap{max-width:1180px;margin-inline:auto;}
.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent-2);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent-2);box-shadow:0 0 10px var(--accent-2);}
.accent-grad{
  background:linear-gradient(95deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.glass{
  background:var(--surface);
  border:1px solid var(--border);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow);
}
.btn{
  font-family:var(--font-body);
  font-weight:700;
  font-size:15px;
  border-radius:999px;
  padding:13px 26px;
  border:1px solid transparent;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  text-decoration:none;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn--primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;
  box-shadow:0 12px 32px var(--accent-soft);
}
.btn--primary:hover{box-shadow:0 16px 40px var(--accent-soft);}
.btn--ghost{
  background:var(--surface);
  border-color:var(--border-strong);
  color:var(--text);
}
.btn--ghost:hover{background:var(--surface-strong);}
.btn--sm{padding:9px 18px;font-size:13.5px;}

/* reveal-on-scroll */
.reveal{opacity:1;transform:none;transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);}
.reveal.pre{opacity:0;transform:translateY(28px);}

/* ---------- NAV ---------- */
.nav{
  position:sticky;
  top:env(safe-area-inset-top,0px);
  z-index:50;
  margin-top:16px;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.nav__brand{
  display:flex;align-items:center;gap:10px;
  font-family:var(--font-display);font-weight:700;font-size:16.5px;
  text-decoration:none;color:var(--text);
}
.nav__mark{
  width:30px;height:30px;border-radius:9px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px var(--accent-soft);
  flex:none;
}
.nav__mark svg{width:16px;height:16px;}
.nav__links{display:flex;gap:26px;font-size:14.5px;color:var(--text-muted);}
.nav__links a{text-decoration:none;transition:color .2s ease;}
.nav__links a:hover{color:var(--text);}
.nav__links a[aria-current="page"]{color:var(--text);}
.nav__cta{display:flex;align-items:center;gap:12px;}
.theme-toggle{
  width:38px;height:38px;border-radius:999px;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface);border:1px solid var(--border);
  color:var(--text-muted);cursor:pointer;transition:border-color .2s ease,color .2s ease;
}
.theme-toggle:hover{border-color:var(--border-strong);color:var(--text);}
.theme-toggle__icon{width:18px;height:18px;}
/* default (dark): show moon */
.theme-toggle__icon--sun{display:none;}
.theme-toggle__icon--moon{display:block;}
/* explicit light override: show sun */
:root[data-theme="light"] .theme-toggle__icon--sun{display:block;}
:root[data-theme="light"] .theme-toggle__icon--moon{display:none;}
/* system prefers light, no explicit override: show sun */
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]):not([data-theme="light"]) .theme-toggle__icon--sun{display:block;}
  :root:not([data-theme="dark"]):not([data-theme="light"]) .theme-toggle__icon--moon{display:none;}
}
@media (max-width:760px){ .nav__links{display:none;} }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  overflow:hidden;
  padding:88px 28px 72px;
  margin-top:22px;
  text-align:center;
  isolation:isolate;
}
.hero__glow{position:absolute;border-radius:50%;filter:blur(80px);pointer-events:none;z-index:-1;}
.hero__glow--a{width:460px;height:460px;background:var(--accent);opacity:.35;top:-160px;left:-120px;animation:drift 19s ease-in-out infinite;}
.hero__glow--b{width:360px;height:360px;background:var(--accent-2);opacity:.28;bottom:-160px;right:-80px;animation:drift 23s ease-in-out infinite -7s;}
@keyframes drift{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(26px,-18px) scale(1.1)}}
.hero h1{font-size:clamp(32px,5.4vw,58px);margin:22px auto 20px;max-width:820px;}
.hero__sub{max-width:560px;margin:0 auto 34px;color:var(--text-muted);font-size:16.5px;}
.hero__ctas{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:56px;}
.hero__stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  max-width:760px;
  margin-inline:auto;
  overflow:hidden;
  border-radius:var(--radius-md);
}
.stat{padding:20px 10px;background:var(--surface);border:1px solid var(--border);}
.stat b{display:block;font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:clamp(19px,2.4vw,26px);font-weight:700;}
.stat span{display:block;margin-top:4px;font-size:12px;color:var(--text-faint);letter-spacing:.02em;}
@media (max-width:620px){ .hero__stats{grid-template-columns:repeat(2,1fr);} }

/* ---------- FEATURES (bento) ---------- */
.section{padding:88px 20px;}
.section__head{max-width:620px;margin-bottom:44px;}
.section__head h2{font-size:clamp(26px,3.4vw,38px);margin-top:14px;}
.section__head p{margin-top:14px;color:var(--text-muted);font-size:15.5px;}

.bento{
  display:grid;
  grid-template-columns:1.35fr 1fr;
  grid-template-rows:auto auto;
  gap:18px;
}
.card{padding:30px;position:relative;overflow:hidden;transition:border-color .25s ease, transform .25s ease;}
.card:hover{border-color:var(--border-strong);transform:translateY(-3px);}
.card--route{grid-row:span 2;}
.card__icon{
  width:42px;height:42px;border-radius:12px;
  background:var(--accent-soft);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:18px;
}
.card__icon svg{width:22px;height:22px;stroke:var(--accent-2);}
.card h3{font-size:19px;margin-bottom:8px;}
.card p{color:var(--text-muted);font-size:14.5px;}
.card__badge{
  display:inline-flex;margin-top:16px;
  font-family:var(--font-mono);font-size:12.5px;
  padding:6px 12px;border-radius:999px;
  background:var(--accent-soft);color:var(--accent-2);
}
.route-diagram{width:100%;height:auto;margin-top:20px;}
.route-active{stroke-dasharray:6 6;animation:dash 1.1s linear infinite;}
@keyframes dash{to{stroke-dashoffset:-24}}
.route-node text{font-family:var(--font-mono);font-size:9.5px;fill:var(--text-faint);}
.sparkline{width:100%;height:auto;margin-top:16px;}
@media (max-width:860px){
  .bento{grid-template-columns:1fr;}
  .card--route{grid-row:auto;}
}

/* ---------- PRICING ---------- */
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.plan{padding:32px 26px;display:flex;flex-direction:column;gap:18px;position:relative;}
.plan--featured{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-soft), var(--shadow);}
.plan__ribbon{
  position:absolute;top:20px;right:-34px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#04070f;font-family:var(--font-mono);font-weight:700;font-size:11.5px;
  padding:5px 40px;transform:rotate(38deg);letter-spacing:.04em;
}
.plan__name{font-family:var(--font-mono);color:var(--text-muted);font-size:13px;letter-spacing:.05em;text-transform:uppercase;}
.plan__price{display:flex;align-items:baseline;gap:6px;}
.plan__price b{font-family:var(--font-display);font-size:38px;}
.plan__price span{color:var(--text-faint);font-size:13.5px;}
.plan__total{font-size:13px;color:var(--text-faint);margin-top:-10px;}
.plan__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--text-muted);}
.plan__list li{display:flex;gap:9px;align-items:flex-start;}
.plan__list svg{width:16px;height:16px;flex:none;margin-top:2px;stroke:var(--good);}
.plan .btn{justify-content:center;margin-top:auto;}
@media (max-width:860px){ .pricing-grid{grid-template-columns:1fr;} }
.pricing-note{margin-top:22px;font-size:13.5px;color:var(--text-faint);text-align:center;}

/* ---------- CONSTRUCTOR ---------- */
.constructor{padding:36px;display:flex;flex-direction:column;gap:28px;}
.constructor__label{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint);display:block;margin-bottom:12px;}
.seg{display:flex;flex-wrap:wrap;gap:8px;}
.seg__btn{font-family:var(--font-mono);font-size:13px;padding:10px 18px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);cursor:pointer;transition:transform .2s ease,border-color .2s ease,background .2s ease,color .2s ease;}
.seg__btn:hover{border-color:var(--border-strong);color:var(--text);}
.seg__btn[aria-pressed="true"]{background:linear-gradient(135deg,var(--accent),var(--accent-2));border-color:transparent;color:#04070f;font-weight:700;}
.gb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:10px;}
.gb-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 10px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font-family:var(--font-body);transition:border-color .2s ease,background .2s ease;}
.gb-card svg{width:22px;height:22px;stroke:var(--text-faint);transition:stroke .2s ease;}
.gb-card b{font-family:var(--font-display);font-size:15px;}
.gb-card span{font-family:var(--font-mono);font-size:12px;color:var(--text-faint);}
.gb-card:hover{border-color:var(--border-strong);}
.gb-card[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);}
.gb-card[aria-pressed="true"] svg{stroke:var(--accent-2);}
.constructor__result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding-top:22px;border-top:1px solid var(--border);}
.constructor__total{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
.constructor__total span:first-child{font-family:var(--font-mono);font-size:12.5px;color:var(--text-faint);}
.constructor__total b{font-family:var(--font-display);font-size:32px;}
.constructor__total span:last-child{font-size:13px;color:var(--text-muted);}
.constructor__equiv{font-family:var(--font-mono);font-size:12.5px;color:var(--text-faint);}

/* ---------- CABINET TEASER (landing page) ---------- */
.teaser{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:44px;flex-wrap:wrap;}
.teaser__text{max-width:480px;display:flex;flex-direction:column;gap:16px;}
.teaser__text h2{font-size:clamp(22px,2.8vw,30px);}
.teaser__text p{color:var(--text-muted);font-size:15px;}
.teaser__preview{flex:1;min-width:220px;max-width:320px;}
.teaser__preview .cab-card{transform:rotate(-2deg);box-shadow:var(--shadow);}
@media (max-width:760px){ .teaser{flex-direction:column;align-items:stretch;text-align:left;} .teaser__preview{max-width:100%;} }

/* ---------- CABINET PAGE HEADER ---------- */
.cab-page-head{padding:56px 20px 8px;}
.cab-back{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--text-muted);text-decoration:none;margin-bottom:18px;}
.cab-back:hover{color:var(--text);}
.cab-page-head h1{font-size:clamp(26px,3.6vw,36px);margin-top:14px;}
.cab-page-head p{margin-top:10px;max-width:620px;color:var(--text-muted);font-size:15.5px;}

/* ---------- CABINET ---------- */
.cabinet-frame{padding:0;overflow:hidden;}
.cabinet-bar{
  display:flex;align-items:center;gap:14px;
  padding:16px 22px;border-bottom:1px solid var(--border);
}
.cabinet-dots{display:flex;gap:6px;}
.cabinet-dots span{width:9px;height:9px;border-radius:50%;background:var(--text-faint);opacity:.5;}
.cabinet-bar__title{font-family:var(--font-mono);font-size:12.5px;color:var(--text-muted);}
.cabinet-bar__badge{
  margin-left:auto;font-family:var(--font-mono);font-size:11px;
  padding:4px 10px;border-radius:999px;border:1px solid var(--border-strong);color:var(--text-faint);
}
.cabinet-body{padding:26px;display:grid;grid-template-columns:1.15fr .85fr;gap:18px;}
.cab-col{display:flex;flex-direction:column;gap:18px;}
.cab-card{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);padding:20px;}
.cab-card__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.cab-card__top h4{font-family:var(--font-body);font-size:14px;font-weight:700;margin:0;}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-family:var(--font-mono);padding:4px 10px;border-radius:999px;}
.pill--good{background:rgba(61,220,151,.14);color:var(--good);}
.pill--good::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--good);}
.progress{height:8px;border-radius:999px;background:var(--surface-strong);overflow:hidden;}
.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:999px;}
.cab-meta{display:flex;justify-content:space-between;font-size:12.5px;color:var(--text-faint);margin-top:8px;font-family:var(--font-mono);}
.chips{display:flex;flex-wrap:wrap;gap:8px;}
.chip{display:flex;align-items:center;gap:7px;font-size:12.5px;padding:7px 12px;border-radius:999px;background:var(--surface-strong);border:1px solid var(--border);}
.chip i{width:6px;height:6px;border-radius:50%;background:var(--good);flex:none;}
.server-row{display:flex;align-items:center;gap:12px;padding:11px 4px;border-bottom:1px solid var(--border);font-size:13.5px;}
.server-row:last-child{border-bottom:none;}
.server-row input{accent-color:var(--accent);width:16px;height:16px;flex:none;}
.server-row .flag{width:26px;font-family:var(--font-mono);font-size:11px;color:var(--text-faint);}
.server-row .ping{margin-left:auto;font-family:var(--font-mono);font-size:12.5px;color:var(--accent-2);}
@media (max-width:760px){ .cabinet-body{grid-template-columns:1fr;} }

.cab-tabs{display:flex;gap:8px;padding:16px 22px 0;overflow-x:auto;}
.cab-tab{font-family:var(--font-mono);font-size:12.5px;padding:8px 16px;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text-muted);cursor:pointer;white-space:nowrap;transition:background .2s ease,color .2s ease,border-color .2s ease;}
.cab-tab:hover{color:var(--text);}
.cab-tab[aria-selected="true"]{background:var(--accent-soft);color:var(--accent-2);border-color:transparent;}
.cabinet-panel{padding:26px;}
.server-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.server-card{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);padding:18px;display:flex;flex-direction:column;gap:12px;transition:border-color .2s ease;}
.server-card:hover{border-color:var(--border-strong);}
.server-card__top{display:flex;align-items:center;gap:10px;}
.server-card__code{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:12px;font-weight:700;padding:5px 9px;border-radius:7px;background:var(--surface-strong);color:var(--text-muted);}
.server-card__code svg{width:13px;height:13px;stroke:currentColor;flex:none;}
.server-row .flag{display:inline-flex;align-items:center;gap:5px;width:auto;}
.server-row .flag svg{width:13px;height:13px;stroke:var(--text-faint);flex:none;}
.server-card__rec{margin-left:auto;font-family:var(--font-mono);font-size:10.5px;color:var(--accent-2);background:var(--accent-soft);padding:4px 9px;border-radius:999px;}
.server-card__city{font-weight:700;font-size:15px;}
.server-card__country{font-size:12.5px;color:var(--text-faint);margin-top:2px;}
.server-card__meta{display:flex;justify-content:space-between;align-items:center;font-family:var(--font-mono);font-size:12px;color:var(--text-faint);}
.server-card__meta b{color:var(--accent-2);font-weight:600;}
@media (max-width:860px){ .server-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .server-grid{grid-template-columns:1fr;} }

.device-row{display:flex;align-items:center;gap:14px;padding:14px 4px;border-bottom:1px solid var(--border);}
.device-row:last-child{border-bottom:none;}
.device-row__icon{width:38px;height:38px;border-radius:10px;background:var(--surface-strong);display:flex;align-items:center;justify-content:center;flex:none;}
.device-row__icon svg{width:18px;height:18px;stroke:var(--text-muted);}
.device-row__name{font-weight:700;font-size:14px;}
.device-row__meta{font-size:12.5px;color:var(--text-faint);margin-top:2px;}
.device-row__status{margin-left:auto;display:flex;align-items:center;gap:14px;}
.pill--muted{background:var(--surface-strong);color:var(--text-faint);}
.pill--muted::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--text-faint);}
.device-row__remove{width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text-faint);cursor:pointer;flex:none;font-size:15px;line-height:1;}
.device-row__remove:hover{border-color:var(--border-strong);color:var(--text);}

.billing-row{display:flex;align-items:center;gap:16px;padding:13px 4px;border-bottom:1px solid var(--border);font-size:13.5px;flex-wrap:wrap;}
.billing-row:last-child{border-bottom:none;}
.billing-row__date{font-family:var(--font-mono);color:var(--text-faint);width:100px;flex:none;}
.billing-row__plan{flex:1;min-width:140px;}
.billing-row__amount{font-family:var(--font-mono);font-variant-numeric:tabular-nums;}
.billing-total{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:16px;border-top:1px solid var(--border);font-family:var(--font-mono);font-size:13px;color:var(--text-faint);}
.billing-total b{color:var(--text);font-size:16px;}

/* ---------- FAQ ---------- */
.faq{display:flex;flex-direction:column;gap:12px;max-width:760px;}
.faq details{padding:18px 22px;}
.faq summary{cursor:pointer;font-weight:700;font-size:15.5px;list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+";font-family:var(--font-mono);color:var(--accent-2);font-size:20px;transition:transform .25s ease;flex:none;}
.faq details[open] summary::after{transform:rotate(45deg);}
.faq p{margin-top:12px;color:var(--text-muted);font-size:14.5px;}

/* ---------- AUTH MODAL ---------- */
.auth-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;}
.auth-modal__backdrop{position:absolute;inset:0;background:rgba(4,6,12,.6);backdrop-filter:blur(4px);}
.auth-modal__panel{position:relative;width:100%;max-width:400px;max-height:90vh;overflow-y:auto;padding:32px;background:var(--bg-elevated);}
.auth-modal__close{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text-faint);font-size:18px;line-height:1;cursor:pointer;}
.auth-modal__close:hover{color:var(--text);border-color:var(--border-strong);}
.auth-tabs{display:flex;gap:8px;margin:18px 0 20px;}
.auth-tab{flex:1;font-family:var(--font-mono);font-size:13px;padding:9px 0;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);cursor:pointer;}
.auth-tab[aria-selected="true"]{background:var(--accent-soft);color:var(--accent-2);border-color:transparent;font-weight:700;}
.auth-form{display:flex;flex-direction:column;gap:14px;}
.auth-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--text-muted);font-family:var(--font-mono);}
.auth-form input{font-family:var(--font-body);font-size:15px;padding:11px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);}
.auth-form input:focus{outline:2px solid var(--accent-2);outline-offset:1px;}
.auth-form .btn{justify-content:center;margin-top:4px;}
.auth-error{font-size:13px;color:#ff8a94;}
.auth-sep{display:flex;align-items:center;gap:12px;margin:22px 0 16px;color:var(--text-faint);font-size:12.5px;font-family:var(--font-mono);}
.auth-sep::before,.auth-sep::after{content:"";flex:1;height:1px;background:var(--border);}
.auth-tg-widget{display:flex;justify-content:center;min-height:40px;}
.auth-callout{margin-top:18px;padding:16px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);}
.auth-callout p{color:var(--text-muted);font-size:14px;margin-bottom:10px;}
.auth-callout h4{font-size:14px;margin-bottom:8px;}
#authLoginName{margin:4px 0 4px;}

/* ---------- FOOTER ---------- */
footer{padding:60px 26px 40px;margin-top:20px;}
.footer-grid{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;padding-bottom:36px;border-bottom:1px solid var(--border);}
.footer-cols{display:flex;gap:64px;flex-wrap:wrap;}
.footer-col h5{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint);margin:0 0 14px;}
.footer-col a{display:block;color:var(--text-muted);text-decoration:none;font-size:14px;margin-bottom:10px;}
.footer-col a:hover{color:var(--text);}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:24px;font-size:13px;color:var(--text-faint);}
