:root {
  --bg-deep: #060c1d;
  --bg-card: rgba(10, 20, 44, 0.72);
  --bg-card-strong: rgba(8, 16, 36, 0.88);
  --bg-elevated: rgba(20, 35, 68, 0.65);
  --border-gold: rgba(251, 191, 36, 0.28);
  --border-glass: rgba(148, 163, 184, 0.20);
  --border-aurora: rgba(45, 212, 191, 0.38);

  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;

  --gold-light: #fef08a;
  --gold-main: #f59e0b;
  --gold-deep: #b45309;

  --aurora-emerald: #10b981;
  --aurora-cyan: #2dd4bf;
  --ruby-rose: #f43f5e;
  --violet-glow: #8b5cf6;

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-pill: 999px;

  --shadow-glass: 0 20px 50px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --shadow-gold: 0 8px 26px rgba(245, 158, 11, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scene Background */
.scene-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene-image {
  position: absolute;
  inset: -16px;
  background: url('/bg-aurora.jpg') center center / cover no-repeat;
  filter: saturate(1.08) brightness(0.82);
  transform: scale(1.03);
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 25%, rgba(16, 185, 129, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(5, 10, 25, 0.58) 0%, rgba(7, 15, 34, 0.38) 45%, rgba(5, 10, 24, 0.82) 100%);
}

/* Snow & Stardust Particles */
.snow-layer {
  position: absolute;
  inset: 0;
}

.snow-layer.paused .snowflake {
  animation-play-state: paused;
  opacity: 0;
}

.snowflake {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(254, 240, 138, 0.65) 70%, transparent 100%);
  opacity: 0.75;
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% { transform: translate3d(0, -2vh, 0); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.75; }
  100% { transform: translate3d(var(--drift, 24px), 104vh, 0); opacity: 0; }
}

/* Simulation Top Bar */
.sim-banner {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.28), rgba(30, 58, 138, 0.45), rgba(180, 83, 9, 0.28));
  border-bottom: 1px solid rgba(251, 191, 36, 0.24);
  backdrop-filter: blur(14px);
  padding: 8px 18px;
}

.sim-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.sim-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
}

.sim-status-pill.live {
  background: rgba(251, 191, 36, 0.16);
  color: var(--gold-light);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.sim-status-pill.passed {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

/* Layout Shell */
.site-shell {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 40px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 42px);
  gap: 22px;
}

/* Frosted Sapphire Glass Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
}

.glass-subcard {
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

/* Header */
.glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(8, 17, 38, 0.78);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #b45309);
  color: #1c1102;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill.active {
  color: #fef08a;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.38);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  border: 1px solid transparent;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-gold {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 52%, #d97706 100%);
  color: #1e1202;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #059669 100%);
  color: #022c22;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(254, 240, 138, 0.45);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.icon-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.icon-toggle.active, .icon-toggle:hover {
  color: var(--gold-light);
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(245, 158, 11, 0.14);
}

/* HOME HERO */
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 26px;
  align-items: center;
}

.hero-card {
  padding: 38px 36px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.20), transparent 70%);
  pointer-events: none;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid var(--border-aurora);
  color: #5eead4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-h1 .gold-span {
  display: block;
  background: linear-gradient(90deg, #fef08a, #fbbf24, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 540px;
}

/* Interactive 50% Calculator Box */
.payout-calc-box {
  padding: 16px 18px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.7));
  border: 1px solid var(--border-aurora);
  border-radius: var(--radius-lg);
}

.payout-calc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.payout-calc-highlight {
  font-size: 20px;
  font-weight: 800;
  color: #6ee7b7;
}

.calc-range {
  width: 100%;
  accent-color: #10b981;
  cursor: pointer;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Interactive Tree Stage */
.tree-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1.12;
  margin: 0 auto;
  user-select: none;
}

.tree-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ornaments-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tree-ornament-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: gentleSwing 4.6s ease-in-out infinite;
  transform-origin: 50% 0%;
  transition: filter 0.18s ease, z-index 0s;
  z-index: 3;
}

.tree-ornament-pin:hover {
  z-index: 15;
  filter: drop-shadow(0 0 14px rgba(254, 240, 138, 0.8));
}

.tree-ornament-pin .orn-icon {
  width: 48px;
  height: 48px;
  transition: transform 0.18s ease;
}

.tree-ornament-pin.special .orn-icon {
  width: 54px;
  height: 54px;
}

.tree-ornament-pin:hover .orn-icon {
  transform: scale(1.18);
}

.orn-label {
  margin-top: -3px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(6, 12, 29, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orn-gift-tag {
  font-size: 10px;
  font-weight: 800;
  color: #6ee7b7;
  background: rgba(6, 78, 59, 0.88);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
}

@keyframes gentleSwing {
  0%, 100% { rotate: -2.2deg; }
  50% { rotate: 2.2deg; }
}

/* Countdown Bar */
.countdown-panel {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-digits {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd-unit {
  min-width: 68px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.3);
  text-align: center;
}

.cd-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
}

.cd-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 3 Steps Feature Row */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 24px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Tree Store Grid */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 16px;
}

.store-tree-card {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.store-tree-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.store-tree-card.vip {
  background: linear-gradient(155deg, rgba(120, 53, 15, 0.45), rgba(10, 20, 44, 0.85));
  border-color: rgba(251, 191, 36, 0.55);
}

.store-tree-thumb {
  width: 120px;
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(45, 212, 191, 0.45);
}

.rate-pill.free {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-soft);
  border-color: rgba(148, 163, 184, 0.28);
}

.rate-pill.vip {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(16, 185, 129, 0.28));
  color: var(--gold-light);
  border-color: rgba(254, 240, 138, 0.6);
}

/* Leaderboard Grid */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 16px;
}

.leader-card {
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leader-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

.leader-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-light);
}

/* STUDIO VIEW */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  align-items: start;
}

.studio-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.style-switcher-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
}

.studio-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tab-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-pill {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.tab-pill.active {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #1c1102;
  border-color: transparent;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}

.option-tile {
  padding: 13px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.58);
  color: var(--text-soft);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s ease;
}

.option-tile:hover {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fff;
}

.option-tile.selected {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(254, 240, 138, 0.35);
}

/* TREE PAGE (/demo & /t/:slug) */
.tree-banner {
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tree-view-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.letters-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 670px;
}

.letters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.letter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.16s ease;
}

.letter-row:hover {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(30, 41, 59, 0.78);
}

.letter-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.letter-mini-orn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

/* WALLET & 50% PAYOUT DASHBOARD */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  padding: 20px 22px;
}

.kpi-card.highlight {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.72), rgba(10, 20, 44, 0.85));
  border-color: var(--aurora-cyan);
}

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
}

.wallet-two-col {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}

/* Forms */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.input-box, .select-box, .textarea-box {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(7, 13, 30, 0.82);
  color: #fff;
  outline: none;
  transition: border-color 0.16s ease;
}

.input-box:focus, .select-box:focus, .textarea-box:focus {
  border-color: var(--gold-light);
}

.textarea-box {
  min-height: 110px;
  resize: vertical;
}

/* Payout Receipt Card */
.receipt-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45), rgba(15, 23, 42, 0.82));
  border: 1px solid rgba(52, 211, 153, 0.45);
  margin-bottom: 12px;
}

/* Ledger Table */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.ledger-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  font-weight: 700;
}

.ledger-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

/* MODALS */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.76);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-root.hidden {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  position: relative;
}

.modal-dialog.wide {
  max-width: 960px;
}

.modal-dialog .eyebrow-pill {
  max-width: calc(100% - 52px);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

/* Compose Decorator Modal */
.compose-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.ornament-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}

.orn-choice {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  font-size: 11.5px;
}

.orn-choice.selected {
  border-color: var(--gold-light);
  background: rgba(245, 158, 11, 0.18);
}

.orn-choice svg {
  width: 38px;
  height: 38px;
}

.spot-picker-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.18), rgba(6, 12, 29, 0.85));
  border: 1px dashed rgba(251, 191, 36, 0.4);
  cursor: crosshair;
  overflow: hidden;
}

/* Real Byl.mn QPay Embed Frame */
.byl-qr-frame-wrap {
  width: 280px;
  height: 290px;
  margin: 14px auto;
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  border: 3px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  position: relative;
}

.byl-qr-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer */
.glass-footer {
  margin-top: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(8, 17, 38, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
}

/* Toasts */
.toast-root {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(6, 78, 59, 0.95);
  border: 1px solid #34d399;
  color: #ecfdf5;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.toast-item.error {
  background: rgba(127, 29, 29, 0.95);
  border-color: #f87171;
  color: #fef2f2;
}

@media (max-width: 960px) {
  .glass-header, .glass-footer {
    border-radius: 22px;
  }
  .hero-grid, .studio-grid, .tree-view-grid, .wallet-two-col, .compose-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
