:root {
  --ink: #0e1a28;
  --muted: #5a6b7d;
  --paper: #f5f7fa;
  --white: #ffffff;
  --navy-950: #030b16;
  --navy-900: #06182e;
  --navy-800: #0b2748;
  --navy-700: #143e66;
  --gold: #c9a227;
  --gold-soft: #e8c65a;
  --gold-deep: #9a7a14;
  --line: rgba(14, 26, 40, 0.08);
  --shadow: 0 24px 60px rgba(3, 11, 22, 0.14);
  --radius: 28px;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --top: 92px;
  --fs-body: 1rem;
  --fs-h1: 1.7rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #06182e; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: var(--fs-body);
  line-height: 1.75;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-deep); }
.shell { width: min(1180px, calc(100% - 1.25rem)); margin-inline: auto; }
.narrow { width: min(560px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -3rem; background: var(--gold); color: var(--navy-950);
  padding: .6rem 1rem; border-radius: 12px; z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* Topbar / Nav */
.topbar {
  position: sticky; top: 0; z-index: 4600;
  background: #06182e;
  border-bottom: 0;
  overflow: visible;
  padding: .85rem 0 .7rem;
}
@media (min-width: 981px) {
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  body:has(.topbar) {
    padding-top: var(--topbar-h, calc(.85rem + 58px + .7rem));
  }
}
.topbar__inner {
  min-height: 58px;
  display: flex; align-items: center; gap: .7rem;
}
.logo { display: flex; align-items: center; gap: .8rem; color: #fff; min-width: 0; flex-shrink: 0; }
.logo img {
  width: 48px; height: 48px; border-radius: 16px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.15); box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.logo strong { display: block; color: var(--gold-soft); font-size: 1.08rem; letter-spacing: -.02em; }
.logo small { color: rgba(255,255,255,.68); font-size: .78rem; }
.topbar__actions { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; overflow: visible; position: relative; z-index: 1; }
.nav {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  z-index: auto;
  border-bottom: 0;
  background: transparent;
}
.nav__drawer-head { display: none; }
.nav__bar {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap;
  gap: .05rem .2rem; padding: 0;
  min-width: 0; width: 100%;
  position: relative;
}
.nav__bar-main {
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: .05rem .2rem; min-width: 0; flex: 0 1 auto;
  overflow: visible;
  max-width: 100%;
}
.nav__more {
  position: relative;
  flex: 0 0 auto;
  margin-inline-start: .15rem;
}
.nav__more[hidden] { display: none !important; }
.nav__more-btn {
  display: inline-flex; align-items: center; gap: .28rem;
  color: rgba(255,255,255,.92); font: inherit; font-size: .9rem; font-weight: 800;
  padding: .42rem .62rem .5rem; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.08); cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.nav__more-btn:hover,
.nav__more.is-open .nav__more-btn {
  color: var(--gold-soft);
  background: rgba(232, 198, 90, .12);
  box-shadow: inset 0 0 0 1px rgba(232, 198, 90, .28);
}
.nav__more-btn svg { transition: transform .22s ease; }
.nav__more.is-open .nav__more-btn svg { transform: rotate(180deg); }
.nav__more-drop {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  min-width: 11.5rem;
  padding: .4rem;
  border-radius: 14px;
  background: #0b2138;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px rgba(0,0,0,.42);
  z-index: 4700;
  display: flex; flex-direction: column; gap: .1rem;
  animation: navMoreIn .22s cubic-bezier(.22,1,.36,1);
}
.nav__more-drop[hidden] { display: none !important; }
.nav__more-drop .nav__link {
  display: block;
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 10px;
  font-size: .88rem;
}
.nav__more-drop .nav__link:hover,
.nav__more-drop .nav__link.is-active {
  background: rgba(232, 198, 90, .12);
}
.nav__more-drop .nav__link::after { display: none; }
@keyframes navMoreIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.nav__acc { display: none; }
.nav__link {
  position: relative;
  color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 700;
  padding: .42rem .55rem .5rem; border-radius: 0; background: transparent;
  border: 0;
  transition: color .18s ease;
  white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active {
  color: var(--gold-soft); background: transparent;
}
.nav__bar .nav__link::after {
  content: "";
  position: absolute;
  left: .45rem;
  right: .45rem;
  bottom: .08rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(270deg, #f5e19a, var(--gold-soft) 40%, var(--gold));
  box-shadow: 0 0 10px rgba(232, 198, 90, .45);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.nav__bar .nav__link:hover::after,
.nav__bar .nav__link.is-active::after {
  transform: scaleX(1);
}
.nav .btn.nav__cta--drawer { display: none; }
.burger {
  display: none; width: 46px; height: 42px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
  position: relative; z-index: 4600;
}
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(3,11,22,.62); z-index: 4400;
}
.nav-scrim[hidden] { display: none !important; }
body.nav-open { overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 16px; padding: .9rem 1.3rem; font: inherit; font-weight: 800;
  cursor: pointer; transition: .2s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy-950) !important; box-shadow: 0 14px 30px rgba(201,162,39,.35);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-download {
  background: linear-gradient(135deg, #1b7f4a, #0e4d2c); color: #fff !important;
  box-shadow: 0 12px 24px rgba(14,77,44,.28); padding: .72rem 1.05rem; font-size: .95rem;
}
.btn-download small {
  display: inline-block; margin-inline-start: .15rem; opacity: .86; font-weight: 700; font-size: .78rem;
}
.topbar .btn-download,
.topbar .btn-buy-header {
  padding: .62rem .9rem; font-size: .88rem; white-space: nowrap;
  box-shadow: none;
}
.btn-ico { font-size: 1rem; }
.icon-bell {
  position: relative; width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.15rem;
}
.icon-bell em {
  position: absolute; top: 4px; inset-inline-start: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: #e53935; color: #fff; font-size: .68rem; font-style: normal;
  display: grid; place-items: center; font-weight: 800;
}
.btn-navy { background: linear-gradient(135deg, var(--navy-700), var(--navy-950)); color: #fff !important; }
.btn-sm {
  padding: .42rem .8rem;
  font-size: .84rem;
  font-weight: 700;
  border-radius: 10px;
  min-height: 2.15rem;
  line-height: 1.2;
}
.btn-ghost {
  background: #f3f6fb; color: var(--navy-900) !important;
  border: 1px solid #c9d4e4;
}
.hero .btn-download {
  box-shadow: none;
}
.hero .btn-ghost, .page-hero .btn-ghost, .cta-strip .btn-ghost {
  background: transparent; color: #fff !important;
  border: 1px solid rgba(232,198,90,.55);
}
.admin-main .btn-ghost {
  background: #f3f6fb; color: var(--navy-900) !important;
  border: 1px solid #c9d4e4;
}
main#content { background: #06182e; }
main#content > .section,
main#content > .section--tight,
main#content > .account-wrap {
  background: var(--paper);
}

/* Hero */
.hero {
  position: relative; min-height: 0; z-index: 1;
  display: grid; align-items: center;
  color: #fff; overflow: visible;
  background: linear-gradient(180deg, #06182e 0%, #06182e 12%, #0a274c 48%, #05162f 100%);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 36% 58% at 100% -8%, rgba(245, 225, 154, .16), transparent 64%),
    radial-gradient(ellipse 28% 42% at -6% 108%, rgba(245, 225, 154, .07), transparent 70%);
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset-inline: 12%;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 225, 154, .42), transparent);
}
.hero--intro {
  min-height: 0;
  align-items: start;
}
.hero--intro .hero__content {
  padding: 1.35rem 0 1.15rem;
  max-width: 46rem;
}
.hero--intro h1 {
  margin: .55rem 0 .45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.hero--intro .hero__lead {
  margin: 0 0 1rem;
  max-width: 36rem;
}
.hero--intro .btn-row {
  margin: 0;
  gap: .55rem;
}
.hero--intro .hero__glow {
  inset: auto -15% -55% 40%;
  height: 55%;
  top: 30%;
  opacity: .85;
}
.hero.is-book-open { z-index: 1; }
.hero h1 {
  margin: 1rem 0 .8rem; max-width: 11.5em;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.35; letter-spacing: -.02em;
  color: #fff;
}
.hero__glow {
  position: absolute; inset: auto -10% -40% 30%; height: 45%; z-index: -1; top: 45%;
  background: radial-gradient(circle, rgba(201,162,39,.18), transparent 70%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(220px, .72fr);
  align-items: center; gap: 1rem 1.4rem;
  padding: 2.2rem 0 2rem;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.hero__content { padding: 0; animation: rise .8s ease both; position: relative; z-index: 6; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel, .article-card, .plan, .story { animation: rise .7s ease both; }
.hero__badge {
  display: inline-flex; gap: .4rem; align-items: center;
  padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: rgba(201,162,39,.16); border: 1px solid rgba(201,162,39,.4); color: var(--gold-soft);
}
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero__lead {
  max-width: 38rem; margin: 0 0 1.6rem; color: rgba(255,255,255,.88); font-size: .98rem;
}
.hero__metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem; margin-top: 1.5rem;
}
.metric {
  min-width: 0; padding: .75rem .7rem; border-radius: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.metric strong { display: block; color: var(--gold-soft); font-size: clamp(.82rem, 1.4vw, 1.15rem); overflow-wrap: anywhere; }
.metric span { color: rgba(255,255,255,.75); font-size: .82rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section--tight { padding: 2.5rem 0; }

/* —— Homepage intro video (separated from dark hero) —— */
.intro-video {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding: 1.7rem 0 2.4rem;
  background:
    linear-gradient(180deg, #e8eef5 0%, #f3f6f9 38%, #f8fafc 100%);
  color: var(--navy-900);
}
.intro-video__panel {
  position: relative;
  border-radius: 28px;
  padding: 1.35rem 1.4rem 1.5rem;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(212,175,55,.12), transparent 55%),
    radial-gradient(460px 200px at 0% 100%, rgba(18,59,104,.07), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid transparent;
  box-shadow:
    0 18px 40px rgba(6, 24, 46, .07),
    0 1px 0 rgba(255,255,255,.9) inset;
  overflow: hidden;
}
/* بوردر نازک انیمیشن‌دار دور کادر ویدیو معرفی */
.intro-video__border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  padding: 1px;
  background:
    linear-gradient(120deg,
      rgba(18,59,104,.35),
      rgba(212,175,55,.55),
      rgba(18,59,104,.28),
      rgba(212,175,55,.4),
      rgba(18,59,104,.35));
  background-size: 280% 280%;
  animation: introBorderFlow 5.5s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.intro-video__border::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 28%;
  height: 140%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.75), transparent);
  transform: rotate(18deg);
  animation: introBorderShine 4.8s ease-in-out infinite;
}
@keyframes introBorderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes introBorderShine {
  0%, 55% { transform: translateX(-40%) rotate(18deg); opacity: 0; }
  62% { opacity: .9; }
  78%, 100% { transform: translateX(420%) rotate(18deg); opacity: 0; }
}
.intro-video__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
  gap: 1.5rem 1.8rem;
  align-items: center;
}
.intro-video__badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  color: #8a6a12;
  background: #fff8e1;
  border: 1px solid #ffe082;
  box-shadow: 0 0 0 4px rgba(212,175,55,.08);
  animation: introPulse 2.8s ease-in-out infinite;
}
.intro-video__badge i {
  display: grid; place-items: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: linear-gradient(135deg, #f3d27a, #d4af37);
  color: #06182e; font-style: normal; font-size: .65rem;
}
@keyframes introPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212,175,55,.08); }
  50% { box-shadow: 0 0 0 8px rgba(212,175,55,.14); }
}
.intro-video__copy h2 {
  margin: .85rem 0 .55rem;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -.02em;
  color: #06182e;
}
.intro-video__lead {
  margin: 0 0 1.15rem;
  max-width: 32rem;
  color: #51657a;
  font-size: .98rem;
  line-height: 1.85;
}
.intro-video__cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1.15rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  color: #06182e !important;
  background: linear-gradient(135deg, #f3d27a 0%, #d4af37 100%);
  border: 1px solid #c9a227;
  box-shadow: 0 10px 22px rgba(212,175,55,.28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.intro-video__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(212,175,55,.34);
  color: #041221 !important;
}
.intro-video__cta-ico {
  display: grid; place-items: center;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: #06182e;
  color: #f3d27a;
  font-size: .62rem;
  line-height: 1;
}
.intro-video__stage { position: relative; }
.intro-video__glow {
  position: absolute; inset: 8% 4% auto;
  height: 70%; border-radius: 40%;
  background: radial-gradient(circle, rgba(212,175,55,.22), transparent 70%);
  filter: blur(18px);
  animation: introGlow 4.5s ease-in-out infinite alternate;
}
@keyframes introGlow {
  from { opacity: .45; transform: scale(.96); }
  to { opacity: .9; transform: scale(1.05); }
}
.intro-video__frame {
  position: relative;
  border-radius: 22px;
  padding: .5rem;
  background:
    linear-gradient(145deg, rgba(212,175,55,.65), rgba(18,59,104,.35) 42%, rgba(10,39,66,.55));
  box-shadow:
    0 22px 44px rgba(6,24,46,.14),
    0 0 0 1px rgba(255,255,255,.55) inset;
  animation: introRise .9s ease both;
}
@keyframes introRise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.intro-video__shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
}
.intro-video__shine::before {
  content: "";
  position: absolute; top: -40%; left: -30%;
  width: 45%; height: 180%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.22), transparent);
  transform: rotate(18deg);
  animation: introShine 5.5s ease-in-out infinite;
}
@keyframes introShine {
  0%, 35% { transform: translateX(-20%) rotate(18deg); opacity: 0; }
  45% { opacity: 1; }
  70%, 100% { transform: translateX(280%) rotate(18deg); opacity: 0; }
}
.intro-video__ratio,
.video-card__ratio,
.videos-featured__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #061018;
}
.intro-video__ratio > .aparat-frame,
.video-card__ratio > .aparat-frame,
.videos-featured__ratio > .aparat-frame,
.intro-video__ratio iframe,
.video-card__ratio iframe,
.videos-featured__ratio iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}
.intro-video__caption {
  display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap;
  margin-top: .85rem; padding: 0;
}
.intro-video__action {
  flex: 1 1 10rem;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.65rem; padding: .65rem 1rem; border-radius: 14px;
  font-size: .88rem; font-weight: 800; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.intro-video__action--dl {
  color: #06182e;
  background: linear-gradient(135deg, #e8c65a, #c9a227);
  box-shadow: 0 10px 22px rgba(201,162,39,.28);
}
.intro-video__action--buy {
  color: #fff;
  background: linear-gradient(135deg, #0a2742, #1565c0);
  box-shadow: 0 10px 22px rgba(10,39,66,.22);
}
.intro-video__action:hover {
  transform: translateY(-1px);
}
.intro-video__action--dl:hover { box-shadow: 0 14px 26px rgba(201,162,39,.36); }
.intro-video__action--buy:hover { box-shadow: 0 14px 26px rgba(21,101,192,.3); }

/* —— Videos page —— */
.page-hero--videos {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 240px at 88% 110%, rgba(212,175,55,.26), transparent 70%),
    linear-gradient(165deg, #041221 0%, #0a2742 48%, #123b68 100%);
}
.page-hero--videos__glow {
  position: absolute; inset: auto -10% -40% 40%;
  height: 55%; pointer-events: none;
  background: radial-gradient(circle, rgba(212,175,55,.2), transparent 70%);
}
.videos-hero { position: relative; z-index: 1; padding: 2.2rem 0 2rem; max-width: 46rem; }
.videos-hero__badge {
  display: inline-flex;
  padding: .35rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 800;
  color: #f3d27a;
  background: rgba(243,210,122,.12);
  border: 1px solid rgba(243,210,122,.35);
}
.videos-hero h1 {
  margin: .7rem 0 .55rem;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  color: #fff;
}
.videos-hero p {
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 36rem;
  line-height: 1.8;
}
.section--videos {
  padding: 2rem 0 3.4rem;
  background:
    linear-gradient(180deg, #eef3f8 0%, #f7f9fb 28%, #f8fafc 100%);
}
.videos-page { display: grid; gap: 1.35rem; }
.videos-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 26px;
  background:
    radial-gradient(480px 200px at 0% 0%, rgba(212,175,55,.12), transparent 55%),
    linear-gradient(160deg, #fff, #f6f9fc);
  border: 1px solid transparent;
  box-shadow: 0 18px 40px rgba(6,24,46,.07);
  overflow: hidden;
}
.videos-featured__border,
.video-card__border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  padding: 1px;
  background:
    linear-gradient(120deg,
      rgba(18,59,104,.35),
      rgba(212,175,55,.55),
      rgba(18,59,104,.28),
      rgba(212,175,55,.4),
      rgba(18,59,104,.35));
  background-size: 280% 280%;
  animation: introBorderFlow 5.5s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.videos-featured__border::after,
.video-card__border::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 28%;
  height: 140%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.75), transparent);
  transform: rotate(18deg);
  animation: introBorderShine 4.8s ease-in-out infinite;
}
.videos-featured__media {
  position: relative;
  z-index: 1;
  padding: .45rem;
  border-radius: 20px;
  background: linear-gradient(145deg, #0a2742, #123b68 55%, #1a4f86);
  box-shadow: 0 16px 32px rgba(6,24,46,.18);
}
.videos-featured__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .4rem .55rem .4rem 0;
}
.videos-featured__copy h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: #06182e;
  line-height: 1.4;
}
.videos-featured__copy p {
  margin: 0;
  color: #51657a;
  line-height: 1.8;
}
.videos-grid-head { margin-top: .35rem; }
.videos-grid-head h3 {
  margin: 0 0 .25rem;
  font-size: 1.1rem;
  color: #0a2742;
}
.videos-grid-head p {
  margin: 0;
  color: #6b7f95;
  font-size: .92rem;
}
.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
.video-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid transparent;
  box-shadow: 0 14px 32px rgba(6,24,46,.055);
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(6,24,46,.1);
}
.video-card__frame {
  position: relative;
  z-index: 1;
  padding: .5rem;
  background: linear-gradient(160deg, #0a2742, #123b68);
}
.video-card__body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem 1.2rem;
}
.video-card__body h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--navy-900);
}
.video-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}
.videos-empty { padding: .5rem 0 1rem; }
.videos-empty__card {
  text-align: center;
  padding: 2.4rem 1.4rem;
  border-radius: 24px;
  background: #fff;
  border: 1px dashed #b7c9de;
}
.videos-empty__ico { font-size: 2rem; display: block; margin-bottom: .6rem; }
.videos-empty__card h2 { margin: 0 0 .4rem; color: #0a2742; }
.videos-empty__card p { margin: 0; color: #6b7f95; }

@media (max-width: 980px) {
  .intro-video__inner,
  .videos-featured {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .intro-video { padding: 1.2rem 0 1.8rem; }
  .intro-video__panel { padding: 1.1rem; border-radius: 22px; }
  .intro-video__copy { text-align: center; }
  .intro-video__lead { margin-inline: auto; }
  .intro-video__badge,
  .intro-video__cta { margin-inline: auto; }
  .videos-featured__copy { padding: .2rem 0 0; text-align: center; }
  .video-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .intro-video__frame { border-radius: 16px; padding: .35rem; }
  .intro-video__ratio { border-radius: 12px; }
  .intro-video__caption { gap: .55rem; }
  .intro-video__action { flex: 1 1 100%; font-size: .84rem; min-height: 2.5rem; }
  .videos-hero { padding: 1.6rem 0 1.5rem; }
}

.section__head { text-align: center; max-width: 40rem; margin: 0 auto 2.4rem; }
.section__head .eyebrow {
  display: inline-block; margin-bottom: .6rem; padding: .25rem .7rem; border-radius: 999px;
  background: rgba(20,62,102,.08); color: var(--navy-700); font-size: .8rem; font-weight: 800;
}
.section__head h2 { margin: 0; font-size: clamp(1.25rem, 2.1vw, 1.65rem); color: var(--navy-900); letter-spacing: -.02em; }
.section__head p { margin: .7rem 0 0; color: var(--muted); }
.section__head--inline { max-width: min(100%, 74rem); }
.section__head--inline p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(.78rem, 1.55vw, 1.05rem);
}

.pitch-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center;
  padding: 1.35rem 1.5rem; border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255,248,220,.95), rgba(255,255,255,.98)),
    var(--white);
  border: 1px solid rgba(201,162,39,.4);
  box-shadow: var(--shadow);
  min-width: 0;
}
.pitch-band > div { min-width: 0; }
.pitch-band__text { margin: .2rem 0 0; font-weight: 800; overflow-wrap: anywhere; }
.pitch-band__emoji {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: #fff; font-size: 1.8rem; box-shadow: 0 10px 24px rgba(201,162,39,.25);
}
.pitch-band__kicker { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 700; }
.pitch-band__title { margin: .15rem 0; font-size: 1.22rem; font-weight: 800; color: var(--navy-900); }
.pitch-band__text { margin: .2rem 0 0; font-weight: 800; }
.pitch-band__ask { margin: .25rem 0 0; color: #a66b00; font-weight: 900; }

.feature-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 1rem;
}
.feature-mosaic__main {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.feature-mosaic__main, .feature-tile {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 0; height: 100%;
  box-shadow: var(--shadow); background: var(--navy-900);
  isolation: isolate;
  transition: transform .4s ease, box-shadow .4s ease;
}
.feature-mosaic__main::after, .feature-tile::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.feature-mosaic__main img, .feature-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease, filter .4s ease;
}
.feature-mosaic__main .cap, .feature-tile .cap {
  position: absolute; left: .75rem; right: .75rem; bottom: .75rem; z-index: 2;
  padding: .85rem 1rem; border-radius: 16px; color: #fff;
  background: rgba(6, 24, 46, .58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(3,11,22,.28);
}
.feature-mosaic__main .cap h3, .feature-tile .cap h3 { margin: 0 0 .25rem; color: var(--gold-soft); font-size: 1.05rem; }
.feature-mosaic__main .cap p, .feature-tile .cap p { margin: 0; color: rgba(255,255,255,.9); font-size: .88rem; line-height: 1.6; }
.feature-mosaic__main:hover, .feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(3,11,22,.24);
  z-index: 3;
}
.feature-mosaic__main:hover img, .feature-tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1.05);
}
.feature-mosaic__main:hover::after, .feature-tile:hover::after {
  transform: translateX(120%);
}
.feature-tile { min-height: 0; }
.promo-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem;
}
.promo-gallery .feature-tile { min-height: 200px; }
.promo-gallery .feature-tile img { min-height: 200px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.panel {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.panel__icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  margin-bottom: .9rem; font-size: 1.4rem;
  background: linear-gradient(145deg, #eef4fb, #fff6d8);
}
.panel h3 { margin: 0 0 .45rem; color: var(--navy-900); }
.panel p { margin: 0; color: var(--muted); }
.panel--center { text-align: center; }
.panel--center .panel__icon {
  width: 84px; height: 84px; margin: 0 auto .95rem; font-size: 2.35rem; border-radius: 24px;
}
.panel__icon--img { padding: .55rem; }
.panel__icon--img img { width: 52px; height: 52px; margin: 0 auto; border-radius: 16px; }
.panel--center .btn { margin-inline: auto; }

.story {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.4rem; align-items: center;
  margin: 1.4rem 0;
}
.story--flip { direction: ltr; }
.story--flip > * { direction: rtl; }
.story__media {
  border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy-900);
  border: 1px solid rgba(255,255,255,.08);
}
.story__media img { width: 100%; height: auto; object-fit: contain; display: block; background: #06182e; }
.story__copy .tag {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: rgba(20,62,102,.08); color: var(--navy-700); margin-bottom: .7rem;
}
.story__copy h3 { margin: 0 0 .6rem; font-size: 1.2rem; color: var(--navy-900); }
.story__copy p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.cta-strip {
  border-radius: 32px; padding: 2.2rem; color: #fff;
  background:
    radial-gradient(500px 200px at 90% 120%, rgba(201,162,39,.35), transparent 70%),
    linear-gradient(120deg, var(--navy-950), var(--navy-700));
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-strip h3 { margin: 0; color: var(--gold-soft); font-size: 1.18rem; }
.cta-strip p { margin: .4rem 0 0; color: rgba(255,255,255,.85); }

/* Compare */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.85rem; margin: 2rem 0 2.4rem; }
.plan {
  border-radius: 28px; padding: 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-5px); box-shadow: 0 28px 50px rgba(3,11,22,.16); }
.plan--free { background: linear-gradient(180deg, #f8fafc, #e8eef5); }
.plan--pro {
  background: linear-gradient(160deg, #fff8df, #f0d56a 120%);
  border-color: rgba(201,162,39,.45);
}
.plan__badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 800;
  background: rgba(14,26,40,.08); margin-bottom: .7rem;
}
.plan h3 { margin: 0 0 .35rem; }
.plan ul { margin: 1rem 0 0; padding-inline-start: 1.1rem; color: var(--muted); }
.plan__price { font-size: 1.6rem; font-weight: 900; margin: .8rem 0 .2rem; }
.compare-table-wrap {
  overflow: auto; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  margin-top: .4rem;
}
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 700px; }
.compare-table th, .compare-table td { padding: 1.15rem 1.05rem; text-align: center; border-bottom: 1px solid #edf1f5; }
.compare-table th:first-child, .compare-table td:first-child { text-align: right; }
.compare-table thead th { background: var(--navy-900); color: #fff; }
.compare-table thead .col-free { background: #3a4d63; }
.compare-table thead .col-pro { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.compare-table .col-free { background: #f3f6fa; }
.compare-table .col-pro { background: #fff8e8; }
.compare-table tbody tr { transition: .15s ease; }
.compare-table tbody tr:hover .col-free { background: #e5eef8; }
.compare-table tbody tr:hover .col-pro { background: #ffe9a8; }
.feat-cell { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--navy-900); background: #fff; }
.feat-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #eef4fb, #fff6d8);
}

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.article-card {
  background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s;
}
.article-card:hover { transform: translateY(-4px); }
.article-card__cover { aspect-ratio: 16/10; background: var(--navy-900); }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 1.15rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.article-card__cat { color: var(--gold-deep); font-size: .8rem; font-weight: 800; margin-bottom: .35rem; }
.article-card h3 { margin: 0 0 .45rem; font-size: 1.1rem; color: var(--navy-900); }
.article-card p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
.article-hero {
  border-radius: 32px; overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow);
  background: var(--navy-900); color: #fff;
}
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.article-hero__meta { padding: 1.4rem 1.5rem 1.6rem; }
.article-body {
  background: #fff; border-radius: 28px; padding: 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.article-body h2, .article-body h3 { color: var(--navy-900); }
.article-body img { border-radius: 16px; margin: 1rem 0; }

/* Forms / auth */
.stack-form label { display: block; margin: .75rem 0 .3rem; font-weight: 700; color: var(--navy-800); }
.stack-form input, .stack-form textarea, .stack-form select {
  width: 100%; border: 1px solid #d5dee8; border-radius: 14px; padding: .85rem 1rem; font: inherit; background: #fff;
}
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus {
  outline: 2px solid rgba(201,162,39,.45); border-color: var(--gold);
}
.site-toasts {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  inset-inline-end: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 5200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .7rem;
  width: min(23.5rem, calc(100vw - 1.6rem));
  pointer-events: none;
}
.site-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  overflow: hidden;
  pointer-events: auto;
  padding: .95rem 1.05rem 1.05rem;
  border-radius: 18px;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.7;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,250,252,.94));
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow:
    0 18px 48px rgba(3, 11, 22, .18),
    0 2px 8px rgba(3, 11, 22, .06),
    inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  transform: translate3d(0, -14px, 0) scale(.96);
  animation: toastIn .42s cubic-bezier(.22, 1, .36, 1) forwards;
}
.site-toast::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: #2563eb;
}
.site-toast.is-out {
  animation: toastOut .42s cubic-bezier(.4, 0, 1, 1) forwards;
}
.site-toast__ico {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-top: .1rem;
  font-size: .95rem;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}
.site-toast__text {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline-end: .15rem;
}
.site-toast__bar {
  position: absolute;
  inset-inline: 0 0;
  bottom: 0;
  height: 3px;
  transform-origin: right center;
  background: linear-gradient(90deg, rgba(37, 99, 235, .25), #2563eb);
  animation: toastBar 2.58s linear forwards;
}
html[dir="ltr"] .site-toast__bar,
[dir="ltr"] .site-toast__bar {
  transform-origin: left center;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate3d(0, -16px, 0) scale(.95); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(0, -12px, 0) scale(.96); }
}
@keyframes toastBar {
  from { transform: scaleX(1); opacity: 1; }
  to { transform: scaleX(0); opacity: .65; }
}
.site-toast--ok, .toast--ok {
  background: linear-gradient(135deg, rgba(236,253,245,.98), rgba(255,255,255,.95));
  color: #14532d;
  border-color: rgba(22, 163, 74, .18);
}
.site-toast--ok::before, .toast--ok::before { background: linear-gradient(180deg, #22c55e, #15803d); }
.site-toast--ok .site-toast__ico {
  background: linear-gradient(145deg, #22c55e, #15803d);
  box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
}
.site-toast--ok .site-toast__bar {
  background: linear-gradient(90deg, rgba(34, 197, 94, .25), #16a34a);
}
.site-toast--err, .toast--err {
  background: linear-gradient(135deg, rgba(254,242,242,.98), rgba(255,255,255,.95));
  color: #7f1d1d;
  border-color: rgba(220, 38, 38, .18);
}
.site-toast--err::before, .toast--err::before { background: linear-gradient(180deg, #f87171, #b91c1c); }
.site-toast--err .site-toast__ico {
  background: linear-gradient(145deg, #ef4444, #b91c1c);
  box-shadow: 0 8px 18px rgba(220, 38, 38, .28);
}
.site-toast--err .site-toast__bar {
  background: linear-gradient(90deg, rgba(239, 68, 68, .25), #dc2626);
}
.site-toast--info, .toast--info {
  background: linear-gradient(135deg, rgba(255,251,235,.98), rgba(255,255,255,.95));
  color: #1e293b;
  border-color: rgba(201, 162, 39, .22);
}
.site-toast--info::before, .toast--info::before { background: linear-gradient(180deg, #e8c547, #b8891a); }
.site-toast--info .site-toast__ico {
  background: linear-gradient(145deg, #d4af37, #a67c00);
  box-shadow: 0 8px 18px rgba(201, 162, 39, .3);
}
.site-toast--info .site-toast__bar {
  background: linear-gradient(90deg, rgba(212, 175, 55, .25), #c9a227);
}
.panel > .toast { display: none; }
@media (prefers-reduced-motion: reduce) {
  .site-toast,
  .site-toast.is-out,
  .site-toast__bar {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.install-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.install-panel { text-align: center; }
.brand-mark { margin: 0 auto 1rem; border-radius: 18px; }

/* Footer */
.footer { margin-top: 4rem; background: var(--navy-950); color: rgba(255,255,255,.82); padding: 3rem 0 1.2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.6rem; align-items: start; }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand img { border-radius: 16px; }
.footer__brand > div { min-width: 0; }
.footer__brand p { margin: .2rem 0 0; }
.footer__legal {
  display: grid;
  gap: .2rem;
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer__legal a {
  margin: 0;
  font-size: .88rem;
  color: rgba(255,255,255,.72);
}
.footer__legal a:hover { color: var(--gold-soft); }
.footer h3, .footer h4 { color: var(--gold-soft); margin-top: 0; }
.footer a { display: block; color: rgba(255,255,255,.78); margin: .3rem 0; }
.footer__pitch {
  display: block; margin-top: .8rem; padding: .5rem .75rem; border-radius: 14px;
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.28); color: var(--gold-soft); font-weight: 800;
  white-space: normal; overflow-wrap: anywhere;
  font-size: clamp(.8rem, 2.6vw, .95rem); line-height: 1.7;
}
.footer__bottom {
  margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; font-size: .85rem;
}
.footer__bottom span:last-child { max-width: 46rem; line-height: 1.7; }

/* Admin */
.admin-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-950); color: #fff; padding: 1.05rem .9rem 1.6rem; overflow-y: auto; }
.admin-brand { display:flex; gap:.7rem; align-items:center; margin-bottom:1rem; }
.admin-brand img { border-radius:12px; }
.admin-brand strong { color:var(--gold-soft); font-size:.95rem; }
.admin-nav-label {
  margin: 1rem .5rem .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  color: rgba(255,255,255,.42); text-transform: none;
}
.admin-side a {
  display: block; color: rgba(255,255,255,.86); padding: .55rem .8rem; border-radius: 12px; margin: .12rem 0;
  font-size: .88rem; font-weight: 700;
}
.admin-side a:hover, .admin-side a.is-active { background: rgba(201,162,39,.16); color: var(--gold-soft); }
.admin-main { padding: 1.4rem; }
.admin-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; }
.list-export {
  display: flex; flex-direction: column; gap: .75rem;
  margin: 0 0 1rem; padding: .85rem 1rem; background: #fff; border: 1px solid #e6edf4;
  border-radius: 16px; box-shadow: var(--shadow);
}
.list-export__make { margin: 0; }
.list-export__hint { margin: 0 0 .45rem; color: var(--muted); font-size: .86rem; }
.list-export__files ul { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.list-export__files li {
  display: flex; flex-wrap: wrap; gap: .45rem .8rem; align-items: center; justify-content: space-between;
  background: #f7f9fc; border-radius: 12px; padding: .55rem .75rem;
}
.list-export__files li span:first-child { font-weight: 700; word-break: break-all; }
.list-export__files small { color: var(--muted); }
.list-export__ops { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.list-export__ops form { margin: 0; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: .8rem; border-bottom: 1px solid #edf1f5; text-align: right; font-size: .92rem; }
.table th { background: #f7f9fc; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: #fff; border-radius: 18px; padding: 1rem; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.5rem; color: var(--navy-800); }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-radius: 14px; border-color: #d5dee8; background: #fff; }
.ql-container.ql-snow { min-height: 280px; }

@media (max-width: 980px) {
  :root { --top: 84px; }
  .topbar__inner { direction: ltr; }
  .logo { direction: rtl; order: 3; }
  .topbar__actions { order: 2; margin-left: auto; margin-right: .55rem; }
  .burger {
    display: inline-flex;
    order: 1;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(86vw, 340px);
    height: 100dvh;
    max-height: 100%;
    margin: 0;
    padding: 0;
    background: #06182e;
    border: 0;
    border-radius: 24px 0 0 24px;
    transform: translate3d(110%, 0, 0);
    transition: transform .28s ease;
    z-index: 4550;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -18px 0 50px rgba(0,0,0,.4);
    visibility: hidden;
    pointer-events: none;
    direction: rtl;
  }
  body.nav-open .nav {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav__drawer-head {
    display: flex; flex-direction: column; gap: .15rem;
    padding: 1.15rem 1.15rem .4rem; margin-top: 4.4rem;
    color: var(--gold-soft);
  }
  .nav__drawer-head span { color: rgba(255,255,255,.55); font-size: .8rem; font-weight: 700; }
  .nav__bar { display: none; }
  .nav__acc { display: block; padding: .25rem 1rem 1.6rem; }
  .nav__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0;
    gap: .15rem;
  }
  .nav-acc { margin: 0 0 .55rem; border-radius: 16px; background: rgba(255,255,255,.04); overflow: hidden; }
  .nav-acc__btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .95rem 1rem; border: 0; background: transparent; color: var(--gold-soft);
    font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; text-align: right;
  }
  .nav-acc__chev {
    width: 8px; height: 8px; border-right: 2px solid var(--gold-soft); border-bottom: 2px solid var(--gold-soft);
    transform: rotate(-45deg); transition: transform .35s cubic-bezier(.22,1,.36,1); flex-shrink: 0;
  }
  .nav-acc.is-open .nav-acc__chev { transform: rotate(45deg); }
  .nav-acc__panel {
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.22,1,.36,1);
  }
  .nav-acc.is-open .nav-acc__panel { grid-template-rows: 1fr; }
  .nav-acc__clip { min-height: 0; overflow: hidden; }
  .nav-acc__clip .nav__inner { padding: 0 .75rem 0.85rem; display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .nav__acc .nav__link {
    display: block;
    width: 100%;
    white-space: normal;
    padding: .8rem .35rem .7rem; border-radius: 0; border-bottom: 1px solid rgba(232,198,90,.35);
    background: transparent; font-size: 1rem;
  }
  .nav__link.is-active, .nav__link:hover { background: transparent; border-bottom-color: var(--gold-soft); color: var(--gold-soft); }
  .nav .btn.nav__cta--drawer { display: flex; margin-top: .55rem; width: 100%; border-radius: 12px; align-self: stretch; }
  .feature-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px;
    grid-auto-rows: 200px;
  }
  .feature-mosaic__main { grid-column: 1 / -1; grid-row: auto; }
  .grid-3, .plans, .story, .story--flip, .footer__grid, .article-grid, .stats, .admin-shell, .pitch-band, .promo-gallery, .hero__grid {
    grid-template-columns: 1fr;
  }
  .story--flip { direction: rtl; }
  .pitch-band {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: .85rem;
    padding: 1.1rem 1rem;
  }
  .pitch-band .btn { width: min(100%, 280px); }
  .hero { min-height: auto; }
  .hero__grid { padding: 1.7rem 0 2.2rem; }
  .hero--intro .hero__content {
    padding: 1rem 0 .9rem;
  }
  .hero--intro h1 {
    margin: .45rem 0 .35rem;
  }
  .hero--intro .hero__lead {
    margin: 0 0 .85rem;
    font-size: .94rem;
  }
  .hero--intro .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero--intro .btn-row .btn {
    width: 100%;
    justify-content: center;
  }
  .hero__stage { max-height: none; }
  .hero-book { width: min(78vw, 320px); }
  .btn-download__label { display: none; }
}
/* Page heroes & content helpers */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(600px 240px at 80% 120%, rgba(201,162,39,.22), transparent 70%),
    linear-gradient(180deg, #06182e 0%, #0a274c 55%, var(--navy-700) 100%);
  border-bottom: 0;
}
.page-hero__inner { padding: 3.4rem 0 2.8rem; position: relative; z-index: 1; }
.page-hero h1 {
  margin: .8rem 0 .6rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3;
  color: #fff; letter-spacing: -.02em;
}
.page-hero h1 em { font-style: normal; color: var(--gold-soft); }
.page-hero p { margin: 0; max-width: 40rem; color: rgba(255,255,255,.86); font-size: .98rem; }
.page-hero--buy {
  background:
    linear-gradient(180deg, rgba(3,11,22,.55), rgba(3,11,22,.88)),
    url("/assets/img/promo/promo-reports.jpg") center/cover;
}
.muted { color: var(--muted); }
.prose h2 { color: var(--navy-900); margin-top: 1.6rem; }
.prose ul { padding-inline-start: 1.2rem; color: var(--muted); }
.auth-panel { padding: 2rem 1.85rem 1.7rem; }
.auth-section { padding-top: 2.2rem; padding-bottom: 3rem; }
.auth-panel h1 { margin: 0 0 .4rem; font-size: 1.35rem; color: var(--navy-900); letter-spacing: -.02em; }
.auth-panel > .muted,
.auth-panel__lead { margin: 0 0 1.15rem; font-size: .92rem; line-height: 1.7; }
.auth-panel form + form { margin-top: .55rem; }
.auth-panel .btn.auth-submit {
  margin-top: 1.05rem;
  margin-bottom: 0;
  width: auto;
  min-width: 9.5rem;
  padding: .62rem 1.15rem;
  font-size: .88rem;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(201, 162, 39, .2);
}
.auth-panel .auth-submit:hover { transform: none; }
.auth-panel .btn-ghost.auth-submit,
.auth-panel .btn-ghost.auth-secondary {
  box-shadow: none;
  padding: .55rem 1rem;
  font-size: .86rem;
}
.auth-panel__links {
  margin: 1.45rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid #e8eef4;
  font-size: .9rem;
  line-height: 1.8;
}
.auth-modes {
  display: flex; gap: 0; margin: 0 0 1.25rem;
  border-bottom: 1px solid #e4ebf3;
}
.auth-modes a {
  flex: 1; text-align: center; padding: .55rem .4rem .65rem;
  border-radius: 0; background: transparent;
  font-weight: 800; color: var(--muted); font-size: .88rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-modes a.is-active { background: transparent; color: var(--navy-900); border-bottom-color: var(--gold); }
.buy-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.1rem; align-items: start; }
.buy-card__head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.buy-card__head img { border-radius: 16px; }
.buy-price { font-size: 1.4rem; font-weight: 800; color: var(--navy-900); margin: 1rem 0 .2rem; }
.buy-ask { font-weight: 900; color: #a66b00; margin: 0 0 1rem; }
.buy-aside h3 { margin-top: 0; color: var(--navy-900); }
.gateway-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin: 0 0 1rem; }
.gateway-pick__item {
  display: flex; align-items: center; gap: .55rem; margin: 0 !important; font-weight: 700;
  padding: .7rem .8rem; border: 1px solid #d7deea; border-radius: 12px; background: #f7f9fc; cursor: pointer;
}
.gateway-pick__item:has(input:checked) {
  border-color: #c9a227; background: #fff8e8; box-shadow: inset 0 0 0 1px #c9a227;
}
.gateway-pick__item input { margin: 0; }
.check-inline { display: flex !important; align-items: center; gap: .5rem; font-weight: 700; margin: .6rem 0 0 !important; }
.check-inline input { width: auto; margin: 0; }
.prose ul, .ql-editor ul, .article-body ul, .inbox-body ul {
  padding-inline-start: 1.75rem;
  list-style-position: outside;
}
.check-list { margin: 1rem 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-block: .5rem;
  padding-inline-start: 2.1rem;
  padding-inline-end: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: .5rem;
  width: 1.55rem;
  text-align: center;
  color: #15803d;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.3;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.info-list { margin: 1.2rem 0 0; }
.info-list > div { display: grid; grid-template-columns: 5rem 1fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 800; color: var(--navy-800); }
.info-list dd { margin: 0; color: var(--muted); }
.guide-step {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.2rem; align-items: center;
  margin-bottom: 1.4rem; padding: 1rem; border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.guide-step--flip { direction: ltr; }
.guide-step--flip > * { direction: rtl; }
.guide-step__media {
  border-radius: 22px; overflow: hidden; background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
  min-height: 200px; display: grid; place-items: center;
}
.guide-step__media img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.guide-step__num {
  font-size: 1.85rem; font-weight: 800; color: var(--gold-soft);
}
.guide-step__copy .tag {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: rgba(20,62,102,.08); color: var(--navy-700); margin-bottom: .55rem;
}
.guide-step__copy h3 { margin: 0 0 .5rem; color: var(--navy-900); font-size: 1.12rem; }
.section-label { color: var(--navy-900); margin: 0 0 1rem; }
.table-wrap { overflow: auto; border-radius: 16px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 640px; }
.license-code {
  font-family: ui-monospace, Consolas, monospace; font-weight: 800; letter-spacing: .04em;
  color: var(--navy-800); background: #fff8e0; padding: .25rem .55rem; border-radius: 8px;
}
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card { max-width: 520px; margin-inline: auto; }
.flash { padding: .9rem 1rem; border-radius: 14px; font-weight: 700; margin-bottom: 1rem; }
.site-toasts .flash { margin-bottom: 0; }
.flash-success, .flash-ok { background: #e8f5e9; color: #1b5e20; }
.flash-error, .flash-err { background: #ffebee; color: #b71c1c; }
.flash-warn { background: #fff8e8; color: #5c3d00; border: 1px solid rgba(154, 91, 0, .28); }
.flash-info { background: #e3f2fd; color: #0d47a1; }

.table-scroll { overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.table-scroll .table { box-shadow: none; margin: 0; min-width: 720px; }
.admin-burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--navy-800); cursor: pointer; padding: 10px 11px; flex-direction: column; justify-content: space-between;
}
.admin-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.admin-scrim { display: none; }

@media (max-width: 980px) {
  .buy-layout, .contact-grid, .guide-step, .guide-step--flip { grid-template-columns: 1fr; }
  .guide-step--flip { direction: rtl; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-burger { display: inline-flex; }
  .admin-top { align-items: center; }
  .admin-scrim {
    display: block; position: fixed; inset: 0; background: rgba(3,11,22,.55); z-index: 80;
  }
  .admin-scrim[hidden] { display: none; }
  .admin-side {
    position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(86vw, 300px);
    z-index: 90; transform: translateX(110%); transition: transform .25s ease;
    overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.25);
  }
  body.admin-nav-open .admin-side { transform: translateX(0); }
  .admin-main { padding: 1rem .85rem 2rem; overflow-x: hidden; }
  .gateway-pick { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stack-form, .panel { max-width: 100% !important; }
  input, select, textarea, .btn { max-width: 100%; }
}

@media (max-width: 640px) {
  .logo small { display: none; }
  .hero h1 { max-width: 11.5em; }
  .page-hero__inner { padding: 2.6rem 0 2.2rem; }
  .stats { grid-template-columns: 1fr; }
  .admin-main h1 { font-size: 1.15rem; }
  .table-wrap { width: 100%; max-width: 100%; }
  .table-wrap .table { min-width: 0; }
  .hero__metrics { gap: .45rem; }
  .metric { min-width: 0; padding: .55rem .4rem; }
  .topbar__inner { gap: .4rem; min-height: 64px; }
  .logo img { width: 40px; height: 40px; border-radius: 12px; }
  .logo strong { font-size: 1.05rem; }
  .icon-bell { width: 40px; height: 40px; }
}

.img-lightbox {
  position: fixed; inset: 0; z-index: 400; background: rgba(3,11,22,.88);
  display: grid; place-items: center; padding: 1.5rem;
}
.img-lightbox[hidden] { display: none; }
.img-lightbox img { max-width: min(96vw, 1100px); max-height: 88vh; border-radius: 18px; box-shadow: var(--shadow); }
.img-lightbox__close {
  position: absolute; top: 1rem; inset-inline-start: 1rem; width: 44px; height: 44px; border: 0;
  border-radius: 14px; background: #fff; font-size: 1.6rem; cursor: pointer;
}
.js-zoom, .feature-mosaic img, .feature-tile img, .guide-step__media img, .article-cover img, .story img {
  cursor: zoom-in;
}
.inbox-layout, .ticket-layout {
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; min-width: 0;
}
@media (min-width: 981px) {
  .ticket-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .inbox-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
  .record-list { display: none !important; }
  .inbox-back { display: none !important; }
}
.inbox-item span { display: block; margin-top: .25rem; font-size: .8rem; color: var(--muted); font-weight: 700; }
.inbox-item.is-unread { background: #fff8e0; font-weight: 800; }
.inbox-item.is-open { outline: 2px solid var(--gold); }
.inbox-empty { text-align: center; padding: 2rem 1rem; }
.inbox-bell { font-size: 2.4rem; }
.inbox-back { margin: 0 0 .4rem; }
.inbox-body, .ticket-bubble p, .welcome-card, .prose { overflow-wrap: anywhere; word-break: break-word; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.record-list { display: none; flex-direction: column; gap: .75rem; }
.record-card {
  display: block; padding: 1rem; border-radius: 16px;
  background: #f7f9fc; border: 1px solid var(--line); color: var(--ink) !important;
}
.record-card__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .65rem; margin-bottom: .35rem;
}
.record-card__top strong { color: var(--navy-900); overflow-wrap: anywhere; }
.record-card p { margin: .2rem 0 0; font-size: .88rem; }
.record-card .btn-row { margin-top: .75rem; }
.welcome-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 1.8rem 1.5rem;
  background: linear-gradient(160deg, #06182e 0%, #143e66 55%, #0b2748 100%); color: #fff;
  box-shadow: 0 24px 50px rgba(6,24,46,.28);
}
.welcome-card__glow {
  position: absolute; inset: -40% auto auto -20%; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(232,198,90,.35), transparent 70%); pointer-events: none;
}
.welcome-card h2 { color: var(--gold-soft); margin: .4rem 0; }
.welcome-card__hello { font-size: 1.25rem; font-weight: 800; }
.welcome-card__badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px; background: rgba(201,162,39,.2);
  color: var(--gold-soft); font-weight: 800; font-size: .82rem;
}
.welcome-card__close { font-weight: 800; color: var(--gold-soft); }
.ticket-status { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-weight: 800; font-size: .82rem; background: #eef3f9; }
.ticket-status--open, .ticket-status--waiting_admin { background: #fff3e0; color: #e65100; }
.ticket-status--answered, .ticket-status--waiting_user { background: #e8f5e9; color: #2e7d32; }
.ticket-status--closed { background: #eceff1; color: #546e7a; }
.ticket-thread { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.ticket-bubble { border-radius: 18px; padding: 1rem; background: #fff; box-shadow: var(--shadow); }
.ticket-bubble--admin { background: #fff8e8; }
.ticket-bubble header { font-size: .82rem; color: var(--muted); margin-bottom: .4rem; }
@media (max-width: 980px) {
  .inbox-layout, .ticket-layout { grid-template-columns: 1fr; }
  .record-list { display: flex; }
  .table-wrap--desktop { display: none !important; }
  .form-split { grid-template-columns: 1fr; }
  .inbox-layout.has-open .inbox-list { display: none; }
  .inbox-layout:not(.has-open) .inbox-read { display: none; }
  .panel { padding: 1rem; overflow: hidden; }
  .account-wrap { padding: 1rem 0 6.2rem; }
  .account-head h1 { font-size: 1.22rem; }
  .account-menu > summary { padding: .9rem 1rem; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; min-width: 0; }
  .btn-block { width: 100%; }
  .stack-form input, .stack-form select, .stack-form textarea, .stack-form .btn { max-width: 100%; }
  .ticket-bubble { padding: .85rem; }
  .license-code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
}

.account-wrap { padding: 1.2rem 0 3rem; }
.account-layout { min-width: 0; }
.account-menu__desk-title { display: none; }
@media (min-width: 981px) {
  .account-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  /* کل کادر سرمه‌ای با اسکرول صفحه می‌آید پایین؛ بدون محدود کردن ارتفاع به ویوپورت */
  .account-menu {
    position: sticky;
    top: calc(var(--top, 92px) + .75rem);
    margin-bottom: 0;
    z-index: 4;
    align-self: start;
  }
  .account-menu > summary { display: none !important; }
  .account-menu__desk-title {
    display: block; margin: 0; padding: 1.05rem 1.15rem .15rem;
    color: var(--gold-soft); font-weight: 800; font-size: 1.02rem;
  }
  .account-menu .account-menu__list {
    display: flex !important;
    flex-direction: column;
    padding: .85rem .85rem 1.1rem;
  }
}
.account-menu {
  background: linear-gradient(180deg, #06182e, #0b2748);
  color: #fff; border-radius: 20px; margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.account-menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; font-weight: 800;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary small {
  display: block; margin-top: .2rem; color: rgba(255,255,255,.65); font-size: .82rem; font-weight: 700;
}
.account-menu > summary strong { color: var(--gold-soft); }
.account-menu__chev {
  width: 10px; height: 10px; border-inline-end: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-top: -.25rem;
}
.account-menu[open] > summary .account-menu__chev { transform: rotate(225deg); margin-top: .3rem; }
.account-menu__list {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 0 .85rem 1rem;
}
.account-menu__item {
  display: block; padding: .8rem .9rem; border-radius: 14px;
  color: rgba(255,255,255,.92) !important; background: rgba(255,255,255,.05);
}
.account-menu__item:hover, .account-menu__item.is-active {
  background: rgba(201,162,39,.2); color: var(--gold-soft) !important;
}
.account-menu__item--buy {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy-950) !important; margin-top: .25rem;
}
.account-menu__item--buy .account-nav__sub { color: rgba(6,24,46,.7); }
.account-nav__title { display: block; font-weight: 800; }
.account-nav__sub { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.62); font-size: .78rem; font-weight: 700; }
.account-nav__sub em {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e53935;
  color: #fff; font-style: normal; font-size: .72rem; display: inline-grid; place-items: center;
}
.account-main { min-width: 0; width: 100%; }
.account-main .panel { margin-bottom: 1rem; }
.account-head { margin: 0 0 1rem; }
.account-head h1 { margin: 0 0 .35rem; color: var(--navy-900); font-size: 1.28rem; }
.account-head p { margin: 0; color: var(--muted); }

/* Account dashboard */
.acc-dash { display: grid; gap: 1.15rem; }
.acc-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem 1.35rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232,198,90,.22), transparent 46%),
    linear-gradient(135deg, #041326 0%, #0b2748 52%, #143e66 100%);
  box-shadow: 0 18px 40px rgba(3, 11, 22, .18);
}
.acc-hero__glow {
  position: absolute; inset: auto -18% -55% auto; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(232,198,90,.28), transparent 68%);
  pointer-events: none;
}
.acc-hero__avatar {
  position: relative; z-index: 1;
  width: 92px; height: 92px; border-radius: 28px; overflow: hidden;
  border: 2px solid rgba(232,198,90,.55);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.acc-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-hero__initials {
  font-size: 1.55rem; font-weight: 900; color: var(--gold-soft); letter-spacing: .04em;
}
.acc-hero__body { position: relative; z-index: 1; min-width: 0; }
.acc-hero__welcome {
  margin: 0 0 .2rem; color: var(--gold-soft); font-weight: 800; font-size: .92rem;
  letter-spacing: .02em;
}
.acc-hero__name {
  margin: 0 0 .55rem; color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.35;
}
.acc-hero__meta {
  display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin: 0 0 1rem;
  color: rgba(255,255,255,.78); font-size: .9rem;
}
.acc-hero__meta strong { color: rgba(255,255,255,.92); font-weight: 800; margin-inline-end: .25rem; }
.acc-hero__meta em { font-style: normal; opacity: .55; margin-inline: .15rem; }
.acc-hero__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.acc-hero__ghost {
  color: #fff !important; border-color: rgba(255,255,255,.28) !important; background: rgba(255,255,255,.06) !important;
}
.acc-hero__ghost:hover { background: rgba(255,255,255,.12) !important; color: var(--gold-soft) !important; }

.acc-dash__head { margin: .15rem 0 0; }
.acc-dash__head h2 { margin: 0 0 .2rem; color: var(--navy-900); font-size: 1.18rem; }
.acc-dash__head p { margin: 0; color: var(--muted); font-size: .92rem; }

.acc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .85rem;
}
.acc-tile {
  position: relative;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: 1rem .95rem .95rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(14,26,40,.07);
  box-shadow: 0 10px 28px rgba(3,11,22,.06);
  color: var(--navy-900) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  animation: accTileIn .45s ease both;
  animation-delay: calc(var(--tile-i, 1) * 35ms);
}
.acc-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,.45);
  box-shadow: 0 18px 36px rgba(3,11,22,.12);
  color: var(--navy-900) !important;
}
.acc-tile__icon {
  width: 46px; height: 46px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #0b2748, #143e66);
  color: var(--gold-soft);
  box-shadow: 0 8px 18px rgba(6,24,46,.22);
}
.acc-tile__icon svg { width: 22px; height: 22px; fill: currentColor; }
.acc-tile__title {
  display: block; font-weight: 850; font-size: .98rem; line-height: 1.35; margin-top: auto;
}
.acc-tile__sub {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  margin-top: .28rem; color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.4;
}
.acc-tile__sub em {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e53935;
  color: #fff; font-style: normal; font-size: .72rem; display: inline-grid; place-items: center;
}
.acc-tile--buy {
  background: linear-gradient(145deg, #f7e7a8, #e8c65a 55%, #c9a227);
  border-color: transparent;
  color: var(--navy-950) !important;
}
.acc-tile--buy .acc-tile__icon {
  background: rgba(6,24,46,.92); color: var(--gold-soft);
}
.acc-tile--buy .acc-tile__sub { color: rgba(6,24,46,.72); }
.acc-tile--buy:hover { color: var(--navy-950) !important; }

.acc-dash__licenses { margin: .2rem 0 0; }
.acc-dash__lic-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .7rem;
}
.acc-dash__lic-head .section-label { margin: 0; }

@keyframes accTileIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .acc-hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 1.2rem 1rem 1.25rem;
  }
  .acc-hero__meta { justify-content: center; }
  .acc-hero__actions { justify-content: center; }
  .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .acc-tile { border-radius: 18px; padding: .85rem .75rem .8rem; }
  .acc-tile__icon { width: 42px; height: 42px; border-radius: 14px; }
  .acc-tile__title { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-tile { animation: none; transition: none; }
  .acc-tile:hover { transform: none; }
}

/* Interactive clasika book in homepage hero */
.hero__stage {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; overflow: visible; padding: .4rem 1.2rem .4rem 0;
  position: relative; z-index: 2;
}
.hero-book {
  --hb-gold1: #ffd85d;
  --hb-gold2: #efbc2d;
  --hb-gold3: #d89805;
  --hb-gold4: #b77600;
  --hb-paper1: #fffdf5;
  --hb-paper2: #eadcb0;
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin-inline: auto 0;
  perspective: 2200px;
  transform-style: preserve-3d;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.hero-book.is-open { z-index: 3; }
.hero-book:focus-visible { box-shadow: 0 0 0 3px rgba(232,198,90,.55); border-radius: 28px; }
.hero-book__glow {
  position: absolute; inset: 8%;
  background: radial-gradient(circle at 50% 45%, rgba(255,217,112,.14), transparent 54%);
  filter: blur(24px); border-radius: 42px; pointer-events: none;
}
.hero-book__shadow {
  position: absolute; left: 16%; right: 15%; bottom: 7%; height: 8%;
  border-radius: 50%; background: rgba(0,0,0,.36); filter: blur(24px);
  transition: transform .9s ease, opacity .9s ease; transform: scaleX(.9);
}
.hero-book__scene {
  position: absolute; inset: 8%;
  transform-style: preserve-3d;
  /* margin-top keeps preserve-3d intact (translate/transform on scene breaks cover flip) */
  animation: heroBookFloat 4.8s ease-in-out infinite;
}
.hero-book.is-open .hero-book__scene {
  animation-play-state: paused;
}
@keyframes heroBookFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}
.hero-book__back {
  position: absolute; left: 9%; right: 14%; top: 6%; bottom: 11%;
  border-radius: 42px 42px 32px 36px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), transparent 8% 84%, rgba(118,72,0,.12)),
    linear-gradient(135deg, #f5c32d 0 58%, #d99a08 80%, #b87900 100%);
  box-shadow: 0 28px 38px rgba(0,0,0,.26), inset 0 0 0 2px rgba(255,236,160,.28);
  overflow: hidden;
}
.hero-book__back::after {
  content: "";
  position: absolute; right: 0; top: 8%; width: 16%; height: 84%;
  border-radius: 0 42px 42px 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(118,72,0,.16)),
    radial-gradient(circle at 24% 10%, transparent 0 18%, rgba(255,227,111,.9) 19% 23%, transparent 24% 33%, rgba(255,227,111,.7) 34% 38%, transparent 39% 77%, rgba(255,227,111,.82) 78% 82%, transparent 83%);
}
.hero-book__pages {
  position: absolute; left: 9.5%; right: 14.5%; bottom: 6%; height: 17%;
  border-radius: 0 0 32px 32px; border: 8px solid #cb8d04; border-top: 0;
  background: repeating-linear-gradient(to bottom, var(--hb-paper1) 0 8px, var(--hb-paper2) 9px 10px);
  box-shadow: 0 10px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.48);
}
.hero-book__ribbon {
  position: absolute; right: 21%; bottom: 1.8%; width: 7.5%; height: 12%;
  background: linear-gradient(180deg, #f7c62f, #d99804);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
  box-shadow: 0 10px 12px rgba(89,52,0,.22);
}
.hero-book__well {
  position: absolute; left: 17%; right: 19%; top: 12%; bottom: 19%;
  border-radius: 28px; overflow: visible;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.08)),
    linear-gradient(180deg, #fff4c8, #e5bf59);
  box-shadow:
    inset 0 0 0 2px rgba(255,247,210,.72),
    inset 0 12px 18px rgba(255,255,255,.23),
    inset 0 -16px 20px rgba(112,68,0,.10);
}
.hero-book__shade {
  position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.07), transparent 15% 80%, rgba(0,0,0,.10)),
    radial-gradient(circle at 50% 96%, rgba(0,0,0,.12), transparent 30%);
}
.hero-book__phone {
  position: absolute; left: 50%; bottom: 8%; width: 44%; aspect-ratio: 9/19.5; z-index: 7;
  opacity: 0; filter: blur(8px); pointer-events: none;
  transform: translateX(-50%) translateY(165px) scale(.74) rotateX(20deg);
  transition: transform 1.18s cubic-bezier(.18,.78,.16,1), opacity .55s ease, filter 1s ease;
}
.hero-book__phone-glow {
  position: absolute; left: 8%; right: 8%; bottom: -2%; height: 10%;
  background: rgba(255,219,112,.5); border-radius: 50%; filter: blur(18px);
}
.hero-book__phone-body {
  position: absolute; inset: 0; border-radius: 22% / 10%;
  background: linear-gradient(145deg, #50565d, #0f1318 24%, #7d858c 48%, #090c10 72%, #4c5158);
  box-shadow: 0 25px 40px rgba(0,8,24,.4), 0 0 26px rgba(255,214,98,.16), inset 0 0 0 2px rgba(255,255,255,.08);
}
.hero-book__phone-body::before {
  content: "";
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%);
  width: 38%; height: 3.2%; border-radius: 999px; background: rgba(0,0,0,.55); z-index: 3;
}
.hero-book__phone-body::after {
  content: "";
  position: absolute; inset: 1.5%; border-radius: 20% / 9%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); pointer-events: none; z-index: 3;
}
.hero-book__screen {
  position: absolute; inset: 4.5%; border-radius: 16% / 7%; overflow: hidden; background: #0f203d;
}
.hero-book__screen img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-book__gloss {
  position: absolute; inset: 4.5%; border-radius: 16% / 7%; pointer-events: none; z-index: 2;
  background: linear-gradient(130deg, rgba(255,255,255,.18), transparent 22%), linear-gradient(180deg, transparent 66%, rgba(0,0,0,.08));
}
.hero-book__front {
  position: absolute; left: 9%; right: 14%; top: 6%; bottom: 11%;
  transform-origin: right center; transform-style: preserve-3d; z-index: 10;
  transform: rotateY(0deg);
  transition: transform 2.6s cubic-bezier(.22,.7,.18,1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-book__cover {
  position: absolute; inset: 0; border-radius: 10px 42px 36px 28px; overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255,255,255,.20), transparent 20% 80%, rgba(110,65,0,.10)),
    linear-gradient(135deg, var(--hb-gold1), var(--hb-gold2) 64%, var(--hb-gold3) 84%, var(--hb-gold4));
  box-shadow: 12px 12px 22px rgba(105,63,0,.24), inset 0 0 0 2px rgba(255,240,173,.26);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-book__inside {
  position: absolute; inset: 0; border-radius: 42px 10px 28px 36px;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: grid; place-items: center;
  padding: 12%;
  background:
    linear-gradient(90deg, rgba(255,236,170,.35), transparent 14%),
    linear-gradient(135deg, #fff6d8 0%, #f3dc96 42%, #e2b84a 100%);
  box-shadow:
    inset 0 0 0 3px rgba(201,162,39,.42),
    inset 10px 0 18px rgba(120,72,0,.12),
    0 12px 22px rgba(0,0,0,.22);
}
.hero-book__inside span {
  display: block;
  color: #7a4e08;
  font-weight: 900;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  text-align: center;
  line-height: 1.8;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.hero-book__cover::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.20), transparent 18%), linear-gradient(90deg, rgba(255,255,255,.18), transparent 11% 84%, rgba(112,67,0,.12));
}
.hero-book__grid {
  position: absolute; left: 15%; right: 9%; top: 12%; bottom: 10%;
  border: 3px solid rgba(255,255,255,.98); border-radius: 14px;
  background:
    linear-gradient(to right, transparent 0 78%, rgba(255,255,255,.98) 78% calc(78% + 3px), transparent calc(78% + 3px)),
    repeating-linear-gradient(to bottom, transparent 0 9.4%, rgba(255,255,255,.98) 9.4% calc(9.4% + 2.2px), transparent calc(9.4% + 2.2px) 18.8%);
}
.hero-book__clasp {
  position: absolute; left: 4%; top: 39.5%; width: 18%; height: 17%;
  border-radius: 12px 28px 28px 12px; z-index: 14;
  transform-origin: left center;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  background: linear-gradient(90deg, #cb8b02, #efbe2f 68%, #b97800);
  box-shadow: 0 8px 14px rgba(98,58,0,.3);
  transition: transform 2.4s cubic-bezier(.22,.7,.18,1);
  will-change: transform;
}
.hero-book__clasp::before {
  content: "";
  position: absolute; inset: 4px 18% 4px 4px;
  border-radius: 9px 24px 24px 9px; border: 2px solid rgba(255,232,121,.58);
}
.hero-book__clasp::after {
  content: "";
  position: absolute; width: 34%; aspect-ratio: 1; right: 13%; top: 50%;
  transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff2aa 0 14%, #f1ca42 15% 58%, #b87900 59% 66%, #dca00b 67%);
  box-shadow: 0 2px 3px rgba(92,53,0,.28);
}
.hero-book__fx { position: absolute; inset: 0; pointer-events: none; }
.hero-book__ring {
  position: absolute; left: 50%; top: 51%; width: 58%; height: 58%;
  border-radius: 50%; border: 2px solid rgba(255,219,112,0);
  opacity: 0; transform: translate(-50%, -50%) scale(.75);
}
.hero-book__spark {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,235,163,.96); box-shadow: 0 0 16px rgba(255,221,112,.92);
  opacity: 0; transform: scale(.4);
}
.hero-book__spark--a { left: 24%; top: 22%; }
.hero-book__spark--b { right: 22%; top: 31%; width: 6px; height: 6px; }
.hero-book__spark--c { left: 20%; bottom: 28%; width: 7px; height: 7px; }
.hero-book__spark--d { right: 30%; bottom: 19%; width: 5px; height: 5px; }
.hero-book__spark--e { left: 56%; top: 18%; width: 4px; height: 4px; }
.hero-book__caption {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  margin: 0; width: 90%; text-align: center;
  color: rgba(255,255,255,.82); font-size: .8rem; font-weight: 700;
}
.hero-book.is-open .hero-book__front { transform: rotateY(152deg); }
.hero-book.is-open .hero-book__clasp { transform: rotateY(-128deg); }
.hero-book.is-open .hero-book__phone {
  opacity: 1; filter: blur(0); z-index: 8;
  transform: translateX(-50%) translateY(-18px) scale(.92) rotateX(0deg);
  transition: transform 2.2s cubic-bezier(.18,.78,.16,1) .25s, opacity .7s ease .15s, filter 1.2s ease .15s;
}
.hero-book.is-open .hero-book__shadow { transform: scaleX(1.1); opacity: .58; }
.hero-book.is-open .hero-book__ring { animation: heroBookRing 2.4s ease-in-out infinite; }
.hero-book.is-open .hero-book__ring--2 { animation-delay: .48s; }
.hero-book.is-open .hero-book__spark { animation: heroBookTwinkle 1.7s ease-in-out infinite; }
.hero-book.is-open .hero-book__spark--a { animation-delay: 0s; }
.hero-book.is-open .hero-book__spark--b { animation-delay: .26s; }
.hero-book.is-open .hero-book__spark--c { animation-delay: .54s; }
.hero-book.is-open .hero-book__spark--d { animation-delay: .82s; }
.hero-book.is-open .hero-book__spark--e { animation-delay: 1.1s; }
@keyframes heroBookTwinkle {
  0%, 100% { opacity: 0; transform: scale(.35) translateY(0); }
  45% { opacity: 1; transform: scale(1) translateY(-7px); }
}
@keyframes heroBookRing {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.72); }
  22% { opacity: .75; border-color: rgba(255,219,112,.82); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28); border-color: rgba(255,219,112,0); }
}
@media (max-width: 980px) {
  .hero-book__phone { width: 48%; }
  .hero-book.is-open .hero-book__front { transform: rotateY(145deg); }
  .hero-book.is-open .hero-book__clasp { transform: rotateY(-118deg); }
  .hero-book.is-open .hero-book__phone {
    transform: translateX(-50%) translateY(-8px) scale(.88) rotateX(0deg);
  }
}
@media (max-width: 640px) {
  .feature-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 200px);
  }
  .section__head--inline p { white-space: normal; }
  .hero-book { width: min(86vw, 300px); }
  .footer__pitch { white-space: normal; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  /* Decorative float/FX off; open/close transition stays for usability */
  .hero-book__scene { animation: none; margin-top: 0 !important; }
  .hero-book__front { transition-duration: 1.4s; }
  .hero-book__clasp { transition-duration: 1.2s; }
  .hero-book__phone { transition-duration: 1s; }
  .hero-book__shadow { transition-duration: .8s; }
  .hero-book__ring, .hero-book__spark { animation: none !important; }
}
@media (min-width: 981px) {
  .hero-book { perspective: 2400px; }
  .hero-book__front { transition-duration: 2.8s; }
  .hero-book__clasp { transition-duration: 2.5s; }
}

.cart-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: start; }
.pay-vpn-warn {
  margin: 0 0 .85rem;
  padding: .7rem .85rem;
  border-radius: 14px;
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #c62828;
  font-weight: 800;
  line-height: 1.7;
  font-size: .95rem;
}
.invoice-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.invoice {
  background: #fff; border-radius: 24px; padding: 1.6rem 1.5rem 1.3rem;
  border: 1px solid rgba(201,162,39,.35); box-shadow: var(--shadow); color: var(--ink);
}
.invoice__head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}
.invoice__brand { display: flex; gap: .8rem; align-items: center; }
.invoice__brand img { border-radius: 14px; }
.invoice__brand strong { display: block; color: var(--navy-900); font-size: 1.25rem; }
.invoice__brand span { color: var(--muted); font-size: .88rem; }
.invoice__meta { text-align: left; }
.invoice__meta em { display: block; color: var(--gold-deep); font-style: normal; font-weight: 900; }
.invoice__meta span { color: var(--navy-800); }
.invoice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.invoice__grid h3 { margin: 0 0 .35rem; color: var(--navy-900); font-size: 1rem; }
.invoice__grid p { margin: .15rem 0; }
.invoice__table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.invoice__table th, .invoice__table td { text-align: right; padding: .75rem .5rem; border-bottom: 1px solid #edf1f5; }
.invoice__table tfoot th { font-size: 1.05rem; color: var(--navy-900); }
.invoice__license { margin: 1rem 0; font-weight: 800; }
.invoice__license.no-print {
  display: flex; flex-direction: column; align-items: flex-start; gap: .65rem;
}
.invoice__license-hint { margin: 0; font-weight: 700; color: var(--muted); font-size: .92rem; }
.invoice__license--print { display: none; }
.invoice__foot { margin-top: 1.2rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 980px) {
  .cart-layout, .invoice__grid { grid-template-columns: 1fr; }
  .invoice__meta { text-align: right; }
}
@media print {
  body:has(.topbar) { padding-top: 0 !important; }
  .topbar, .nav, .footer, .account-menu, .invoice-actions, .toast, .site-toasts, .to-top, .no-print { display: none !important; }
  .invoice { box-shadow: none; border: 1px solid #ccc; }
  .invoice__license--print { display: block !important; }
}

.visit-bars {
  display: flex; align-items: flex-end; gap: .35rem; height: 180px;
  padding: 1rem .5rem .4rem; margin: 0 0 1.6rem;
  background: #fff; border-radius: 18px; border: 1px solid #e8eef5;
}
.visit-bar {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; text-decoration: none; color: var(--navy-800); min-width: 0;
}
.visit-bar__col {
  width: 70%; max-width: 28px; background: linear-gradient(180deg, var(--gold), var(--navy-800));
  border-radius: 8px 8px 4px 4px; display: block;
}
.visit-bar em { font-style: normal; font-size: .72rem; font-weight: 800; margin-top: .25rem; }
.visit-bar small { color: var(--muted); font-size: .62rem; white-space: nowrap; }
.visit-bar.is-on .visit-bar__col { outline: 2px solid var(--gold); }
.visit-detail p {
  display: grid; grid-template-columns: 10rem 1fr; gap: .5rem; margin: .55rem 0;
  padding-bottom: .55rem; border-bottom: 1px solid #edf1f5;
}
.visit-detail p:last-child { border-bottom: 0; }
.visit-detail strong { color: var(--muted); font-size: .88rem; }
@media (max-width: 720px) {
  .visit-detail p { grid-template-columns: 1fr; }
}

.settings-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem;
}
.settings-tabs button {
  border: 1px solid #d7deea; background: #fff; color: var(--navy-800);
  border-radius: 999px; padding: .45rem .9rem; font-weight: 800; font-size: .86rem; cursor: pointer;
  font-family: inherit;
}
.settings-tabs button.is-active {
  background: var(--navy-900); color: var(--gold-soft); border-color: var(--navy-900);
}
.settings-pane h3 { margin-top: 1.1rem; color: var(--navy-900); font-size: 1.05rem; }
.settings-pane h3:first-child { margin-top: 0; }
.checkout-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
  list-style: none; padding: 0; margin: 0 0 1.4rem;
}
.checkout-steps li {
  display: flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .65rem .75rem; font-size: .82rem; font-weight: 700; color: var(--muted);
}
.checkout-steps li.is-active { border-color: var(--gold); color: var(--navy-900); background: #fff8e8; }
.checkout-steps li span {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: #fff; font-size: .78rem;
}
.admin-quick {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin-top: 1.3rem;
}
.pwa-card ol { margin: 1rem 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
@media (max-width: 980px) {
  .checkout-steps, .admin-quick { grid-template-columns: 1fr; }
}

.admin-login-page {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201,162,39,.22), transparent 55%),
    linear-gradient(165deg, #04101f 0%, #0a274c 48%, #082038 100%);
  font-family: var(--font);
}
.admin-login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.4rem, env(safe-area-inset-top)) 1rem max(1.4rem, env(safe-area-inset-bottom));
}
.admin-login-card {
  width: 100%;
  max-width: 26.5rem;
  padding: 1.6rem 1.35rem 1.45rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-login-brand {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem;
}
.admin-login-brand img { border-radius: 14px; }
.admin-login-brand strong { display: block; color: var(--navy-900); font-size: 1.05rem; }
.admin-login-brand small { color: var(--muted); font-weight: 700; }
.admin-login-page h1 { font-size: 1.35rem; margin: 0 0 .35rem; color: var(--navy-900); }
.admin-login-lead { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.admin-login-page label { display: block; margin: .7rem 0 .3rem; font-weight: 800; color: var(--navy-800); }
.admin-login-page input {
  width: 100%; font-size: 16px; padding: .8rem .9rem; border-radius: 14px;
  border: 1px solid #d5dee8; font-family: inherit;
}
.admin-login-page input:focus { outline: 2px solid rgba(201,162,39,.45); border-color: var(--gold); }
.admin-login-back { margin-top: 1rem; text-align: center; }
.admin-login-page .section { padding: 1.1rem .75rem 2rem; }
.admin-login-page .form-card {
  width: 100%; max-width: 28rem; margin-inline: auto;
  padding: 1.15rem 1rem;
}

@media (max-width: 980px) {
  .admin-top { gap: .6rem; margin-bottom: .85rem; }
  .admin-top h1 { flex: 1; font-size: 1.05rem; line-height: 1.35; }
  .admin-main .panel { padding: .9rem .8rem; border-radius: 16px; }
  .settings-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: .4rem; margin-inline: -.2rem;
  }
  .settings-tabs button { flex: 0 0 auto; }
  .admin-main input, .admin-main select, .admin-main textarea {
    font-size: 16px; width: 100%; max-width: 100%;
  }
  .admin-main .table th, .admin-main .table td { padding: .55rem .45rem; font-size: .8rem; }
  .admin-main .btn { min-height: 44px; }
  .admin-main .panel, .admin-main .table-wrap, .admin-main .table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
  }
  .admin-main .panel:has(.user-pick) { overflow: visible; }
  .admin-side {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  .stat strong { font-size: 1.2rem; }
}

body.is-admin-apk {
  -webkit-tap-highlight-color: transparent;
}
body.is-admin-apk .admin-shell { min-height: 100dvh; min-height: 100svh; }
body.is-admin-apk .admin-main {
  padding-inline: .65rem;
  padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
}
body.is-admin-apk .admin-login-page .form-card { box-shadow: none; }

.sales-hero {
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: flex-end;
  margin-bottom: 1.2rem; padding: 1.15rem 1.2rem; border-radius: 22px;
  background: linear-gradient(145deg, #06182e 0%, #0f3358 55%, #143e66 100%); color: #fff;
}
.sales-hero h2 { margin: .15rem 0 .35rem; font-size: 1.25rem; }
.sales-hero__kicker { margin: 0; font-size: .78rem; letter-spacing: .08em; color: var(--gold-soft); font-weight: 800; }
.sales-hero .muted { color: rgba(255,255,255,.72); }
.sales-hero__stats { margin: 0; }
.sales-hero__stats .stat { background: rgba(255,255,255,.08); box-shadow: none; min-width: 7.5rem; }
.sales-hero__stats .stat span { color: rgba(255,255,255,.7); }
.sales-hero__stats .stat strong { color: #fff; }
.sales-toolbar {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: flex-end; margin: 0 0 1rem;
  padding: 1rem; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
}
.sales-search { flex: 1; min-width: 14rem; }
.sales-search span { display: block; font-size: .8rem; font-weight: 800; color: var(--muted); margin-bottom: .3rem; }
.sales-search input {
  width: 100%; padding: .7rem .85rem; border-radius: 12px; border: 1px solid #d5dee8; font-size: 16px;
}
.sales-search select {
  width: 100%; min-width: 11rem; padding: .7rem .85rem; border-radius: 12px;
  border: 1px solid #d5dee8; font-size: 16px; background: #fff;
}
.sales-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .7rem; }
.sales-filter {
  padding: .4rem .85rem; border-radius: 999px; background: #eef3f9; color: var(--navy-800);
  font-weight: 800; font-size: .84rem;
}
.sales-filter.is-active { background: var(--navy-900); color: #fff; }
.sales-filter--unpaid.is-active { background: #b45309; }
.sales-filter--paid.is-active { background: #047857; }
.sales-filter--canceled.is-active { background: #64748b; }
.sales-count { margin: 0 0 .6rem; }
.sales-table-wrap { box-shadow: var(--shadow); }
.sales-table { min-width: 980px; }
.sales-row { cursor: pointer; }
.sales-row:hover td { background: #f4f8ff; }
.sales-row__meta { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.sales-email { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.sale-st {
  display: inline-flex; align-items: center; padding: .22rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 800; white-space: nowrap;
}
.sale-st--unpaid { background: #fff4e5; color: #9a3412; }
.sale-st--paid { background: #d1fae5; color: #065f46; }
.sale-st--canceled { background: #e2e8f0; color: #475569; }
.sale-ch {
  display: inline-block; padding: .2rem .55rem; border-radius: 8px; font-size: .78rem; font-weight: 700;
  background: #eef3f9; color: var(--navy-800);
}
.sale-ch--cafe_bazaar { background: #ecfdf5; color: #047857; }
.sale-ch--myket { background: #e0f2fe; color: #0369a1; }
.sale-ch--manual { background: #f5f3ff; color: #5b21b6; }
.sale-ch--direct_website { background: #eff6ff; color: #1d4ed8; }
.sales-crumb { margin: 0 0 1rem; }
.sale-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1rem; padding: 1.1rem 1.15rem; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
}
.sale-head__badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.sale-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1rem; margin-bottom: 1rem; }
.sale-dl { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem .9rem; margin: 0; }
.sale-dl div { margin: 0; }
.sale-dl dt { font-size: .75rem; color: var(--muted); font-weight: 800; }
.sale-dl dd { margin: .15rem 0 0; font-weight: 700; }
.sale-danger { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed #d5dee8; }
.sale-del { color: #b91c1c !important; }
.sale-msg .ticket-thread { margin: .6rem 0 0; }
.order-admin-notes {
  margin-top: .75rem; padding: .75rem .85rem; border-radius: 14px;
  background: #fff8e8; border: 1px solid #f1e0b0;
}
.order-admin-notes strong { display: block; margin-bottom: .35rem; color: var(--navy-900); font-size: .86rem; }
.order-admin-notes p { margin: .25rem 0 0; }
.sales-empty { padding: 1.4rem; text-align: center; }
@media (max-width: 980px) {
  .sales-hero, .sale-head, .sale-grid, .sale-dl { grid-template-columns: 1fr; display: grid; }
  .sales-hero { align-items: stretch; }
  .sales-table { min-width: 860px; }
}
.otp-smsir-box {
  margin: 1rem 0; padding: 1rem .95rem; border-radius: 16px;
  background: #f7f9fc; border: 1px solid #e2e8f0;
}
.otp-smsir-box h3 { margin-top: 0; font-size: 1rem; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem;
}
.product-card { position: relative; padding-top: 1.3rem; }
.product-card__tag {
  display: inline-block; margin-bottom: .55rem; padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 800; background: #eff6ff; color: #1d4ed8;
}
.product-card--timed .product-card__tag { background: #f5f3ff; color: #5b21b6; }
.product-card h2 { margin: 0 0 .35rem; font-size: 1.12rem; }
.check-inline { display: flex; gap: .45rem; align-items: center; font-weight: 700; }
.check-inline input { width: auto !important; }
.cart-line { padding-bottom: .85rem; margin-bottom: .85rem; border-bottom: 1px dashed #d5dee8; }
.cart-line:last-of-type { border-bottom: 0; }

.user-pick { position: relative; z-index: 5; overflow: visible; max-height: none; border: 0; padding: 0; }
.user-pick.is-invalid .user-pick__field { box-shadow: 0 0 0 3px rgba(185, 28, 28, .25); border-radius: 14px; }
.user-pick__field {
  display: flex; align-items: center; gap: .35rem;
  border: 1px solid #d5dee8; border-radius: 14px; background: #fff; padding: .15rem .35rem .15rem .15rem;
}
.user-pick__field input[type="search"] {
  flex: 1; border: 0 !important; box-shadow: none !important; margin: 0; background: transparent;
  padding: .7rem .85rem; font-size: 16px;
}
.user-pick__clear {
  border: 0; background: #eef3f9; color: var(--navy-800); font-weight: 800;
  border-radius: 10px; padding: .35rem .65rem; cursor: pointer; font-size: .8rem;
}
.user-pick__sel {
  margin-top: .45rem; padding: .65rem .8rem; border-radius: 12px;
  background: linear-gradient(180deg, #f4f8ff, #eef4fb); border: 1px solid #d7e4f4;
}
.user-pick__sel strong { display: block; color: var(--navy-900); }
.user-pick__sel span { font-size: .82rem; color: var(--muted); }
.user-pick__list {
  position: fixed; z-index: 9000;
  background: #fff; border: 1px solid #c9d6e5; border-radius: 18px;
  box-shadow: 0 24px 50px rgba(6, 24, 46, .22);
  max-height: min(320px, 50vh); overflow: auto;
  padding: .4rem; box-sizing: border-box;
}
.user-pick__opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: .12rem;
  width: 100%; text-align: right; border: 0; background: transparent;
  padding: .65rem .75rem; border-radius: 12px; cursor: pointer;
}
.user-pick__opt:hover, .user-pick__opt.is-active { background: #eef5ff; }
.user-pick__opt strong { color: var(--navy-900); }
.user-pick__opt span, .user-pick__opt small { font-size: .8rem; color: var(--muted); }
.user-pick__empty { padding: .85rem .7rem; color: var(--muted); font-size: .88rem; }
.admin-main .panel:has(.user-pick) { overflow: visible; }

.testimonials { padding-top: 0; }
.t-slider { position: relative; }
.t-slider__track { position: relative; min-height: 13.5rem; touch-action: pan-y; }
.t-card {
  display: none;
  background: linear-gradient(160deg, #06182e, #143e66);
  color: #fff;
  border-radius: 28px;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  min-height: 13rem;
}
.t-card.is-active { display: block; animation: tFade .45s ease; }
@keyframes tFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.t-card__stars { color: #f5d76e; letter-spacing: .12em; font-size: 1.05rem; margin-bottom: .7rem; }
.t-card blockquote {
  margin: 0 0 1.1rem; font-size: 1.02rem; line-height: 1.95; font-weight: 600; color: rgba(255,255,255,.94);
}
.t-card footer { display: flex; flex-direction: row; align-items: center; gap: .85rem; }
.t-card__photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.85); flex: 0 0 64px;
  background: #0b2748;
}
.t-card footer div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.profile-avatar-edit { display: flex; gap: 1rem; align-items: center; margin-bottom: .4rem; }
.profile-avatar-edit img, .profile-avatar-edit__ph {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: 0 0 88px;
}
.profile-avatar-edit__ph {
  display: grid; place-items: center; background: #0b2748; color: #e8c65a;
  font-weight: 900; font-size: 1.6rem;
}
.file-pick-label { display: block; font-weight: 800; margin-bottom: .55rem; }
.file-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  position: relative;
  margin: .15rem 0 .4rem;
}
.file-pick input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.file-pick__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  color: #06182e;
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.2;
  box-shadow: 0 8px 22px rgba(6, 24, 46, .08);
  cursor: pointer;
  border: 1px solid #d7dee8;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.file-pick:hover .file-pick__btn {
  transform: translateY(-1px);
  border-color: #c9a227;
  box-shadow: 0 12px 26px rgba(6, 24, 46, .12);
}
.file-pick:focus-within .file-pick__btn {
  outline: 2px solid #06182e;
  outline-offset: 3px;
}
.file-pick__icon { flex: 0 0 auto; }
.file-pick__name {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  max-width: min(100%, 22rem);
  line-height: 1.45;
  white-space: normal;
}
.file-pick.is-chosen .file-pick__name { color: var(--navy-800); }
.t-card footer strong { font-size: 1rem; }
.t-card footer span { color: rgba(255,255,255,.7); font-size: .88rem; }
.t-slider__nav {
  display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1rem;
}
.t-slider__btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--navy-800);
}
.t-slider__dots { display: flex; gap: .35rem; }
.t-slider__dots button {
  width: 8px; height: 8px; border-radius: 99px; border: 0; background: #c5d0dc; cursor: pointer; padding: 0;
}
.t-slider__dots button.is-on { width: 22px; background: var(--navy-800); }
.t-slider__cta { text-align: center; margin: 1.1rem 0 0; }

.to-top {
  position: fixed;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 4480;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(232, 198, 90, .45);
  border-radius: 16px;
  background: #06182e;
  color: var(--gold-soft);
  box-shadow: 0 12px 28px rgba(3, 11, 22, .32);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.to-top[hidden] { display: none !important; }
.to-top:hover { transform: translateY(-2px); color: #fff; }
.to-top svg { display: block; }

.app-tabbar { display: none; }
@media (max-width: 980px) {
  .to-top { bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px)); }
  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 4300;
    background: #06182e;
    border-top: 1px solid rgba(232, 198, 90, .28);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .28);
    padding: .35rem .2rem calc(.38rem + env(safe-area-inset-bottom, 0px));
  }
  .app-tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .18rem; min-height: 3.15rem; color: rgba(255,255,255,.72) !important;
    font-size: .68rem; font-weight: 800; line-height: 1.2; text-align: center;
    padding: .15rem .1rem;
  }
  .app-tabbar__item svg {
    width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .app-tabbar__item.is-on { color: var(--gold-soft) !important; }
  .app-tabbar__item.is-on svg { stroke: var(--gold-soft); }
}
@media print {
  .app-tabbar { display: none !important; }
}

.shop-notice {
  display: flex; gap: 1rem; align-items: flex-start;
  margin: 0 0 1.35rem; padding: 1.15rem 1.2rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(165deg, #fff6d8 0%, #ffe7a3 55%, #ffd56a 140%);
  border: 2px solid #c9a227;
  box-shadow: 0 14px 36px rgba(154, 122, 20, .22), inset 0 1px 0 rgba(255,255,255,.7);
  color: #3a2a00;
}
.shop-notice__icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: #9a7a14; color: #fff8d6;
  box-shadow: 0 8px 16px rgba(90, 60, 0, .28);
}
.shop-notice__body { min-width: 0; flex: 1; }
.shop-notice__title {
  display: block; font-size: 1.12rem; font-weight: 900; margin: 0 0 .55rem;
  color: #6b4a00; letter-spacing: -.02em;
}
.shop-notice__body p {
  margin: 0 0 .55rem; font-weight: 800; line-height: 1.85; color: #3d2d08;
}
.shop-notice__body p:last-child { margin-bottom: 0; }
.content-subnav {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.15rem;
}
.content-subnav__item {
  padding: .45rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 800;
  background: #eef3f9; color: var(--navy-800) !important;
  border: 1px solid #d5dee8;
}
.content-subnav__item.is-on {
  background: var(--navy-900); color: var(--gold-soft) !important; border-color: var(--navy-900);
}
.content-hub {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.content-hub__card {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.25rem 1.2rem; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--navy-900) !important; min-height: 8.2rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.content-hub__card:hover {
  transform: translateY(-3px); color: var(--navy-900) !important;
  box-shadow: 0 22px 40px rgba(6, 24, 46, .14);
}
.content-hub__card strong { font-size: 1.05rem; }
.content-hub__card span { color: var(--muted); font-weight: 700; font-size: .88rem; line-height: 1.65; }
.content-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1.2rem; align-items: start;
}
@media (max-width: 980px) {
  .content-split { grid-template-columns: 1fr; }
  .shop-notice { padding: 1rem .9rem; gap: .75rem; }
  .shop-notice__icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
}

/* —— بروزرسانی‌های اپ —— */
.page-hero--updates {
  background:
    radial-gradient(900px 360px at 12% -10%, rgba(201,162,39,.22), transparent 55%),
    radial-gradient(700px 300px at 100% 0%, rgba(11,61,145,.18), transparent 50%),
    linear-gradient(160deg, #06182e 0%, #0b2547 55%, #123b68 100%);
}
.section--updates { padding-top: 1.2rem; }
.updates-shell { max-width: 820px; }
.updates-timeline {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  position: relative;
}
.updates-timeline::before {
  content: "";
  position: absolute;
  top: .6rem;
  bottom: .6rem;
  right: 1.15rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(201,162,39,.55), rgba(18,59,104,.12));
  border-radius: 2px;
  pointer-events: none;
}
.upd-acc {
  position: relative;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(7, 26, 51, .08);
  box-shadow: 0 14px 34px rgba(7, 26, 51, .08);
  overflow: hidden;
  transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.upd-acc:hover {
  border-color: rgba(201, 162, 39, .35);
  box-shadow: 0 18px 42px rgba(7, 26, 51, .12);
}
.upd-acc.is-open {
  border-color: rgba(201, 162, 39, .55);
  box-shadow: 0 20px 46px rgba(7, 26, 51, .14);
}
.upd-acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem 1.05rem 1rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: right;
  font: inherit;
  color: inherit;
}
.upd-acc__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-width: 0;
  flex: 1;
}
.upd-acc__badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b2547, #123b68);
  color: #f7e7a8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.upd-acc__title {
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.55;
}
.upd-acc__count {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.upd-acc__chev {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0b2547;
  background: linear-gradient(160deg, #fff8e8, #f3e2a8);
  border: 1px solid rgba(201, 162, 39, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease;
}
.upd-acc__chev svg {
  display: block;
  transform: rotate(0deg);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
/* بسته: فلش به چپ (RTL)؛ باز: به پایین */
.upd-acc:not(.is-open) .upd-acc__chev svg { transform: rotate(90deg); }
.upd-acc.is-open .upd-acc__chev {
  background: linear-gradient(160deg, #0b2547, #123b68);
  color: #f2da8a;
  border-color: transparent;
}
.upd-acc.is-open .upd-acc__chev svg { transform: rotate(0deg); }
.upd-acc__panel {
  border-top: 1px solid rgba(7, 26, 51, .06);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .95), #fff 40%);
}
.upd-acc__panel[hidden] { display: none !important; }
.upd-acc__panel-inner {
  padding: .35rem 1.1rem 1.15rem;
}
.upd-acc__detail {
  margin: .35rem 0 .85rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(201, 162, 39, .08);
  border: 1px solid rgba(201, 162, 39, .18);
  color: #143e66;
  font-size: .95rem;
  line-height: 1.75;
}
.upd-acc__detail p { margin: 0 0 .55rem; }
.upd-acc__detail p:last-child { margin-bottom: 0; }
.page-hero--updates .page-hero__lead {
  margin: .35rem 0 0;
  max-width: 40rem;
  color: rgba(255,255,255,.88);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 600;
}
.page-hero--updates .page-hero__lead p { margin: 0 0 .4rem; }
.page-hero--updates .page-hero__lead p:last-child { margin-bottom: 0; }
.page-hero--updates .page-hero__lead a { color: #f3d27a; }
.upd-acc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.upd-acc__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem .95rem;
  border-radius: 16px;
  background: #f7f9fc;
  border: 1px solid rgba(7, 26, 51, .05);
  animation: updItemIn .35s ease both;
}
.upd-acc.is-open .upd-acc__item:nth-child(1) { animation-delay: .02s; }
.upd-acc.is-open .upd-acc__item:nth-child(2) { animation-delay: .06s; }
.upd-acc.is-open .upd-acc__item:nth-child(3) { animation-delay: .1s; }
.upd-acc.is-open .upd-acc__item:nth-child(4) { animation-delay: .14s; }
.upd-acc.is-open .upd-acc__item:nth-child(5) { animation-delay: .18s; }
@keyframes updItemIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.upd-acc__emoji {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: linear-gradient(145deg, #fff, #f3e8c4);
  border: 1px solid rgba(201, 162, 39, .28);
  box-shadow: 0 6px 14px rgba(7, 26, 51, .06);
}
.upd-acc__text {
  flex: 1;
  color: #243447;
  font-weight: 700;
  line-height: 1.85;
  font-size: .95rem;
}
@media (max-width: 720px) {
  .updates-timeline::before { right: .85rem; }
  .upd-acc__head { padding: .95rem .9rem; gap: .75rem; }
  .upd-acc__chev { width: 38px; height: 38px; border-radius: 12px; }
  .upd-acc__title { font-size: .98rem; }
}

/* Clasika AI chat (account) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ai-stage {
  display: grid; grid-template-columns: minmax(180px, 220px) 168px minmax(0, 1fr);
  gap: .85rem; align-items: start; position: relative;
}
.ai-stage--ephemeral {
  grid-template-columns: 168px minmax(0, 1fr);
}
.ai-leave-warn {
  margin-bottom: 1rem;
  border: 1px solid rgba(154, 91, 0, .35);
  background: #fff8e8;
  color: #5c3d00;
}
@media (max-width: 1100px) {
  .ai-stage { grid-template-columns: 168px minmax(0, 1fr); }
  .ai-topics { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ai-stage { grid-template-columns: 1fr; }
}
.ai-topics {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; max-height: min(70vh, 640px);
  display: flex; flex-direction: column;
}
.ai-topics__head {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  padding: .75rem .8rem; background: #0a274c; color: #fff;
}
.ai-topics__head strong { font-size: .9rem; }
.ai-topics__new { padding: .28rem .55rem !important; font-size: .75rem !important; }
.ai-topics__list { list-style: none; margin: 0; padding: .35rem; overflow: auto; flex: 1; }
.ai-topic {
  display: flex; align-items: center; gap: .25rem;
  border-radius: 12px; margin: .2rem 0;
}
.ai-topic.is-active { background: #fff8e8; }
.ai-topic__link {
  flex: 1; min-width: 0; padding: .55rem .55rem;
  color: var(--navy-900); font-size: .82rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-topic__del {
  border: 0; background: transparent; color: #9b1c1c; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px; font-size: 1.1rem; line-height: 1;
}
.ai-topic__del:hover { background: #ffebee; }

.ai-buddy {
  position: sticky; top: calc(var(--top) + .6rem); text-align: center; z-index: 5;
}
.ai-buddy__hit {
  position: relative;
  width: 100%; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit;
  padding: .4rem; border-radius: 24px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.ai-buddy__hit:hover { transform: translateY(-2px); }
.ai-buddy__hit:focus-visible {
  outline: 2px solid rgba(201,162,39,.65); outline-offset: 4px;
}
.ai-buddy__glow {
  position: absolute; inset: 8% 12% auto; height: 42%;
  background: radial-gradient(circle, rgba(201,162,39,.35), transparent 70%);
  filter: blur(10px); pointer-events: none;
  animation: aiGlowBreath 3.8s ease-in-out infinite;
}
.ai-buddy__figure {
  position: relative; width: min(100%, 150px); margin: 0 auto; aspect-ratio: .9;
  animation: aiFloatY 3.2s cubic-bezier(.45, .05, .55, .95) infinite;
  will-change: transform;
  transform-origin: 50% 70%;
}
.ai-buddy[data-mood="listen"] .ai-buddy__figure {
  animation: aiListen 2.4s cubic-bezier(.45, .05, .55, .95) infinite;
}
.ai-buddy[data-mood="think"] .ai-buddy__figure {
  animation: aiThinkFloat 1.6s ease-in-out infinite;
}
.ai-buddy[data-mood="talk"] .ai-buddy__figure {
  animation: aiTalkFloat 1.1s ease-in-out infinite;
}
.ai-buddy[data-mood="talk"] .ai-robot__mouth {
  height: 8px; animation: aiTalk .32s ease-in-out infinite alternate;
}
.ai-buddy[data-mood="happy"] .ai-robot__mouth { height: 10px; border-radius: 0 0 10px 10px; }
.ai-buddy[data-mood="play"] .ai-robot__mouth,
.ai-buddy[data-mood="wave"] .ai-robot__mouth { height: 10px; border-radius: 0 0 10px 10px; }
.ai-buddy[data-mood="listen"] .ai-robot__eye {
  box-shadow: 0 0 14px #7cffc4;
}
.ai-buddy.is-bob .ai-buddy__figure { animation: aiBobSoft 1.75s cubic-bezier(.22, 1, .36, 1) both; }
.ai-buddy.is-nod .ai-buddy__figure { animation: aiNodSoft 1s cubic-bezier(.22, 1, .36, 1) both; }
.ai-buddy.is-wave .ai-buddy__figure { animation: aiWaveSoft 1.35s cubic-bezier(.22, 1, .36, 1) both; }
.ai-buddy.is-wave .ai-robot__arm--r { animation: aiArmWave 1.35s cubic-bezier(.22, 1, .36, 1) both; }
.ai-buddy.is-bob .ai-buddy__spark,
.ai-buddy.is-wave .ai-buddy__spark,
.ai-buddy[data-mood="play"] .ai-buddy__spark,
.ai-buddy[data-mood="happy"] .ai-buddy__spark { animation: aiSpark 1s ease forwards; }
.ai-buddy__flag-wrap {
  position: absolute; right: -6%; top: 8%; width: 46%; z-index: 3;
  transform: rotate(12deg);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  animation: aiFlagSway 4.5s ease-in-out infinite;
  transform-origin: 10% 90%;
}
.ai-buddy__flag-img {
  width: 100%; height: auto; display: block; border-radius: 3px;
  border: 1px solid rgba(0,0,0,.12);
}
.ai-robot { position: absolute; inset: 18% 12% 6% 12%; }
.ai-robot__antenna {
  position: absolute; left: 50%; top: -8%; transform: translateX(-50%);
  width: 4px; height: 14%; background: #9aa7b8; border-radius: 4px;
}
.ai-robot__antenna span {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff59d, #c9a227);
  box-shadow: 0 0 10px rgba(232,198,90,.8);
  animation: aiAntenna 2.2s ease-in-out infinite;
}
.ai-robot__head {
  position: absolute; left: 12%; right: 12%; top: 8%; height: 42%;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(160deg, #d7dee8, #8e9aab 55%, #6d7a8c);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 10px 18px rgba(6,24,46,.25);
}
.ai-robot__visor {
  position: absolute; left: 10%; right: 10%; top: 28%; height: 38%;
  border-radius: 12px; background: #06182e;
  display: flex; align-items: center; justify-content: space-around; padding: 0 8%;
}
.ai-robot__eye {
  width: 12px; height: 12px; border-radius: 50%;
  background: #5cffb0; box-shadow: 0 0 10px #5cffb0;
  transition: height .12s ease, border-radius .12s ease, box-shadow .3s ease;
}
.ai-buddy.is-blink .ai-robot__eye { height: 3px; border-radius: 2px; }
.ai-robot__mouth {
  position: absolute; left: 50%; bottom: 12%; width: 22px; height: 5px;
  transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #243041;
  transition: height .2s ease, border-radius .2s ease;
}
.ai-robot__body {
  position: absolute; left: 18%; right: 18%; top: 52%; bottom: 8%;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd85d, #c9a227 60%, #9a7a14);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 12px 20px rgba(6,24,46,.22);
}
.ai-robot__core {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 28%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #7ad7ff 45%, #0a274c);
  box-shadow: 0 0 14px rgba(90, 200, 255, .55);
  animation: aiCorePulse 2.6s ease-in-out infinite;
}
.ai-robot__arm {
  position: absolute; top: 58%; width: 12%; height: 28%;
  border-radius: 10px;
  background: linear-gradient(180deg, #c5ced9, #7d8898);
  transform-origin: top center;
}
.ai-robot__arm--l { left: 2%; transform: rotate(18deg); animation: aiArmIdleL 3.2s ease-in-out infinite; }
.ai-robot__arm--r { right: 2%; transform: rotate(-18deg); animation: aiArmIdleR 3.2s ease-in-out infinite; }
.ai-buddy__spark {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #ffe9a0; box-shadow: 0 0 12px #ffd24d; opacity: 0;
}
.ai-buddy__spark--a { left: 8%; top: 18%; }
.ai-buddy__spark--b { right: 4%; top: 30%; animation-delay: .12s; }
.ai-buddy__spark--c { left: 40%; top: 4%; animation-delay: .2s; }
.ai-buddy__name {
  display: block; margin-top: .55rem; color: var(--navy-900); font-size: 1rem;
}
.ai-buddy__hint {
  display: block; color: var(--muted); font-size: .75rem; margin-top: .15rem;
  min-height: 2.2em; transition: opacity .25s ease;
}

@keyframes aiFloatY {
  0% { transform: translateY(0); }
  25% { transform: translateY(-7px); }
  50% { transform: translateY(-12px); }
  75% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes aiListen {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes aiThinkFloat {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-5px) scale(1.03); filter: brightness(1.06); }
}
@keyframes aiTalkFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes aiBobSoft {
  0% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-18px) scale(1.04); }
  55% { transform: translateY(-6px) scale(1.02); }
  78% { transform: translateY(-14px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes aiNodSoft {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(6px) rotate(3deg); }
  60% { transform: translateY(-4px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes aiWaveSoft {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
  75% { transform: translateY(-8px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes aiArmWave {
  0% { transform: rotate(-18deg); }
  25% { transform: rotate(-48deg); }
  50% { transform: rotate(-12deg); }
  75% { transform: rotate(-52deg); }
  100% { transform: rotate(-18deg); }
}
@keyframes aiArmIdleL {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(22deg); }
}
@keyframes aiArmIdleR {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(-22deg); }
}
@keyframes aiTalk {
  from { transform: translateX(-50%) scaleY(.7); }
  to { transform: translateX(-50%) scaleY(1.15); }
}
@keyframes aiSpark {
  0% { opacity: 0; transform: scale(.4) translateY(0); }
  40% { opacity: 1; transform: scale(1) translateY(-8px); }
  100% { opacity: 0; transform: scale(.2) translateY(-18px); }
}
@keyframes aiGlowBreath {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes aiAntenna {
  0%, 100% { opacity: .85; box-shadow: 0 0 8px rgba(232,198,90,.55); }
  50% { opacity: 1; box-shadow: 0 0 16px rgba(232,198,90,.95); }
}
@keyframes aiCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 12px rgba(90,200,255,.45); }
  50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 18px rgba(90,200,255,.75); }
}
@keyframes aiFlagSway {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-buddy__figure,
  .ai-buddy__glow,
  .ai-buddy__flag-wrap,
  .ai-robot__antenna span,
  .ai-robot__core,
  .ai-robot__arm--l,
  .ai-robot__arm--r {
    animation: none !important;
  }
}

.ai-desk {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden; min-width: 0; position: relative;
}
.ai-desk__meta {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem; background: linear-gradient(135deg, #06182e, #0a274c);
  color: #fff;
}
.ai-desk__brand { display: flex; gap: .7rem; align-items: center; }
.ai-desk__avatar {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd85d, #c9a227); color: #06182e; font-weight: 900;
}
.ai-desk__brand strong { display: block; color: var(--gold-soft); }
.ai-desk__brand small { color: rgba(255,255,255,.72); font-size: .78rem; }
.ai-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .28rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: rgba(255,255,255,.1); border: 1px solid rgba(232,198,90,.35); color: #fff;
}
.ai-pill--ok { background: rgba(46,125,50,.25); border-color: rgba(129,199,132,.5); }
.ai-desk__tips {
  display: flex; flex-wrap: wrap; gap: .45rem; padding: .85rem 1rem 0;
}
.ai-chip {
  border: 1px solid #d7e0ea; background: #f7fafc; color: #3d4d5e;
  border-radius: 999px; padding: .35rem .7rem; font: inherit; font-size: .8rem; cursor: pointer;
}
.ai-chip:hover { border-color: var(--gold); color: var(--navy-900); }
.ai-thread {
  display: flex; flex-direction: column; gap: .7rem;
  max-height: min(58vh, 560px); overflow: auto; padding: 1rem;
}
.ai-bubble {
  border-radius: 16px; padding: .85rem 1rem; background: #f3f6fb; max-width: 92%;
}
.ai-bubble--bot {
  background: #fff8e8; border: 1px solid rgba(201,162,39,.28); align-self: flex-start;
}
.ai-bubble--user {
  background: #eef3f9; border: 1px solid #d5e0ec; align-self: flex-end;
}
.ai-bubble header { font-size: .75rem; color: var(--muted); margin-bottom: .3rem; font-weight: 800; }
.ai-bubble p { margin: 0; white-space: pre-wrap; line-height: 1.8; }
.ai-bubble .ai-msg-link {
  color: #0b5cab;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
  font-weight: 700;
}
.ai-bubble .ai-msg-link:hover { color: #083f78; }
.ai-bubble--thinking { opacity: .95; }
.ai-thinking-label { margin-top: .45rem !important; color: var(--muted); font-size: .85rem; }
.ai-typing { display: inline-flex; gap: .28rem; align-items: center; min-height: 1.2rem; }
.ai-typing span {
  width: 8px; height: 8px; border-radius: 50%; background: #c9a227;
  animation: aiDot 1s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-5px); opacity: 1; }
}
.ai-media {
  margin: .7rem 0 0; padding: 0; display: grid; gap: .55rem; justify-items: start;
}
.ai-media img {
  max-width: min(100%, 420px); border-radius: 14px; border: 1px solid rgba(201,162,39,.35);
  box-shadow: 0 10px 24px rgba(6,24,46,.12);
}
.ai-media__dl { padding: .35rem .8rem; font-size: .82rem; }
.ai-composer { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.ai-composer textarea {
  width: 100%; margin-top: .85rem; border-radius: 14px; border: 1px solid #d7e0ea;
  padding: .8rem .9rem; font: inherit; resize: vertical; min-height: 88px;
}
.ai-composer__bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between;
  margin-top: .65rem;
}
@media (max-width: 640px) {
  .ai-thread { max-height: 48vh; }
  .ai-bubble { max-width: 100%; }
  .ai-buddy { position: relative; top: auto; }
}

/* ——— مقایسه کلاسیکا با روش‌ها/نرم‌افزارهای مشابه ——— */
.rival-compare {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(201,162,39,.12), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(20,62,102,.08), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, #f5f7fa 45%, #f5f7fa 100%);
}
.rival-stage {
  border: 1px solid rgba(6,24,46,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 50px rgba(6,24,46,.08);
  overflow: hidden;
}
.rival-heads,
.rival-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.35fr) repeat(4, minmax(90px, 1fr));
  gap: 0;
  align-items: stretch;
}
.rival-heads {
  background: linear-gradient(135deg, #06182e, #0b2748);
  color: #fff;
  position: sticky;
  top: var(--top);
  z-index: 2;
}
.rival-heads__feat { border-inline-end: 1px solid rgba(255,255,255,.08); }
.rival-head {
  padding: 1rem .65rem;
  text-align: center;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.45;
  border-inline-start: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
}
.rival-head--win {
  background: linear-gradient(160deg, rgba(201,162,39,.28), rgba(201,162,39,.08));
  color: var(--gold-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.rival-head--win img {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(232,198,90,.45);
}
.rival-row {
  border-top: 1px solid rgba(14,26,40,.06);
  transition: background .18s ease;
}
.rival-row:hover { background: #f8fbff; }
.rival-feat {
  padding: 1rem .95rem;
  font-weight: 800;
  color: var(--navy-900);
  font-size: .92rem;
  line-height: 1.55;
  display: flex;
  align-items: center;
  border-inline-end: 1px solid rgba(14,26,40,.05);
}
.rival-cell {
  padding: .85rem .55rem .75rem;
  border-inline-start: 1px solid rgba(14,26,40,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 78px;
}
.rival-cell--win {
  background: linear-gradient(180deg, #fff8e4, #fffdf6);
}
.rival-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.rival-cell--weak .rival-pill {
  color: #7a2430;
  background: #fde8eb;
}
.rival-cell--mid .rival-pill {
  color: #6a4d12;
  background: #f7efd4;
}
.rival-cell--strong .rival-pill {
  color: #14532d;
  background: #dcfce7;
}
.rival-cell--win .rival-pill {
  color: #7a4e00;
  background: #ffe7a3;
  box-shadow: inset 0 0 0 1px rgba(201,162,39,.35);
}
.rival-bar {
  width: min(78px, 72%);
  height: 7px;
  border-radius: 999px;
  background: rgba(14,26,40,.08);
  position: relative;
  overflow: hidden;
}
.rival-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v, 0) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, #9aa8b8, #6b7c90);
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.rival-cell--mid .rival-bar::after {
  background: linear-gradient(90deg, #d2b45a, #b08a1c);
}
.rival-cell--strong .rival-bar::after {
  background: linear-gradient(90deg, #3d9b62, #1f7a45);
}
.rival-cell--win .rival-bar::after {
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-deep));
}
.rival-wins {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.rival-win {
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 18px;
  background: #06182e;
  color: #fff;
  border: 1px solid rgba(201,162,39,.28);
  position: relative;
  overflow: hidden;
}
.rival-win::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
}
.rival-win strong {
  display: block;
  color: var(--gold-soft);
  font-size: .98rem;
  margin-bottom: .35rem;
}
.rival-win p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .86rem;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .rival-wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rival-heads,
  .rival-row {
    grid-template-columns: minmax(130px, 1.2fr) repeat(4, minmax(72px, 1fr));
  }
  .rival-feat { font-size: .84rem; padding: .85rem .7rem; }
  .rival-head { font-size: .74rem; padding: .75rem .35rem; }
}
@media (max-width: 720px) {
  .rival-stage { border-radius: 18px; }
  .rival-heads { position: static; }
  .rival-heads,
  .rival-row {
    grid-template-columns: 1fr;
  }
  .rival-heads__feat { display: none; }
  .rival-head {
    display: none;
  }
  .rival-row {
    padding: .85rem .9rem 1rem;
    gap: .55rem;
  }
  .rival-feat {
    border: 0;
    padding: 0 0 .15rem;
  }
  .rival-cell {
    border: 0;
    flex-direction: row;
    justify-content: space-between;
    min-height: 0;
    padding: .45rem .55rem;
    border-radius: 12px;
    background: #f3f6fa;
  }
  .rival-cell::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    flex: 1;
    text-align: right;
  }
  .rival-cell--win::before {
    color: #7a4e00;
    font-weight: 800;
  }
  .rival-cell--win {
    background: #fff6d8;
    box-shadow: inset 0 0 0 1px rgba(201,162,39,.28);
  }
  .rival-bar { width: 64px; }
  .rival-wins { grid-template-columns: 1fr; }
}

/* ===== Guide app tour timeline ===== */
.guide-hero .page-hero__inner {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}
.guide-hero .hero__badge {
  position: relative;
  z-index: 1;
  margin-bottom: .35rem;
  line-height: 1.5;
}
.guide-hero .page-hero h1 {
  margin-top: 1rem;
  line-height: 1.55;
}
.guide-tour {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(201,162,39,.12), transparent 55%),
    radial-gradient(ellipse 60% 35% at 0% 20%, rgba(20,62,102,.08), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f8 40%, #f7f9fc 100%);
}
.guide-tour .section__head .eyebrow {
  position: relative;
  z-index: 1;
  line-height: 1.5;
  margin-bottom: .85rem;
}
.guide-tour .section__head h2 {
  line-height: 1.55;
}
.gtour-nav {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .45rem .4rem;
  margin: 0 0 1.75rem;
  scrollbar-width: thin;
  position: sticky;
  top: .55rem;
  z-index: 8;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(20,62,102,.08);
  box-shadow: 0 12px 28px rgba(6,24,46,.08);
}
.gtour-nav__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .9rem .4rem .4rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--navy-800);
  background: #f3f6fa;
  border: 1px solid transparent;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .3s ease, color .3s ease, box-shadow .3s ease;
}
.gtour-nav__item:hover,
.gtour-nav__item.is-active {
  background: #06182e;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 18px rgba(6,24,46,.18);
}
.gtour-nav__num {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8c65a, #c9a227);
  color: #06182e;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}
.gtour-nav__item.is-active .gtour-nav__num,
.gtour-nav__item:hover .gtour-nav__num {
  background: #fff;
  animation: gtour-pop .45s cubic-bezier(.22,1,.36,1);
}
.gtour-nav__label {
  line-height: 1.4;
  padding-block: .1rem;
}
.gtour-rail {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: .5rem 1rem;
  padding-inline-end: .25rem;
}
.gtour-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 1.15rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201,162,39,.2), rgba(201,162,39,.9), rgba(20,62,102,.55), rgba(201,162,39,.25));
  transform-origin: top;
  animation: gtour-line 1.4s ease both;
}
.gtour-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.6rem 2rem;
  align-items: center;
  padding-inline-start: 2.85rem;
  opacity: 0;
  transform: translateY(36px) scale(.985);
  filter: blur(2px);
  transition:
    opacity .85s cubic-bezier(.22,1,.36,1),
    transform .85s cubic-bezier(.22,1,.36,1),
    filter .85s ease;
}
.gtour-step.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.gtour-step--flip .gtour-step__media { order: 2; }
.gtour-step--flip .gtour-step__copy { order: 1; }
.gtour-step__marker {
  position: absolute;
  inset-inline-start: .4rem;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0d78a, #c9a227);
  color: #06182e;
  font-weight: 900;
  font-size: .85rem;
  line-height: 1;
  box-shadow: 0 0 0 6px rgba(244,247,251,.95), 0 8px 18px rgba(201,162,39,.35);
  z-index: 2;
}
.gtour-step.is-in .gtour-step__marker {
  animation: gtour-pulse 2.4s ease-in-out infinite;
}
.gtour-step__media {
  display: grid;
  gap: .85rem;
  justify-items: center;
}
.gtour-phone {
  width: min(100%, 280px);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #0b2748, #06182e 55%, #143e66);
  box-shadow:
    0 24px 50px rgba(6,24,46,.28),
    inset 0 0 0 1px rgba(255,255,255,.12);
  position: relative;
  transform: perspective(900px) rotateY(5deg) translateY(12px);
  transition: transform .7s cubic-bezier(.22,1,.36,1), box-shadow .55s ease;
}
.gtour-step--flip .gtour-phone {
  transform: perspective(900px) rotateY(-5deg) translateY(12px);
}
.gtour-step.is-in .gtour-phone {
  transform: perspective(900px) rotateY(0) translateY(0);
  animation: gtour-float 5.5s ease-in-out infinite;
}
.gtour-phone__notch {
  width: 38%;
  height: 10px;
  margin: 2px auto 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
}
.gtour-phone__screen {
  border-radius: 18px;
  overflow: hidden;
  background: #0a1628;
  aspect-ratio: 9 / 19.5;
  position: relative;
}
.gtour-phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.gtour-step.is-in .gtour-phone__screen::after {
  animation: gtour-shine 2.8s ease .4s both;
}
.gtour-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity .4s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.gtour-phone:hover {
  box-shadow: 0 30px 60px rgba(6,24,46,.34), inset 0 0 0 1px rgba(232,198,90,.25);
}
.gtour-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  max-width: 300px;
}
.gtour-thumb {
  width: 52px;
  height: 70px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 4px 12px rgba(6,24,46,.1);
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(10px);
}
.gtour-step.is-in .gtour-thumb {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + .2s);
}
.gtour-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.gtour-thumb:hover { transform: translateY(-3px) scale(1.04); }
.gtour-thumb.is-active {
  border-color: #c9a227;
  box-shadow: 0 0 0 2px rgba(201,162,39,.28), 0 8px 16px rgba(201,162,39,.2);
}
.gtour-step__copy {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(20,62,102,.08);
  border-radius: 22px;
  padding: 1.4rem 1.45rem 1.5rem;
  box-shadow: 0 16px 40px rgba(6,24,46,.06);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1) .12s, transform .8s cubic-bezier(.22,1,.36,1) .12s;
}
.gtour-step--flip .gtour-step__copy {
  transform: translateX(-18px);
}
.gtour-step.is-in .gtour-step__copy {
  opacity: 1;
  transform: none;
}
.gtour-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .8rem;
  border-radius: 999px;
  background: rgba(201,162,39,.16);
  color: #7a4e00;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: .75rem;
  white-space: nowrap;
}
.gtour-step__copy h3 {
  margin: 0 0 .65rem;
  color: var(--navy-900);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
}
.gtour-step__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  margin-top: 1.15rem;
  padding-top: .95rem;
  border-top: 1px solid rgba(14, 26, 40, .08);
}
.gtour-step__pos {
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
  min-width: 4.5rem;
  text-align: center;
}
.gtour-step__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 26, 40, .12);
  background: #fff;
  color: var(--navy-900);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.gtour-step__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, .45);
  box-shadow: 0 8px 18px rgba(3, 11, 22, .08);
  color: var(--navy-900);
}
.gtour-step__btn--next {
  background: linear-gradient(135deg, #0b2748, #143e66);
  border-color: transparent;
  color: #fff;
}
.gtour-step__btn--next:hover {
  color: var(--gold-soft);
  box-shadow: 0 10px 22px rgba(6, 24, 46, .22);
}
.gtour-step__btn--ghost {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.gtour-lead {
  margin: 0 0 1.05rem;
  color: #3d5166;
  line-height: 1.9;
  font-size: .98rem;
}
.gtour-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .6rem;
}
.gtour-points li {
  position: relative;
  padding-block: .65rem;
  padding-inline: 2.15rem .95rem;
  border-radius: 12px;
  background: #f5f8fc;
  color: #1a2d42;
  font-size: .9rem;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(12px);
}
.gtour-step.is-in .gtour-points li {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 90ms + .28s);
}
.gtour-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: .8rem;
  top: 50%;
  width: .72rem;
  height: .72rem;
  margin-top: -.36rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8c65a, #0e4d2c);
  box-shadow: 0 0 0 3px rgba(14,77,44,.12);
  flex-shrink: 0;
}
.gtour-finale {
  position: relative;
  margin-top: 2.75rem;
  padding: 2.5rem 1.5rem 2.3rem;
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(145deg, #06182e 0%, #0b2748 48%, #143e66 100%);
  color: #fff;
  box-shadow: 0 28px 60px rgba(6,24,46,.28);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.gtour-finale.is-in {
  opacity: 1;
  transform: none;
}
.gtour-finale__glow {
  position: absolute;
  inset: -40% auto auto 20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(232,198,90,.28), transparent 65%);
  pointer-events: none;
  animation: gtour-glow 4s ease-in-out infinite;
}
.gtour-finale__drop {
  position: relative;
  margin: 0 0 .65rem;
  color: #e8c65a;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.6;
}
.gtour-finale h2 {
  position: relative;
  margin: 0 0 .75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.55;
}
.gtour-finale > p {
  position: relative;
  margin: 0 auto;
  max-width: 36rem;
  color: rgba(255,255,255,.82);
  line-height: 1.9;
}
.gtour-finale .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.gtour-finale .btn-row .btn {
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.gtour-finale .btn-row .btn:hover {
  transform: translateY(-3px);
}
@keyframes gtour-line {
  from { transform: scaleY(0); opacity: .2; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes gtour-float {
  0%, 100% { transform: perspective(900px) rotateY(0) translateY(0); }
  50% { transform: perspective(900px) rotateY(0) translateY(-8px); }
}
@keyframes gtour-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(244,247,251,.95), 0 8px 18px rgba(201,162,39,.35); }
  50% { box-shadow: 0 0 0 10px rgba(232,198,90,.18), 0 10px 22px rgba(201,162,39,.45); }
}
@keyframes gtour-shine {
  to { transform: translateX(130%); }
}
@keyframes gtour-pop {
  0% { transform: scale(.7); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes gtour-glow {
  0%, 100% { opacity: .7; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(8%); }
}
@media (max-width: 900px) {
  .gtour-rail::before { inset-inline-start: .75rem; }
  .gtour-step,
  .gtour-step--flip {
    grid-template-columns: 1fr;
    padding-inline-start: 2.25rem;
  }
  .gtour-step--flip .gtour-step__media,
  .gtour-step--flip .gtour-step__copy { order: initial; }
  .gtour-phone,
  .gtour-step--flip .gtour-phone,
  .gtour-step.is-in .gtour-phone {
    transform: none;
    width: min(100%, 260px);
    animation: none;
  }
  .gtour-step.is-in .gtour-phone {
    animation: gtour-float 5.5s ease-in-out infinite;
  }
  .gtour-step__marker {
    inset-inline-start: 0;
    width: 1.7rem;
    height: 1.7rem;
    font-size: .75rem;
  }
  .gtour-step__controls { gap: .45rem; }
  .gtour-step__btn { padding: .5rem .8rem; font-size: .84rem; }
  .gtour-step__pos { width: 100%; order: -1; margin-bottom: .1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gtour-step,
  .gtour-phone,
  .gtour-nav__item,
  .gtour-step__copy,
  .gtour-points li,
  .gtour-thumb,
  .gtour-finale,
  .gtour-rail::before {
    animation: none !important;
    transition: none !important;
  }
  .gtour-step,
  .gtour-step__copy,
  .gtour-points li,
  .gtour-thumb,
  .gtour-finale {
    opacity: 1;
    transform: none;
    filter: none;
  }
}






/* ===== Auth lightbox ===== */
.auth-lb {
  position: fixed; inset: 0; z-index: 5600;
  display: grid; place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.auth-lb[hidden] { display: none !important; }
.auth-lb__scrim {
  position: absolute; inset: 0;
  background: rgba(3, 12, 24, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: authScrimIn .28s ease;
}
.auth-lb__dialog {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232,198,90,.16), transparent 50%),
    linear-gradient(165deg, #0c2744 0%, #071a31 55%, #061426 100%);
  border: 1px solid rgba(245, 225, 154, .22);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
  color: #edf4ff;
  padding: 1.25rem 1.25rem 1.35rem;
  animation: authDialogIn .42s cubic-bezier(.22,1,.36,1);
}
.auth-lb__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  background: radial-gradient(ellipse 72% 42% at 100% 0%, rgba(245, 225, 154, .1), transparent 68%);
}
.auth-lb__main,
.auth-lb__welcome { position: relative; z-index: 1; }
.auth-lb.is-closing .auth-lb__dialog { animation: authDialogOut .22s ease forwards; }
.auth-lb.is-closing .auth-lb__scrim { animation: authScrimOut .22s ease forwards; }
@keyframes authScrimIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes authScrimOut { to { opacity: 0 } }
@keyframes authDialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes authDialogOut {
  to { opacity: 0; transform: translateY(10px) scale(.96); }
}
.auth-lb__x {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: .18s ease;
}
.auth-lb__x:hover { background: rgba(255,255,255,.12); transform: rotate(90deg); }
.auth-lb__brand {
  display: flex; align-items: center; gap: .75rem;
  margin: .15rem 2.2rem .95rem 0;
}
.auth-lb__brand img {
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.auth-lb__brand strong { display: block; font-size: 1.05rem; color: var(--gold-soft); }
.auth-lb__brand span { display: block; font-size: .78rem; color: rgba(255,255,255,.62); font-weight: 600; }
.auth-lb__tabs {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .25rem; padding: .28rem;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  margin-bottom: 1rem;
}
.auth-lb__tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; background: transparent; color: rgba(255,255,255,.7);
  font: inherit; font-weight: 800; font-size: .92rem;
  padding: .72rem .5rem; border-radius: 11px; cursor: pointer;
  transition: color .2s ease;
}
.auth-lb__tab.is-active { color: #06182e; }
.auth-lb__tab-ink {
  position: absolute; top: .28rem; bottom: .28rem; width: calc(50% - .28rem);
  right: .28rem; left: auto;
  border-radius: 11px;
  background: linear-gradient(135deg, #f5e19a, #c9a227);
  box-shadow: 0 8px 18px rgba(201,162,39,.35);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.auth-lb__tabs[data-tab="register"] .auth-lb__tab-ink {
  transform: translateX(-100%);
}
.auth-lb__panels { position: relative; overflow: hidden; }
.auth-lb__panel {
  animation: authPanelIn .34s cubic-bezier(.22,1,.36,1);
}
.auth-lb__panel[hidden] { display: none !important; }
@keyframes authPanelIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
.auth-lb__panel[data-auth-panel="login"].is-active {
  animation-name: authPaneInRtl;
}
@keyframes authPaneInRtl {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
.auth-lb__modes {
  display: flex; gap: .35rem; margin-bottom: .85rem;
}
.auth-lb__modes button {
  flex: 1; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.75);
  font: inherit; font-size: .82rem; font-weight: 700;
  padding: .5rem .4rem; border-radius: 10px; cursor: pointer;
}
.auth-lb__modes button.is-active {
  color: var(--gold-soft);
  border-color: rgba(232,198,90,.35);
  background: rgba(232,198,90,.1);
}
.auth-lb__form label {
  display: block; margin: .55rem 0 .28rem;
  font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.78);
}
.auth-lb__field {
  display: flex; align-items: center; gap: .55rem;
  padding: 0 .85rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-lb__field:focus-within {
  border-color: rgba(232,198,90,.55);
  box-shadow: 0 0 0 3px rgba(232,198,90,.15);
}
.auth-lb__field svg { flex: 0 0 auto; opacity: .7; color: var(--gold-soft); }
.auth-lb__field input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; color: #fff;
  font: inherit; padding: .85rem 0; outline: none;
}
.auth-lb__field input::placeholder { color: rgba(255,255,255,.35); }
.auth-lb__submit {
  width: 100%; margin-top: 1.05rem;
  box-shadow: 0 12px 28px rgba(201,162,39,.32);
}
.auth-lb__submit.is-busy { opacity: .72; pointer-events: none; }
.auth-lb__err {
  margin: 0 0 .7rem; padding: .7rem .85rem;
  border-radius: 12px;
  background: rgba(220, 60, 70, .16);
  border: 1px solid rgba(255,120,130,.28);
  color: #ffd4d8; font-size: .88rem; font-weight: 700;
}
.auth-lb__err[hidden] { display: none !important; }
.otp-boxes {
  display: flex;
  justify-content: center;
  gap: .4rem;
  direction: ltr;
  margin: .15rem 0 .9rem;
}
.otp-box {
  flex: 1 1 0;
  width: 2.4rem;
  max-width: 2.7rem;
  height: 3rem;
  min-width: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(232, 198, 90, .48);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-align: center;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  caret-color: var(--gold-soft);
}
.otp-box:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(232, 198, 90, .22);
  background: rgba(232, 198, 90, .08);
}
.auth-panel .otp-box {
  background: #fff;
  color: var(--navy-900);
  border-color: #d5c07a;
  caret-color: var(--navy-800);
}
.auth-panel .otp-box:focus {
  border-color: var(--gold);
  background: #fffdf6;
}
@media (max-width: 420px) {
  .otp-boxes { gap: .28rem; }
  .otp-box { height: 2.65rem; font-size: 1.05rem; border-radius: 10px; }
}
.auth-lb__hint {
  margin: 0 0 .7rem; color: rgba(255,255,255,.72); font-size: .88rem;
}
.auth-lb__row {
  display: flex; justify-content: space-between; gap: .5rem; margin-top: .7rem;
}
.auth-lb__linkbtn,
.auth-lb__foot a {
  border: 0; background: none; color: var(--gold-soft);
  font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
  text-decoration: none; padding: 0;
}
.auth-lb__foot { margin: .95rem 0 0; text-align: center; }
.auth-lb__welcome {
  text-align: center; padding: 1.4rem .4rem 0.6rem;
  animation: authDialogIn .45s cubic-bezier(.22,1,.36,1);
}
.auth-lb__welcome[hidden] { display: none !important; }
.auth-lb__welcome-ico {
  margin: 0 auto .9rem;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(232,198,90,.12);
  box-shadow: 0 0 0 8px rgba(232,198,90,.08);
  animation: authPop .55s cubic-bezier(.22,1,.36,1);
}
@keyframes authPop {
  from { transform: scale(.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.auth-lb__welcome h2,
.auth-lb__welcome-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  line-height: 1.7;
  font-weight: 800;
  color: var(--gold-soft);
  text-align: center;
}
.auth-lb__welcome p {
  margin: 0 0 1.2rem; color: rgba(255,255,255,.72); font-weight: 600;
}
.auth-lb__welcome-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem;
}
.auth-lb__btn-intro {
  color: #fff !important;
  border: 1px solid rgba(245, 225, 154, .35);
  background: rgba(255,255,255,.06);
}
.auth-lb__btn-intro:hover {
  background: rgba(232,198,90,.12);
  border-color: rgba(232,198,90,.55);
}
.auth-lb__continue { min-width: 9rem; }
body.auth-lb-open { overflow: hidden; }
@media (max-width: 980px) {
  .nav__more { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-lb__dialog, .auth-lb__scrim, .auth-lb__panel, .auth-lb__tab-ink, .nav__more-drop {
    animation: none !important; transition: none !important;
  }
}

/* ===== Bazaar Badge & Download UI ===== */
.btn-bazaar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none !important;
  background: transparent;
  padding: 0;
  border: 0;
  cursor: pointer;
  line-height: 0;
  transition: transform .22s cubic-bezier(.16,1,.3,1), filter .22s cubic-bezier(.16,1,.3,1);
}
.btn-bazaar img {
  display: block;
  width: auto;
  height: 46px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .22s ease;
}
.btn-bazaar:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 10px 24px rgba(34, 197, 94, .38));
}
.btn-bazaar:active {
  transform: translateY(0) scale(.99);
}
.btn-bazaar--lg,
.btn-bazaar--lg img {
  height: 52px;
  width: 200px;
  border-radius: 16px;
  display: block;
}
.btn-bazaar--topbar img {
  height: 38px;
}
@media (max-width: 640px) {
  .btn-bazaar img { height: 42px; }
  .btn-bazaar--topbar img { height: 34px; }
}

/* هماهنگی کامل انحنای گوشه‌ها و ابعاد دکمه‌های هدر صفحه اصلی */
.hero .btn-row {
  align-items: center;
  gap: .75rem;
}
.hero .btn-row .btn,
.hero .btn-row .btn-bazaar,
.hero .btn-row .btn-bazaar img {
  border-radius: 14px !important;
}
.hero .btn-row .btn {
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 1.25rem;
}
.hero .btn-row .btn-bazaar img {
  height: 50px;
  width: auto;
}

/* هماهنگی ابعاد دکمه‌های باکس‌های دانلود در پایین صفحه اصلی */
.btn-direct-download--card {
  width: 200px !important;
  max-width: 200px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 .75rem !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  border-radius: 14px !important;
  margin: 0 auto !important;
}
.btn-direct-download--card .dl-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}
.btn-direct-download--card .btn-direct-download__txt strong {
  font-size: .84rem !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.btn-direct-download--card .btn-direct-download__txt small {
  font-size: .68rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.btn-bazaar--lg,
.btn-bazaar--lg img {
  width: 200px !important;
  max-width: 200px !important;
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 auto !important;
}

.panel--center .btn-direct-download {
  width: 200px;
  height: 52px;
  padding: 0 .85rem;
  border-radius: 14px;
  box-sizing: border-box;
  margin: 0 auto;
}

.btn-direct-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .75rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 25px rgba(5, 150, 105, .35);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s cubic-bezier(.16,1,.3,1);
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}
.btn-direct-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(5, 150, 105, .45);
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
}
.btn-direct-download:active {
  transform: translateY(0);
}
.btn-direct-download .dl-icon {
  flex-shrink: 0;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.btn-direct-download__txt strong {
  display: block;
  font-size: .98rem;
  line-height: 1.3;
}
.btn-direct-download__txt small {
  display: block;
  font-size: .76rem;
  opacity: .9;
  font-weight: 600;
  margin-top: 2px;
}

/* ===== Download Lightbox Modal ===== */
.download-lb {
  position: fixed; inset: 0; z-index: 5600;
  display: grid; place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.download-lb[hidden] { display: none !important; }
.download-lb__scrim {
  position: absolute; inset: 0;
  background: rgba(3, 12, 24, .75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dlScrimIn .28s ease;
}
.download-lb__dialog {
  position: relative; z-index: 1;
  width: min(520px, 100%);
  max-height: min(94vh, 760px);
  overflow-y: auto;
  border-radius: 24px;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(201, 162, 39, .18), transparent 50%),
    linear-gradient(165deg, #0d2847 0%, #081a31 55%, #051325 100%);
  border: 1px solid rgba(245, 225, 154, .3);
  box-shadow: 0 32px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05) inset;
  color: #edf4ff;
  padding: 1.6rem 1.4rem 1.4rem;
  animation: dlDialogIn .4s cubic-bezier(.22,1,.36,1);
}
.download-lb.is-closing .download-lb__dialog { animation: dlDialogOut .2s ease forwards; }
.download-lb.is-closing .download-lb__scrim { animation: dlScrimOut .2s ease forwards; }
@keyframes dlScrimIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes dlScrimOut { to { opacity: 0 } }
@keyframes dlDialogIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: none; }
}
@keyframes dlDialogOut {
  to { opacity: 0; transform: translateY(12px) scale(.97); }
}

.download-lb__x {
  position: absolute; top: .9rem; left: .9rem;
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: .18s ease;
}
.download-lb__x:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }

.download-lb__header {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1.1rem; padding-left: 2.2rem;
}
.download-lb__icon img {
  width: 50px; height: 50px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border: 1px solid rgba(201,162,39,.4);
  background: #fff;
}
.download-lb__header h3 {
  margin: 0; font-size: 1.25rem; font-weight: 900;
  color: var(--gold-soft); line-height: 1.35;
}
.download-lb__header p {
  margin: .25rem 0 0; font-size: .84rem;
  color: rgba(255,255,255,.75); font-weight: 600;
}
.download-lb__lead {
  margin: 0 0 1.1rem; font-size: .92rem;
  color: rgba(255,255,255,.9); font-weight: 700;
}

.download-lb__cards {
  display: grid; gap: 1rem; margin-bottom: 1.3rem;
}
.dl-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 1.2rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.dl-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(201, 162, 39, .4);
}
.dl-card--bazaar {
  border-color: rgba(34, 197, 94, .3);
  background: linear-gradient(145deg, rgba(34, 197, 94, .08), rgba(6, 24, 46, .4));
}
.dl-card--direct {
  border-color: rgba(201, 162, 39, .25);
  background: linear-gradient(145deg, rgba(201, 162, 39, .06), rgba(6, 24, 46, .4));
}
.dl-card__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: .45rem;
}
.dl-card__header h4 {
  margin: 0; font-size: 1.05rem; font-weight: 900; color: #fff;
}
.dl-card__tag {
  font-size: .72rem; font-weight: 800; padding: .2rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dl-card__tag--bazaar {
  background: rgba(34, 197, 94, .2); color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .35);
}
.dl-card__tag--direct {
  background: rgba(201, 162, 39, .2); color: var(--gold-soft);
  border: 1px solid rgba(201, 162, 39, .35);
}
.dl-card__desc {
  margin: 0 0 1rem; font-size: .84rem; line-height: 1.7;
  color: rgba(255, 255, 255, .8);
}
.dl-card__action {
  display: flex; justify-content: center;
}

.download-lb__badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.download-lb__badges span {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 700;
  color: rgba(255, 255, 255, .75);
}
.download-lb__badges svg {
  color: #4ade80; flex-shrink: 0;
}

body.download-lb-open {
  overflow: hidden;
}

/* About */
.about-layout { display: grid; gap: 1.25rem; }
.about-block h2 { margin-top: 0; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-card h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.about-card p { margin: 0; line-height: 1.75; color: var(--muted); }
.about-principles { margin-top: .5rem; }
.about-principles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}
.about-principle {
  border: 1px solid rgba(6, 24, 46, .08);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, #fff, #f7fafc);
}
.about-principle strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--navy-900);
  font-size: .95rem;
}
.about-principle p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.about-official h2 { margin-top: 0; }
@media (max-width: 960px) {
  .about-grid, .about-principles__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .about-grid, .about-principles__grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { display: grid; gap: .75rem; }
.faq-item {
  border: 1px solid rgba(6, 24, 46, .1);
  border-radius: 14px;
  background: #fff;
  padding: .15rem 1rem 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding: .95rem 0;
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__body { padding: 0 0 1rem; color: var(--muted); line-height: 1.8; }
.faq-item__body p { margin: 0; }
.legal-doc h2 { margin-top: 1.4rem; font-size: 1.05rem; }
.legal-doc h2:first-child { margin-top: 0; }

/* Bazaar reviews */
.bazaar-reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.bazaar-review-card {
  border: 1px solid rgba(6, 24, 46, .08);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(165deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: 0 10px 28px rgba(6, 24, 46, .05);
}
.bazaar-review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}
.bazaar-review-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 800;
  color: #0b5cab;
  background: rgba(11, 92, 171, .1);
  border-radius: 999px;
  padding: .28rem .7rem;
}
.bazaar-review-card__stars { color: #f0b429; letter-spacing: .08em; }
.bazaar-review-card blockquote {
  margin: 0 0 .9rem;
  line-height: 1.8;
  color: var(--navy-900);
  font-weight: 600;
}
.bazaar-review-card footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .75rem;
}
.bazaar-review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: #e8eef5;
}
.bazaar-review-card footer > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.bazaar-review-card footer strong { font-size: .95rem; }
.bazaar-review-card footer span { color: var(--muted); font-size: .82rem; }
@media (max-width: 720px) {
  .bazaar-reviews__grid { grid-template-columns: 1fr; }
}


