/* ===== Tuxpy — Trading Decoy Landing ===== */

:root {
  /* Dark (default) — electric aurora: magenta + cyan */
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --bg-3: #131316;
  --surface: #111114;
  --surface-2: #16161a;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --fg: #f4f1ea;
  --fg-dim: rgba(244, 241, 234, 0.62);
  --fg-faint: rgba(244, 241, 234, 0.38);
  --accent-pink: oklch(0.72 0.24 340);  /* electric magenta */
  --accent-amber: oklch(0.82 0.15 215); /* ice cyan */
  --accent-teal: oklch(0.85 0.13 195);  /* bright teal */
  --accent-soft: oklch(0.78 0.16 320);  /* lavender */
  --chip-bg: rgba(255, 255, 255, 0.04);
  --chip-bg-hover: rgba(255, 255, 255, 0.08);
  --grain-opacity: 0.5;
  --card-radius: 18px;
  --card-image: #0d0d10;
  --card-image-text: rgba(255,255,255,0.5);
  --card-image-text-dim: rgba(255,255,255,0.35);
  --card-image-grain: 0.7;
  color-scheme: dark;
}

/* Dark palette: violet (vivid violet/indigo glow) */
:root[data-theme="dark"][data-accent="violet"] {
  --accent-pink: oklch(0.65 0.25 295);
  --accent-amber: oklch(0.78 0.16 250);
  --accent-teal: oklch(0.82 0.13 200);
  --accent-soft: oklch(0.78 0.15 280);
}

/* Dark palette: emerald (trading green + teal) */
:root[data-theme="dark"][data-accent="emerald"] {
  --accent-pink: oklch(0.72 0.22 155);
  --accent-amber: oklch(0.85 0.16 175);
  --accent-teal: oklch(0.80 0.14 195);
  --accent-soft: oklch(0.78 0.15 145);
}

/* Dark palette: ember (original warm orange) */
:root[data-theme="dark"][data-accent="ember"] {
  --accent-pink: oklch(0.68 0.18 25);
  --accent-amber: oklch(0.78 0.15 65);
  --accent-teal: oklch(0.74 0.12 175);
  --accent-soft: oklch(0.78 0.14 35);
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f4f4f5;
  --bg-3: #e8e8ea;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --line: rgba(15, 17, 21, 0.07);
  --line-2: rgba(15, 17, 21, 0.12);
  --fg: #0f1115;
  --fg-dim: rgba(15, 17, 21, 0.62);
  --fg-faint: rgba(15, 17, 21, 0.38);
  --accent-pink: oklch(0.62 0.20 22);
  --accent-amber: oklch(0.72 0.16 55);
  --accent-teal: oklch(0.65 0.14 200);
  --accent-soft: oklch(0.62 0.18 28);
  --chip-bg: rgba(15, 17, 21, 0.04);
  --chip-bg-hover: rgba(15, 17, 21, 0.08);
  --grain-opacity: 0.18;
  --card-image: #ededef;
  --card-image-text: rgba(15,17,21,0.55);
  --card-image-text-dim: rgba(15,17,21,0.38);
  --card-image-grain: 0.4;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  direction: rtl;
  font-feature-settings: "ss01", "ss03";
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
  position: relative;
}

/* Page-wide aurora background — gives cards something to be transparent over */
body::before {
  content: '';
  position: fixed;
  inset: -10vh -10vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 20% 12%, color-mix(in oklab, var(--accent-pink) 28%, transparent), transparent 65%),
    radial-gradient(ellipse 600px 480px at 85% 8%, color-mix(in oklab, var(--accent-amber) 22%, transparent), transparent 65%),
    radial-gradient(ellipse 720px 540px at 80% 55%, color-mix(in oklab, var(--accent-soft) 24%, transparent), transparent 65%),
    radial-gradient(ellipse 660px 500px at 15% 78%, color-mix(in oklab, var(--accent-teal) 18%, transparent), transparent 65%),
    radial-gradient(ellipse 600px 500px at 60% 100%, color-mix(in oklab, var(--accent-pink) 18%, transparent), transparent 65%);
  filter: blur(20px);
  opacity: 1;
}
:root[data-theme="light"] body::before {
  opacity: 0.55;
  filter: blur(30px);
}

/* Latin display (Manrope for English, JetBrains Mono for ticker prices) */
.serif {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum"; }
.en { font-family: 'Manrope', sans-serif; font-weight: 600; }
.tag { font-family: 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 500; }

/* ===== Layout ===== */
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .shell { padding: 0 18px; } }

section { position: relative; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover { color: var(--fg); }
.brand-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-amber), var(--accent-pink) 70%, #2a1410);
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent-pink) 50%, transparent);
}
.brand-name-fa { font-family: 'Vazirmatn', sans-serif; font-size: 18px; font-weight: 500; }
.brand-name-en { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.nav {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
}
.nav a { color: inherit; text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--fg); }

/* Hamburger button — hidden on desktop, shown on mobile */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--surface) 40%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s, top 0.3s;
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 720px) {
  .header-login, .header-signup { display: none; }
}

/* Mobile slide-out menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.mobile-menu.open { pointer-events: auto; }
.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }
.mobile-menu-sheet {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: min(320px, 86%);
  background: color-mix(in oklab, var(--bg) 45%, transparent);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-left: 1px solid var(--line-2);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 0;
  overflow: hidden;
}
/* Soft aurora glow inside the sheet for visual interest */
.mobile-menu-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 300px 240px at 80% 0%, color-mix(in oklab, var(--accent-pink) 18%, transparent), transparent 65%),
    radial-gradient(ellipse 300px 240px at 20% 100%, color-mix(in oklab, var(--accent-amber) 12%, transparent), transparent 65%);
  opacity: 0.9;
}
.mobile-menu-sheet > * { position: relative; z-index: 2; }
/* RTL: panel slides in from the LEFT visually because right:0 is the leading edge */
[dir="rtl"] .mobile-menu-sheet {
  right: auto; left: 0;
  border-left: 0;
  border-right: 1px solid var(--line-2);
  transform: translateX(-100%);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.35);
}
.mobile-menu.open .mobile-menu-sheet { transform: translateX(0); }

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mobile-menu-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--surface) 45%, transparent);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--fg);
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  gap: 2px;
  flex: 1;
}
.mobile-menu-nav a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s;
}
.mobile-menu-nav a:hover {
  background: color-mix(in oklab, var(--surface) 50%, transparent);
}
.mobile-menu-actions {
  padding: 16px 20px 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu-actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  justify-content: center;
}

.header-actions {
  display: flex; align-items: center; gap: 14px;
}
/* iOS-style switch — pill track, single white thumb that slides;
   icon crossfades inside the thumb between sun (light) and moon (dark). */
.ios-switch {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  direction: ltr;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  -webkit-tap-highlight-color: transparent;
}
.ios-switch[data-theme="light"] {
  background: #e4e4e7;
}
.ios-switch[data-theme="dark"] {
  background: linear-gradient(135deg, #4f46e5, #1f2937);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.ios-switch:hover { filter: brightness(1.05); }
.ios-switch:active .ios-switch-thumb { width: 28px; }

.ios-switch-thumb {
  position: absolute;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.06),
    0 3px 8px rgba(0,0,0,0.15),
    0 0 0 0.5px rgba(0,0,0,0.04);
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.18s ease;
  display: grid;
  place-items: center;
}
.ios-switch[data-theme="light"] .ios-switch-thumb { left: 2px; }
.ios-switch[data-theme="dark"]  .ios-switch-thumb { left: calc(100% - 28px); }

.ios-switch-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ios-switch-icon.sun  { color: #f59e0b; }
.ios-switch-icon.moon { color: #4338ca; }

.ios-switch[data-theme="light"] .ios-switch-icon.sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.ios-switch[data-theme="light"] .ios-switch-icon.moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.ios-switch[data-theme="dark"]  .ios-switch-icon.sun  { opacity: 0; transform: rotate(90deg)  scale(0.6); }
.ios-switch[data-theme="dark"]  .ios-switch-icon.moon { opacity: 1; transform: rotate(0deg)   scale(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--surface) 22%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  color: var(--fg);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { background: color-mix(in oklab, var(--surface) 55%, transparent); transform: translateY(-1px); }
.btn > * { flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 32px color-mix(in oklab, var(--fg) 28%, transparent);
}
.btn-primary:hover { background: var(--fg); transform: translateY(-1px); box-shadow: 0 12px 40px color-mix(in oklab, var(--fg) 36%, transparent); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
  min-height: 640px;
}
.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  white-space: nowrap;
}
.hero-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-family: 'Vazirmatn', sans-serif;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
}
.hero-title .hi {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  color: color-mix(in oklab, var(--fg) 55%, var(--accent-pink));
  font-feature-settings: "ss01";
}
.hero-title .en {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: color-mix(in oklab, var(--fg) 70%, var(--accent-amber));
}
.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--fg-dim);
  max-width: 540px;
}
.hero-cta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.hero-glow-btn {
  position: relative;
  padding: 18px 36px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  font-family: 'Vazirmatn', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  white-space: nowrap;
  display: inline-block;
}
.hero-glow-btn::before {
  content: '';
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse 60% 55% at center, color-mix(in oklab, var(--fg) 35%, transparent), transparent 70%);
  z-index: -1;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.hero-side {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-side.left { justify-content: flex-end; }
.hero-side.right { justify-content: flex-start; }

.hero-card {
  position: relative;
  width: 280px;
  height: 440px;
  border-radius: 18px;
  background: var(--card-image);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(-12deg) translateX(-30px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.hero-card.right { transform: rotate(12deg) translateX(30px); }
.hero-card .aurora { position: absolute; inset: 0; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-side { display: none; }
}

.hero-coins {
  display: flex; gap: 28px; align-items: center; justify-content: center;
  margin-top: 32px;
  color: var(--fg-faint);
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}
.coin-chip { display: inline-flex; align-items: center; gap: 6px; }
.coin-chip svg { width: 16px; height: 16px; }

/* Hero aurora background */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background:
    radial-gradient(ellipse 480px 280px at 60% 50%, color-mix(in oklab, var(--accent-pink) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 380px 220px at 40% 60%, color-mix(in oklab, var(--accent-amber) 18%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ===== Aurora cards (the visual signature) ===== */
.aurora-card {
  position: relative;
  border-radius: var(--card-radius);
  background: color-mix(in oklab, var(--surface) 25%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--line-2);
  overflow: hidden;
  isolation: isolate;
}
.aurora-card .grain {
  display: none;
}
.aurora-card .blob {
  position: absolute;
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}
.aurora-card .content { position: relative; z-index: 2; padding: 28px; }

/* ===== Ticker ===== */
.ticker {
  margin: 28px 32px 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 22%, transparent);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  padding: 14px 0;
  position: relative;
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 8%, transparent),
    0 8px 32px color-mix(in oklab, var(--accent-pink) 12%, transparent);
}
/* Soft fade ONLY at the inner edges of the track, kept inside the rounded caps */
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--bg) 80%, transparent), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(-90deg, color-mix(in oklab, var(--bg) 80%, transparent), transparent);
}
@media (max-width: 720px) {
  .ticker { margin: 20px 16px 0; }
}
.ticker-track {
  display: flex; gap: 48px;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.ticker-item .sym { color: var(--fg); font-weight: 500; }
.ticker-item .pct.up { color: oklch(0.75 0.16 145); }
.ticker-item .pct.dn { color: oklch(0.68 0.20 25); }
@keyframes scroll {
  to { transform: translateX(100%); }
}

/* ===== Section frame ===== */
.section {
  padding: 120px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  display: inline-block;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Vazirmatn', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.18;
  font-weight: 400;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.section-title .hi {
  font-weight: 600;
  color: color-mix(in oklab, var(--fg) 55%, var(--accent-pink));
}
.section-title .en {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: color-mix(in oklab, var(--fg) 70%, var(--accent-amber));
}
.section-sub {
  color: var(--fg-dim);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

/* ===== Mosaic ===== */
.mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}
.mosaic-col { display: grid; gap: 20px; }
.mosaic-col.left { grid-template-rows: 1fr 1fr; gap: 20px; }
.mosaic-col.left .row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.mosaic-card { min-height: 240px; }
.mosaic-card.tall { min-height: 500px; }
.mosaic-card .label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.mosaic-card .desc {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 32ch;
}
.mosaic-card .big-num {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 8px 0;
}
.mosaic-card .learn-more {
  margin-top: 24px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
@media (max-width: 880px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-col.left .row { grid-template-columns: 1fr; }
  .mosaic-card.tall { min-height: 360px; }
}

/* ===== Bot Dashboard Showcase ===== */
.bot-frame {
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--surface) 25%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  padding: 8px;
  position: relative;
  overflow: hidden;
}
.bot-frame::before {
  content: ''; position: absolute;
  top: -200px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-pink) 25%, transparent), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.bot-inner {
  background: color-mix(in oklab, var(--bg) 35%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 16px;
  min-height: 540px;
  position: relative;
  z-index: 1;
}
.bot-side, .bot-main, .bot-right { display: flex; flex-direction: column; gap: 12px; }
.bot-side-item {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent;
}
.bot-side-item.active {
  background: var(--chip-bg);
  border-color: var(--line);
  color: var(--fg);
}
.bot-side-item .icon { width: 16px; height: 16px; opacity: 0.7; }

.bot-stat {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.bot-stat .k { font-size: 12px; color: var(--fg-faint); font-family: 'Vazirmatn', sans-serif; font-weight: 500; letter-spacing: 0.02em; }
.bot-stat .v { font-family: 'Vazirmatn', sans-serif; font-weight: 600; font-size: 26px; margin-top: 4px; letter-spacing: -0.01em; }
.bot-stat .d { font-size: 12px; color: oklch(0.75 0.16 145); margin-top: 2px; font-family: 'Vazirmatn', sans-serif; font-weight: 500; }
.bot-stat .d.dn { color: oklch(0.68 0.20 25); }

.bot-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bot-chart {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px;
  flex: 1;
  position: relative;
  min-height: 280px;
}
.bot-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.bot-chart-title { font-size: 14px; font-weight: 600; }
.bot-chart-tabs { display: flex; gap: 4px; }
.bot-chart-tab {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--fg-faint);
  cursor: pointer;
}
.bot-chart-tab.active { background: var(--chip-bg); color: var(--fg); }

.bot-trade-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid transparent;
}
.bot-trade-row:hover { background: var(--chip-bg); border-color: var(--line); }
.bot-trade-row .pair { font-weight: 500; }
.bot-trade-row .pnl { font-family: 'Vazirmatn', sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }
.bot-trade-row .pnl.up { color: oklch(0.75 0.16 145); }
.bot-trade-row .pnl.dn { color: oklch(0.68 0.20 25); }
.bot-trade-row .time { color: var(--fg-faint); font-family: 'Vazirmatn', sans-serif; font-size: 11px; }

@media (max-width: 980px) {
  /* Bot panel: convert vertical sidebar into a horizontal scrolling tab bar */
  .bot-inner-tabbed { grid-template-columns: 1fr !important; padding: 14px !important; gap: 14px !important; }
  .bot-side {
    flex-direction: row !important;
    gap: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 4px !important;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    position: relative;
  }
}

/* ===== Bot panel switcher ===== */
.bot-inner-tabbed {
  grid-template-columns: 220px 1fr;
}
.bot-side-item {
  position: relative;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bot-side-item:hover { color: var(--fg); }
.bot-side-pill {
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 2px;
  background: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink);
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: oklch(0.75 0.16 145);
  box-shadow: 0 0 8px oklch(0.75 0.16 145);
  animation: pulse 2s infinite;
  margin-left: 4px;
}

.bot-panel-wrap {
  position: relative;
  min-height: 540px;
}
.bot-panel-fade {
  animation: panelIn 280ms ease-out both;
}
@keyframes panelIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Chart enter animation: stroke draws in, area fades in, end-point pulses.
   With memoized path + non-scaling-stroke + getTotalLength, dash math is stable
   even though the SVG is non-uniformly scaled, so no shaking. */
.chart-wrap {
  width: 100%;
  height: calc(100% - 36px);
  position: relative;
}
.chart-line {
  animation: chartDraw 1400ms cubic-bezier(0.5, 0, 0.2, 1) 100ms both;
}
.chart-line-glow {
  animation: chartDraw 1400ms cubic-bezier(0.5, 0, 0.2, 1) 100ms both, chartGlowIn 600ms ease 400ms both;
  filter: blur(2px);
}
@keyframes chartDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes chartGlowIn {
  from { stroke-opacity: 0; }
  to   { stroke-opacity: 0.35; }
}
.chart-area-fill {
  animation: chartAreaIn 900ms ease 500ms both;
  opacity: 0;
}
@keyframes chartAreaIn {
  to { opacity: 1; }
}
.chart-endpoint {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: chartEndIn 400ms ease 1400ms both;
  opacity: 0;
}
@keyframes chartEndIn {
  to { opacity: 1; }
}
.chart-endpoint-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 0 2px var(--surface-2), 0 0 12px 2px var(--accent-pink);
}
.chart-endpoint-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-pink);
  animation: endpointPulse 1.8s ease-out infinite;
}
@keyframes endpointPulse {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(3); }
}
.chart-peak { display: none; }

.num-anim { font-variant-numeric: tabular-nums; }

.stagger {
  opacity: 0;
  transform: translateY(6px);
  animation: rowIn 380ms cubic-bezier(0.2,0.7,0.3,1) both;
}
@keyframes rowIn { to { opacity: 1; transform: translateY(0); } }

/* Dashboard preserves its old grid */
.bot-panel-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  height: 100%;
}
@media (max-width: 980px) { .bot-panel-grid { grid-template-columns: 1fr; } }

/* Generic panel list */
.bot-panel-list { display: flex; flex-direction: column; gap: 14px; }
.bot-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  padding: 4px 4px 14px;
}
.bot-panel-title { font-size: 18px; font-weight: 600; }
.bot-panel-sub { font-size: 13px; color: var(--fg-dim); margin-top: 2px; }
.bot-panel-section-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  margin-top: 8px;
  padding: 0 4px;
}

/* Bots table */
.bot-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  overflow: hidden;
}
.bot-table-head, .bot-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
}
.bot-table-head {
  font-size: 12px;
  color: var(--fg-faint);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.bot-table-row { border-bottom: 1px solid var(--line); }
.bot-table-row:last-child { border-bottom: none; }
.bot-table-row:hover { background: var(--chip-bg); }
.bot-table-strat { display: flex; align-items: center; gap: 12px; }
.bot-table-orb {
  width: 32px; height: 32px; border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--chip-bg);
  border: 1px solid var(--line);
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-on  .dot { background: oklch(0.75 0.16 145); box-shadow: 0 0 6px oklch(0.75 0.16 145); }
.status-on  { color: oklch(0.78 0.14 145); }
.status-off .dot { background: oklch(0.5 0.02 270); }
.status-off { color: var(--fg-faint); }
.status-paused .dot { background: oklch(0.78 0.15 65); box-shadow: 0 0 6px oklch(0.78 0.15 65); }
.status-paused { color: oklch(0.78 0.15 65); }

/* Wallet */
.wallet-balance {
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in oklab, var(--accent-pink) 8%, var(--surface-2)));
  border: 1px solid var(--line);
}
.wallet-amount {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.wallet-amount .num-anim { font-weight: 600; }
.wallet-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.wallet-bar-seg {
  height: 100%;
  transform-origin: right;
  animation: barIn 600ms cubic-bezier(0.2,0.7,0.3,1) both;
}
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.holdings-list { display: flex; flex-direction: column; }
.holding-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.holding-row:last-child { border-bottom: none; }
.holding-name { display: flex; align-items: center; gap: 12px; }
.holding-amt { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Mentors */
.mentor-upcoming-list { display: flex; flex-direction: column; gap: 8px; }
.mentor-upcoming {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.mentor-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mentor-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .mentor-mini-grid { grid-template-columns: 1fr; } }

/* Courses progress */
.course-progress-list { display: flex; flex-direction: column; gap: 10px; }
.course-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.course-progress-thumb {
  width: 64px; height: 48px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.course-progress-grain {
  position: absolute; inset: 0;
  background-image: var(--grain-url);
  opacity: var(--card-image-grain);
  mix-blend-mode: overlay;
}
.progress-track {
  margin-top: 8px;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  transition: width 800ms cubic-bezier(0.2,0.7,0.3,1);
  border-radius: 2px;
}

/* Settings */
.settings-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.settings-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, oklch(0.75 0.16 145), oklch(0.78 0.15 65), oklch(0.68 0.18 25));
  outline: none;
}
.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line-2);
}
.settings-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid var(--bg);
  cursor: pointer;
}
.settings-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-faint);
}

.settings-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.toggle {
  width: 44px; height: 26px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  padding: 0;
}
.toggle.on { background: oklch(0.55 0.18 145); }
.toggle-knob {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.toggle.on .toggle-knob { transform: translateX(-18px); background: white; }

.exchange-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.exchange-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .exchange-grid { grid-template-columns: 1fr; } }

/* ===== Courses + Mentors ===== */
.courses-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.course-card {
  border-radius: 16px;
  background: color-mix(in oklab, var(--surface) 28%, transparent);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.course-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.course-thumb {
  aspect-ratio: 16/10;
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.course-thumb .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  z-index: 2;
}
.course-thumb .duration {
  position: absolute; bottom: 12px; right: 12px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.6);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: white;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.course-body { padding: 20px; }
.course-tag {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
}
.course-title { font-size: 18px; font-weight: 600; margin: 8px 0 6px; line-height: 1.4; }
.course-meta { display: flex; gap: 12px; font-size: 12px; color: var(--fg-faint); }
@media (max-width: 880px) { .courses-grid { grid-template-columns: 1fr; } }

.mentors-row {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mentor-card {
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 28%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--line-2);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.mentor-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-amber), var(--accent-pink) 60%, #2a1410);
  position: relative;
  overflow: hidden;
}
.mentor-avatar::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain-url);
  opacity: 0.6; mix-blend-mode: overlay;
}
.mentor-name { font-size: 16px; font-weight: 600; }
.mentor-role { font-size: 13px; color: var(--fg-dim); }
.mentor-stats { display: flex; gap: 12px; font-size: 12px; color: var(--fg-faint); font-family: 'Vazirmatn', sans-serif; margin-top: 4px; }
.mentor-cta {
  margin-top: 8px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
}
@media (max-width: 880px) { .mentors-row { grid-template-columns: repeat(2, 1fr); } }

/* ===== Performance ===== */
.perf-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap;
}
.perf-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  font-size: 13px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.2s;
}
.perf-tab.active { color: var(--fg); border-color: var(--line-2); background: var(--chip-bg-hover); }

.perf-chart {
  position: relative;
  height: 480px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--surface) 25%, transparent);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  padding: 32px;
  overflow: hidden;
}
.perf-chart::before {
  content: ''; position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 400px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-pink) 18%, transparent), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}
.perf-chart-inner {
  display: grid; grid-template-columns: 80px 1fr; gap: 16px;
  height: 100%; position: relative; z-index: 1;
}
.perf-y { display: flex; flex-direction: column-reverse; justify-content: space-between; font-family: 'Vazirmatn', sans-serif; font-size: 12px; font-weight: 500; color: var(--fg-faint); padding: 12px 0; }
.perf-bars {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  align-items: end;
  padding-bottom: 28px;
  position: relative;
}
.perf-bars::before {
  content: ''; position: absolute; inset: 0; bottom: 28px;
  background-image: repeating-linear-gradient(to top, transparent, transparent calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px), var(--line) calc(100% / 7));
  pointer-events: none;
}
.perf-bar {
  position: relative;
  border-radius: 8px 8px 0 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start; padding: 14px;
  transition: transform 0.3s;
}
.perf-bar:hover { transform: translateY(-4px); }
.perf-bar.featured {
  background: radial-gradient(circle at 70% 30%, color-mix(in oklab, var(--accent-pink) 30%, transparent), transparent 60%), var(--card-image);
  border-color: color-mix(in oklab, var(--accent-pink) 30%, var(--line-2));
}
.perf-bar .lbl { font-size: 12px; font-weight: 500; }
.perf-bar.featured .lbl { color: var(--fg); }
.perf-x-row {
  margin-top: 12px;
  display: grid; grid-template-columns: 80px 1fr;
  gap: 16px;
}
.perf-x {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  font-family: 'Vazirmatn', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--fg-faint);
  text-align: center;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.price-card {
  position: relative;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--surface) 28%, transparent);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  display: flex; flex-direction: column; gap: 20px;
}
.price-card.featured {
  border-color: var(--line-2);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
}
.price-card.featured::before {
  content: ''; position: absolute;
  top: -100px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-pink) 25%, transparent), transparent 65%);
  filter: blur(50px); pointer-events: none;
}
.price-card > * { position: relative; z-index: 1; }
.price-tier {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.price-name {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}
.price-amount {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'Vazirmatn', sans-serif;
}
.price-amount .num { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.price-amount .unit { font-family: 'Vazirmatn', sans-serif; font-size: 14px; color: var(--fg-dim); }
.price-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--fg-dim);
}
.price-features li { display: flex; gap: 10px; }
.price-features li::before {
  content: '✓'; color: var(--accent-soft); flex-shrink: 0;
}
.price-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.testim {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--surface) 25%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.testim-quote {
  font-size: 15px; line-height: 1.7;
  color: var(--fg);
  margin: 0 0 16px;
}
.testim-author { display: flex; align-items: center; gap: 10px; }
.testim-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-amber), var(--accent-pink) 70%);
}
.testim-name { font-size: 13px; font-weight: 500; }
.testim-role { font-size: 12px; color: var(--fg-faint); font-family: 'Manrope', sans-serif; font-weight: 500; letter-spacing: 0.04em; }
@media (max-width: 880px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 600;
}
.faq-q .ic { color: var(--fg-faint); font-family: 'Manrope', sans-serif; font-weight: 300; font-size: 20px; transition: transform 0.2s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  color: var(--fg-dim);
  line-height: 1.7;
  font-size: 15px;
}
.faq-item.open .faq-a { max-height: 200px; margin-top: 12px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent-pink) 60%, transparent), transparent);
}
.footer-cta {
  text-align: center;
  margin-bottom: 64px;
}
.footer-cta h3 {
  font-family: 'Vazirmatn', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.footer-cta p { color: var(--fg-dim); margin: 0 0 28px; }
.footer-login {
  max-width: 380px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-login input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  direction: rtl;
}
.footer-login input::placeholder { color: var(--fg-faint); }
.footer-login button {
  padding: 14px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-faint);
  flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* ===== utilities ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* ===== Mobile polish ===== */
@media (max-width: 980px) {
  /* Bot panel: vertical sidebar becomes a horizontal segmented tab bar */
  .bot-side::-webkit-scrollbar { display: none; }
  .bot-side-item {
    flex-shrink: 0 !important;
    flex: 1 1 auto;
    white-space: nowrap;
    padding: 9px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 0 !important;
    border-radius: 8px !important;
    justify-content: center;
    background: transparent !important;
  }
  .bot-side-item.active {
    background: var(--surface) !important;
    color: var(--fg) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10), 0 0 0 0.5px var(--line-2);
  }
  .bot-side-item .icon { width: 14px !important; height: 14px !important; opacity: 1 !important; }
  /* Hide the right-side pill indicator (only makes sense vertically) */
  .bot-side-pill { display: none !important; }
  /* Hide the bot-side trailing stat card and spacer */
  .bot-side > .bot-stat { display: none !important; }
  .bot-side > div[style*="flex: 1"] { display: none !important; }
}

@media (max-width: 720px) {
  /* Section spacing */
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(32px, 7vw, 44px) !important; line-height: 1.25; }
  .section-eyebrow { font-size: 11px; margin-bottom: 12px; }
  .section-sub { font-size: 15px; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: clamp(40px, 9vw, 56px); line-height: 1.2; }
  .hero-sub { font-size: 15px; }
  .hero-glow-btn { padding: 14px 28px; font-size: 14px; }
  .hero-coins { gap: 18px; font-size: 12px; flex-wrap: wrap; }

  /* Header — tighten */
  .header-inner { padding: 12px 0; gap: 10px; }
  .brand-name-en { font-size: 18px; }
  .brand > span[style*="Vazirmatn"] { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 6px 10px; font-size: 12px; }

  /* Mosaic — smaller numbers, less empty space */
  .mosaic { gap: 14px; }
  .mosaic-col { gap: 14px; }
  .mosaic-card { min-height: 0; padding: 0; }
  .mosaic-card .content { padding: 22px; }
  .mosaic-card .big-num { font-size: 48px !important; }
  .mosaic-card.tall { min-height: 320px; }
  .mosaic-card.tall .big-num { font-size: 64px !important; }
  .mosaic-card.tall .content > div { min-height: 0 !important; }

  /* Bot frame — tighter padding and chart height */
  .bot-frame { padding: 6px; }
  .bot-inner { min-height: 0; padding: 14px; }
  .bot-panel-wrap { min-height: 0; }
  .bot-panel-grid { grid-template-columns: 1fr; gap: 12px; }
  .bot-chart { min-height: 220px; padding: 14px; }
  .bot-stats-grid { gap: 10px; }
  .bot-stat { padding: 12px; }
  .bot-stat .v { font-size: 22px; }

  /* Mentors — single row of 2 */
  .mentors-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mentor-card { padding: 16px; }

  /* Courses */
  .course-card { }
  .course-body { padding: 16px; }

  /* Performance — reduce chart height, smaller bars */
  .perf-chart { height: 360px; padding: 18px; }
  .perf-bars { gap: 8px; padding-bottom: 24px; }
  .perf-bar { padding: 10px 8px; font-size: 11px; }
  .perf-bar .lbl { font-size: 11px; }
  .perf-y { font-size: 10px; }
  .perf-x { gap: 8px; font-size: 10px; }
  .perf-x-row { grid-template-columns: 60px 1fr; gap: 8px; }
  .perf-chart-inner { grid-template-columns: 60px 1fr; gap: 8px; }
  .perf-tabs { gap: 6px; }
  .perf-tab { padding: 8px 12px; font-size: 12px; }

  /* Pricing */
  .price-card { padding: 24px; }
  .price-amount .num { font-size: 40px; }

  /* Footer */
  .footer { padding: 48px 0 32px; }
  .footer-cta { margin-bottom: 40px; }
  .footer-cta h3 { font-size: clamp(28px, 6vw, 36px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* FAQ */
  .faq-q { font-size: 16px; gap: 12px; }
}

@media (max-width: 480px) {
  .mentors-row { grid-template-columns: 1fr; }
  .perf-chart { height: 300px; }
}
