/* Wall Street Bot — CodeBay liquid glass */

:root,
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #6366f1;
  --accent-2: #06b6d4;
  --accent-hover: #4f46e5;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
  --accent-soft: rgba(99, 102, 241, 0.1);
  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.1);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 40px rgba(99, 102, 241, 0.15);
  --mesh-1: rgba(99, 102, 241, 0.35);
  --mesh-2: rgba(6, 182, 212, 0.28);
  --mesh-3: rgba(168, 85, 247, 0.2);
  --grid-color: rgba(99, 102, 241, 0.04);
  --lion-opacity: 0.07;
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-elevated: #0d1320;
  --surface: rgba(13, 19, 32, 0.65);
  --surface-solid: #111827;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #818cf8;
  --accent-2: #22d3ee;
  --accent-hover: #a5b4fc;
  --accent-grad: linear-gradient(135deg, #818cf8 0%, #f472b6 50%, #22d3ee 100%);
  --accent-soft: rgba(129, 140, 248, 0.12);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 48px rgba(129, 140, 248, 0.18);
  --mesh-1: rgba(129, 140, 248, 0.45);
  --mesh-2: rgba(34, 211, 238, 0.35);
  --mesh-3: rgba(192, 132, 252, 0.3);
  --grid-color: rgba(148, 163, 184, 0.04);
  --lion-opacity: 0.11;
}

:root {
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-fx__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, var(--mesh-1), transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 15%, var(--mesh-2), transparent 50%),
    radial-gradient(ellipse 40% 45% at 60% 85%, var(--mesh-3), transparent 55%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
  filter: blur(40px);
}

.bg-fx__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 10%, transparent 75%);
}

.bg-lion {
  position: absolute;
  width: min(52vw, 520px);
  height: auto;
  opacity: var(--lion-opacity);
  filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.15));
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.bg-lion--1 {
  top: 8%;
  right: -4%;
  animation: lion-float 14s ease-in-out infinite;
}

.bg-lion--2 {
  bottom: 6%;
  left: -6%;
  width: min(40vw, 380px);
  opacity: calc(var(--lion-opacity) * 0.7);
  transform: scaleX(-1);
  animation: lion-float-alt 18s ease-in-out infinite;
}

@keyframes lion-float {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-18px) rotate(2deg) scale(1.03); }
}

@keyframes lion-float-alt {
  0%, 100% { transform: scaleX(-1) translateY(0) rotate(2deg); }
  50% { transform: scaleX(-1) translateY(14px) rotate(-2deg); }
}

@keyframes mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.05); }
}

.header, main, .footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 720px; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn--sm { padding: 8px 16px; font-size: 0.84rem; }
.btn--lg { padding: 14px 30px; font-size: 1rem; }

.btn--primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: #fff;
  color: #0f172a;
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.theme-toggle,
.lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.theme-toggle:hover,
.lang-btn:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  background: transparent;
}

.header__shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo__mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
  flex-shrink: 0;
}

[data-theme="light"] .logo__mark {
  background: #0b1020;
}

.logo__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.logo__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  animation: logo-shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logo-shine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 1px;
}

.logo--sm .logo__mark { width: 36px; height: 36px; border-radius: 12px; }
.logo--sm .logo__img { width: 26px; height: 26px; }

.header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav--pills {
  gap: 2px;
  padding: 4px;
  margin-left: auto;
  margin-right: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: color 0.15s, background 0.15s;
}

.nav--pills a {
  padding: 9px 13px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav--pills a:hover {
  color: var(--text);
  background: var(--surface);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header__actions .btn--sm {
  padding: 9px 14px;
  font-size: 0.82rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  padding: 56px 0 40px;
}

.hero__center {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
}

.hero__badge::before { display: none; }

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero__badge strong {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__badge span {
  color: var(--muted);
  font-weight: 600;
}

.bonus-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 520px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.bonus-chip__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #22d3ee;
}

.bonus-chip strong {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.bonus-chip p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.bonus-chip--compact {
  margin: 0 0 16px;
  align-items: flex-start;
  text-align: left;
}

.auth-bonus {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.28);
  text-align: center;
}

.profile-card__row strong#profileCommissionBalance,
.profile-card__row strong#cabinetCommissionBalance {
  font-family: var(--font-mono, ui-monospace, monospace);
  color: #22d3ee;
}

.hero__lead {
  margin-top: 14px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero__sub {
  margin: 0 auto 14px;
  color: var(--accent-2);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero__lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 52ch;
  margin: 0 auto 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero__panel {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 24px;
}

.hero__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.pill--live {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.hero__pnl span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__pnl strong {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__chart {
  margin: 16px 0;
  height: 140px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero__chart svg { width: 100%; height: 100%; display: block; }

.hero__trades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.trade {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
}
.trade strong { color: var(--green); font-family: var(--font-mono); }

.section { padding: 80px 0; }

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.section__head { margin-bottom: 40px; }
.section__head--center { text-align: center; }
.section__head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 12px;
}
.section__head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 18px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border-radius: 20px;
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(129, 140, 248, 0.3);
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.step__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.step__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.step__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.price-card--premium .price-card__icon {
  background: linear-gradient(135deg, rgba(129,140,248,.2), rgba(34,211,238,.15));
  color: var(--accent-2);
}
.price-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exchange {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s;
}
.exchange:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
}
.exchange strong { font-size: 1rem; }
.exchange span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
}
.exchange span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.download {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: center;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
}

.download__content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 16px 0 12px;
}
.download__content > p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

.download__list {
  list-style: none;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.download__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.download__list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.store-btn--outline small { color: var(--muted); }
.store-btn--outline:hover {
  background: var(--surface);
  box-shadow: none;
}

.store-btn--rustore {
  background: #fff;
  color: #14182e;
  border: 1px solid rgba(0, 119, 255, 0.18);
}
.store-btn--rustore small { color: #0077ff; }
.store-btn--rustore:hover {
  box-shadow: 0 12px 32px rgba(0, 119, 255, 0.22);
}
.store-btn__rustore-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.store-btn__rustore-logo {
  height: 24px;
  width: auto;
  display: block;
}
[data-theme="light"] .store-btn--rustore {
  background: #fff;
}

.profile-download {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
}

.profile-download > strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.profile-download > p {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 14px;
}

.profile-download__actions .store-btn {
  flex: 1;
  min-width: 140px;
  justify-content: flex-start;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.profile-download__actions .store-btn small {
  color: var(--muted);
}

.profile-download__actions .store-btn--outline {
  background: transparent;
}

[data-theme="light"] .profile-download__actions .store-btn {
  background: #fff;
}

.download__aside {
  text-align: center;
  border-radius: 24px;
  padding: 36px 24px;
}

.download__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.25);
}

.download__icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.download__aside strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.download__aside p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.download__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}
.download__meta span:first-child { color: #fbbf24; }

.faq { display: grid; gap: 12px; }

.faq__item {
  border-radius: 16px;
  padding: 0 22px;
  transition: border-color 0.2s;
}
.faq__item[open] { border-color: rgba(129, 140, 248, 0.4); }

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-2);
  font-size: 1.3rem;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p {
  color: var(--muted);
  padding-bottom: 18px;
  font-size: 0.95rem;
}

.cta { padding: 40px 0 80px; }

.cta__panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 56px) 24px;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.cta__chart {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

.cta__candles {
  width: 100%;
  height: 100%;
  display: block;
}

.cta__candles .candle line {
  stroke-width: 2;
  stroke-linecap: round;
}

.cta__candles .candle--up line { stroke: rgba(167, 243, 208, 0.95); }
.cta__candles .candle--up rect { fill: rgba(110, 231, 183, 0.9); }

.cta__candles .candle--dn line { stroke: rgba(254, 202, 202, 0.9); }
.cta__candles .candle--dn rect { fill: rgba(252, 165, 165, 0.85); }

.cta__candles .candle {
  animation: cta-candle 4.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.cta__candles .candle:nth-child(odd) { animation-delay: 0.2s; }
.cta__candles .candle:nth-child(3n) { animation-delay: 0.7s; }
.cta__candles .candle:nth-child(4n) { animation-delay: 1.1s; }
.cta__candles .candle:nth-child(5n) { animation-delay: 1.6s; }

@keyframes cta-candle {
  0%, 100% { opacity: 0.55; transform: translateY(0) scaleY(1); }
  50% { opacity: 1; transform: translateY(-4px) scaleY(1.04); }
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__panel h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.25);
}

.cta__panel p {
  opacity: 0.95;
  margin-bottom: 24px;
  font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.2);
}

.footer { padding: 0 0 40px; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-radius: 20px;
  padding: 18px 20px;
}

.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.footer__nav a:hover { color: var(--text); }

.footer__copy {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 320px;
}

/* Users live counter (hero badge only) */
.auth-guest,
.auth-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-badge {
  max-width: 160px;
}

.auth-guest[hidden],
.auth-user[hidden],
.modal[hidden],
[hidden] {
  display: none !important;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  max-width: 200px;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.15s, transform 0.15s;
}
.account-badge:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.account-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-badge em {
  font-style: normal;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.account-badge em.is-premium {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.price-card--premium {
  border-color: rgba(129, 140, 248, 0.45);
  background:
    linear-gradient(160deg, rgba(129, 140, 248, 0.12), transparent 50%),
    var(--surface);
}
.price-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
}
.price-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.price-card__price {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-card__earn {
  color: var(--green);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.price-card__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}
.price-card__list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.price-card__cta { width: 100%; }
.price-card__cta:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cta__ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none !important; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.65);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(100%, 440px);
  border-radius: 24px;
  padding: 32px 28px;
  z-index: 1;
  max-height: min(90vh, 640px);
  overflow: auto;
}
.modal__panel--wide {
  width: min(100%, 520px);
  max-height: min(92vh, 760px);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.modal__panel h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  padding-right: 28px;
}
.modal__lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin: 18px 0 12px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--accent); }

.form-msg {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}
.form-msg.is-error { color: #f87171; }
.form-msg.is-ok { color: var(--green); }

.link-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: none;
  background: none;
  color: var(--accent);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
}

.pay-success {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-grad);
}

.profile-card {
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0 20px;
  display: grid;
  gap: 10px;
}
.profile-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}
.profile-card__row span { color: var(--muted); font-weight: 600; }
.profile-card__row strong {
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.status-pill.is-pending { color: #fbbf24; }
.status-pill.is-active { color: var(--green); }

.profile-active {
  text-align: center;
  margin: 12px 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.pay-step-title {
  font-size: 1.1rem;
  margin: 8px 0 8px;
}

.pay-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0 18px;
}

.pay-card__qr {
  text-align: center;
}
.pay-card__qr img {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: block;
  margin: 0 auto;
}
.pay-card__qr p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.pay-card__fields {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pay-field {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}
.pay-field--memo {
  border-color: rgba(34, 211, 238, 0.35);
}
.pay-field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.pay-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pay-field__value {
  display: block;
  margin-top: 4px;
  font-weight: 700;
}
.pay-field__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
  line-height: 1.45;
  color: var(--text);
}
.pay-field__code--memo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}
.pay-field__warn {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal__actions--row {
  flex-direction: row;
  flex-wrap: wrap;
}
.modal__actions--row .btn { flex: 1; min-width: 140px; }

@media (max-width: 560px) {
  .pay-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .pay-card__fields { width: 100%; }
  .modal__actions--row { flex-direction: column; }
}

.pay-box__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
  line-height: 1.45;
  color: var(--text);
}

.pending-banner {
  border-radius: 16px;
  padding: 18px;
  margin-top: 8px;
  border-color: rgba(251, 191, 36, 0.35);
}
.pending-banner strong {
  display: block;
  margin-bottom: 6px;
  color: #fbbf24;
}
.pending-banner p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.why-free {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
}

.why-free__copy h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 12px;
}

.why-free__copy > p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 52ch;
}

.why-free__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.why-free__list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: var(--text);
}

.why-free__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.why-free__aside {
  display: grid;
  gap: 12px;
}

.why-free__stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.why-free__stat strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-free__stat span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

.why-free__stat--accent {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.12), rgba(34, 211, 238, 0.08));
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  border-radius: 20px;
  margin: 0 auto 28px;
  max-width: 560px;
}

.reviews-summary__score,
.reviews-summary__users {
  text-align: center;
  display: grid;
  gap: 4px;
  min-width: 140px;
}

.reviews-summary__score strong,
.reviews-summary__users strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.reviews-summary__score span,
.reviews-summary__users span,
.reviews-summary__users em {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-style: normal;
}

.stars {
  color: #fbbf24;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.stars--sm {
  font-size: 0.85rem;
  margin-left: auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review {
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  background: var(--bg);
}

.review__top strong {
  display: block;
  font-size: 0.95rem;
}

.review__top span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

.review > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__trades { grid-template-columns: repeat(2, 1fr); }
  .download { grid-template-columns: 1fr; }
  .why-free { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 20;
  }
  .nav.is-open a {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .burger { display: flex; }
  .auth-guest .btn--ghost { display: none; }
  .account-badge span { max-width: 72px; }
  .header { position: relative; }
  .header__shell { position: relative; }
}

@media (max-width: 560px) {
  .grid--3,
  .grid--4,
  .hero__trades { grid-template-columns: 1fr; }
  .hero__cta .btn,
  .store-btn,
  .cta__actions .btn { width: 100%; }
  .logo__text { display: none; }
  .bg-lion--2 { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .why-free { padding: 22px; }
  .review__top .stars { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cta__candles .candle { opacity: 0.75 !important; }
}
