@import url('/static/fonts/peyda/peyda.css');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&display=swap');

:root {
  --ink: #0c181f;
  --ink-soft: #3d4f5a;
  --cream: #f3efe8;
  --paper: #fffdf9;
  --teal: #0a6b6f;
  --teal-deep: #074f52;
  --teal-soft: #dff2f2;
  --gold: #b8955f;
  --gold-bright: #d4b483;
  --gold-soft: #f2e8d8;
  --line: rgba(12, 24, 31, 0.09);
  --danger: #b42318;
  --ok: #0f7a4c;
  --shadow: 0 24px 60px rgba(12, 24, 31, 0.1);
  --radius: 20px;
  --font-fa: 'Peyda', 'Vazirmatn', Tahoma, sans-serif;
  --font-en: 'Peyda', 'Cinzel', Georgia, serif;
  --font-display: 'Cinzel', 'Peyda', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-fa);
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, strong, .btn { font-family: var(--font-fa); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(10, 107, 111, .18); }

.bg-mesh {
  background:
    radial-gradient(ellipse 900px 520px at 12% -8%, rgba(10,107,111,.16), transparent 60%),
    radial-gradient(ellipse 700px 420px at 92% 4%, rgba(184,149,95,.2), transparent 55%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(10,107,111,.06), transparent 50%),
    linear-gradient(165deg, #f7f3ec 0%, #ebe4d8 100%);
  background-attachment: fixed;
}

.container { width: min(1140px, calc(100% - 2rem)); margin-inline: auto; }

/* ——— Nav ——— */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 0; gap: 1rem;
  position: relative; z-index: 30;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-text .name { font-size: clamp(1.05rem, 2.2vw, 1.28rem); letter-spacing: -.01em; }
.brand-text .name span {
  letter-spacing: .18em;
}
.brand img {
  width: 52px; height: 52px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(10,107,111,.18);
  transition: transform .45s var(--ease);
}
.brand:hover img { transform: scale(1.04) rotate(-2deg); }
.brand .name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand .name span {
  display: block; font-family: var(--font-en); font-size: .7rem; font-weight: 500;
  color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; margin-top: .05rem;
}
.nav-links { display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.nav-links > a:not(.btn) {
  color: var(--ink-soft); font-weight: 500; font-size: .94rem;
  position: relative; padding-bottom: .15rem;
}
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--teal); transition: width .35s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--teal); }
.nav-links > a:not(.btn):hover::after { width: 100%; left: 0; right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: none; border-radius: 999px; padding: .78rem 1.35rem; cursor: pointer;
  font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff; box-shadow: 0 10px 28px rgba(10,107,111,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(10,107,111,.35); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink); box-shadow: 0 10px 24px rgba(184,149,95,.28);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,253,249,.55); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-danger { background: #fdeceb; color: var(--danger); }
.btn-sm { padding: .48rem .95rem; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-lg { padding: .95rem 1.75rem; font-size: 1.02rem; }

/* ——— Hero: one composition, brand-first, full-bleed ——— */
.hero-bleed {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-bleed-slim { min-height: auto; }
.hero-bleed-slim .hero-stage {
  padding: 1.1rem 0 3rem;
  align-items: center;
}
.hero-logo-mark {
  width: min(280px, 58vw);
  height: auto;
  display: block;
  margin: .2rem auto 1.15rem;
  filter:
    drop-shadow(0 2px 0 rgba(255,248,234,.35))
    drop-shadow(0 18px 42px rgba(12,24,31,.28));
  image-rendering: -webkit-optimize-contrast;
}
.hero-fa-title {
  font-family: var(--font-fa);
  font-weight: 900;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 auto .55rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.5), 0 12px 30px rgba(12,24,31,.12);
}
.hero-lead {
  color: var(--ink);
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  max-width: 32rem;
  margin: 0 auto 1.45rem;
  line-height: 1.9;
  opacity: .92;
}
.brand-title {
  gap: 0;
  text-decoration: none;
}
.brand-shine {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: .08em;
  text-transform: none;
  line-height: 1.1;
  background-image: linear-gradient(
    105deg,
    #6a4f28 0%,
    #b8955f 14%,
    #f8edd4 28%,
    #d4b483 40%,
    #fff8ea 50%,
    #0a6b6f 62%,
    #f0e0c2 74%,
    #b8955f 88%,
    #8a6a3a 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(184,149,95,.45)) drop-shadow(0 10px 24px rgba(12,24,31,.18));
  animation: titleShine 4.2s ease-in-out infinite;
}
.home-lux .nav-links > a:not(.btn) {
  font-weight: 700;
  color: var(--ink);
}
.home-lux .btn {
  font-weight: 800;
}
.home-lux .contact-band h2 {
  font-family: var(--font-fa);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
}
.home-lux .contact-band p,
.home-lux .contact-band strong {
  font-weight: 700;
}
.home-lux .contact-band .inner p {
  font-size: 1.05rem;
  opacity: .95;
}
.brand-mark img {
  width: 42px; height: 42px; object-fit: contain;
  background: transparent !important; padding: 0; border-radius: 0;
}
.hero-bleed .nav-wrap {
  position: relative; z-index: 5;
  background: linear-gradient(180deg, rgba(243,239,232,.82), transparent);
}
.hero-stage {
  flex: 1; position: relative; z-index: 2;
  display: grid; align-items: start; justify-items: center;
  padding: 1.25rem 0 4.5rem;
}
.hero-visual {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(243,239,232,.94) 0%, rgba(243,239,232,.72) 38%, rgba(243,239,232,.2) 68%, transparent 100%),
    linear-gradient(180deg, transparent 55%, rgba(12,24,31,.35) 100%),
    radial-gradient(ellipse 70% 80% at 72% 42%, #0a6b6f 0%, #0c181f 70%);
}
.hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 68% 38%, rgba(212,180,131,.35), transparent 32%),
    radial-gradient(circle at 82% 70%, rgba(10,107,111,.4), transparent 40%);
  animation: aura 14s ease-in-out infinite alternate;
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
  opacity: .7; mix-blend-mode: soft-light;
}
@keyframes aura {
  from { transform: scale(1) translate(0,0); opacity: .9; }
  to { transform: scale(1.08) translate(-2%, 2%); opacity: 1; }
}

.hero-copy { max-width: 620px; position: relative; z-index: 2; }
.hero-copy-center {
  width: min(1100px, 100%);
  max-width: none;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: .35rem;
}
.hero-lux {
  margin: 0 0 1.75rem;
  line-height: .9;
}
.hero-lux .en {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 11.5vw, 8.4rem);
  letter-spacing: .035em;
  line-height: .9;
  background-image: linear-gradient(
    105deg,
    #6a4f28 0%,
    #b8955f 12%,
    #f5e6c8 22%,
    #d4b483 32%,
    #0a6b6f 48%,
    #f0e0c2 58%,
    #b8955f 72%,
    #fff8ea 82%,
    #8a6a3a 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(184,149,95,.35)) drop-shadow(0 14px 36px rgba(12,24,31,.22));
  animation: titleShine 4.2s ease-in-out infinite;
}
@keyframes titleShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-lux::after {
  content: '';
  display: block;
  width: min(280px, 48vw);
  height: 2px;
  margin: 1.35rem auto 0;
  background: linear-gradient(90deg, transparent, #f0e0c2, var(--gold), #f0e0c2, transparent);
  opacity: .95;
  box-shadow: 0 0 18px rgba(212,180,131,.55);
}
@media (max-width: 640px) {
  .hero-stage { padding-top: .5rem; }
  .hero-lux .en {
    font-size: clamp(3.05rem, 14.5vw, 4.2rem);
    letter-spacing: .02em;
    line-height: .92;
  }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 140px; }
}
.hero-cta {
  display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; justify-content: center;
}
.hero-slogan {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500; color: var(--ink);
  margin: .9rem 0 1.1rem;
}
.hero-copy .lead {
  color: var(--ink-soft); font-size: 1.05rem; max-width: 32rem;
  margin-bottom: 1.75rem; font-weight: 400;
}
.scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 3; font-family: var(--font-en); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(12,24,31,.45);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ——— Sections ——— */
.section { padding: 5rem 0; position: relative; }
.section-head { margin-bottom: 2.4rem; max-width: 36rem; }
.section-head .eyebrow {
  font-family: var(--font-en); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .5rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem); letter-spacing: -.025em; line-height: 1.25;
}
.section-head p { color: var(--ink-soft); margin-top: .55rem; font-size: 1.02rem; }

.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-row {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem;
  padding: 1.55rem 0; border-bottom: 1px solid var(--line);
  align-items: start; transition: background .3s;
}
.feature-row:hover { background: rgba(255,253,249,.5); padding-right: .6rem; padding-left: .6rem; margin-inline: -.6rem; border-radius: 12px; }
.feature-row .num {
  font-family: var(--font-en); font-size: 1.1rem; font-weight: 600; color: var(--teal);
  padding-top: .15rem;
}
.feature-row h3 { font-size: 1.12rem; margin-bottom: .3rem; font-weight: 600; }
.feature-row p { color: var(--ink-soft); font-size: .96rem; max-width: 40rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
  .feature-row { grid-template-columns: 3rem 1fr; }
}

.term {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .75rem;
  transition: transform .4s var(--ease), box-shadow .4s;
  position: relative; overflow: hidden;
}
.term::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0; transition: opacity .3s;
}
.term:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.term:hover::before { opacity: 1; }
.term .meta { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; padding: .22rem .6rem; border-radius: 999px;
  background: var(--gold-soft); color: #6a5230; font-size: .76rem; font-weight: 600;
}
.chip.teal { background: var(--teal-soft); color: var(--teal-deep); }
.term h3 { font-size: 1.06rem; line-height: 1.45; }
.term .price {
  font-weight: 700; color: var(--teal); margin-top: auto;
  font-family: var(--font-en); font-size: 1.05rem;
}

.contact-band {
  padding: 3rem 0; border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(10,107,111,.92), rgba(7,79,82,.96)),
    var(--teal);
  color: #f5faf9; position: relative; overflow: hidden;
}
.contact-band::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(212,180,131,.15); top: -120px; left: -80px;
  animation: aura 10s ease-in-out infinite alternate;
}
.contact-band .inner { position: relative; z-index: 1; padding: 0 2rem; }
.contact-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.contact-band p { opacity: .85; margin-bottom: 1.2rem; }
.contact-band a:not(.btn) { color: var(--gold-bright); }
.contact-band .btn-gold { margin-top: .5rem; }
.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .contact-meta { grid-template-columns: 1fr; } }

.footer {
  border-top: 1px solid var(--line); padding: 2.8rem 0 2.2rem;
  color: var(--ink-soft); font-size: .92rem;
}
.footer .row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer strong { color: var(--ink); }

/* ——— Auth ——— */
.auth-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  position: relative; overflow: hidden;
}
.auth-shell::before {
  content: ''; position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,107,111,.14), transparent 65%);
  top: -20%; left: -15%; animation: aura 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.auth-shell::after {
  content: ''; position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,149,95,.16), transparent 65%);
  bottom: -20%; right: -10%; animation: aura 16s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.auth-card {
  width: min(440px, 100%); background: rgba(255,253,249,.88);
  border: 1px solid var(--line); border-radius: 28px; padding: 2.1rem 1.7rem;
  box-shadow: var(--shadow); backdrop-filter: blur(16px); position: relative; z-index: 1;
}
.auth-card h1 { font-size: 1.6rem; margin: .7rem 0 .35rem; letter-spacing: -.02em; }
.auth-card .sub { color: var(--ink-soft); margin-bottom: 1.5rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .38rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: .8rem .95rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,107,111,.12);
}
.alert {
  padding: .8rem .95rem; border-radius: 14px; margin-bottom: 1rem; font-size: .9rem;
}
.alert-error { background: #fdeceb; color: var(--danger); }
.alert-ok { background: #e8f7ef; color: var(--ok); }

/* ——— App shell / panels ——— */
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(185deg, #0c181f 0%, #12262e 55%, #0a3d40 100%);
  color: #dfe7ec; padding: 1.35rem 1rem; display: flex; flex-direction: column; gap: 1.1rem;
  position: relative; overflow: hidden;
}
.sidebar::before {
  content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(10,107,111,.25); top: -80px; left: -100px; pointer-events: none;
}
.sidebar .brand, .sidebar .side-nav, .sidebar .side-foot { position: relative; z-index: 1; }
.sidebar .brand img { background: #fff; }
.sidebar .brand .name { color: #fff; }
.sidebar .brand .name span { color: rgba(255,255,255,.5); }
.side-nav { display: flex; flex-direction: column; gap: .3rem; }
.side-nav a {
  padding: .75rem .9rem; border-radius: 14px; color: rgba(255,255,255,.7); font-weight: 500;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.side-nav a:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(-3px); }
.side-nav a.active {
  background: linear-gradient(135deg, rgba(10,107,111,.55), rgba(184,149,95,.25));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.side-foot { margin-top: auto; font-size: .82rem; color: rgba(255,255,255,.45); }
.main {
  padding: 1.6rem 1.5rem 2.8rem;
  background:
    radial-gradient(ellipse 600px 300px at 100% 0%, rgba(184,149,95,.08), transparent),
    var(--cream);
}
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.topbar h1 { font-size: 1.5rem; letter-spacing: -.02em; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }

/* Mobile shell bar + drawer */
.mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: linear-gradient(185deg, #0c181f 0%, #12262e 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 90;
}
.mobile-bar .mb-title { font-weight: 700; font-size: 1rem; }
.mobile-bar .mb-title span {
  display: block; font-family: var(--font-en); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase; opacity: .55; font-weight: 500;
}
.nav-toggle {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(12,24,31,.55);
  z-index: 95; backdrop-filter: blur(2px);
}
.nav-backdrop.show { display: block; }

@media (max-width: 980px) {
  .mobile-bar { display: flex; }
  .app-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .sidebar {
    position: fixed;
    top: 0; bottom: 0; right: 0;
    width: min(300px, 88vw);
    z-index: 100;
    transform: translateX(110%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 40px rgba(0,0,0,.35);
  }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .sidebar .brand { padding-top: .35rem; }
  .main {
    padding: 1rem .9rem 5.5rem;
    min-height: 60vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }
  .topbar h1 { font-size: 1.2rem; }
  .topbar .btn, .topbar a.btn {
    width: 100%;
    justify-content: center;
  }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .stat .value { font-size: 1.35rem; }
  .panel { padding: 1rem; border-radius: 16px; }
  .table-wrap, .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .side-nav a { padding: .85rem 1rem; font-size: 1rem; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.05rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease);
}
.stat:hover { transform: translateY(-3px); }
.stat::after {
  content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.stat .label { color: var(--ink-soft); font-size: .84rem; }
.stat .value { font-size: 1.7rem; font-weight: 700; margin-top: .25rem; font-family: var(--font-en); color: var(--teal-deep); }

.panel {
  background: rgba(255,253,249,.9); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; margin-bottom: 1.15rem; backdrop-filter: blur(8px);
}
.panel h2 { font-size: 1.12rem; margin-bottom: 1rem; letter-spacing: -.01em; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: right; padding: .75rem .45rem; border-bottom: 1px solid var(--line); }
.table th { color: var(--ink-soft); font-weight: 600; font-size: .82rem; }
.table tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(10,107,111,.04); }

.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.tab {
  border: 1px solid var(--line); background: rgba(255,253,249,.7); border-radius: 999px;
  padding: .5rem 1rem; cursor: pointer; font-weight: 600; transition: .25s var(--ease);
}
.tab:hover { border-color: var(--teal); color: var(--teal); }
.tab.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(10,107,111,.25);
}

.chat { display: flex; flex-direction: column; height: min(540px, 70vh); }
.chat-log { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: .75rem; padding: .5rem; }
.bubble {
  max-width: 86%; padding: .85rem 1.05rem; border-radius: 18px; font-size: .94rem;
  white-space: pre-wrap; animation: pop .35s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.bubble.bot { background: var(--teal-soft); align-self: flex-start; border-bottom-right-radius: 6px; }
.bubble.me { background: var(--gold-soft); align-self: flex-end; border-bottom-left-radius: 6px; }
.chat-form { display: flex; gap: .55rem; margin-top: .9rem; }
.chat-form input { flex: 1; border-radius: 14px; border: 1px solid var(--line); padding: .75rem 1rem; }

.quiz-q { margin-bottom: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.quiz-q .opts { display: grid; gap: .4rem; margin-top: .65rem; }
.quiz-q label {
  display: flex; gap: .5rem; align-items: flex-start; cursor: pointer;
  padding: .5rem .55rem; border-radius: 12px; transition: background .2s;
}
.quiz-q label:hover { background: var(--teal-soft); }

.studio-hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem; padding: 1.5rem 1.4rem; border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(10,107,111,.1), rgba(184,149,95,.12)),
    var(--paper);
  border: 1px solid var(--line);
}
.studio-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.studio-controls { display: flex; gap: .5rem; flex-wrap: wrap; }
.studio-controls select, .studio-controls input {
  border-radius: 999px; padding: .55rem .95rem; border: 1px solid var(--line); background: #fff;
}

/* ——— Classroom ——— */
.classroom {
  min-height: 100vh; background: #081218; color: #e8eef2; display: grid;
  grid-template-rows: auto 1fr auto; grid-template-columns: 1fr 340px;
  grid-template-areas: "top top" "stage side" "controls controls";
}
.classroom .top {
  grid-area: top; padding: 1rem 1.15rem; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, #0e1a22, #081218);
}
.classroom .stage { grid-area: stage; padding: 1rem; display: grid; grid-template-rows: 1fr 180px; gap: 1rem; }
.video-main {
  background: linear-gradient(160deg, #122029, #0a151c); border-radius: 18px; overflow: hidden;
  position: relative; min-height: 320px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.video-main video, .video-tile video { width: 100%; height: 100%; object-fit: cover; }
.video-strip { display: flex; gap: .75rem; overflow-x: auto; }
.video-tile {
  min-width: 220px; height: 160px; background: #122029; border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.tile-name {
  position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.55);
  padding: .25rem .55rem; border-radius: 8px; font-size: .78rem; backdrop-filter: blur(6px);
}
.classroom .side {
  grid-area: side; border-right: 1px solid rgba(255,255,255,.07);
  display: grid; grid-template-rows: 1fr 1fr 1fr; gap: .55rem; padding: .8rem;
  background: #0a141b;
}
.classroom .side .box {
  background: #101c25; border-radius: 16px; padding: .85rem; overflow: auto;
  border: 1px solid rgba(255,255,255,.05);
}
.classroom .side h3 { font-size: .88rem; margin-bottom: .55rem; color: var(--gold-bright); letter-spacing: .02em; }
.controls {
  grid-area: controls; display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap;
  padding: 1rem; border-top: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(0deg, #050d12, #0c171e);
}
.controls .btn { border-radius: 14px; }
.wb-canvas { width: 100%; height: 160px; background: #fff; border-radius: 12px; cursor: crosshair; }
@media (max-width: 980px) {
  .classroom { grid-template-columns: 1fr; grid-template-areas: "top" "stage" "side" "controls"; }
}

/* ——— Motion utilities ——— */
.fade-in { animation: fade .6s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: .65s var(--ease); }
.stagger.in > *:nth-child(1) { transition-delay: .05s; }
.stagger.in > *:nth-child(2) { transition-delay: .12s; }
.stagger.in > *:nth-child(3) { transition-delay: .19s; }
.stagger.in > *:nth-child(4) { transition-delay: .26s; }
.stagger.in > *:nth-child(5) { transition-delay: .33s; }
.stagger.in > *:nth-child(6) { transition-delay: .4s; }
.stagger.in > *:nth-child(7) { transition-delay: .47s; }
.stagger.in > *:nth-child(8) { transition-delay: .54s; }
.stagger.in > * { opacity: 1; transform: none; }

/* Ecosystem showcase */
.eco-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .eco-grid { grid-template-columns: 1fr; } }
.eco-card {
  display: block; padding: 1.35rem 1.2rem; border-radius: 22px;
  background: linear-gradient(160deg, #fffdf9, #f4efe6);
  border: 1px solid var(--line); transition: .35s var(--ease);
  min-height: 180px;
}
.eco-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(10,107,111,.25);
}
.eco-ico { font-size: 1.6rem; margin-bottom: .55rem; }
.eco-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.eco-card p { color: var(--ink-soft); font-size: .9rem; }

.quest-item {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.quest-bar {
  height: 6px; background: rgba(12,24,31,.08); border-radius: 99px; overflow: hidden; margin-top: .35rem;
}
.quest-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .stagger > * { opacity: 1; transform: none; }
}
