:root{
  --bg:#07070a;
  --ink:#f3f0e8;
  --muted:rgba(243,240,232,.72);
  --glass:rgba(15,15,20,.52);
  --stroke:rgba(243,240,232,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --r:22px;
  --r2:28px;
  --pad:18px;
  --max:1120px;
  --t: 520ms;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font-fa: ui-sans-serif, system-ui, -apple-system, "Vazirmatn", "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-en: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  overflow-x:hidden;
}

/* Better focus for keyboard */
:focus-visible{ outline:2px solid rgba(210,170,90,.9); outline-offset:3px; border-radius:12px; }

a{color:inherit; text-decoration:none}
button{font:inherit}
img{max-width:100%; display:block}

.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(210,170,90,.22), transparent 55%),
    radial-gradient(900px 400px at 20% 80%, rgba(80,170,190,.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.70));
  pointer-events:none;
  z-index:0;
}

.shell{ position:relative; z-index:1; padding-top:86px; padding-bottom:88px; }

/* Topbar (Desktop) */
.topbar{
  position:fixed; top:0; left:0; right:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
  background:rgba(10,10,14,.62);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--stroke);
  z-index:10;
}
.brand{display:flex; gap:12px; align-items:center}
.brand__logo{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  object-fit:cover;
}
.brand__name{font-weight:800; letter-spacing:.3px}
.brand__tagline{font-size:12px; color:var(--muted); margin-top:2px}
.topbar__right{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.ghost{
  border:1px solid var(--stroke);
  background:transparent;
  color:var(--ink);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
}
.ghost:hover{background:rgba(255,255,255,.06)}

.ghost.modelsLink{display:inline-flex; align-items:center; gap:8px; text-decoration:none}
.ghost.modelsLink .ico{font-size:14px; line-height:1}

/* Navigation */
.nav--desktop{display:flex; gap:8px; align-items:center; overflow-x:auto; scrollbar-width:none; max-width:min(760px, 55vw); padding:4px 2px}
.nav--desktop::-webkit-scrollbar{display:none}
.nav__btn{
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border var(--t) var(--ease);
}
.nav__btn:hover{background:rgba(255,255,255,.06); color:var(--ink)}
.nav__btn.is-active{
  background:rgba(255,255,255,.10);
  border-color:var(--stroke);
  color:var(--ink);
}

/* Mobile bottom nav */
.nav--mobile{
  position:fixed; bottom:14px; left:50%;
  transform:translateX(-50%);
  display:none;
  gap:8px;
  padding:10px;
  background:rgba(10,10,14,.72);
  border:1px solid var(--stroke);
  border-radius:999px;
  backdrop-filter: blur(12px);
  z-index:12;
  max-width: calc(100% - 18px);
  overflow-x:auto;
  scrollbar-width:none;
}
.nav--mobile::-webkit-scrollbar{ display:none; }
.nav__pill{
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
}
.nav__pill.is-active{
  background:rgba(255,255,255,.10);
  border-color:var(--stroke);
  color:var(--ink);
}

/* Panels */
.panel{
  width:min(var(--max), calc(100% - 28px));
  margin: 18px auto;
  border-radius: var(--r2);
  border:1px solid var(--stroke);
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height: calc(100vh - 86px - 120px);
  display:none;
}
.panel.is-active{display:block}

.panel::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.65));
  z-index:0;
  pointer-events:none;
}

/* Reveal-on-scroll */
.reveal{ opacity:0; transform: translateY(10px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* Quote */
.quote{
  margin:14px 0 12px;
  padding:14px 16px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  border-radius:18px;
  line-height:1.9;
  color:rgba(243,240,232,.82);
}

/* Gameplay pillars */
.pillars{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  padding:0 22px 22px;
}
.pillar{
  border:1px solid var(--stroke);
  background:rgba(8,8,12,.46);
  border-radius:22px;
  padding:16px;
}
.pillar__k{ color:rgba(243,240,232,.62); font-size:12px; }
.pillar__t{ margin-top:8px; font-size:16px; font-weight:900; }
.pillar__d{ margin-top:10px; color:var(--muted); line-height:1.9; font-size:13.5px; }

/* Roadmap */
.roadmap{ display:flex; flex-direction:column; gap:10px; }
.mile{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  border-radius:18px;
  padding:14px;
}
.mile__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.mile__t{ font-weight:900; }
.mile__s{ font-size:12px; color:rgba(243,240,232,.78); border:1px solid var(--stroke); padding:6px 10px; border-radius:999px; }
.mile__d{ margin-top:8px; color:var(--muted); line-height:1.9; }

/* Form */
.form{ margin-top:12px; display:grid; gap:10px; }
.form__label{ font-size:12px; color:rgba(243,240,232,.70); }
.form__input{
  width:100%;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--ink);
}
.form__input::placeholder{ color:rgba(243,240,232,.45); }
.panel > * { position:relative; z-index:1 }

/* Layout grids */
.grid{
  display:grid;
  gap:16px;
  padding:22px;
}
.grid--two{ grid-template-columns: 1.1fr .9fr; }
.grid--home{ grid-template-columns: 1.2fr .8fr; align-items:stretch; }

/* Cards */
.card{
  background:rgba(8,8,12,.58);
  border:1px solid var(--stroke);
  border-radius: var(--r);
  padding:20px;
}
.card--soft{ background:rgba(8,8,12,.40) }
.card--wide{
  width:min(var(--max), calc(100% - 28px));
  margin: 0 auto 18px;
}

.card__title{ margin:0 0 10px; font-size:28px; letter-spacing:.2px; }
.card__subtitle{ margin:0 0 10px; font-size:18px; color:var(--ink); }
.card__text{ margin:0; color:var(--muted); line-height:1.9; }
.card__hint{ margin:12px 0 0; color:rgba(243,240,232,.62); font-size:13px; line-height:1.8; }

.divider{
  height:1px; background:var(--stroke);
  margin:16px 0;
}
.list{ margin:0; padding:0 18px; color:var(--muted); line-height:1.9; }
.list li{ margin:6px 0; }

/* Hero */
.heroCard{
  background:rgba(18,18,24,.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:1px solid var(--stroke);
  border-radius: var(--r2);
  padding:24px;
}
.heroCard__kicker{ color:rgba(243,240,232,.6); font-size:13px; }
.heroCard__title{ margin:6px 0 8px; font-size:44px; letter-spacing:.4px; }
.heroCard__subtitle{ margin:0; color:var(--muted); line-height:1.9; font-size:15.5px; }
.heroCard__list{ margin:14px 0 0; padding:0 18px; color:var(--muted); line-height:1.9; }
.heroCard__cta{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.heroCard__note{ display:flex; gap:10px; align-items:center; margin-top:14px; color:rgba(243,240,232,.62); font-size:13px; }
.dot{ width:8px; height:8px; border-radius:999px; background:rgba(210,170,90,.95); box-shadow:0 0 18px rgba(210,170,90,.55); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--stroke);
  gap:10px;
  cursor:pointer;
  transition: transform 220ms var(--ease), background 220ms var(--ease);
}
.btn:hover{ transform: translateY(-1px) }
.btn--primary{ background:rgba(210,170,90,.18) }
.btn--primary:hover{ background:rgba(210,170,90,.26) }
.btn--secondary{ background:rgba(255,255,255,.06) }
.btn--secondary:hover{ background:rgba(255,255,255,.10) }

/* Showcase */
.showcase{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.showcase__frame{
  border:1px solid var(--stroke);
  border-radius: var(--r2);
  overflow:hidden;
  background:rgba(255,255,255,.04);
}
.showcase__img{ width:100%; height: 280px; object-fit:cover; }

.miniCards{ display:grid; grid-template-columns: 1fr; gap:10px; }
.miniCard{
  border:1px solid var(--stroke);
  background:rgba(8,8,12,.45);
  border-radius:18px;
  padding:14px;
}
.miniCard__title{ color:rgba(243,240,232,.62); font-size:12px; }
.miniCard__value{ margin-top:6px; font-weight:700; letter-spacing:.2px; }

/* Buy */
.priceBox{
  margin:16px 0;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  border-radius:18px;
  padding:14px;
  display:flex; align-items:baseline; justify-content:space-between;
  gap:10px;
}
.priceBox__label{ color:rgba(243,240,232,.62); font-size:12px; }
.priceBox__value{ font-size:22px; font-weight:800; }

/* Downloads */
.downloads{ display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.dl{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  border-radius:18px;
  padding:14px;
  display:flex; justify-content:space-between; align-items:center;
}
.dl:hover{ background:rgba(255,255,255,.10) }
.badge{
  font-size:12px; color:rgba(243,240,232,.70);
  border:1px solid var(--stroke);
  padding:6px 10px;
  border-radius:999px;
}

/* Team */
.team{ display:flex; flex-direction:column; gap:10px; }
.member{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  border-radius:18px;
  padding:14px;
}
.member__name{ font-weight:800; }
.member__role{ margin-top:6px; color:var(--muted); font-size:13px; }

/* FAQ */
.faq{ display:grid; gap:10px; }
.qa{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.05);
  border-radius:18px;
  padding:14px;
}
.qa__q{ font-weight:800; }
.qa__a{ margin-top:8px; color:var(--muted); line-height:1.9; }

/* Quote */
.quote{
  margin-top:14px;
  padding:14px 16px;
  border:1px solid var(--stroke);
  border-radius:18px;
  background:rgba(210,170,90,.10);
  line-height:1.9;
  color:rgba(243,240,232,.86);
}

/* Pillars */
.pillars{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  padding:0 22px 22px;
}
.pillar{
  border:1px solid var(--stroke);
  background:rgba(8,8,12,.48);
  border-radius: var(--r);
  padding:16px;
}
.pillar__title{ font-weight:900; letter-spacing:.2px; }
.pillar__desc{ margin-top:8px; color:var(--muted); line-height:1.9; font-size:13.5px; }
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:rgba(243,240,232,.82);
  font-size:12px;
  margin-top:10px;
}

/* Roadmap */
.roadmap{ display:flex; flex-direction:column; gap:10px; }
.rm{
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.05);
}
.rm__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.rm__title{ font-weight:900; }
.rm__meta{ color:rgba(243,240,232,.62); font-size:12px; }
.rm__desc{ margin-top:8px; color:var(--muted); line-height:1.9; }
.status{ border:1px solid var(--stroke); padding:6px 10px; border-radius:999px; font-size:12px; }
.status--now{ background:rgba(80,170,190,.14); }
.status--next{ background:rgba(210,170,90,.14); }
.status--later{ background:rgba(255,255,255,.06); }

/* Forms */
.form{ margin-top:14px; display:grid; gap:10px; }
.form__label{ color:rgba(243,240,232,.72); font-size:12px; }
.form__input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.25);
  color:var(--ink);
}
.form__input::placeholder{ color:rgba(243,240,232,.45); }

/* Reveal on scroll */
.reveal{ opacity:0; transform: translateY(10px); }
.reveal.is-visible{ opacity:1; transform: translateY(0); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }

/* Social strip */
.strip{
  border-top:1px solid var(--stroke);
  background:rgba(0,0,0,.14);
  padding:14px 18px;
}
.strip__inner{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  border-radius:999px;
  padding:10px 12px;
  color:rgba(243,240,232,.82);
}
.chip:hover{ background:rgba(255,255,255,.10) }

/* Footer */
.footer{
  width:min(var(--max), calc(100% - 28px));
  margin: 10px auto 18px;
  border:1px solid var(--stroke);
  border-radius: var(--r2);
  background:rgba(10,10,14,.52);
}
.footer__inner{
  padding:16px 18px;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer__brand{ font-weight:900; }
.footer__sub{ color:rgba(243,240,232,.62); font-size:12px; margin-top:6px; }
.footer__right{ display:flex; gap:10px; flex-wrap:wrap; }

/* Toast */
.toast{
  position:fixed;
  bottom:92px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(10,10,14,.82);
  border:1px solid var(--stroke);
  border-radius: 16px;
  padding:10px 12px;
  color:rgba(243,240,232,.86);
  backdrop-filter: blur(12px);
  z-index:30;
  opacity:0;
  pointer-events:none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  max-width:90%;
  max-width:min(400px, 90vw);
}

.toast--success{
  border-color:rgba(76, 175, 80, 0.4);
  background:rgba(76, 175, 80, 0.15);
}

.toast--error{
  border-color:rgba(244, 67, 54, 0.4);
  background:rgba(244, 67, 54, 0.15);
}

.toast--warning{
  border-color:rgba(255, 152, 0, 0.4);
  background:rgba(255, 152, 0, 0.15);
}

.toast--info{
  border-color:var(--stroke);
  background:rgba(10,10,14,.82);
}

.toast{
  position:fixed;
  bottom:92px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(10,10,14,.82);
  border:1px solid var(--stroke);
  border-radius: 16px;
  padding:10px 12px;
  color:rgba(243,240,232,.86);
  backdrop-filter: blur(12px);
  z-index:30;
  opacity:0;
  pointer-events:none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.toast.is-show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}

/* Transitions */
.panel.is-leaving{ animation: leave var(--t) var(--ease) both; }
.panel.is-entering{ animation: enter var(--t) var(--ease) both; }
@keyframes leave{
  from{ opacity:1; transform:translateY(0); }
  to{ opacity:0; transform:translateY(10px); }
}
@keyframes enter{
  from{ opacity:0; transform:translateY(-10px); }
  to{ opacity:1; transform:translateY(0); }
}

/* RESPONSIVE: Mobile = layout کاملاً متفاوت */
@media (max-width: 860px){
  .shell{ padding-top:70px; }
  .nav--desktop{ display:none; }
  .nav--mobile{ display:flex; }
  .topbar{ padding:10px 12px; }
  .brand__logo{ width:40px; height:40px; }
  .brand__tagline{ display:none; }

  .panel{ min-height: calc(100vh - 70px - 120px); }
  .grid{ padding:14px; }
  .grid--two, .grid--home{ grid-template-columns: 1fr; }

  .pillars{ grid-template-columns: 1fr; padding:0 14px 14px; }

  .heroCard__title{ font-size:36px; }
  .showcase__img{ height:220px; }

  /* Mobile style: کارت‌ها نزدیک‌تر و CTA تمام‌عرض */
  .heroCard__cta .btn{ flex:1 1 auto; width:100%; }
  .btn{ width:100%; }

  .footer__inner{ flex-direction:column; align-items:flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  :root{ --t: 1ms; }
  .btn, .nav__btn { transition:none; }
}


/* a11y */
.skipLink{
  position:absolute;
  top:8px;
  right:8px;
  transform:translateY(-200%);
  background:rgba(10,10,14,.92);
  border:1px solid rgba(255,255,255,.18);
  color:inherit;
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}
.skipLink:focus{ transform:translateY(0); outline:none; box-shadow:0 0 0 3px rgba(255,255,255,.22); }
:focus-visible{ outline:2px solid rgba(255,255,255,.35); outline-offset:3px; }

.noScroll{ overflow:hidden; }

/* gallery */
.gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
@media (min-width: 900px){
  .gallery{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.gItem{
  all:unset;
  display:block;
  cursor:pointer;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.gItem img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  transition:transform .25s ease;
}
.gItem:hover img{ transform:scale(1.06); }

/* modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:10000;
}
.modal.is-open{ display:block; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.66);
  backdrop-filter: blur(6px);
}
.modal__dialog{
  position:relative;
  max-width: 980px;
  margin: 6vh auto;
  padding: 14px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(14,14,18,.92);
  box-shadow:0 22px 60px rgba(0,0,0,.6);
}
.modal__close{
  position:absolute;
  top:10px;
  left:10px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:inherit;
  font-size:24px;
  cursor:pointer;
}
.modal__img{
  width:100%;
  max-height: 70vh;
  object-fit:contain;
  display:block;
  border-radius:16px;
}
.modal__cap{
  margin-top:10px;
  opacity:.86;
  font-size:.95rem;
  line-height:1.8;
}


/* System requirements */
.req{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.req__row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:14px;
}
.req__k{
  min-width:88px;
  font-weight:700;
  opacity:.9;
}
.req__v{
  flex:1;
  opacity:.92;
  line-height:1.7;
}


/* --- Professional polish --- */
:focus-visible{
  outline:2px solid rgba(243,240,232,.85);
  outline-offset:3px;
}
.ghost.lang{margin-inline-start:10px}

html[dir="ltr"] body{letter-spacing:.1px}
html[dir="ltr"] .brand__text{align-items:flex-start}
html[dir="ltr"] .nav__btn{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}

body{ font-family:var(--font-fa); }
html[lang="en"] body{ font-family:var(--font-en); }

/* ==============================
   v3 refresh (scroll sections)
   ============================== */

/* Make all panels visible (scroll-based site) */
.panel{
  display:block;
  min-height:auto;
  scroll-margin-top: 92px;
}

/* Background image layer injected by app.js */
.bgLayer{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:.22;
  filter:saturate(1.05) contrast(1.06);
  z-index:0;
  pointer-events:none;
  transform:translateY(0);
}
.panel > :not(.bgLayer){
  position:relative;
  z-index:1;
}

/* Features */
.fGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:14px;
}
@media (max-width: 860px){
  .fGrid{ grid-template-columns: 1fr; }
}
.fCard{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.46);
  border-radius:18px;
  padding:16px;
}
.fCard__icon{
  font-size:26px;
  line-height:1;
}
.fCard__title{
  margin:10px 0 0;
  font-weight:900;
  letter-spacing:.2px;
}
.fCard__desc{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.9;
  font-size:13.5px;
}

/* Roadmap meta wrap */
.rm__metaWrap{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* Footer separator */
.sep{
  width:1px;
  height:24px;
  background:var(--stroke);
  align-self:center;
  margin-inline:4px;
  opacity:.8;
}

/* Details-based FAQ */
details.qa{ padding:0; overflow:hidden; }
details.qa > summary.qa__q{
  list-style:none;
  cursor:pointer;
  padding:14px;
}
details.qa > summary.qa__q::-webkit-details-marker{ display:none; }
details.qa > summary.qa__q::after{
  content:"▾";
  float:left;
  opacity:.65;
}
html[dir="ltr"] details.qa > summary.qa__q::after{ float:right; }
details.qa[open] > summary.qa__q::after{ content:"▴"; }
details.qa .qa__a{ padding: 0 14px 14px; }

/* Better anchors for nav chips */
.nav__btn, .nav__pill{ display:inline-flex; align-items:center; gap:8px; }

/* Skip link position in LTR */
html[dir="ltr"] .skipLink{ left:8px; right:auto; }

.member__desc{ margin-top:10px; opacity:.92; line-height:1.85; font-size:13.5px; color:var(--muted); }



/* ==============================
   v4 enhancements (trailer, creators, contact, timeline, pro gallery)
   ============================== */

/* Make desktop nav resilient with many sections */
.topbar .nav--desktop{ min-width:0; overflow-x:auto; scrollbar-width:none; }
.topbar .nav--desktop::-webkit-scrollbar{ display:none; }

.btnRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.videoFrame{
  position:relative;
  width:100%;
  padding-top:56.25%;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
}
.videoFrame iframe,
.videoFrame video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.videoPlaceholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:18px;
  text-align:center;
  color:rgba(255,255,255,.86);
}
.videoPlaceholder__icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  font-size:22px;
}
.videoPlaceholder__text{
  opacity:.9;
  line-height:1.8;
  font-size:13.5px;
}

.galleryHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.galleryTools{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.filterRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.fChip{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:inherit;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  cursor:pointer;
  transition:transform .12s ease, background .2s ease;
}
.fChip:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.07);
}
.fChip.is-active{
  background:rgba(243,240,232,.14);
  border-color:rgba(243,240,232,.25);
}

.gallery--pro{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media (min-width: 960px){
  .gallery--pro{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.gItem--pro{ position:relative; }
.gItem--pro img{ height:200px; }
@media (min-width: 960px){
  .gItem--pro img{ height:220px; }
}
.gOverlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:12px;
  gap:8px;
  background:linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 62%);
  opacity:0;
  transition:opacity .22s ease;
}
.gItem--pro:hover .gOverlay{ opacity:1; }
.gTag{
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.32);
  font-size:12px;
}
.gCap{
  font-size:12.5px;
  line-height:1.7;
  opacity:.92;
}

.emptyState{
  padding:16px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:16px;
  color:var(--muted);
  line-height:1.9;
}

/* Modal enhancements */
.modal__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:inherit;
  font-size:26px;
  cursor:pointer;
}
.modal__prev{ left:10px; }
.modal__next{ right:10px; }

.modal__meta{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.modal__count{
  opacity:.75;
  font-size:13px;
  padding-inline:10px;
}

/* Downloads rich */
.dl--rich{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.dl--rich .dl__left{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.dl--rich .dl__title{ font-weight:900; }
.dl--rich .dl__sub{
  font-size:12.5px;
  color:var(--muted);
  line-height:1.7;
}

/* Copy box */
.copyBox{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:12px;
}
.copyBox__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.copyBox__title{ font-weight:900; }
.copyBox__text{
  margin-top:10px;
  white-space:pre-wrap;
  font-size:13.5px;
  line-height:1.9;
  color:var(--muted);
}

/* Tag row */
.tagRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.chip--tag{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
}

/* Timeline */
.timeline{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.tStep{
  flex:1 1 260px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  text-align:inherit;
  cursor:pointer;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  padding:12px;
}
.tStep:hover{ background:rgba(255,255,255,.06); }
.tStep.is-active{
  background:rgba(243,240,232,.10);
  border-color:rgba(243,240,232,.22);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.tDot{
  width:12px;
  height:12px;
  margin-top:6px;
  border-radius:999px;
  background:rgba(243,240,232,.85);
  box-shadow:0 0 0 4px rgba(243,240,232,.16);
}
.tMain{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.tTitle{ font-weight:900; }
.tSub{
  font-size:12.5px;
  color:var(--muted);
  line-height:1.7;
}
.tDetail{
  margin-top:12px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
}
.tDetail__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
  flex-wrap:wrap;
}
.tDetail__title{ font-weight:900; }
.tDetail__meta{ opacity:.8; font-size:13px; }
.tDetail__desc{
  margin-top:10px;
  color:var(--muted);
  line-height:1.9;
  font-size:13.5px;
}
.tDetail__list{ margin-top:10px; }

@media (max-width: 860px){
  .timeline{ flex-direction:column; }
  .tStep{ flex:1 1 auto; }
}

/* Contact cards */
.contactGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .contactGrid{ grid-template-columns:1fr; }
}
.cCard{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.46);
  border-radius:18px;
  padding:14px;
}
.cCard__k{ font-weight:900; }
.cCard__v{ margin-top:8px; opacity:.92; color:var(--muted); }
.cCard__v a{ color:inherit; text-decoration:none; }
.cCard__a{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }

/* Contact form layout */
.formRow{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .formRow{ grid-template-columns:1fr; }
}
.formField{ display:flex; flex-direction:column; gap:8px; }


/* -------------------------------------------------
   V5 additions: Store / Why / Map / Progress / Devlog / Music / Press / Team
------------------------------------------------- */

/* Accordion (systems) */
.acc{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(8,8,12,.40);
  border-radius:18px;
  padding:10px 12px;
  margin:10px 0;
}
.acc > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  user-select:none;
}
.acc > summary::-webkit-details-marker{display:none}
.acc__left{display:flex; align-items:center; gap:10px; min-width:0}
.acc__icon{
  width:36px; height:36px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  flex:0 0 auto;
}
.acc__title{font-weight:800; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.acc__meta{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.acc__chev{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  display:grid; place-items:center;
  color:var(--muted);
  flex:0 0 auto;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.acc[open] .acc__chev{ transform: rotate(180deg); background:rgba(255,255,255,.06); color:var(--ink) }
.acc__body{ padding:10px 6px 6px; color:var(--muted) }
.acc__body p{ margin: 0 0 10px; }
.acc__body ul{ margin: 0; padding-inline-start: 18px; }
.acc__body li{ margin: 6px 0; }

/* Mini cards (Why) */
.miniGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .miniGrid{ grid-template-columns:1fr; }
}
.miniCard{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.46);
  border-radius:18px;
  padding:14px;
}
.miniCard__k{ font-size:12px; color:var(--muted); }
.miniCard__v{ margin-top:8px; font-weight:800; }

/* Map */
.mapWrap{ display:flex; flex-direction:column; gap:10px; }
.mapStage{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.40);
  box-shadow: var(--shadow);
  aspect-ratio: 1000 / 600;
}
.mapImg{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.mapMarkers{
  position:absolute; inset:0;
}
.mapMarker{
  position:absolute;
  transform: translate(-50%, -50%);
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(10,10,14,.72);
  backdrop-filter: blur(10px);
  color:var(--ink);
  cursor:pointer;
  max-width: 60%;
}
.mapMarker__dot{
  width:10px; height:10px;
  border-radius:50%;
  background: rgba(243,240,232,.9);
  box-shadow: 0 0 0 6px rgba(243,240,232,.10);
}
.mapMarker__label{
  font-size:12px;
  color:rgba(243,240,232,.88);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mapMarker.is-active{
  border-color: rgba(243,240,232,.38);
  background: rgba(255,255,255,.10);
}
@media (max-width: 860px){
  .mapMarker{ padding:7px 9px; max-width: 72%; }
}

/* Progress bars */
.progressList{ display:flex; flex-direction:column; gap:12px; }
.pItem{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.40);
  border-radius:18px;
  padding:12px 14px;
}
.pTop{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.pLabel{ font-weight:800; }
.pMeta{ color:var(--muted); font-size:12px; }
.pBar{
  margin-top:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.pFill{
  height:100%;
  width:0%;
  background:rgba(243,240,232,.75);
  border-radius:999px;
}
.pNote{ margin-top:10px; color:var(--muted); font-size:13px; }

/* Store cards */
.storeGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .storeGrid{ grid-template-columns:1fr; }
}
.storeCard{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.46);
  border-radius:18px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.storeCard__top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.storeCard__name{ font-weight:900; }
.storeCard__tag{ font-size:12px; color:var(--muted); }
.storeCard__hint{ color:var(--muted); font-size:13px; line-height:1.6; }
.storeCard__actions{ display:flex; gap:10px; flex-wrap:wrap; }
.btn[aria-disabled="true"]{ opacity:.55; pointer-events:none; }

/* Steam-ready facts */
.factsGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .factsGrid{ grid-template-columns:1fr; }
}
.fact{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.40);
  border-radius:18px;
  padding:12px 14px;
}
.fact__k{ font-size:12px; color:var(--muted); }
.fact__v{ margin-top:8px; font-weight:800; }

/* Devlog preview cards */
.devCards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .devCards{ grid-template-columns:1fr; }
}
.devCard{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.46);
  border-radius:18px;
  padding:14px;
  text-decoration:none;
  color:inherit;
  display:block;
}
.devCard:hover{ background:rgba(255,255,255,.06); }
.devCard__date{ font-size:12px; color:var(--muted); }
.devCard__title{ margin-top:8px; font-weight:900; }
.devCard__body{ margin-top:10px; color:var(--muted); line-height:1.7; }

/* Music */
.musicList{ display:flex; flex-direction:column; gap:12px; }
.track{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.40);
  border-radius:18px;
  padding:12px 14px;
}
.track__top{ display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; }
.track__title{ font-weight:900; }
.track__meta{ font-size:12px; color:var(--muted); }
.track__note{ margin-top:10px; color:var(--muted); line-height:1.7; }
.track audio{ margin-top:10px; width:100%; }

/* Press quotes */
.quoteGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .quoteGrid{ grid-template-columns:1fr; }
}
.qCard{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.46);
  border-radius:18px;
  padding:14px;
}
.qText{ color:rgba(243,240,232,.90); line-height:1.9; }
.qBy{ margin-top:10px; color:var(--muted); font-size:13px; }

/* Team */
.teamGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
@media (max-width: 860px){
  .teamGrid{ grid-template-columns:1fr; }
}
.member{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(8,8,12,.46);
  border-radius:18px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.member__avatar{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  display:grid; place-items:center;
  flex:0 0 auto;
}
.member__name{ font-weight:900; }
.member__role{ font-size:12px; color:var(--muted); margin-top:2px; }
.member__bio{ margin-top:10px; color:var(--muted); line-height:1.7; }

/* Back-to-top */
.toTop{
  position:fixed;
  inset-inline-end:18px;
  bottom:84px;
  z-index:12;
  display:none;
}
.toTop .btn{ border-radius:999px; }
.toTop.is-show{ display:block; }

/* =========================
   3D Model Hub (Model Workshop)
   ========================= */

.mhTop{display:flex; gap:12px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap}
.mhTop__left{flex:1 1 260px; min-width:240px}
.mhTop__right{display:flex; gap:10px; flex-wrap:wrap; align-items:center}

.mhFilters{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.mhFilters .form__input{min-width:180px}

.mhGrid{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; margin-top:14px}

.mhCard{background:rgba(8,8,12,.46); border:1px solid rgba(255,255,255,.12); border-radius:18px; overflow:hidden; cursor:pointer; transition:transform .15s ease, border-color .15s ease}
.mhCard:hover{transform:translateY(-2px); border-color:rgba(255,255,255,.18)}
.mhCard__thumb{width:100%; aspect-ratio:16/9; background:rgba(255,255,255,.06); display:block; object-fit:cover}
.mhCard__body{padding:12px 12px 14px}
.mhCard__title{font-weight:900; font-size:15px; margin:0 0 6px; line-height:1.4}
.mhCard__desc{font-size:13px; color:var(--muted); margin:0; line-height:1.6}
.mhCard__meta{margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; align-items:center}

.mhTag{font-size:12px; padding:4px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04)}
.mhTag--soft{background:rgba(255,255,255,.02)}

.mhStats{margin-top:10px; display:flex; flex-wrap:wrap; gap:10px; font-size:12px; color:var(--muted)}
.mhStats b{color:var(--text)}

.mhLoad{margin-top:14px; display:flex; flex-direction:column; gap:8px; align-items:flex-start}

.mhCheck{display:flex; gap:10px; align-items:flex-start; margin-top:10px; user-select:none}
.mhCheck input{margin-top:4px}

.mhGuide{margin:0; padding-inline-start:18px; color:var(--muted); line-height:1.9}
.mhGuide b{color:var(--text)}

.mhModal{display:grid; grid-template-columns:minmax(220px, 420px) 1fr; gap:14px}
.mhModal__media{border:1px solid rgba(255,255,255,.12); border-radius:18px; background:rgba(0,0,0,.25); overflow:hidden; min-height:220px}
.mhModal__body{padding:4px 0}
.mhMeta{margin-top:10px; display:flex; flex-wrap:wrap; gap:8px}
.mhActions{margin-top:14px; display:flex; flex-wrap:wrap; gap:10px}

.mhMediaImg{width:100%; height:auto; display:block}
.mhMediaFallback{padding:14px; color:var(--muted); line-height:1.7}

model-viewer{width:100%; height:320px; background:rgba(0,0,0,.25)}

@media (max-width: 900px){
  .mhModal{grid-template-columns:1fr}
  model-viewer{height:280px}
}

/* ====== App Layout: Hamburger drawer ====== */
.topbar--app{ gap:12px; }
.menuBtn{ padding:10px 14px; font-size:16px; line-height:1; }

.drawerBackdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
  z-index:99;
}
.drawerBackdrop.is-open{ opacity:1; pointer-events:auto; }

.drawer{
  position:fixed; top:0; bottom:0; right:0;
  width:min(360px, 86vw);
  background:rgba(10,10,14,.96);
  backdrop-filter: blur(10px);
  border-left:1px solid var(--stroke);
  transform:translateX(110%);
  transition:transform .2s ease;
  z-index:100;
  display:flex; flex-direction:column;
  padding:14px;
}
.drawer.is-open{ transform:translateX(0); }

.drawer__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.drawer__title{ font-weight:800; }
.drawerSep{ height:1px; background:var(--stroke); margin:12px 0; }
.drawerNav{ display:flex; flex-direction:column; gap:10px; }
.drawerLink{ text-decoration:none; color:var(--ink); padding:10px 12px; border-radius:12px; border:1px solid transparent; }
.drawerLink:hover{ background:rgba(255,255,255,.06); }
.drawerLink.is-active{ border-color:var(--stroke); background:rgba(255,255,255,.05); }
.no-scroll{ overflow:hidden; }

/* Ensure content never sits under fixed header */
.shell--app{ padding-top:96px; }

/* ====== Store cards ====== */
.card--model{ display:grid; grid-template-columns:140px 1fr; gap:14px; align-items:start; }
.modelThumb{ width:140px; height:110px; object-fit:cover; border-radius:14px; border:1px solid var(--stroke); }
.modelMeta{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.modelTitle{ font-weight:800; }
.modelCreator{ color:var(--muted); font-size:13px; }
.modelPrice{ font-weight:800; }
.modelDesc{ color:var(--muted); font-size:13px; line-height:1.7; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.modelActions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

@media (max-width: 640px){
  .card--model{ grid-template-columns:1fr; }
  .modelThumb{ width:100%; height:160px; }
}

/* ====== Tables, badges, msgs, admin KPIs ====== */
.tableWrap{ overflow:auto; border:1px solid var(--stroke); border-radius:16px; }
.table{ width:100%; border-collapse:collapse; min-width:720px; }
.table th, .table td{ padding:12px 12px; border-bottom:1px solid var(--stroke); text-align:right; }
.table th{ color:var(--muted); font-weight:700; font-size:13px; background:rgba(255,255,255,.03); }
.actionsCell{ white-space:nowrap; }

.badge{ display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px; border:1px solid var(--stroke); font-size:12px; }
.badge--pending{ background:rgba(255,190,11,.10); }
.badge--paid, .badge--approved{ background:rgba(0,255,160,.10); }
.badge--rejected, .badge--failed{ background:rgba(255,80,80,.10); }

.msg{ padding:12px 14px; border-radius:16px; border:1px solid var(--stroke); margin:10px 0; }
.msg--ok{ background:rgba(0,255,160,.08); }
.msg--bad{ background:rgba(255,80,80,.08); }

.kpiGrid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.kpi{ border:1px solid var(--stroke); border-radius:18px; padding:14px; background:rgba(255,255,255,.03); }
.kpi__n{ font-weight:900; font-size:22px; }
.kpi__l{ color:var(--muted); font-size:13px; margin-top:4px; }

@media (max-width: 900px){
  .kpiGrid{ grid-template-columns:repeat(2, 1fr); }
}

/* ====== Dashboard head ====== */
.dashHead{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dashTitle{ font-size:20px; font-weight:900; }

.payHead{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; }
.payTitle{ font-size:18px; font-weight:900; }

/* ====== Compact page sections ====== */
.pageTitle{ font-size:26px; font-weight:900; margin:0 0 8px 0; }
.pageLead{ color:var(--muted); line-height:1.9; margin:0 0 14px 0; }
.formRow{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 700px){ .formRow{ grid-template-columns:1fr; } .table{ min-width:560px; } }


/* ======================================================================
   Space Glass Theme Overrides (Video-like)
   - Keeps existing class names so JS/backend stays intact
   - Optimized for mobile + reduced motion
   ====================================================================== */

:root{
  --bg0:#05070c;
  --bg1:#0b0f1a;
  --ink: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.12);
  --stroke: rgba(255,255,255,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius: 22px;
  --glowA: rgba(124, 92, 255, .55);
  --glowB: rgba(0, 220, 255, .35);
}

html, body{ background: linear-gradient(180deg, var(--bg0), var(--bg1)) !important; color: var(--ink) !important; }

body{
  min-height:100%;
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(900px 700px at 80% 25%, rgba(0,220,255,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1)) !important;
}

/* Injected background layers */
#stars{ position:fixed; inset:0; z-index:-5; width:100%; height:100%; }
.vignette{
  position:fixed; inset:-20px; z-index:-4; pointer-events:none;
  background:
    radial-gradient(1200px 800px at 30% 20%, rgba(124,92,255,.10), transparent 55%),
    radial-gradient(900px 700px at 75% 30%, rgba(0,220,255,.08), transparent 55%),
    radial-gradient(900px 700px at 50% 50%, rgba(255,255,255,.04), transparent 60%),
    radial-gradient(closest-side, rgba(0,0,0,.0), rgba(0,0,0,.55));
}
.noise{
  position:fixed; inset:0; z-index:-3; pointer-events:none;
  opacity:.07;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,.85), transparent 70%);
}

/* Intro overlay */
.intro{
  position:fixed; inset:0; z-index:60;
  display:grid; place-items:center;
  background:
    radial-gradient(900px 700px at 50% 45%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 700px at 30% 30%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(900px 700px at 70% 30%, rgba(0,220,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
body.ready .intro{ opacity:0; transform: scale(1.02); pointer-events:none; }
.intro__wrap{ display:grid; place-items:center; }
.introMark{
  width:min(160px, 38vw);
  aspect-ratio:1;
  border-radius: 36px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
  position:relative;
  overflow:hidden;
  animation: sgFloat 2.2s ease-in-out infinite;
}
@keyframes sgFloat{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
.introMark:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(240px 160px at 30% 25%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(240px 160px at 70% 35%, rgba(0,220,255,.28), transparent 55%);
  opacity:.9;
}
.introIcon{
  position:relative;
  width: 56%;
  height: 56%;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.30);
  box-shadow: 0 0 0 10px rgba(255,255,255,.05), 0 0 50px rgba(124,92,255,.35);
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing: .08em;
  color: rgba(255,255,255,.92);
}
.introHint{ margin-top: 18px; text-align:center; color: rgba(255,255,255,.55); font-size: 13px; }

/* Transition FX overlay */
.fx{
  position:fixed; inset:0; z-index:55; pointer-events:none;
  opacity:0;
  background:
    radial-gradient(650px 380px at 55% 45%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(900px 600px at 35% 35%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 600px at 70% 30%, rgba(0,220,255,.18), transparent 60%),
    radial-gradient(closest-side, rgba(0,0,0,0), rgba(0,0,0,.55));
  mix-blend-mode: screen;
  transform: scale(1.02);
}
.fx:after{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 4px);
  opacity:.18;
  mix-blend-mode: overlay;
  filter: blur(.2px);
}
.fx.play{ animation: sgFlash .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sgFlash{
  0%{ opacity:0; filter: blur(6px); transform: scale(1.03); }
  35%{ opacity:1; filter: blur(0px); transform: scale(1.0); }
  100%{ opacity:0; filter: blur(10px); transform: scale(1.04); }
}

/* Layout spacing for fixed header */
.shell--app{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  padding-top: 92px;
  padding-bottom: 72px;
}
@media (max-width: 720px){
  .shell--app{ width:calc(100% - 28px); padding-top: 84px; }
}

/* Header */
.sg-topbar.topbar--app{
  position:fixed;
  top:18px; left:18px; right:18px;
  z-index:30;
  display:flex;
  align-items:center;
  gap:12px;
  pointer-events:none;
  opacity:0;
  transform: translateY(-10px);
  transition: .8s cubic-bezier(.2,.8,.2,1);
}
body.ready .sg-topbar.topbar--app{ opacity:1; transform:none; }

.sg-topbar > *{ pointer-events:auto; }

.sg-brand.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  text-decoration:none;
  color: var(--ink);
  user-select:none;
}
.sg-dot{
  width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.2));
  box-shadow: 0 0 18px var(--glowB), 0 0 28px var(--glowA);
}
.sg-logo{ border-radius:14px; object-fit:cover; }
.brand__name{ font-weight:800; font-size: 14px; letter-spacing:-.01em; }
.brand__tagline{ font-size:12px; color: var(--muted); margin-top:2px; }

/* Nav pill (desktop) */
.sg-pillNav{
  margin-inline-start:auto;
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.sg-navLink{
  text-decoration:none;
  color: var(--ink);
  padding:10px 14px;
  border-radius:999px;
  font-size:14px;
  opacity:.9;
  transition: .2s ease;
  white-space:nowrap;
}
.sg-navLink:hover{ background: rgba(255,255,255,.08); opacity:1; }
@media (max-width: 920px){
  .sg-pillNav{ display:none; }
}

/* Right auth container */
.sg-topAuth{ display:flex; gap:10px; align-items:center; }

/* Icon button */
.sg-iconBtn, .menuBtn.ghost{
  border:1px solid rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.08) !important;
  border-radius: 14px !important;
  width:44px !important;
  height:44px !important;
  display:grid !important;
  place-items:center !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.sg-iconBtn:hover, .menuBtn.ghost:hover{ background: rgba(255,255,255,.10) !important; transform: translateY(-1px); }

/* Drawer */
.sg-drawerBackdrop.drawerBackdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition: .25s ease;
  z-index:40;
  backdrop-filter: blur(2px);
}
.sg-drawerBackdrop.is-open{ opacity:1; pointer-events:auto; }

.sg-drawer.drawer{
  position:fixed;
  top:18px; bottom:18px;
  left:18px;
  width:min(420px, calc(100% - 36px));
  transform: translateX(-10px);
  opacity:0;
  pointer-events:none;
  transition: .28s cubic-bezier(.2,.8,.2,1);
  z-index:41;

  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sg-drawer.is-open{
  transform:none;
  opacity:1;
  pointer-events:auto;
}
.sg-drawerHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 14px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.sg-drawerNav{
  padding: 10px 10px;
  display:grid;
  gap:10px;
}
.sg-drawerSep{ height:1px; background: rgba(255,255,255,.10); margin: 6px 10px; }
.drawerLink{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  text-decoration:none;
  color: var(--ink);
  transition: .2s ease;
}
.drawerLink:hover{ background: rgba(255,255,255,.07); transform: translateY(-1px); }
.drawerLink.is-active{
  background: linear-gradient(135deg, rgba(124,92,255,.24), rgba(0,220,255,.12));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
}

/* Core typography */
.pageTitle{ font-size: clamp(28px, 4.4vw, 48px); letter-spacing:-.02em; margin:0 0 8px 0; }
.pageLead{ color: var(--muted); line-height: 1.95; font-size: 14px; margin:0 0 14px 0; }

/* Cards & panels */
.card, .panel{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06)) !important;
  border:1px solid var(--stroke) !important;
  border-radius: var(--radius) !important;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.card:before, .panel:before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(520px 260px at 20% 10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(480px 260px at 80% 20%, rgba(0,220,255,.12), transparent 55%);
  opacity:.55;
  pointer-events:none;
}
.card > *, .panel > *{ position:relative; z-index:1; }

.hero{ display:grid; gap:14px; }
.heroCard{ padding: 22px; }
@media (min-width: 980px){
  .hero{ grid-template-columns: 1.12fr .88fr; align-items:stretch; }
  .heroCard{ grid-column: 1 / -1; }
}

/* Grid utility */
.grid{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){ .grid{ grid-template-columns: 1fr; } }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--ink);
  text-decoration:none;
  cursor:pointer;
  transition:.2s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.btn--primary{
  background: linear-gradient(135deg, rgba(124,92,255,.34), rgba(0,220,255,.18));
  border-color: rgba(255,255,255,.18);
}
.btn--secondary{
  background: rgba(255,255,255,.08);
}
.btnRow{ display:flex; gap:10px; flex-wrap:wrap; }

/* Chips */
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color: var(--ink);
  text-decoration:none;
  transition:.2s ease;
}
.chip:hover{ background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* Muted utility */
.muted{ color: var(--muted) !important; }

/* Inputs */
.input, input, select, textarea{
  width:100%;
  border-radius: 14px;
  padding: 12px 12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--ink);
  outline:none;
  transition:.2s ease;
}
.input:focus, input:focus, select:focus, textarea:focus{
  border-color: rgba(0,220,255,.35);
  box-shadow: 0 0 0 4px rgba(0,220,255,.10);
}

/* Dividers */
.divider{
  height:1px;
  background: rgba(255,255,255,.12);
  margin: 12px 0;
}

/* Tables */
.tableWrap{ overflow:auto; border-radius: 16px; border:1px solid rgba(255,255,255,.12); }
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 640px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  font-size: 13px;
  color: rgba(255,255,255,.82);
}
.table th{ text-align:right; color: rgba(255,255,255,.62); font-weight:700; }

/* Badges & messages */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.80);
  font-size:12px;
}
.badge--paid{ background: rgba(0,220,255,.10); border-color: rgba(0,220,255,.22); }
.badge--failed{ background: rgba(255,80,120,.10); border-color: rgba(255,80,120,.22); }
.badge--pending{ background: rgba(255,255,255,.06); }

.msg{
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.msg--ok{ border-color: rgba(0,220,255,.22); background: rgba(0,220,255,.08); }
.msg--bad{ border-color: rgba(255,80,120,.22); background: rgba(255,80,120,.08); }

/* KPI */
.kpiGrid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
@media (max-width: 980px){ .kpiGrid{ grid-template-columns: 1fr; } }
.kpi{
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
.kpi__n{ font-size: 22px; font-weight:900; letter-spacing:-.02em; }
.kpi__l{ color: var(--muted); font-size: 12px; margin-top:4px; }

/* Footer */
.sg-footer.footer--app{
  width:min(1180px, calc(100% - 40px));
  margin: 18px auto 26px;
  padding: 14px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid var(--stroke);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.footer__inner{ display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.footer__sub{ color: var(--muted); font-size: 12px; }
.footer__right{ display:flex; gap:8px; flex-wrap:wrap; }

/* Accessibility + focus */
:focus-visible{ outline:2px solid rgba(0,220,255,.45) !important; outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .introMark{ animation:none !important; }
  .fx.play{ animation:none !important; opacity:0 !important; }
  .sg-topbar{ transition:none !important; }
}



/* ====== ELF Patch: header/menu + mobile minimal ====== */
.sg-pillNav{ display:none !important; } /* prevent desktop pill menu overlap */

.sg-topRight{
  margin-inline-start:auto;
  display:flex;
  gap:10px;
  align-items:center;
}

.sg-langBtn{
  padding:10px 14px;
  min-width:56px;
  text-align:center;
}

@media (max-width: 900px){
  .sg-langBtn{ display:none !important; } /* keep mobile header minimal (available in drawer) */
  .sg-brand .brand__tagline{ display:none; }
  .sg-brand .brand__name{ font-size:13px; }
  .sg-topbar.topbar--app{ top:12px; left:12px; right:12px; }
  .sg-iconBtn, .menuBtn.ghost{ width:42px !important; height:42px !important; }
}

/* Smoother interactions */
:root{ --elf-ease: cubic-bezier(.2,.8,.2,1); }
a, button, .ghost, .chip, .btn, .card{
  transition: transform .18s var(--elf-ease), background-color .18s var(--elf-ease),
              border-color .18s var(--elf-ease), box-shadow .18s var(--elf-ease), opacity .18s var(--elf-ease);
}
a:active, button:active{ transform: translateY(1px); }
.card:hover{ transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}


.sg-brand{ margin-inline-start:auto; margin-inline-end:auto; }

/* ---- Dashboard tabs + profiles ---- */
.tabBar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}
.tabBtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:inherit;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.tabBtn:hover{ transform:translateY(-1px); background:rgba(255,255,255,.06); }
.tabBtn.is-active{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.18); }
.tabPanel{ display:none; margin-top:12px; }
.tabPanel.is-active{ display:block; animation:fadeInUp .22s ease both; }

.avatarBox{ display:flex; flex-direction:column; align-items:center; }
.avatarImg{
  width:120px;
  height:120px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 18px 55px rgba(0,0,0,.35);
}

.link{ color:inherit; text-decoration:underline; text-underline-offset:3px; opacity:.92; }
.link:hover{ opacity:1; }

.creatorGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:12px;
}
.creatorCard{
  display:flex;
  gap:12px;
  align-items:flex-start;
  cursor:pointer;
}
.creatorAvatar{
  width:56px;
  height:56px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.14);
}
.creatorName{ font-weight:700; }
.creatorUser{ opacity:.8; font-size:.92rem; }
.creatorBio{ opacity:.88; margin-top:6px; line-height:1.8; }
.creatorStats{ opacity:.78; margin-top:8px; font-size:.92rem; }

@media (max-width: 920px){
  .creatorGrid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 720px){
  .creatorGrid{ grid-template-columns:1fr; }
  .avatarImg{ width:96px; height:96px; }
  .tabBar{ padding:8px; }
  .tabBtn{ padding:7px 10px; }
}

/* Loading States & Skeleton Screens */
.loading-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
  gap:16px;
}

.loading-spinner{
  width:40px;
  height:40px;
  border:3px solid var(--stroke);
  border-top-color:var(--ink);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

.loading-message{
  color:var(--muted);
  font-size:0.95rem;
}

.skeleton{
  animation:skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse{
  0%, 100%{ opacity:1; }
  50%{ opacity:0.5; }
}

.skeleton--card{
  padding:18px;
  background:var(--glass);
  border-radius:var(--r);
  border:1px solid var(--stroke);
}

.skeleton__header{
  width:60%;
  height:24px;
  background:var(--stroke);
  border-radius:6px;
  margin-bottom:12px;
}

.skeleton__line{
  width:100%;
  height:16px;
  background:var(--stroke);
  border-radius:4px;
  margin-bottom:8px;
}

.skeleton__line--short{
  width:75%;
}

.skeleton--list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.skeleton__item{
  display:flex;
  gap:12px;
  padding:12px;
  background:var(--glass);
  border-radius:var(--r);
  border:1px solid var(--stroke);
}

.skeleton__avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--stroke);
  flex-shrink:0;
}

.skeleton__content{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.skeleton--table{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.skeleton__row{
  height:48px;
  background:var(--glass);
  border-radius:8px;
  border:1px solid var(--stroke);
}

.progress-bar{
  width:100%;
  height:4px;
  background:var(--stroke);
  border-radius:2px;
  overflow:hidden;
  position:relative;
}

.progress-bar::after{
  content:'';
  position:absolute;
  top:0;
  left:0;
  height:100%;
  background:var(--ink);
  transition:width 0.3s ease;
  border-radius:2px;
}

/* Accessibility improvements */
[aria-hidden="true"]{
  display:none;
}

[aria-live]{
  position:absolute;
  left:-10000px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Skip link */
.skip-link{
  position:absolute;
  top:-100px;
  left:0;
  background:var(--ink);
  color:var(--bg);
  padding:12px 24px;
  text-decoration:none;
  z-index:1000;
  border-radius:0 0 8px 0;
}

.skip-link:focus{
  top:0;
}
