@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');
:root {
  /* Color palette */
  --color-bg: #0b0e11;
  --color-card: #15191f;
  --color-accent: #3b82f6;
  --color-green: #2ebd85;
  --color-red: #f6465d;
  --color-yellow: #fcd535;
  --color-text: #eaecef;
  --color-text-dim: #848e9c;
  --color-border: #2b3139;

  /* Radii / spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;

  /* Shadows */
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.32);
}
:root {
  --ui-blur: blur(14px);
}
.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--color-card);
  color: var(--color-text);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
}
.ui-button:hover:not(:disabled) { transform: translateY(-1px); }
.ui-button:active:not(:disabled) { transform: translateY(0); }
.ui-button:disabled { cursor: not-allowed; opacity: 0.6; }
.ui-button--block { width: 100%; }
.ui-button--sm { padding: var(--space-1) var(--space-3); font-size: 12px; border-radius: var(--radius-sm); }
.ui-button--lg { padding: var(--space-3) var(--space-5); font-size: 14px; border-radius: var(--radius-lg); }
.ui-button--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
  box-shadow: 0 12px 28px rgba(59,130,246,0.24);
}
.ui-button--secondary {
  background: #1a1f27;
  border-color: #242b36;
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ui-button--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.ui-button--danger {
  background: linear-gradient(135deg, #f6465d, #c81e37);
  border-color: rgba(246, 70, 93, 0.6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(246, 70, 93, 0.28);
}
.ui-button__icon { display: inline-flex; align-items: center; }
.ui-button__spinner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0,0,0,0.2);
  pointer-events: none;
}
.ui-button__spinner::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: transparent;
  animation: ui-spin 0.8s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ui-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-text);
}
.ui-input__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-dim);
}
.ui-input__control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ui-input__control input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 16px;
}
.ui-input__control input:focus { outline: none; }
.ui-input__affix { color: var(--color-text-dim); font-weight: 700; font-size: 12px; }
.ui-input__hint { font-size: 12px; color: var(--color-text-dim); }
.ui-input__error { font-size: 12px; color: var(--color-red); font-weight: 700; }
.ui-input--error .ui-input__control { border-color: rgba(246, 70, 93, 0.8); }
.ui-input__control:focus-within {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.05);
}
.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  z-index: 999;
}
.ui-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  background: linear-gradient(160deg, rgba(21,25,31,0.96), rgba(11,14,17,0.98));
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: var(--shadow-strong);
  backdrop-filter: var(--ui-blur);
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ui-modal--lg { width: 100%; }
.ui-modal--sm { width: 100%; }
.ui-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ui-modal__titles { display: flex; flex-direction: column; gap: 4px; }
.ui-modal__title { font-size: 18px; font-weight: 800; color: var(--color-text); }
.ui-modal__subtitle { font-size: 12px; font-weight: 700; color: var(--color-text-dim); letter-spacing: 0.2px; text-transform: uppercase; }
.ui-modal__body { color: var(--color-text); }
.ui-modal__footer { display: flex; justify-content: flex-end; gap: 8px; }
.ui-modal__close { min-width: 32px; padding: 6px; }
.ui-toast {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.ui-toast--success { border-color: rgba(46,189,133,0.5); background: rgba(46,189,133,0.1); color: #d8fff0; }
.ui-toast--danger { border-color: rgba(246,70,93,0.6); background: rgba(246,70,93,0.1); color: #ffe1e6; }
.ui-toast--warn { border-color: rgba(252,213,53,0.6); background: rgba(252,213,53,0.12); color: #fff8da; }
@keyframes ui-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
:root {
  --app-height: 100vh;
  --bg: var(--color-bg);
  --card: var(--color-card);
  --accent: var(--color-accent);
  --green: var(--color-green);
  --red: var(--color-red);
  --yellow: var(--color-yellow);
  --text: var(--color-text);
  --text-dim: var(--color-text-dim);
  --border: var(--color-border);
  --app-safe-top: var(--tg-content-safe-area-inset-top, var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)));
  --safe-top: calc(var(--app-safe-top) + 12px);
  --content-max: 520px;
  --nav-pad-y: 8px;
  --nav-offset: calc(64px + var(--nav-pad-y) * 2);
  --stage-bg: radial-gradient(140% 140% at 30% 0%, #0f1729 0%, #0a0f18 55%, #060910 100%);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
::-webkit-scrollbar { display: none; }
body, html {
  margin: 0; padding: 0; height: 100%; width: 100%;
  font-family: 'Space Grotesk', 'Roboto', sans-serif;
  background: #05070c;
  color: var(--text);
  overflow: hidden; user-select: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}
input, textarea, select {
  font-size: 16px;
}
#root {
  width: 100%;
  display: flex;
  justify-content: center;
  height: var(--app-height, 100vh);
  min-height: var(--app-height, 100vh);
}
.app-layout {
  display: flex; flex-direction: column;
  height: var(--app-height, 100vh); width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--bg); position: relative;
  min-height: var(--app-height, 100vh);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
}
.app-layout.admin-mode {
  --admin-max: 1920px;
  --admin-gutter: clamp(16px, 2vw, 32px);
  --admin-surface: rgba(12, 18, 28, 0.94);
  --admin-surface-2: rgba(16, 23, 35, 0.92);
  --admin-border: rgba(148, 163, 184, 0.18);
  --admin-border-strong: rgba(148, 163, 184, 0.28);
  max-width: 100%;
  width: 100%;
  padding: 0;
  background: radial-gradient(140% 140% at 20% 0%, #0c1627 0%, #060a12 55%, #05070c 100%);
}
.app-layout::before {
  content: '';
  position: absolute;
  inset: -30px -20px 0;
  max-width: 720px;
  width: 110%;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(140% 140% at 20% 10%, rgba(31,162,255,0.24), transparent 55%),
    radial-gradient(120% 120% at 82% 0%, rgba(22,242,182,0.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  filter: blur(0px);
}
.app-layout::after {
  content: '';
  position: absolute;
  inset: -12px -20px 0;
  max-width: 720px;
  width: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 10%, rgba(255,255,255,0.32), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.app-layout.admin-mode::before,
.app-layout.admin-mode::after {
  max-width: 2000px;
  width: 140%;
}
.app-layout > * {
  position: relative;
  z-index: 1;
}
.safe-area-debug {
  position: fixed;
  top: 72px;
  left: 10px;
  right: 10px;
  z-index: 9999;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(5, 7, 12, 0.82);
  color: #e5edff;
  font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
}
:root[data-tg-ios][data-tg-fullscreen] .app-header {
  min-height: 54px;
  padding-bottom: 8px;
  gap: 6px;
}
/* --- HEADER (Fixed) --- */
.app-header {
  min-height: 60px; flex-shrink: 0; /* Prevent shrink */
  padding: var(--safe-top) 12px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  background: rgba(21, 25, 31, 0.92);
  border-bottom: 1px solid var(--border); z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}
.header-meta { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  border: 1px solid #202731; border-radius: 14px; padding: 8px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  color: #e5edff; min-width: 0;
}
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #2f6cf6, #5cc6ff); box-shadow: 0 0 0 6px rgba(59,130,246,0.16); }
.brand-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: #9aa3b5; }
.brand-title { font-size: 16px; font-weight: 900; letter-spacing: 0.2px; }
.hud-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  overflow: hidden;
}
.hud-box {
  background: linear-gradient(150deg, #161b23, #0f1218);
  border: 1px solid #1f2530;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex; flex-direction: column; justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.28);
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hud-click { cursor: pointer; }
.hud-click:hover { border-color: rgba(59,130,246,0.5); box-shadow: 0 12px 26px rgba(59,130,246,0.2), inset 0 1px 0 rgba(255,255,255,0.06); transform: translateY(-1px); }
.hud-click:active { transform: translateY(0); }
.hud-lbl { font-size: 8px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; }
.hud-lbl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}
.hud-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  display: block;
  position: relative;
  z-index: 1;
}
.hud-val-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  min-width: 0;
}
.hud-val-row .hud-val {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.hud-val--loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
  color: var(--text-dim);
}
.hud-val--loading .loader-dots span { width: 5px; height: 5px; }
.hud-val--tight { font-size: 12px; letter-spacing: 0; }
.hud-val--tiny { font-size: 11px; letter-spacing: 0; }
.hud-val.profit { color: var(--green); text-shadow: 0 0 10px rgba(46, 189, 133, 0.4); }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 1; min-width: 0; justify-content: flex-end; }
.hud-eye-btn {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #2a3240;
  background: rgba(12, 17, 26, 0.9);
  color: #a8b2c6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.hud-eye-btn:hover {
  color: #d9e2f2;
  border-color: rgba(92, 198, 255, 0.6);
}
.account-swap {
  min-width: 0;
  height: 40px;
  font-weight: 800;
  font-size: 13px;
  gap: 8px;
  padding: 0 10px;
  justify-content: center;
}
.account-swap.is-ton {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59, 130, 246, 0.6);
  color: var(--accent);
}
.account-swap .acc-val { font-size: 13px; font-weight: 800; }
.wallet-btn {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  box-shadow: 0 12px 28px rgba(59,130,246,0.24);
}
.wallet-btn .ntt-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.account-swap:hover,
.wallet-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(59,130,246,0.16); }
.btn-label { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 10px; background: #1c2028; border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 12px; }
@media (max-width: 500px) {
  .hud-val {
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
/* --- CONTENT AREA (Flexible) --- */
.main-area {
  flex: 1; /* Take full available space */
  display: flex; flex-direction: column;
  position: relative; overflow-y: auto;
  min-height: 0; /* Allow inner elements to scroll/resize */
  padding-bottom: 0;
}
/* --- GRAPH SCREEN FIX --- */
.chart-screen {
  flex: 1; display: flex; flex-direction: column;
  height: 100%; min-height: 0;
}
.chart-wrapper {
  flex: 1; /* Stretch between header and history */
  width: 100%;
  position: relative;
  background: var(--stage-bg);
  min-height: 300px; /* Reserve vertical space so the live graph doesn't collapse */
  max-height: none;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
@media (max-height: 720px) {
  .chart-wrapper {
    min-height: 240px;
  }
}
.chart-canvas {
  position: absolute;
  inset: 0;
  height: 100%;
}
/* UI Elements on Graph */
.timer-float {
  position: absolute; top: 24px; left: 16px;
  background: linear-gradient(135deg, #141820 0%, #0f1218 100%); border: 1px solid #1f2530;
  padding: 6px 12px; border-radius: 14px;
  font-size: 12px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px; z-index: 5;
}
.win-label,
.result-label {
  pointer-events: none;
}
.win-label rect,
.result-label rect {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4));
}
.win-label text {
  font-family: 'Space Grotesk', 'Roboto', sans-serif;
}
.result-label text {
  font-family: 'Space Grotesk', 'Roboto', sans-serif;
}
.zone-chip { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid #2f67d5; padding: 4px 10px; border-radius: 10px; font-weight: 800; font-size: 11px; }
.chart-pool-chip {
  position: absolute;
  top: 66px;
  left: 10px;
  z-index: 18;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(46,189,133,0.45);
  background: rgba(11, 18, 29, 0.9);
  box-shadow: 0 8px 16px rgba(0,0,0,0.28);
}
.chart-pool-chip__total {
  font-size: 10px;
  font-weight: 800;
  color: #d1fae5;
}
.chart-pool-chip__top {
  font-size: 10px;
  font-weight: 700;
  color: #a7f3d0;
}
.chart-pool-distribution {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 18;
  width: min(56vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid rgba(59,130,246,0.38);
  background: rgba(11, 18, 29, 0.9);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}
.chart-pool-distribution__head {
  font-size: 10px;
  font-weight: 800;
  color: #dbeafe;
}
.chart-pool-distribution__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 4px;
  max-height: 92px;
  overflow-y: auto;
  padding-right: 2px;
}
.chart-pool-distribution__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(15, 23, 36, 0.9);
}
.chart-pool-distribution__item.is-live {
  border-color: rgba(59,130,246,0.55);
  background: rgba(30, 64, 175, 0.2);
}
.chart-pool-distribution__num {
  font-size: 10px;
  font-weight: 800;
  color: #e2e8f0;
}
.chart-pool-distribution__pct {
  font-size: 10px;
  font-weight: 800;
  color: #93c5fd;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; animation: pulse 1s infinite; }
.pulse.green { background: var(--green); box-shadow: 0 0 5px var(--green); }
.pulse.red { background: var(--red); }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
/* History Strip (Fixed Height) */
.history-bar {
  height: 44px; flex-shrink: 0;
  background: linear-gradient(90deg, #0e131d 0%, #0b1019 100%);
  border-top: 1px solid #1f2530;
  display: flex; align-items: center; padding: 0 10px; gap: 8px; overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 8px 20px rgba(0,0,0,0.35);
}
.history-bar--top { border-top: none; border-bottom: 1px solid #1f2530; }
.trade-screen > .history-bar { margin: 0; border-radius: 0; }
.history-label { font-size: 11px; color: var(--text-dim); font-weight: 700; letter-spacing: 0.3px; }
.history-loader {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.history-loader .loader-dots span { width: 5px; height: 5px; }
.h-cell {
  min-width: 26px; height: 26px; background: #1a1f27; border-radius: 8px;
  color: #9aa3b5; font-size: 11px; font-weight: 800; letter-spacing: 0.2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid #242b35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.h-cell.new {
  color: #fff; background: linear-gradient(145deg, rgba(59,130,246,0.2), rgba(59,130,246,0.05));
  border: 1px solid rgba(59,130,246,0.6);
  box-shadow: 0 4px 12px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
/* --- MINING SCREEN --- */
.mining-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 20px;
  width: 100%;
  height: 100%;
  background: var(--stage-bg);
  justify-content: flex-start;
  overflow-y: auto;
}
/* --- ACCOUNT SCREEN --- */
.account-screen {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--stage-bg);
  padding: 18px 12px 24px;
  overflow-y: auto;
}
.account-screen--locked {
  position: relative;
}
.account-shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.account-shell--blurred {
  filter: blur(8px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.account-auth-card {
  width: min(460px, 94vw);
}
.account-auth-overlay {
  padding: 28px 18px;
}
.auth-card {
  border-color: rgba(59,130,246,0.45);
  background: linear-gradient(160deg, rgba(18, 25, 38, 0.98), rgba(10, 14, 20, 0.98));
  box-shadow: 0 16px 36px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  gap: 14px;
  padding: 18px;
}
.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 12% 8%, rgba(59,130,246,0.22), transparent 56%),
    radial-gradient(120% 120% at 90% 18%, rgba(34,211,238,0.16), transparent 62%);
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}
.auth-card > * { position: relative; z-index: 1; }
.auth-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-card__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  font-weight: 700;
}
.auth-card__title {
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
  margin-top: 4px;
}
.auth-card__hint {
  font-size: 12px;
  color: #d8e4ff;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59,130,246,0.4);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.auth-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #1f2530;
  background: rgba(15, 20, 29, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.auth-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(59,130,246,0.9), rgba(34,211,238,0.9));
  color: #0b1220;
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 16px;
  box-shadow: 0 12px 22px rgba(59,130,246,0.25);
}
.auth-profile__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.auth-profile__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94a3b8;
  font-weight: 700;
}
.auth-profile__name {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  word-break: break-word;
}
.auth-profile__secondary {
  font-size: 12px;
  color: #9aa3b5;
  word-break: break-word;
}
.auth-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.auth-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.auth-stat--rank {
  border-color: rgba(252,213,53,0.45);
  background: rgba(252,213,53,0.12);
  color: #fcd535;
}
.auth-stat__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9db2d4;
  font-weight: 700;
}
.auth-stat--rank .auth-stat__label { color: #f8e7a0; }
.auth-stat__value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.auth-stat--rank .auth-stat__value { color: #fff7cc; }
.auth-stat .loader-dots { gap: 3px; }
.auth-stat .loader-dots span { width: 4px; height: 4px; }
.auth-stat--level .loader-dots span { background: #7cb7ff; }
.auth-form {
  display: grid;
  gap: 10px;
}
.auth-actions {
  display: grid;
  gap: 10px;
}
@media (min-width: 540px) {
  .auth-actions {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
.mining-stack {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mine-hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(42, 52, 68, 0.92);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(59,130,246,0.12), transparent 58%),
    linear-gradient(145deg, rgba(18, 24, 35, 0.95), rgba(11, 14, 21, 0.95));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}
.mine-hero__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.mine-hero__aside {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.mine-hero__chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 9px;
  width: 100%;
  align-items: stretch;
}
.mine-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
}
.mine-hud__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  background: #0f141d;
  border: 1px solid #1f2530;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  min-height: 58px;
  min-width: 0;
}
.mine-hud__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--text-dim);
  font-weight: 800;
}
.mine-hud__value {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
}
.mine-hud__value--loading {
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mine-hud__value--loading .loader-dots span { width: 4px; height: 4px; }
.mine-hud__meta {
  font-size: 11px;
  color: #bcc7db;
  font-weight: 700;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(14, 20, 30, 0.62);
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mine-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: #cbd8f3;
  font-weight: 800;
  margin-bottom: 0;
}
.mine-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.mine-chip {
  padding: 8px 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(252,213,53,0.14), rgba(59,130,246,0.18));
  border: 1px solid rgba(252,213,53,0.4);
  color: #fef9c3;
  font-weight: 900;
  font-size: 11px;
  box-shadow: 0 10px 24px rgba(252, 213, 53, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-height: 34px;
}
.mine-boost {
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 900;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-height: 34px;
}
.tap-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(10px, 2.7vw, 16px);
  border-radius: 18px;
  border: 1px solid #1f2530;
  background:
    radial-gradient(130% 130% at 50% -10%, rgba(46,189,133,0.12), transparent 55%),
    linear-gradient(160deg, #0f131d, #0b0e16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 36px rgba(0,0,0,0.3);
}
.mine-orbit {
  --progress: 0%;
  padding: clamp(6px, 1.7vw, 10px);
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    rgba(46,189,133,0.9) 0%,
    rgba(59,130,246,0.9) var(--progress),
    #151c28 var(--progress),
    #151c28 100%
  );
  box-shadow: 0 14px 26px rgba(0,0,0,0.38);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mine-orbit__badge {
  position: absolute;
  bottom: -8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #2a3342;
  background: #0e131c;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  pointer-events: none;
}
.mine-orbit__badge .loader-dots span { width: 4px; height: 4px; }
.mine-circle {
  width: clamp(156px, 52vw, 204px);
  height: clamp(156px, 52vw, 204px);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1f2630 0%, #0a0d13 75%);
  border: 4px solid rgba(43, 49, 57, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(252, 213, 53, 0.15), 0 18px 42px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.mine-circle__halo {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(252,213,53,0.18), rgba(59,130,246,0.12), transparent 60%);
  filter: blur(6px);
  z-index: 1;
}
.mine-circle--low { border-color: rgba(246,70,93,0.5); box-shadow: 0 0 28px rgba(246,70,93,0.2); }
.mine-circle:active { transform: scale(0.97); }
.mine-letter { width: clamp(72px, 26vw, 92px); height: clamp(72px, 26vw, 92px); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.mine-letter img { width: clamp(64px, 23vw, 84px); height: clamp(64px, 23vw, 84px); object-fit: contain; filter: drop-shadow(0 0 16px rgba(59,130,246,0.42)); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.tap-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  overflow: visible;
  z-index: 4;
}
.tap-fx {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fef08a;
  font-weight: 900;
  font-size: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4), 0 0 12px rgba(252,213,53,0.35);
  animation: tapFloat 1.05s cubic-bezier(0.22, 0.7, 0.35, 1) forwards;
  will-change: transform, opacity;
}
@keyframes tapFloat {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.9); }
  12% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
  55% { opacity: 1; transform: translate(-50%, -150%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -240%) scale(0.9); }
}
.tap-prompt {
  position: absolute;
  bottom: 11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  z-index: 2;
}
.tap-meta {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.tap-chip {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #111720;
  color: var(--text);
  font-weight: 800;
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: center;
  justify-content: center;
}
.tap-chip.primary { background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.45); color: #dbeafe; }
.tap-progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #0f141d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.tap-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.tap-progress__meta { text-align: right; margin-left: auto; }
.tap-progress__label { font-weight: 800; color: #f8fafc; }
.tap-progress__loader { display: inline-flex; align-items: center; gap: 6px; }
.tap-progress__label .loader-dots span { width: 4px; height: 4px; }
.tap-progress__bar {
  height: 8px;
  background: #0f1218;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #1d2430;
}
.tap-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(252,213,53,0.85), rgba(59,130,246,0.9));
  box-shadow: 0 6px 12px rgba(252,213,53,0.2);
}
.tap-progress__foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  font-size: 10px;
  color: var(--text-dim);
}
.staking-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #1f2530;
  background:
    radial-gradient(120% 120% at 8% 0%, rgba(59,130,246,0.14), transparent 55%),
    linear-gradient(155deg, #0f151f, #0c1018);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 24px rgba(0,0,0,0.24);
}
.staking-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.staking-card__title {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
}
.staking-card__sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
}
.staking-card__rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}
.staking-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #202a37;
  background: rgba(13, 19, 29, 0.82);
  font-size: 11px;
  color: #d2deef;
}
.staking-card__row strong {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.staking-card__row--meta {
  border-style: dashed;
  color: #b6c4da;
}
.staking-card__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.staking-card__control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #202a37;
  background: rgba(12, 17, 25, 0.84);
}
.staking-card__control label {
  font-size: 11px;
  color: #cddaf0;
  font-weight: 800;
}
.staking-card__input {
  width: 100%;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid #2a3547;
  background: rgba(10, 14, 22, 0.9);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px;
}
.staking-card__input:focus {
  border-color: rgba(92, 198, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(92, 198, 255, 0.32);
}
.staking-card__chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.staking-card__chips button {
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid #2a3444;
  background: rgba(16, 23, 34, 0.9);
  color: #dce7fb;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.staking-card__chips button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.staking-card__chips button:active {
  transform: translateY(1px);
}
.staking-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.staking-card__error {
  font-size: 11px;
  color: #fca5a5;
  font-weight: 700;
}
.staking-card__meta {
  font-size: 11px;
  color: #b8c7df;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148,163,184,0.35);
  background: rgba(13, 19, 28, 0.7);
}
.staking-card__meta--ready {
  border-style: solid;
  border-color: rgba(46, 189, 133, 0.45);
  color: #c8f6e2;
  background: rgba(46, 189, 133, 0.12);
}
.energy-card {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  background: #111720;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.energy-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; color: var(--text); }
.energy-row--meta { color: var(--text-dim); font-weight: 700; font-size: 12px; margin-top: 6px; }
.energy-bar { height: 10px; background: #0f1218; border-radius: 10px; overflow: hidden; margin: 8px 0 10px; }
.energy-fill { height: 100%; background: linear-gradient(90deg, #2ebd85, #3b82f6); box-shadow: 0 6px 16px rgba(46,189,133,0.25); }
.energy-hint { font-size: 11px; color: var(--text-dim); margin-top: 6px; line-height: 1.4; }
.mine-menu {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mine-menu__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.mine-menu__kicker {
  font-size: 11px;
  font-weight: 900;
  color: #dce8ff;
  text-transform: uppercase;
  letter-spacing: 0.38px;
}
.mine-menu__hint {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
}
.mine-menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.mine-menu__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  min-height: 78px;
  border-radius: 14px;
  border: 1px solid #1f2530;
  background: linear-gradient(145deg, rgba(17, 23, 32, 0.96), rgba(14, 18, 27, 0.96));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 22px rgba(0,0,0,0.28);
  transition: transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mine-menu__card:hover {
  border-color: rgba(92, 198, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 24px rgba(18, 33, 54, 0.42);
}
.mine-menu__card:active { transform: translateY(1px); }
.mine-menu__card--reward {
  border-color: rgba(252,213,53,0.32);
}
.mine-menu__card--staking {
  border-color: rgba(34,197,94,0.35);
  background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(17,23,32,0.96) 65%);
}
.mine-menu__card--stars {
  border-color: rgba(59,130,246,0.34);
}
.mine-menu__card--achievements {
  border-color: rgba(168,85,247,0.35);
}
.mine-menu__card--leaderboard {
  border-color: rgba(46,189,133,0.45);
  background: linear-gradient(135deg, rgba(46,189,133,0.18), rgba(17,23,32,0.96) 62%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 24px rgba(10, 22, 16, 0.4);
}
.mine-menu__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
  color: #dbeafe;
}
.mine-menu__icon--reward {
  border-color: rgba(252,213,53,0.45);
  background: rgba(252,213,53,0.12);
  color: #fef3c7;
}
.mine-menu__icon--staking {
  border-color: rgba(34,197,94,0.45);
  background: rgba(34,197,94,0.14);
  color: #dcfce7;
}
.mine-menu__icon--stars {
  border-color: rgba(59,130,246,0.45);
  background: rgba(59,130,246,0.12);
  color: #dbeafe;
}
.mine-menu__icon--achievements {
  border-color: rgba(168,85,247,0.45);
  background: rgba(168,85,247,0.14);
  color: #f1e6ff;
}
.mine-menu__icon--leaderboard {
  border-color: rgba(46,189,133,0.45);
  background: rgba(46,189,133,0.12);
  color: #d1fae5;
}
.mine-menu__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mine-menu__title { font-size: 12px; font-weight: 900; letter-spacing: 0.2px; }
.mine-menu__sub {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mine-menu__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--text-dim);
}
.mine-menu__badge {
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(46,189,133,0.4);
  background: rgba(46,189,133,0.12);
  color: #d1fae5;
  font-size: 9px;
  font-weight: 800;
}
.mine-subscreen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mine-subscreen__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mine-subscreen__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.mine-subscreen__title { font-size: 15px; font-weight: 900; color: #f8fafc; }
.mine-subscreen__sub { font-size: 11px; color: var(--text-dim); }
.mine-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #1f2530;
  background: #0e131c;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}
.mine-back:active { transform: translateY(1px); }
.leaderboard-card {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(46,189,133,0.3);
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(46,189,133,0.16), transparent 55%),
    linear-gradient(160deg, rgba(16, 28, 32, 0.96), rgba(9, 12, 18, 0.96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.leaderboard-title { font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
.leaderboard-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.leaderboard-me {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,0.45);
  background: rgba(59,130,246,0.12);
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.leaderboard-me__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #cbd5e1;
  font-weight: 700;
}
.leaderboard-me__rank { font-size: 16px; font-weight: 900; }
.leaderboard-me__meta { font-size: 11px; color: #cbd5e1; font-weight: 700; text-align: right; }
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #111720;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.leaderboard-row > * {
  position: relative;
  z-index: 1;
}
.leaderboard-row--you {
  border-color: rgba(59,130,246,0.55);
  background: rgba(59,130,246,0.12);
}
.leaderboard-row--top1,
.leaderboard-row--top2,
.leaderboard-row--top3 {
  border-color: var(--leaderboard-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px var(--leaderboard-glow);
  animation: leaderboardPulse 4s ease-in-out infinite;
}
.leaderboard-row--top1 {
  --leaderboard-border: rgba(252,213,53,0.75);
  --leaderboard-glow: rgba(252,213,53,0.25);
  --leaderboard-sweep: rgba(252,213,53,0.22);
  background: linear-gradient(135deg, rgba(252,213,53,0.2), rgba(17,23,32,0.95) 58%);
}
.leaderboard-row--top2 {
  --leaderboard-border: rgba(148,163,184,0.7);
  --leaderboard-glow: rgba(148,163,184,0.22);
  --leaderboard-sweep: rgba(148,163,184,0.2);
  background: linear-gradient(135deg, rgba(148,163,184,0.18), rgba(17,23,32,0.95) 58%);
}
.leaderboard-row--top3 {
  --leaderboard-border: rgba(217,119,6,0.75);
  --leaderboard-glow: rgba(217,119,6,0.22);
  --leaderboard-sweep: rgba(217,119,6,0.2);
  background: linear-gradient(135deg, rgba(217,119,6,0.2), rgba(17,23,32,0.95) 58%);
}
.leaderboard-row--top1::before,
.leaderboard-row--top2::before,
.leaderboard-row--top3::before {
  content: '';
  position: absolute;
  inset: -60% 0;
  background: linear-gradient(120deg, transparent 30%, var(--leaderboard-sweep), transparent 70%);
  transform: translateX(-140%);
  animation: leaderboardSweep 4.6s ease-in-out infinite;
  opacity: 0.85;
  pointer-events: none;
}
.leaderboard-row--top1 .leaderboard-rank {
  border-color: rgba(252,213,53,0.75);
  background: rgba(252,213,53,0.18);
  color: #fff7cc;
  box-shadow: inset 0 0 0 1px rgba(252,213,53,0.35);
}
.leaderboard-row--top2 .leaderboard-rank {
  border-color: rgba(148,163,184,0.7);
  background: rgba(148,163,184,0.18);
  color: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.35);
}
.leaderboard-row--top3 .leaderboard-rank {
  border-color: rgba(217,119,6,0.75);
  background: rgba(217,119,6,0.18);
  color: #ffedd5;
  box-shadow: inset 0 0 0 1px rgba(217,119,6,0.35);
}
.leaderboard-row--top1 .leaderboard-name { color: #fff7cc; }
.leaderboard-row--top2 .leaderboard-name { color: #f8fafc; }
.leaderboard-row--top3 .leaderboard-name { color: #ffedd5; }
.leaderboard-rank {
  min-width: 44px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #1f2530;
  background: #0e131c;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
}
.leaderboard-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.leaderboard-name {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leaderboard-info .leaderboard-sub { font-size: 10px; }
.leaderboard-level {
  min-width: 56px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(46,189,133,0.45);
  background: rgba(46,189,133,0.12);
  color: #d1fae5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.leaderboard-level span { font-size: 9px; letter-spacing: 0.3px; text-transform: uppercase; }
.leaderboard-level strong { font-size: 14px; }
.leaderboard-empty {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  padding: 8px 0;
}
@keyframes leaderboardSweep {
  0% { transform: translateX(-140%); opacity: 0; }
  35% { opacity: 0.7; }
  65% { transform: translateX(140%); opacity: 0; }
  100% { transform: translateX(140%); opacity: 0; }
}
@keyframes leaderboardPulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.08) saturate(1.1); }
}
.stars-card {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #1f2530;
  background: radial-gradient(140% 140% at 0% 0%, rgba(252, 213, 53, 0.12), rgba(18, 24, 35, 0.96) 55%, rgba(9, 12, 18, 0.96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stars-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.stars-title { font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
.stars-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.stars-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(252, 213, 53, 0.4);
  background: rgba(252, 213, 53, 0.12);
  color: #fef3c7;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.stars-offer {
  background: #111720;
  border: 1px solid #1f2530;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.stars-offer__head { display: flex; justify-content: space-between; gap: 10px; }
.stars-offer__title { font-size: 13px; font-weight: 800; }
.stars-offer__sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.stars-offer__badge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(46, 189, 133, 0.4);
  background: rgba(46, 189, 133, 0.12);
  color: #d1fae5;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  height: fit-content;
}
.stars-offer__reward { font-size: 12px; font-weight: 800; color: #fef9c3; }
.stars-offer__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stars-offer__price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(252, 213, 53, 0.4);
  background: rgba(252, 213, 53, 0.12);
  color: #fef3c7;
  font-weight: 800;
  font-size: 12px;
}
.stars-empty { grid-column: 1 / -1; font-size: 12px; color: var(--text-dim); text-align: center; padding: 12px 0; }
.stars-note { font-size: 11px; color: var(--text-dim); }
.stars-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars-last { font-size: 11px; color: var(--text-dim); }
.rewards-card {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #1f2530;
  background: linear-gradient(160deg, rgba(18, 24, 35, 0.96), rgba(9, 12, 18, 0.96));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rewards-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.rewards-title { font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
.rewards-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.rewards-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.reward-card {
  background: #111720;
  border: 1px solid #1f2530;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.reward-head { display: flex; gap: 10px; align-items: center; }
.reward-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.reward-icon--daily {
  background: rgba(252, 213, 53, 0.16);
  border-color: rgba(252, 213, 53, 0.45);
  color: #fef3c7;
}
.reward-icon--ad {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.5);
  color: #dbeafe;
}
.reward-icon--offer {
  background: rgba(46, 189, 133, 0.16);
  border-color: rgba(46, 189, 133, 0.45);
  color: #d1fae5;
}
.reward-icon--social {
  background: rgba(251, 146, 60, 0.16);
  border-color: rgba(251, 146, 60, 0.45);
  color: #ffedd5;
}
.reward-title { font-size: 13px; font-weight: 800; }
.reward-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.reward-body { display: flex; flex-direction: column; gap: 4px; }
.reward-amount { font-size: 13px; font-weight: 800; color: #fef9c3; }
.reward-meta { font-size: 11px; color: var(--text-dim); }
.rewards-loading { font-size: 11px; color: var(--text-dim); }
.progress-card {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #1f2530;
  background: linear-gradient(150deg, rgba(16, 22, 32, 0.96), rgba(9, 12, 18, 0.96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.progress-title { font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
.progress-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.progress-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(252, 213, 53, 0.14);
  border: 1px solid rgba(252, 213, 53, 0.4);
  color: #fef9c3;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.progress-box {
  border-radius: 12px;
  padding: 10px 12px;
  background: #111720;
  border: 1px solid #1f2530;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.progress-label { font-size: 11px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.progress-value { font-size: 15px; font-weight: 900; margin-top: 6px; color: #f8fafc; }
.progress-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.progress-bar { height: 10px; background: #0f1218; border-radius: 10px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(252, 213, 53, 0.9), rgba(59, 130, 246, 0.9));
  box-shadow: 0 6px 16px rgba(252, 213, 53, 0.2);
}
.progress-foot { font-size: 11px; color: var(--text-dim); }
@media (max-width: 480px) {
  .mine-hero { grid-template-columns: 1fr; }
  .mine-hero__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-hud__item { min-height: 56px; }
  .mine-hud__meta { width: 100%; }
  .mine-orbit { padding: 6px; }
  .mine-orbit__badge { right: 4px; }
  .tap-meta { grid-template-columns: 1fr; }
  .tap-progress__meta { margin-left: 0; text-align: left; }
  .tap-progress__foot { grid-template-columns: 1fr; }
  .staking-card { padding: 10px; gap: 8px; }
  .staking-card__rows { grid-template-columns: 1fr; }
  .staking-card__controls { grid-template-columns: 1fr; }
  .staking-card__actions { grid-template-columns: 1fr; }
  .staking-card__chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mine-menu { gap: 8px; }
  .mine-menu__head { align-items: flex-start; }
  .mine-menu__hint { width: 100%; }
  .mine-menu__grid { gap: 8px; }
  .mine-menu__card { padding: 9px 10px; gap: 8px; min-height: 74px; }
  .mine-menu__icon { width: 28px; height: 28px; border-radius: 10px; }
  .mine-menu__title { font-size: 11px; }
  .mine-menu__sub { font-size: 9px; }
  .mine-menu__actions { gap: 4px; }
  .mine-menu__badge { padding: 3px 5px; font-size: 8px; }
  .stars-grid { grid-template-columns: 1fr; }
  .rewards-grid { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
}
/* --- TRADE SCREEN --- */
.trade-screen { flex: 1; display: flex; flex-direction: column; background: var(--stage-bg); height: 100%; min-height: 0; }
.round-card {
  margin: 12px 12px 10px; padding: 14px;
  border-radius: 16px; background: linear-gradient(145deg, #0e1420 0%, #0b111b 100%);
  border: 1px solid #222b3a; box-shadow: 0 12px 26px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; gap: 12px;
}
.state-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
}
.state-chip.closed { background: rgba(132,142,156,0.06); border-color: #29323f; }
.state-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(46,189,133,0.6); display: block; }
.state-chip.closed .state-dot { background: var(--text-dim); box-shadow: none; }
.state-title { font-size: 14px; font-weight: 800; letter-spacing: 0.2px; }
.state-sub { font-size: 11px; color: var(--text-dim); }
.round-progress { display: flex; flex-direction: column; gap: 6px; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--text-dim); }
.progress-label { font-weight: 700; color: var(--text); }
.progress-tag { padding: 4px 8px; border-radius: 10px; border: 1px solid #1f2530; background: #0f1726; font-weight: 700; font-size: 11px; color: var(--text); }
.progress-tag.open { border-color: rgba(46,189,133,0.7); color: var(--green); box-shadow: 0 8px 14px rgba(46,189,133,0.18); }
.progress-tag.closed { border-color: #2b3139; color: #94a3b8; }
.pill-progress { margin-top: 0; }
.pill-progress.compact { height: 6px; background: #0f141f; border: 1px solid #192233; }
.pill-progress-fill { height: 100%; background: linear-gradient(90deg, #2ebd85, #3b82f6); transition: width 0.3s ease; }
.trade-scroll { flex: 1; overflow-y: auto; padding: 0 0 6px; min-height: 0; display: flex; justify-content: center; align-items: flex-start; }
.grid-shell {
  width: 100%; max-width: calc(var(--content-max) - 24px);
  background: radial-gradient(120% 120% at 50% 0%, #101a2c 0%, #0b1220 60%, #080d18 100%);
  border: 1px solid #243146; border-radius: 14px; padding: 10px;
  margin: 0 auto 6px; box-shadow: 0 14px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
}
.grid-header { display: none; }
.grid-title { display: none; }
.grid-sub { display: none; }
.live-chip { background: rgba(59,130,246,0.12); color: #f1f6ff; border: 1px solid rgba(59,130,246,0.4); padding: 6px 9px; border-radius: 12px; font-weight: 800; font-size: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); display: inline-flex; align-items: center; gap: 6px; }
.live-chip__loader { display: inline-flex; align-items: center; gap: 6px; }
.live-chip__loader .loader-dots span { width: 5px; height: 5px; }
.live-strip {
  position: sticky;
  top: 0;
  z-index: 45;
  padding: 10px 12px 8px;
  background: linear-gradient(145deg, rgba(15, 21, 31, 0.96), rgba(9, 13, 22, 0.92));
  border-bottom: 1px solid #1f2530;
  box-shadow: 0 12px 26px rgba(0,0,0,0.36);
  backdrop-filter: blur(10px);
}
.live-strip__inner { width: 100%; max-width: calc(var(--content-max) - 24px); margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.live-strip__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.live-strip__timer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: #0e131c; border: 1px solid #1f2530;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.live-strip__phase { font-size: 10px; letter-spacing: 0.35px; color: #9aa3b5; font-weight: 800; text-transform: uppercase; }
.live-strip__seconds { font-size: 16px; font-weight: 900; color: #e7eefc; min-width: 48px; text-align: right; }
.loader-dots { display: inline-flex; align-items: center; gap: 4px; }
.loader-dots span { width: 6px; height: 6px; border-radius: 50%; background: #fcd535; display: block; animation: loaderDots 1s ease-in-out infinite; }
.loader-dots span:nth-child(2) { animation-delay: 0.12s; }
.loader-dots span:nth-child(3) { animation-delay: 0.24s; }
.live-strip__progress { height: 8px; border-radius: 999px; background: #0d121c; border: 1px solid #1f2530; overflow: hidden; margin: 0; }
.pill-progress-fill.is-loading { width: 100%; animation: progressPulse 1.3s ease-in-out infinite; background: linear-gradient(90deg, rgba(46,189,133,0.3), rgba(59,130,246,0.6), rgba(46,189,133,0.3)); }
.trade-pool-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(46,189,133,0.4);
  background: rgba(15, 29, 22, 0.7);
}
.trade-pool-summary__total {
  font-size: 11px;
  font-weight: 800;
  color: #d1fae5;
}
.trade-pool-summary__top {
  font-size: 10px;
  font-weight: 700;
  color: #a7f3d0;
}
.grid-wrap { position: relative; padding: 4px 6px 4px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.grid-body { position: relative; display: flex; gap: 6px; align-items: stretch; }
.grid-inner { flex: 1; }
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-bottom: 4px; }
.num-btn {
  min-height: 52px;
  padding: 5px 0;
  background: linear-gradient(170deg, #111827, #0e1521);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: #f7f9ff;
  border: 1px solid #2a364a; cursor: pointer; position: relative;
  user-select: none;
  transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.num-main { font-size: 16px; font-weight: 900; line-height: 1; }
.num-fake {
  font-size: 10px;
  font-weight: 700;
  color: #8b949e;
  letter-spacing: 0.2px;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  opacity: 0.8;
  margin-bottom: 2px;
  text-align: center;
  line-height: 1.2;
}
.num-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  text-align: center;
}
.num-btn:hover { border-color: rgba(59,130,246,0.5); box-shadow: 0 6px 14px rgba(0,0,0,0.22); }
.num-btn:active { transform: translateY(1px); }
.num-btn.active { background: linear-gradient(145deg, rgba(59,130,246,0.35), rgba(59,130,246,0.18)); border-color: rgba(59,130,246,0.8); color: #ffffff; box-shadow: 0 10px 18px rgba(59,130,246,0.28); }
.num-btn.live { box-shadow: 0 0 0 2px rgba(59,130,246,0.55), 0 10px 24px rgba(59,130,246,0.25); color: #c8dcff; }
.num-btn.locked { opacity: 0.55; cursor: not-allowed; }
.num-badge { position: absolute; top: 4px; right: 4px; background: #facc15; color: #0b0f18; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 7px; pointer-events: none; box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.num-pool-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #bbf7d0;
  border: 1px solid rgba(16, 185, 129, 0.55);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 7px;
  pointer-events: none;
}
.num-pool-amount {
  font-size: 9px;
  font-weight: 700;
  color: #9ae6b4;
  line-height: 1;
}
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.board-top .pill-progress { flex: 1; margin: 0; }
.board-top .pill-progress.compact { height: 6px; }
.grid-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 8px; flex-wrap: wrap; }
.grid-actions { display: flex; align-items: center; gap: 6px; }
.grid-actions .float-btn { width: 42px; height: 42px; border-radius: 12px; }
.chip-stack { display: flex; flex: 1; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.area-hint {
  display: block;
  font-size: 11px;
  color: #8b949e;
  text-align: center;
  padding: 4px 10px 0;
}
.group-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(150deg, #0f151f, #0a0f19);
  border: 1px solid #1f2530;
  border-radius: 12px;
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 18px rgba(0,0,0,0.26);
}
.group-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.group-bar__titles { display: flex; flex-direction: column; gap: 2px; }
.group-title { font-size: 13px; font-weight: 900; color: #f5f7ff; letter-spacing: 0.2px; }
.group-subtitle { font-size: 11px; color: #8b949e; }
.collapse-btn {
  border: 1px solid #1f2530;
  background: #0e131c;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 11px;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0,0,0,0.2);
}
.collapse-btn:hover { border-color: rgba(59,130,246,0.5); color: #fff; }
.collapse-btn:active { transform: translateY(1px); }
.group-head { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-note {
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #0e131c;
  color: #9aa3b5;
  font-weight: 700;
  font-size: 12px;
}
.group-label { font-size: 11px; font-weight: 800; letter-spacing: 0.2px; color: #e4eaf5; text-transform: uppercase; }
.group-mode { display: inline-flex; gap: 6px; background: #0e121b; padding: 3px; border: 1px solid #1f2530; border-radius: 10px; }
.group-toggle {
  border: none;
  padding: 6px 8px;
  border-radius: 10px;
  background: transparent;
  color: #9aa3b5;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}
.group-toggle.active {
  background: linear-gradient(135deg, #2f6cf6 0%, #5cc6ff 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(59,130,246,0.28);
}
.group-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.group-sections { display: flex; flex-direction: column; gap: 10px; }
.group-section { display: flex; flex-direction: column; gap: 6px; }
.group-section__label { font-size: 10px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.3px; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.group-btn {
  border: 1px solid #1f2530;
  background: linear-gradient(145deg, #111826, #0d131f);
  color: #eaecef;
  font-weight: 800;
  font-size: 11px;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 8px 18px rgba(0,0,0,0.28);
}
.group-btn:hover { border-color: rgba(59,130,246,0.5); color: #fff; }
.group-btn:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 720px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 8px;
  }
  .header-meta { min-width: 0; }
  .hud-stats { gap: 6px; }
  .hud-box { flex: 1 1 0; min-width: 0; }
  .header-actions { flex-shrink: 1; min-width: 0; }
}
@media (max-width: 520px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: calc(var(--safe-top) - 4px) 8px 8px;
    gap: 6px;
  }
  .header-meta { gap: 6px; min-width: 0; }
  .hud-stats {
    gap: 6px;
    overflow: hidden;
  }
  .hud-box { padding: 6px 8px; min-width: 0; }
  .hud-lbl { font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud-val { font-size: 12px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 6px; min-width: 0; justify-content: flex-end; }
  .account-swap,
  .wallet-btn { min-width: 72px; height: 36px; font-size: 12px; padding: 0 8px; }
  .account-swap .acc-val,
  .btn-label { font-size: 12px; }
  .grid-shell { margin: 0 10px 10px; padding: 10px; }
  .grid-wrap { padding: 10px 8px 6px; }
  .num-grid { gap: 6px; }
  .num-btn { height: 38px; font-size: 14px; }
}
.history-inline { display: flex; gap: 6px; align-items: center; }
/* Round markers animation */
.round-marker line { 
  animation: markerSlide 0.6s ease-out;
}
.round-marker text, .round-marker rect {
  animation: markerFade 0.6s ease-out;
}
@keyframes markerSlide {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes markerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes loaderDots {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
@keyframes progressPulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.trade-footer { display: none; height: 0; padding: 0; margin: 0; border: none; box-shadow: none; }
.float-btn {
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid #1f2530; background: linear-gradient(145deg, #111826, #0d131f);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  pointer-events: auto; cursor: pointer;
}
.float-btn.danger { border-color: rgba(246,70,93,0.6); color: #fda4af; background: linear-gradient(145deg, rgba(246,70,93,0.14), #151018); }
.float-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.float-chip {
  min-width: 60px; height: 34px; border-radius: 11px;
  border: 1px solid #1f2530; background: linear-gradient(145deg, #111826, #0d131f);
  color: #e8eefc; font-weight: 800; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
  pointer-events: auto; cursor: pointer; padding: 0 10px;
}
.float-chip.sel { background: linear-gradient(135deg, #2f6cf6 0%, #5cc6ff 100%); color: #fff; border-color: rgba(255,255,255,0.2); }
.float-chip:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-main { width: 100%; padding: 14px; background: var(--green); border: none; border-radius: 6px; color: #000; font-weight: 800; font-size: 14px; text-transform: uppercase; }
.btn-main:disabled { background: var(--border); color: var(--text-dim); }
/* --- NAV --- */
.nav-bar {
  min-height: 64px; flex-shrink: 0;
  background: rgba(17, 21, 27, 0.95); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: stretch; gap: 10px;
  flex-wrap: nowrap; row-gap: 0;
  padding: var(--nav-pad-y) 12px calc(var(--nav-pad-y) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
  z-index: 80;
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  box-shadow: none;
}
.nav-item {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(135deg, #101624, #0b101a);
  border: 1px solid #1f2530;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9aa3b5;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
  transform: translateZ(0);
}
.nav-item span { display: block; line-height: 1; }
.nav-item svg { color: inherit; width: 22px; height: 22px; flex-shrink: 0; }
.nav-item:active { transform: translateY(1px); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, #2f6cf6 0%, #5cc6ff 100%);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 10px 26px rgba(59,130,246,0.25);
}
@media (max-width: 420px) {
  :root { --nav-pad-y: 6px; }
  .nav-bar {
    gap: 6px;
    padding: var(--nav-pad-y) 10px calc(var(--nav-pad-y) + env(safe-area-inset-bottom, 0px));
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }
  .nav-item { flex: 1 1 0; font-size: 11px; padding: 9px 10px; }
  .nav-item svg { width: 20px; height: 20px; }
  .main-area { padding-bottom: 0; }
}
@media (max-width: 340px) {
  :root { --nav-offset: 140px; }
  .nav-bar { flex-wrap: wrap; row-gap: 8px; }
  .nav-item { flex: 1 1 calc(50% - 6px); }
}
@media (max-width: 420px) {
  .grid-shell { padding: 8px; border-radius: 14px; }
  .grid-wrap { padding: 8px 6px 6px; }
  .num-grid { gap: 5px; }
  .num-btn { height: 36px; font-size: 13px; border-radius: 10px; }
  .grid-actions .float-btn { width: 40px; height: 40px; border-radius: 12px; }
  .float-chip { min-width: 58px; height: 34px; font-size: 11px; border-radius: 11px; }
  .group-btn { padding: 7px 9px; }
  .group-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}
/* MODAL */
.modal-backdrop,
.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1100;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px);
}
.modal-backdrop--elevated {
  z-index: 1200;
}
.modal-pane,
.ui-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  background: linear-gradient(160deg, rgba(21, 25, 31, 0.96), rgba(11, 14, 17, 0.98));
  padding: calc(20px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
  border-radius: 0;
  margin-bottom: 0;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.app-screen-modal__footer {
  margin-top: 12px;
}
.support-modal {
  align-self: stretch;
  margin-bottom: 0;
  max-height: 100%;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.support-modal .round-modal__head {
  margin-bottom: 0;
  border-bottom: 1px solid #1f2530;
  padding-bottom: 10px;
  align-items: flex-start;
}
.support-modal__body {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  padding-right: 2px;
  padding-bottom: calc(12px + var(--nav-offset) + env(safe-area-inset-bottom, 0px));
}
.support-modal__layout { display: flex; flex-direction: column; gap: 12px; }
.support-modal__hero {
  background: linear-gradient(140deg, rgba(59,130,246,0.18), rgba(15,21,31,0.96));
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
.support-modal__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 10% 0%, rgba(59,130,246,0.35), transparent 55%);
  pointer-events: none;
  opacity: 0.9;
}
.support-modal__hero > * { position: relative; z-index: 1; }
.support-modal__hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.support-modal__eyebrow { font-size: 11px; color: var(--text-dim); letter-spacing: 0.4px; text-transform: uppercase; }
.support-modal__title { font-size: 18px; font-weight: 900; color: #f5f7ff; margin-top: 4px; }
.support-modal__note { font-size: 12px; color: #9aa3b5; line-height: 1.5; }
.support-modal__chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.support-modal__grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.support-modal__column { display: flex; flex-direction: column; gap: 12px; }
.support-modal__field { display: flex; flex-direction: column; gap: 6px; }
.support-modal__label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.4px; text-transform: uppercase; font-weight: 700; }
.support-modal__hint { font-size: 11px; color: #7b8796; }
.support-modal__textarea { min-height: 140px; resize: vertical; line-height: 1.4; }
@media (min-width: 960px) {
  .support-modal__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}
@media (max-width: 720px) {
  .support-modal__hero-top { flex-direction: column; align-items: flex-start; }
}
.modal-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #232a35;
  margin: 0 auto 12px;
}
.round-modal {
  background: linear-gradient(160deg, #0f141f, #0a0f18);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
}
.round-modal--history {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.round-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.round-modal__eyebrow { font-size: 11px; color: var(--text-dim); letter-spacing: 0.4px; text-transform: uppercase; }
.round-modal__title { font-size: 20px; font-weight: 900; color: #f5f7ff; margin-top: 4px; }
.round-modal__badge { min-width: 96px; background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.4); border-radius: 12px; padding: 8px 10px; text-align: right; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); color: var(--text); }
.badge-label { display: block; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px; }
.badge-value { display: block; font-size: 22px; font-weight: 900; color: #f7f9ff; }
.round-modal__body { display: flex; flex-direction: column; gap: 12px; }
.round-modal__field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; color: var(--text-dim); font-weight: 700; }
.field-row { display: flex; gap: 8px; align-items: stretch; }
.field-value {
  flex: 1; min-height: 44px; background: #0d121c; border: 1px solid #1f2530; border-radius: 10px;
  padding: 10px 12px; color: #e9edf7; font-family: 'Space Grotesk', 'Roboto Mono', monospace; font-size: 12px;
  word-break: break-all; user-select: text; line-height: 1.4;
}
.copy-btn {
  padding: 0 12px; border-radius: 10px; border: 1px solid #2a3650; background: #111a29; color: #dbe7ff;
  font-weight: 700; font-size: 12px; cursor: pointer; min-width: 68px;
}
.copy-btn:hover { border-color: rgba(59,130,246,0.6); color: #fff; }
.round-modal__meta { font-size: 12px; color: #a2acbc; }
.round-modal__meta span { color: #dfe6f3; }
.modal-head-actions { display: inline-flex; align-items: flex-start; gap: 8px; }
.modal-close {
  border: 1px solid #232a35;
  background: #0e131c;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.modal-close:hover { border-color: rgba(59,130,246,0.45); color: #fff; }
.rules-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #1f2530;
  background: #0c111b;
}
.rules-tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  color: #9aa3b5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rules-tab:hover { color: #e5ecf5; border-color: rgba(59,130,246,0.25); }
.rules-tab.active {
  background: linear-gradient(140deg, rgba(59,130,246,0.2), rgba(46,189,133,0.08));
  border-color: rgba(59,130,246,0.4);
  color: #f5f7ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.rules-tab:focus-visible { outline: 2px solid rgba(59,130,246,0.6); outline-offset: 2px; }
.rules-list { display: flex; flex-direction: column; gap: 8px; }
.rules-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid #1f2530; background: #0f151f; }
.rules-num {
  width: 22px; height: 22px;
  border-radius: 8px;
  background: rgba(59,130,246,0.2);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rules-hero {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,0.4);
  background: linear-gradient(140deg, rgba(59,130,246,0.18), rgba(46,189,133,0.08));
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.rules-hero__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #b7c4d7;
  font-weight: 800;
}
.rules-hero__text {
  color: #e5ecf5;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.rules-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.rules-fact {
  background: #0c111b;
  border: 1px solid #1f2530;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rules-fact__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  font-weight: 700;
}
.rules-fact__value {
  font-size: 14px;
  font-weight: 800;
  color: #f5f7ff;
}
.rules-section { display: flex; flex-direction: column; gap: 8px; }
.rules-section__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  font-weight: 800;
}
.rules-steps { display: grid; gap: 10px; }
@media (min-width: 520px) {
  .rules-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rules-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #0f151f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.rules-step__num {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(59,130,246,0.2);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rules-step__title { font-size: 14px; font-weight: 800; color: #e5ecf5; }
.rules-step__text { font-size: 13px; color: #9aa3b5; line-height: 1.45; margin-top: 4px; }
.rules-notes { display: grid; gap: 8px; }
@media (min-width: 520px) {
  .rules-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rules-note-card {
  background: #0c111b;
  border: 1px solid #1f2530;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rules-note-card__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #9fb4d1;
  font-weight: 800;
}
.rules-note-card__text { font-size: 12px; color: #9aa3b5; line-height: 1.5; }
.rules-note { font-size: 12px; color: #9aa3b5; text-align: center; }
.consent-body { display: flex; flex-direction: column; gap: 14px; }
.consent-grid { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) { .consent-grid { flex-direction: row; align-items: stretch; gap: 12px; } }
.consent-pill {
  background: linear-gradient(150deg, #121826, #0b101a);
  border: 1px solid #1f2530;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 96px;
  text-align: right;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.pill-label { font-size: 11px; color: #9aa3b5; letter-spacing: 0.4px; text-transform: uppercase; }
.pill-value { font-size: 18px; font-weight: 900; color: #fcd535; letter-spacing: 0.4px; }
.consent-alert {
  flex: 1;
  display: flex; gap: 10px; padding: 12px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  background: linear-gradient(140deg, rgba(59,130,246,0.1), rgba(46,189,133,0.08));
}
.consent-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
}
.consent-title { font-weight: 800; color: #e5ecf5; }
.consent-note { color: #9aa3b5; font-size: 13px; line-height: 1.5; }
.consent-links { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #9aa3b5; }
.consent-links--bar {
  background: #0c1018;
  border: 1px solid #1f2530;
  padding: 10px 12px;
  border-radius: 12px;
  flex-wrap: wrap;
}
.consent-links--bar a { color: #9fb9ff; font-weight: 700; }
.consent-links--bar a:hover { color: #c7dbff; }
.consent-links--bar .policy-sep { color: #4b5565; }
.consent-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .consent-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.consent-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 12px;
  border: 1px solid #1f2530;
  background: #0f151f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  color: #cfd8e3;
}
.consent-card__title { font-weight: 800; color: #e5ecf5; font-size: 14px; }
.consent-card__text { color: #9aa3b5; font-size: 13px; line-height: 1.5; }
.consent-checks { display: flex; flex-direction: column; gap: 10px; }
.consent-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 700; color: #e5ecf5; font-size: 14px;
}
.consent-check--card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #0d111a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.consent-check--card.checked {
  border-color: rgba(59,130,246,0.65);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.35);
}
.consent-check--locked {
  opacity: 0.7;
  cursor: default;
}
.consent-check--locked input { cursor: not-allowed; }
.consent-check input { margin-top: 3px; }
.consent-check__title { font-weight: 800; color: #e5ecf5; }
.consent-check__hint { font-size: 12px; color: #9aa3b5; }
.validator-hint { font-size: 11px; color: #9aa3b5; }
.validator-status { font-size: 12px; font-weight: 800; color: #cbd5e1; }
.validator-status.match { color: #68d2a7; }
.validator-status.mismatch { color: #fda863; }
.validator-link-wrap { margin-top: 6px; }
.validator-link { font-size: 11px; color: #7fb4ff; text-decoration: underline; }
.validator-link:hover { color: #a6cbff; }
.wallet-modal {
  background: linear-gradient(150deg, #0f141f, #0a1019);
  border: 1px solid #1f2530;
  max-height: none;
  height: 100%;
  overflow-y: auto;
}
.wallet-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.wallet-eyebrow { font-size: 11px; color: var(--text-dim); letter-spacing: 0.3px; text-transform: uppercase; }
.wallet-title { font-size: 18px; font-weight: 900; color: #f5f7ff; margin-top: 4px; }
.wallet-toast { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.wallet-grid { display: flex; flex-direction: column; gap: 12px; }
.wallet-card {
  background: #0f151f;
  border: 1px solid #1f2530;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 22px rgba(0,0,0,0.28);
}
.wallet-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wallet-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid #273040; background: #111827; color: #cbd5e1; font-weight: 800; font-size: 12px;
}
.wallet-chip.success { border-color: rgba(46,189,133,0.6); background: rgba(46,189,133,0.12); color: #68d2a7; }
.wallet-chip.warn { border-color: rgba(252,213,53,0.5); background: rgba(252,213,53,0.12); color: #fcd535; }
.wallet-chip.muted { border-color: #1f2530; color: #9aa3b5; }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-modal .wallet-btn {
  padding: 10px 14px; border-radius: 12px; border: 1px solid #263243;
  background: linear-gradient(150deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: #e9edf7; font-weight: 800; font-size: 12px;
  cursor: pointer; flex: 1; min-width: 120px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.wallet-modal .wallet-btn:hover { border-color: rgba(59,130,246,0.45); transform: translateY(-1px); }
.wallet-modal .wallet-btn.primary,
.wallet-modal .wallet-btn.ui-button--primary { background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%); border-color: rgba(255,255,255,0.18); color: #04101a; box-shadow: 0 12px 28px rgba(59,130,246,0.3); }
.wallet-modal .wallet-btn.ghost,
.wallet-modal .wallet-btn.ui-button--ghost { background: rgba(255,255,255,0.03); border-style: dashed; color: #cbd5e1; }
.wallet-modal .wallet-btn.danger,
.wallet-modal .wallet-btn.ui-button--danger { border-color: rgba(246,70,93,0.6); color: #fda4af; box-shadow: 0 10px 24px rgba(246,70,93,0.18); }
.wallet-modal .wallet-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.wallet-input-row { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; align-items: center; }
.wallet-input {
  flex: 1;
  background: #0d121c;
  border: 1px solid #1f2530;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
}
.wallet-modal .wallet-btn.send-btn { flex: 0 0 38%; min-width: 128px; }
.wallet-note { font-size: 12px; color: #8b949e; }
.wallet-link { color: #9cc7ff; text-decoration: underline; text-underline-offset: 2px; }
.wallet-note--empty {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed #1f2530;
  background: rgba(15,23,42,0.35);
}
.wallet-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #223045;
  background: rgba(56, 104, 170, 0.08);
  color: #cdd8ea;
  font-size: 12px;
}
.wallet-receipt-row {
  align-items: stretch;
}
.wallet-file-input {
  font-size: 13px;
  line-height: 1.2;
  padding: 10px 12px;
}
.wallet-file-input::file-selector-button {
  margin-right: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #2a3a52;
  background: #111b2b;
  color: #e8eefb;
  font-weight: 700;
  cursor: pointer;
}
.wallet-file-input:hover::file-selector-button {
  border-color: rgba(59,130,246,0.5);
}
.wallet-receipt-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #1f2530;
  border-radius: 12px;
  background: #0e131d;
  padding: 10px;
}
.wallet-receipt-preview img {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid #2a3343;
  object-fit: cover;
  background: #0b111a;
}
.wallet-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wallet-links a { color: #dfe6f3; text-decoration: none; font-weight: 700; border-bottom: 1px dashed rgba(255,255,255,0.18); padding-bottom: 1px; }
.wallet-links a:hover { color: #ffffff; border-color: rgba(255,255,255,0.4); }
.wallet-small { font-size: 12px; color: #9aa3b5; }
.wallet-address { word-break: break-word; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; }
.wallet-address__value { font-family: 'Space Grotesk', 'Roboto Mono', monospace; background: #0e131c; border: 1px solid #1f2530; padding: 10px 12px; border-radius: 10px; color: #dfe6f3; }
.wallet-qr {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 6px;
}
.wallet-qr img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #0e131c;
}
.referral-row { display: flex; align-items: center; gap: 8px; }
.referral-link {
  flex: 1;
  min-width: 0;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.referral-info { position: relative; display: inline-flex; align-items: center; }
.referral-info__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #273040;
  background: #0d121c;
  color: #eaecef;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.referral-info__btn:hover { border-color: rgba(59,130,246,0.6); color: #fff; transform: translateY(-1px); }
.referral-info__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-width: 240px;
  padding: 10px 12px;
  background: #111827;
  border: 1px solid #273040;
  border-radius: 10px;
  color: #dfe6f3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  z-index: 6;
}
.referral-link::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 100%;
  background: linear-gradient(to right, rgba(14,19,28,0), rgba(14,19,28,0.95));
  pointer-events: none;
}
.wallet-status { font-size: 12px; font-weight: 700; }
.wallet-status.error { color: #f6465d; }
.wallet-status.ok { color: #2ebd85; }
.wallet-status.info { color: #38bdf8; }
.wallet-copy { padding: 6px 10px; border-radius: 10px; border: 1px solid #273040; background: #0d121c; color: #eaecef; font-weight: 700; cursor: pointer; }
.wallet-input.input-error { border-color: rgba(246,70,93,0.6); box-shadow: 0 0 0 1px rgba(246,70,93,0.2); }
.link-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.link-pill {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2a3242;
  background: linear-gradient(150deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  color: #eaecef;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.link-pill:hover { border-color: rgba(59,130,246,0.6); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(59,130,246,0.22); }
.support-btn { width: 100%; }
.policy-card { padding: 12px; }
.policy-footer { display: flex; justify-content: center; align-items: center; gap: 8px; color: #8b949e; font-size: 12px; text-align: center; }
.policy-footer a { color: #dfe6f3; text-decoration: none; font-weight: 800; }
.policy-footer a:hover { color: #ffffff; }
.policy-sep { color: #475063; }
.withdraw-modal {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.withdraw-history { margin-top: 12px; }
.withdraw-modal .withdraw-history {
  flex: 1 1 auto;
  min-height: 0;
}
.withdraw-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  overflow-y: auto;
  padding-right: 4px;
}
.withdraw-modal .withdraw-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.withdraw-list__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #1f2530; border-radius: 12px; background: #0c111b; }
.withdraw-list__main { display: flex; flex-direction: column; gap: 3px; }
.withdraw-amount { font-weight: 800; color: #eaecef; }
.withdraw-wallet, .withdraw-date, .withdraw-note { font-size: 12px; color: #9aa3b5; }
.withdraw-list__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid #1f2530; color: #cbd5e1; background: #0f1624; }
.status-pill.status-pending { color: #fcd535; border-color: rgba(252,213,53,0.4); background: rgba(252,213,53,0.1); }
.status-pill.status-processing { color: #38bdf8; border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.12); }
.status-pill.status-completed { color: #2ebd85; border-color: rgba(46,189,133,0.4); background: rgba(46,189,133,0.12); }
.status-pill.status-rejected { color: #f6465d; border-color: rgba(246,70,93,0.4); background: rgba(246,70,93,0.12); }
.history-list { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.round-modal--history .history-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.history-item { padding: 12px; border-radius: 12px; background: #0f151f; border: 1px solid #1f2633; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.history-item__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.history-item__eyebrow { font-size: 11px; color: var(--text-dim); letter-spacing: 0.3px; text-transform: uppercase; }
.history-item__title { font-size: 15px; font-weight: 800; color: #f3f7ff; margin-top: 2px; }
.history-item__time { font-size: 12px; color: #9aa3b5; }
.history-item__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.history-item__actions { display: flex; gap: 6px; }
.history-item__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.history-item__stat { background: #0c121c; border: 1px solid #1f2530; border-radius: 10px; padding: 8px 10px; }
.history-item__stat .stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-dim); font-weight: 700; }
.history-item__stat .stat-value { font-size: 14px; font-weight: 800; color: #f3f7ff; margin-top: 4px; }
.history-item__stat .stat-value.win { color: #2ebd85; }
.history-item__stat .stat-value.lose { color: #f6465d; }
.history-item__stat .stat-value.pending { color: #fcd535; }
.share-sheet {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.98);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  z-index: 5;
}
.share-sheet__header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.share-sheet__title { font-size: 18px; font-weight: 800; color: #f5f7ff; }
.share-sheet__subtitle { font-size: 12px; color: #9aa3b5; margin-top: 4px; }
.share-sheet__preview {
  flex: 1 1 auto;
  background: #0b111b;
  border: 1px solid #1f2530;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 52vh;
}
.share-sheet__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}
.share-sheet__svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-sheet__svg svg {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}
.share-sheet__loading { font-size: 12px; color: #9aa3b5; }
.share-sheet__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
}
.share-sheet__actions .ui-button {
  width: 100%;
  max-width: 320px;
}
.share-sheet__note { font-size: 12px; color: #9aa3b5; }
.share-sheet__note--error { color: #fda4af; }
.share-sheet__meta { font-size: 11px; color: #8791a3; word-break: break-all; }
@media (max-width: 480px) {
  .app-layout { max-width: 100%; }
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: calc(var(--safe-top) - 6px) 8px 8px;
    min-height: 56px;
  }
  .hud-stats { gap: 6px; }
  .hud-box { padding: 5px 6px; min-width: 0; }
  .account-swap,
  .wallet-btn { min-width: 64px; height: 32px; padding: 0 6px; }
  .chart-wrapper { min-height: 220px; }
  .modal-pane { width: 100%; margin-bottom: 0; }
  .history-bar { padding: 0 8px; }
  .nav-bar {
    padding: var(--nav-pad-y) 10px calc(var(--nav-pad-y) + env(safe-area-inset-bottom, 0px));
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }
  .wallet-modal .wallet-btn.send-btn { flex: 1 1 100%; }
}
/* --- ADMIN DASHBOARD --- */
.admin-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: radial-gradient(140% 140% at 30% 0%, #0d1b2e 0%, #0a0f18 55%, #070a12 100%);
  position: relative;
  isolation: isolate;
}
.admin-screen::before {
  content: '';
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(280px 280px at 15% 10%, rgba(59,130,246,0.2), transparent 60%),
    radial-gradient(320px 320px at 85% -10%, rgba(34,197,94,0.18), transparent 60%),
    linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.admin-shell {
  width: min(100%, var(--admin-max));
  margin: 0 auto;
  padding: calc(var(--admin-gutter) + env(safe-area-inset-top, 0px)) var(--admin-gutter)
    calc(var(--admin-gutter) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  position: relative;
  z-index: 1;
}
.admin-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  z-index: 20;
  padding: 14px;
  border-radius: 18px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  box-shadow: 0 18px 38px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}
.admin-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(10, 15, 24, 0.7);
  border: 1px solid var(--admin-border);
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.admin-tab:hover { border-color: var(--admin-border-strong); transform: translateY(-1px); }
.admin-tab:active { transform: translateY(0); }
.admin-tab:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.admin-tab.active {
  border-color: rgba(59,130,246,0.6);
  color: #fff;
  background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(14,165,233,0.2));
  box-shadow: 0 12px 26px rgba(59,130,246,0.25);
}
.admin-tab.admin-logout {
  border-color: rgba(246,70,93,0.5);
  color: #fecaca;
  background: rgba(246,70,93,0.08);
  box-shadow: none;
}
.admin-tab.admin-logout:hover {
  background: rgba(246,70,93,0.14);
  border-color: rgba(246,70,93,0.6);
}
.tab-badge {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f6465d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(246,70,93,0.35), 0 6px 20px rgba(246,70,93,0.3);
}
.admin-pill {
  border: 1px solid var(--admin-border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(15, 21, 32, 0.75);
}
.dashboard-currency-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(14, 21, 34, 0.92), rgba(8, 12, 20, 0.98));
  border: 1px solid var(--admin-border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dashboard-currency-strip__title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--text-dim);
}
.dashboard-currency-strip__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dashboard-currency-btn {
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-currency-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,0.55);
}
.dashboard-currency-btn.active {
  border-color: rgba(59,130,246,0.7);
  color: #fff;
  background: linear-gradient(135deg, rgba(59,130,246,0.32), rgba(14,165,233,0.2));
  box-shadow: 0 10px 22px rgba(59,130,246,0.26);
}
@media (max-width: 900px) {
  .admin-header__top { align-items: flex-start; }
  .admin-actions { width: 100%; justify-content: flex-start; }
  .admin-header__nav { width: 100%; }
  .admin-tabs { width: 100%; }
  .dashboard-currency-strip { width: 100%; }
}
.admin-shell > * {
  animation: admin-rise 0.35s ease both;
}
.admin-shell > *:nth-child(2) { animation-delay: 0.04s; }
@keyframes admin-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-shell > * { animation: none; }
  .admin-tab { transition: none; }
}
.admin-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.admin-login__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 40% 0%, #102647 0%, #0b0e11 60%, #080b12 100%);
  filter: blur(0px);
}
.admin-login__bg::after {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(220px 220px at 30% 30%, rgba(59,130,246,0.25), transparent 70%),
    radial-gradient(240px 240px at 80% 20%, rgba(46,189,133,0.18), transparent 70%);
  opacity: 0.7;
  top: -120px;
  right: -120px;
  pointer-events: none;
}
.admin-login__shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  width: min(1000px, 100%);
  z-index: 1;
}
.admin-login__panel {
  background: rgba(12, 17, 26, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
.admin-login__panel--hero {
  background: linear-gradient(155deg, rgba(25,36,59,0.9), rgba(11,17,26,0.94));
  border-color: rgba(59,130,246,0.18);
  position: relative;
  overflow: hidden;
}
.admin-login__panel--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px 180px at 90% -20%, rgba(59,130,246,0.25), transparent),
    radial-gradient(240px 240px at 0% 100%, rgba(46,189,133,0.22), transparent);
  opacity: 0.9;
  pointer-events: none;
}
.admin-login__panel--hero h1 { font-size: 28px; color: #eaf2ff; margin: 6px 0; }
.admin-login__lead { color: #cdd5e0; line-height: 1.6; margin: 0; }
.admin-login__facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.admin-login__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eaf2ff;
  font-weight: 800;
  letter-spacing: 0.2px;
  width: fit-content;
}
.admin-login__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-login__head h1 { font-size: 22px; margin: 4px 0; color: #eaecef; }
.admin-login__head h2 { font-size: 20px; margin: 4px 0; color: #eaecef; }
.admin-login__head p { color: #9aa3b5; margin: 0; font-size: 13px; line-height: 1.5; }
.admin-login .eyebrow {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-login__form { display: flex; flex-direction: column; gap: 12px; }
.admin-login__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #cdd5e0; font-weight: 700; }
.admin-login__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #1f2633;
  border-radius: 10px;
  background: #0b101a;
  color: #eaecef;
}
.admin-login__input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #eaecef;
  font-size: 14px;
}
.ghost-btn {
  border: none;
  background: transparent;
  color: #9aa3b5;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-login__error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(246,70,93,0.5);
  background: rgba(246,70,93,0.1);
  color: #fca5a5;
  font-weight: 700;
}
.admin-login__btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(59,130,246,0.6);
  background: linear-gradient(135deg, rgba(59,130,246,0.28), rgba(14,165,233,0.22));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(59,130,246,0.25);
}
.admin-login__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.admin-login__hint { color: #9aa3b5; font-size: 12px; line-height: 1.4; }
.fact { display: flex; gap: 10px; align-items: flex-start; color: #dfe6f3; }
.fact-title { font-weight: 800; font-size: 14px; }
.fact-sub { font-size: 12px; color: #a9b4c5; }
@media (max-width: 720px) {
  .admin-login__shell { grid-template-columns: 1fr; }
  .admin-login__panel--hero { order: 2; }
}
.admin-title { display: flex; align-items: center; gap: 12px; }
.admin-title .eyebrow { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }
.admin-title .title { font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: 0.2px; }
.admin-range { display: flex; gap: 6px; }
.range-btn {
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.range-btn.active {
  border-color: rgba(59,130,246,0.6);
  color: #fff;
  background: rgba(59,130,246,0.18);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .admin-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
.metric-card {
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}
.metric-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--admin-border);
  color: var(--text);
}
.metric-main { display: flex; flex-direction: column; gap: 4px; }
.metric-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px; }
.metric-value { font-size: 18px; font-weight: 800; color: var(--text); }
.metric-hint { font-size: 11px; color: var(--text-dim); }
.metric-card.tone-green { border-color: rgba(46,189,133,0.6); box-shadow: 0 6px 20px rgba(46,189,133,0.15); }
.metric-card.tone-yellow { border-color: rgba(252,213,53,0.5); }
.metric-card.tone-red { border-color: rgba(246,70,93,0.5); }
.admin-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 680px) {
  .admin-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.manual-methods-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.manual-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.manual-method {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,23,42,0.35);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manual-method__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.manual-method__field {
  flex: 1 1 260px;
  min-width: 220px;
}
.manual-methods-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chart-card {
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}
.chart-card__head { margin-bottom: 10px; }
.chart-title { font-size: 14px; font-weight: 800; color: var(--text); }
.chart-sub { font-size: 11px; color: var(--text-dim); }
.settings-panels { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.settings-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 10% 0%, #101725 0%, #0c111c 40%, #0a0f18 100%);
  border: 1px solid rgba(255,255,255,0.05);
}
.settings-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 220px at 90% -20%, rgba(59,130,246,0.14), transparent),
    radial-gradient(160px 160px at 10% 120%, rgba(46,189,133,0.12), transparent);
  pointer-events: none;
  opacity: 0.8;
}
.settings-card.settings-highlight {
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 16px 30px rgba(59,130,246,0.2);
  background: linear-gradient(150deg, rgba(15,23,42,0.85), rgba(11,17,27,0.95));
}
.settings-card .chart-card__head { margin-bottom: 14px; position: relative; z-index: 1; }
.settings-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.settings-tag--muted { color: #9aa3b5; background: rgba(154,163,181,0.08); border-color: rgba(154,163,181,0.2); }
.settings-tag--finance { color: #7fc3ff; background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.35); }
.settings-tag--timing { color: #fcd535; background: rgba(252,213,53,0.08); border-color: rgba(252,213,53,0.28); }
.settings-grid {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.settings-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .settings-grid.two-cols { grid-template-columns: 1fr; }
}
.settings-section {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 2px;
}
.settings-section__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: var(--text-dim);
}
.settings-section__sub {
  font-size: 12px;
  color: var(--text-dim);
}
.settings-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.settings-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.settings-field input {
  width: 100%;
  background: #0b111a;
  border: 1px solid #1f2530;
  color: #eaecef;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.settings-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-link-row input {
  flex: 1 1 220px;
  width: auto;
  min-width: 0;
}
.settings-link-action {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.settings-link-add {
  border-color: rgba(59,130,246,0.45);
  color: #93c5fd;
  background: rgba(59,130,246,0.12);
}
.settings-link-add:hover {
  background: rgba(59,130,246,0.18);
}
.settings-link-remove {
  border-color: rgba(246,70,93,0.45);
  color: #fca5a5;
  background: rgba(246,70,93,0.08);
}
.settings-link-remove:hover {
  background: rgba(246,70,93,0.12);
}
.settings-link-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.settings-custom-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-custom-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 2fr) auto;
  gap: 8px;
  align-items: center;
}
.settings-custom-row input {
  width: 100%;
  min-width: 0;
}
.settings-custom-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
@media (max-width: 820px) {
  .settings-custom-row {
    grid-template-columns: 1fr;
  }
  .settings-custom-row .settings-link-action {
    justify-self: flex-start;
  }
}
.settings-field select {
  width: 100%;
  background: #0b111a;
  border: 1px solid #1f2530;
  color: #eaecef;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.settings-field textarea {
  width: 100%;
  background: #0b111a;
  border: 1px solid #1f2530;
  color: #eaecef;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  resize: vertical;
  min-height: 96px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.settings-field input:focus {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.16);
}
.settings-field select:focus {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.16);
}
.settings-field textarea:focus {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.16);
}
.settings-hint {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.settings-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}
.settings-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}
.settings-static {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d121c;
  border: 1px solid #1f2634;
  border-radius: 12px;
  padding: 10px 12px;
  color: #d9e2f2;
  font-weight: 900;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.settings-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(46,189,133,0.15);
  border: 1px solid rgba(46,189,133,0.4);
  color: #68d2a7;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.settings-pill--warn {
  background: rgba(252,213,53,0.12);
  border-color: rgba(252,213,53,0.32);
  color: #fcd535;
}
.settings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.settings-chip {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e5edff;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.preset-list { display: flex; flex-direction: column; gap: 6px; }
.preset-row { display: flex; gap: 6px; align-items: center; }
.preset-row input { flex: 1; min-width: 0; }
.preset-btn {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #111724;
  color: #e5edff;
  font-weight: 800;
  cursor: pointer;
  min-width: 64px;
}
.preset-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.settings-wide { grid-column: span 2; }
@media (max-width: 820px) {
  .settings-wide { grid-column: span 1; }
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.feature-card {
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}
.feature-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.feature-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.feature-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.feature-meta {
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px dashed #1f2530;
  padding-top: 8px;
}
.feature-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0f141d;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.feature-toggle.on {
  border-color: rgba(46,189,133,0.5);
  color: #68d2a7;
  background: rgba(46,189,133,0.12);
}
.feature-toggle.off {
  border-color: rgba(246,70,93,0.5);
  color: #fca5a5;
  background: rgba(246,70,93,0.1);
}
.feature-toggle:disabled { opacity: 0.6; cursor: not-allowed; }
.admin-table {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.table-head { display: flex; justify-content: space-between; align-items: center; }
.table-head div:first-child { font-weight: 800; }
.table-meta { font-size: 11px; color: var(--text-dim); }
.table-body { display: flex; flex-direction: column; gap: 8px; }
.table-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.2fr;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
}
.table-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.table-label { font-size: 11px; color: var(--text-dim); }
.table-value { font-size: 13px; color: var(--text); word-break: break-word; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.5);
  color: #cbd5e1;
  font-weight: 800;
}
.table-empty { font-size: 12px; color: var(--text-dim); padding: 6px; }
.tg-table { gap: 12px; }
.tg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
}
.tg-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tg-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
}
.tg-status--sent {
  border-color: rgba(46,189,133,0.4);
  color: #68d2a7;
  background: rgba(46,189,133,0.12);
}
.tg-status--failed {
  border-color: rgba(246,70,93,0.4);
  color: #fca5a5;
  background: rgba(246,70,93,0.12);
}
.tg-status--scheduled {
  border-color: rgba(252,213,53,0.35);
  color: #fcd535;
  background: rgba(252,213,53,0.08);
}
.tg-status--sending {
  border-color: rgba(59,130,246,0.4);
  color: #93c5fd;
  background: rgba(59,130,246,0.12);
}
.tg-status--canceled {
  border-color: rgba(148,163,184,0.4);
  color: #94a3b8;
  background: rgba(148,163,184,0.12);
}
.tg-id { font-size: 12px; color: var(--text-dim); font-weight: 800; }
.tg-chip {
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.35);
}
.tg-text { font-size: 13px; color: var(--text); white-space: pre-wrap; }
.tg-meta { font-size: 11px; color: var(--text-dim); }
.tg-meta.tg-error { color: #fca5a5; }
.tg-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tg-actions .preset-btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .tg-row { grid-template-columns: 1fr; }
  .tg-actions { justify-content: flex-start; }
}
.support-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
  gap: 12px;
}
.support-filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0 6px;
}
.support-filter-row select {
  background: rgba(10, 15, 24, 0.85);
  border: 1px solid var(--admin-border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.support-thread-list { display: flex; flex-direction: column; gap: 8px; }
.support-thread-row {
  text-align: left;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.support-thread-row.active {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 12px 20px rgba(2,6,23,0.4);
}
.support-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.support-thread-badges { display: inline-flex; align-items: center; gap: 6px; }
.support-unread {
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f6465d;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.support-thread-row.unread { border-color: rgba(246,70,93,0.4); }
.support-thread-title { font-size: 13px; font-weight: 800; color: var(--text); }
.support-thread-meta { font-size: 11px; color: var(--text-dim); }
.support-thread-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.support-thread-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-thread-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.support-thread { display: flex; flex-direction: column; gap: 10px; }
.support-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
}
.support-status--open {
  border-color: rgba(59,130,246,0.4);
  color: #93c5fd;
  background: rgba(59,130,246,0.12);
}
.support-status--closed {
  border-color: rgba(148,163,184,0.4);
  color: #94a3b8;
  background: rgba(148,163,184,0.12);
}
.support-messages {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}
.support-message {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(16, 22, 36, 0.8);
  border: 1px solid var(--admin-border);
}
.support-message.in { align-self: flex-start; }
.support-message.out {
  align-self: flex-end;
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.35);
}
.support-message-meta { font-size: 10px; color: var(--text-dim); }
.support-message-text { font-size: 13px; color: var(--text); white-space: pre-wrap; }
.support-reply { display: flex; flex-direction: column; gap: 8px; }
.support-reply textarea {
  width: 100%;
  background: rgba(10, 15, 24, 0.85);
  border: 1px solid var(--admin-border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 600;
  resize: vertical;
  min-height: 90px;
}
.support-reply-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 980px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-messages { max-height: 320px; }
  .support-message { max-width: 100%; }
}
.contracts { display: flex; flex-direction: column; gap: 12px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.filters input,
.filters select {
  background: rgba(10, 15, 24, 0.85);
  border: 1px solid var(--admin-border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.contracts-table {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contracts-headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contracts-head { display: flex; justify-content: space-between; align-items: center; }
.contracts-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.contracts-meta { font-size: 12px; color: var(--text-dim); }
.contracts-body { display: flex; flex-direction: column; gap: 8px; }
.contracts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
}
.user-row.active {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 12px 20px rgba(2,6,23,0.4);
}
.contracts-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contracts-cell.wide { grid-column: span 2; }
.contracts-cell .sub { font-size: 11px; color: var(--text-dim); }
.contracts-cell .label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px; }
.contracts-cell .value { font-size: 13px; color: var(--text); word-break: break-word; }
.badge.status-win { color: var(--green); }
.badge.status-lose { color: var(--red); }
.badge.status-pending { color: var(--text-dim); }
.badge.status-processing { color: #38bdf8; }
.badge.status-completed { color: var(--green); }
.badge.status-rejected { color: var(--red); }
.badge.status-info { color: #38bdf8; }
.badge.status-warn { color: #facc15; }
.badge.status-error { color: #f6465d; }
.badge.status-blocked { color: #fca5a5; }
.badge.status-active { color: #7dd3fc; }
.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.withdraw-row select,
.withdraw-row .withdraw-input {
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 8px 10px;
  color: #eaecef;
  font-weight: 700;
}
.withdraw-row select { min-width: 140px; }
.withdraw-row .withdraw-input { width: 100%; }
.withdraw-row .admin-tab { width: 100%; justify-content: center; }
.withdraw-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}
.manual-order-receipt {
  margin-top: 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-receipt-modal {
  max-width: min(980px, 100%);
}
.admin-receipt-modal__body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4px 0 8px;
}
.admin-receipt-modal__image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: 14px;
  border: 1px solid var(--admin-border);
  background: rgba(255,255,255,0.03);
  object-fit: contain;
}
.withdraw-wallet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.withdraw-wallet-row .wallet-address__value {
  flex: 1;
  min-width: 200px;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.withdraw-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  white-space: nowrap;
}
.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.source-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: var(--admin-surface-2);
}
.source-label { font-size: 12px; color: var(--text); text-transform: uppercase; letter-spacing: 0.4px; display: flex; align-items: center; gap: 6px; }
.source-value { font-size: 13px; color: var(--text-dim); }
.dashboard-shell { display: flex; flex-direction: column; gap: 18px; }
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(280px, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--admin-border);
  background: linear-gradient(160deg, rgba(14, 21, 34, 0.96), rgba(8, 12, 20, 0.98));
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(240px 240px at 15% 10%, rgba(59,130,246,0.2), transparent 60%),
    radial-gradient(280px 280px at 85% 0%, rgba(34,197,94,0.16), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}
.dashboard-hero__main { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.dashboard-hero__main .title { font-size: 22px; font-weight: 800; color: var(--text); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #dbe3f4;
  font-size: 11px;
  font-weight: 700;
}
.dashboard-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-stat {
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); }
.hero-stat .value { font-size: 18px; font-weight: 800; color: var(--text); }
.hero-stat .sub { font-size: 11px; color: var(--text-dim); }
.dashboard-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.dashboard-hero__actions .admin-tab { width: 100%; justify-content: center; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.dashboard-card {
  grid-column: span 12;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dashboard-card.span-6 { grid-column: span 6; }
.dashboard-card.span-7 { grid-column: span 7; }
.dashboard-card.span-5 { grid-column: span 5; }
.dashboard-card.span-12 { grid-column: span 12; }
.dashboard-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-title { font-size: 15px; font-weight: 800; color: var(--text); }
.card-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.card-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #dbe3f4;
  font-size: 11px;
  font-weight: 800;
  align-self: flex-start;
}
.card-chip.good { color: #68d2a7; border-color: rgba(46,189,133,0.4); background: rgba(46,189,133,0.15); }
.card-chip.bad { color: #fca5a5; border-color: rgba(246,70,93,0.4); background: rgba(246,70,93,0.12); }
.card-chip.muted { color: #a9b4c5; border-color: rgba(148,163,184,0.3); background: rgba(148,163,184,0.08); }
.wallet-card.ton {
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(11, 16, 25, 0.97));
  border-color: rgba(59,130,246,0.3);
}
.wallet-card.ntt {
  background: linear-gradient(150deg, rgba(20, 19, 12, 0.92), rgba(11, 15, 22, 0.98));
  border-color: rgba(252,213,53,0.32);
}
.dashboard-card__body { display: flex; flex-direction: column; gap: 10px; }
.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.stat-row.compact { padding: 6px 8px; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); }
.stat-value { font-size: 15px; font-weight: 800; color: var(--text); text-align: right; }
.stat-sub { grid-column: 1 / -1; font-size: 11px; color: var(--text-dim); }
.dashboard-card__footer { display: flex; flex-wrap: wrap; gap: 8px; }
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #dbe3f4;
  font-size: 11px;
  font-weight: 800;
}
.stat-pill.tone-green { color: #68d2a7; border-color: rgba(46,189,133,0.4); background: rgba(46,189,133,0.12); }
.stat-pill.tone-red { color: #fca5a5; border-color: rgba(246,70,93,0.4); background: rgba(246,70,93,0.12); }
.stat-pill.tone-warn { color: #fcd535; border-color: rgba(252,213,53,0.4); background: rgba(252,213,53,0.12); }
.sources-card .source-row {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.sources-card .source-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.sources-card .source-value { color: var(--text); font-weight: 800; }
.sources-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #dbe3f4;
  font-size: 11px;
  font-weight: 800;
}
.source-pill strong { font-weight: 900; color: var(--text); }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.activity-divider {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--admin-border);
}
.activity-divider .chart-sub { margin: 0; }
.mini-stat {
  padding: 10px;
  border-radius: 14px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); }
.mini-value { font-size: 16px; font-weight: 800; color: var(--text); }
.mini-sub { font-size: 11px; color: var(--text-dim); }
.contracts-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.contracts-col {
  padding: 10px;
  border-radius: 14px;
  background: var(--admin-surface-2);
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 980px) {
  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-hero__actions { flex-direction: row; flex-wrap: wrap; }
  .dashboard-hero__actions .admin-tab { flex: 1 1 auto; }
}
@media (max-width: 860px) {
  .dashboard-card.span-6,
  .dashboard-card.span-7,
  .dashboard-card.span-5 {
    grid-column: span 12;
  }
  .activity-grid { grid-template-columns: 1fr; }
}
/* --- BOOT SPLASH --- */
.boot-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(140% 110% at 50% 0%, #0f1729 0%, #05070c 70%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 20px) 16px 32px;
  overflow: hidden;
}
.boot-layer {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}
.boot-layer.glow {
  background:
    radial-gradient(120% 120% at 22% 18%, rgba(59,130,246,0.3), transparent 60%),
    radial-gradient(110% 110% at 78% 14%, rgba(46,189,133,0.22), transparent 60%);
  filter: blur(12px);
  opacity: 0.9;
}
.boot-layer.grid {
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.6), transparent 70%);
  opacity: 0.8;
}
.boot-card {
  position: relative;
  width: min(420px, 96%);
  padding: 28px 22px 26px;
  background: linear-gradient(150deg, rgba(12, 16, 24, 0.95), rgba(7, 11, 19, 0.96));
  border: 1px solid #1f2530;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  z-index: 1;
}
.boot-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.boot-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(59,130,246,0.18), rgba(59,130,246,0.06));
  border: 1px solid rgba(59,130,246,0.65);
  box-shadow: 0 10px 24px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
.boot-icon img { width: 60%; height: 60%; object-fit: contain; }
.boot-name { display: flex; flex-direction: column; gap: 4px; }
.boot-word { color: #e5edff; text-shadow: 0 0 10px rgba(59,130,246,0.25); line-height: 1; }
.boot-status { display: inline-flex; align-items: center; gap: 6px; color: #9cc5ff; font-size: 12px; font-weight: 700; }
.boot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34,197,94,0.12);
}
.boot-meta {
  font-size: 13px;
  color: #9aa3b5;
  line-height: 1.5;
}
.boot-progress {
  height: 10px;
  border-radius: 999px;
  background: #0a0e15;
  border: 1px solid #1f2530;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,0.3);
}
.boot-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  box-shadow: 0 0 16px rgba(59,130,246,0.4);
  transition: width 0.35s ease, opacity 0.3s ease;
}
.boot-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a8b3c6;
}
.boot-spinner { animation: spin 1s linear infinite; color: #7dd3fc; }
/* --- BLOCKED SCREEN --- */
.blocked-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(140% 110% at 50% 0%, #1b0b10 0%, #09070b 70%);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 20px) 16px 32px;
  overflow: hidden;
}
.blocked-layer {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}
.blocked-layer.glow {
  background:
    radial-gradient(120% 120% at 20% 12%, rgba(246,70,93,0.32), transparent 60%),
    radial-gradient(110% 110% at 80% 14%, rgba(251,191,36,0.18), transparent 60%);
  filter: blur(14px);
  opacity: 0.85;
}
.blocked-layer.grid {
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.6), transparent 70%);
  opacity: 0.7;
}
.blocked-card {
  position: relative;
  width: min(420px, 96%);
  padding: 28px 22px 26px;
  background: linear-gradient(150deg, rgba(14, 10, 16, 0.95), rgba(8, 7, 12, 0.97));
  border: 1px solid rgba(246,70,93,0.45);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  z-index: 1;
}
.blocked-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(246,70,93,0.16);
  border: 1px solid rgba(246,70,93,0.6);
  color: #fca5a5;
  box-shadow: 0 12px 28px rgba(246,70,93,0.25);
}
.blocked-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffe4e6;
  letter-spacing: 0.3px;
}
.blocked-sub {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}
.blocked-reason {
  border: 1px solid rgba(246,70,93,0.25);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(246,70,93,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.blocked-reason .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fda4af;
}
.blocked-reason .value {
  font-size: 13px;
  color: #f8fafc;
  word-break: break-word;
}
.blocked-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
/* --- ONBOARDING --- */
.onboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 12px) 16px 22px;
  backdrop-filter: blur(6px);
}
.onboard-gradient,
.onboard-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.onboard-gradient {
  background:
    radial-gradient(130% 130% at 30% 0%, rgba(59,130,246,0.28), transparent 60%),
    radial-gradient(110% 110% at 80% 12%, rgba(34,197,94,0.24), transparent 60%),
    linear-gradient(180deg, rgba(7,12,18,0.9), rgba(5,7,12,0.92));
}
.onboard-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.35;
}
.onboard-card {
  position: relative;
  width: min(440px, 96%);
  background: rgba(10, 14, 22, 0.92);
  border: 1px solid #1f2530;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 18px 18px 16px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  z-index: 1;
  height: min(620px, calc(100dvh - 56px));
  min-height: min(520px, calc(100dvh - 56px));
}
.onboard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #a8b3c6;
}
.onboard-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #eaecef;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.onboard-sub { font-size: 11px; font-weight: 700; color: #8b95a9; }
.onboard-crumb { font-weight: 800; color: #cbd5e1; }
.onboard-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 26px 14px 18px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboard-hero.accent-blue { background: radial-gradient(120% 120% at 20% 20%, rgba(59,130,246,0.25), rgba(10,14,22,0.92)); }
.onboard-hero.accent-teal { background: radial-gradient(120% 120% at 24% 24%, rgba(34,197,94,0.22), rgba(10,14,22,0.92)); }
.onboard-hero.accent-gold { background: radial-gradient(120% 120% at 26% 18%, rgba(252,213,53,0.25), rgba(10,14,22,0.92)); }
.onboard-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
}
.onboard-blob.primary {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08), transparent 65%);
}
.onboard-blob.secondary {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 60% 60%, rgba(0,0,0,0.45), transparent 65%);
}
.onboard-icon {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.onboard-icon__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 60%);
}
.onboard-icon__circle {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f192a, #0a101d);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.5),
    0 8px 20px rgba(33,150,243,0.2),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.onboard-icon__circle svg {
  color: #eaf2ff;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}
.onboard-icon__coin {
  position: absolute;
  bottom: 6px;
  right: 4px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fcd535, #f59e0b);
  color: #111;
  box-shadow: 0 10px 20px rgba(252,213,53,0.4);
  z-index: 3;
}
.onboard-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(12, 18, 28, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 3;
}
.onboard-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34,197,94,0.16);
}
.onboard-chart {
  position: absolute;
  inset: 10px 12px auto 12px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
.onboard-chart__line {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 14% 60%, rgba(59,130,246,0.2), transparent 35%),
    radial-gradient(circle at 70% 30%, rgba(34,197,94,0.2), transparent 40%),
    linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  opacity: 0.6;
}
.onboard-chart__bars {
  position: absolute;
  inset: 22px 16px 16px 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
}
.onboard-chart__bars span {
  display: block;
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(59,130,246,0.9), rgba(16,185,129,0.85));
  box-shadow: 0 6px 16px rgba(59,130,246,0.25);
}
.onboard-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e5edff;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.onboard-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.16);
}
.onboard-pill.top { top: 12px; left: 12px; }
.onboard-pill.right { bottom: 12px; right: 12px; }
.onboard-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 130px;
}
.onboard-copy h3 {
  margin: 8px 0 6px;
  font-size: 20px;
  line-height: 1.3;
  color: #f8fafc;
}
.onboard-copy p {
  margin: 0;
  color: #a3afc3;
  line-height: 1.5;
  font-size: 14px;
}
.onboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.onboard-dots { display: inline-flex; gap: 6px; }
.onboard-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #1f2734;
  border: 1px solid #2b3139;
}
.onboard-dots .dot.active {
  width: 22px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.1);
}
.onboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(120deg, #3b82f6, #22c55e);
  color: #0a0e15;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(59,130,246,0.35);
}
@media (max-width: 480px) {
  .boot-card { padding: 22px 18px 20px; }
  .onboard-card {
    padding: 16px;
    min-height: min(480px, calc(100dvh - 44px));
    height: min(540px, calc(100dvh - 44px));
  }
  .onboard-copy { min-height: 120px; }
  .onboard-copy h3 { font-size: 18px; }
  .onboard-copy p { font-size: 13px; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.auth-splash {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 150;
}
.auth-splash__card {
  width: min(320px, 92%);
  background: linear-gradient(150deg, rgba(22, 28, 38, 0.92), rgba(10, 14, 20, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.auth-splash__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.auth-splash__note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}
.auth-splash__loader {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 140;
}
.auth-wall {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(150deg, rgba(30, 37, 48, 0.9), rgba(15, 18, 24, 0.95));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}
.auth-wall__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.auth-wall__note {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-wall__actions {
  display: flex;
  justify-content: center;
}
.auth-wall .wallet-btn {
  min-width: 160px;
}
/* --- Landing page --- */
body.landing-mode {
  overflow-y: auto;
  user-select: text;
  background: #05070c;
}
body.landing-mode #root {
  height: auto;
  min-height: 100vh;
}
.landing-shell {
  position: relative;
  min-height: 100vh;
  padding: 26px 18px 48px;
  max-width: 1180px;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--text);
  isolation: isolate;
}
.landing-aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 60%;
  background:
    radial-gradient(50% 50% at 20% 30%, rgba(59,130,246,0.12), transparent 60%),
    radial-gradient(40% 40% at 80% 10%, rgba(46,189,133,0.1), transparent 60%),
    radial-gradient(40% 40% at 50% 80%, rgba(252,213,53,0.06), transparent 70%);
  filter: blur(80px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
  animation: auroraShift 14s ease-in-out infinite alternate;
}
.landing-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.landing-main { position: relative; z-index: 1; }
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.32);
  margin-bottom: 18px;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f1622, #152031);
  display: grid;
  place-items: center;
  color: #05070c;
  box-shadow: 0 0 0 8px rgba(59,130,246,0.12);
  overflow: hidden;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #9aa3b5;
}
.brand-title {
  font-size: 14px;
  font-weight: 800;
}
.landing-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.landing-links button {
  background: transparent;
  border: none;
  color: #cdd5e5;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.landing-links button:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.landing-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.hero-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.hero-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  margin: 10px 0;
  letter-spacing: 0.2px;
}
.hero-copy .lead {
  color: #cdd5e5;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.hero-copy .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: 12px;
}
.hero-copy .pill.caution {
  background: rgba(252,213,53,0.16);
  border-color: rgba(252,213,53,0.32);
  color: #fef9c3;
}
.hero-copy .accent { color: var(--yellow); }
.hero-note {
  margin: 0 0 14px;
  color: #dce3f3;
  font-size: 13px;
  line-height: 1.55;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #cdd5e5;
  font-size: 12px;
}
.hero-tags span {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.hero-visual {
  position: relative;
  min-height: 340px;
}
.visual-card {
  background: linear-gradient(160deg, #111724, #0c1018);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: floaty 7s ease-in-out infinite;
}
.visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.visual-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  font-weight: 800;
  font-size: 12px;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(59,130,246,0.12);
  color: #9bc4ff;
  font-weight: 800;
  font-size: 12px;
}
.live-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 6px rgba(74,222,128,0.16);
  animation: pulseGlow 1.6s infinite;
}
.visual-graph {
  position: relative;
  height: 120px;
  border-radius: 14px;
  background: radial-gradient(circle at 15% 25%, rgba(56,189,248,0.22), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(167,139,250,0.18), transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(34,197,94,0.16), transparent 50%),
    #0b0f18;
  overflow: hidden;
  margin-bottom: 12px;
}
.graph-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 10px 10px;
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
}
.visual-graph .graph-lines {
  position: absolute;
  inset: 10px 12px;
}
.visual-graph .graph-lines span {
  position: absolute;
  inset: auto 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.visual-graph .graph-lines span:nth-child(1) { top: 25%; }
.visual-graph .graph-lines span:nth-child(2) { top: 50%; }
.visual-graph .graph-lines span:nth-child(3) { top: 75%; }
.visual-graph .graph-lines span:nth-child(4) { bottom: 10%; }
.glow-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(56,189,248,0), rgba(56,189,248,0.7), rgba(167,139,250,0));
  filter: blur(1px);
  opacity: 0.8;
  animation: sweep 5.5s ease-in-out infinite;
}
.chart-svg {
  position: relative;
  z-index: 2;
}
.chart-fill {
  fill: url(#chart-fill);
}
.chart-line {
  fill: none;
  stroke: url(#chart-stroke);
  stroke-width: 2.4;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.5));
}
.graph-wave {
  position: absolute;
  inset: 8px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%, rgba(255,255,255,0.05));
  border-radius: 12px;
  opacity: 0.6;
  animation: pulseWave 3.6s ease-in-out infinite;
}
.profit-pop {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(14, 160, 110, 0.16);
  border: 1px solid rgba(46,189,133,0.45);
  border-radius: 12px;
  padding: 10px 12px;
  color: #bbf7d0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  animation: popIn 0.5s ease, fadeOut 1.8s 1.2s forwards;
}
.profit-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #7ee0b6;
}
.profit-value {
  font-weight: 800;
  font-size: 16px;
}
.visual-matrix {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.matrix-cell {
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
  color: #cdd5e5;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.04);
}
.matrix-cell.reveal {
  background: rgba(252,213,53,0.14);
  color: #fcd535;
  border-color: rgba(252,213,53,0.32);
  box-shadow: 0 0 20px rgba(252,213,53,0.24);
  position: relative;
  overflow: hidden;
}
.matrix-cell.reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(252,213,53,0.3), transparent 60%);
  opacity: 0.9;
  animation: pulseGlow 1.6s infinite;
}
.visual-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.visual-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}
.chip.reveal { background: rgba(59,130,246,0.08); color: #9bc4ff; }
.chip.small { padding: 8px 10px; font-size: 11px; }
.chip .muted { color: #9aa3b5; }
.floating-card {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: min(240px, 80vw);
  background: rgba(10,12,18,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  animation: floaty 7s ease-in-out infinite reverse;
}
.floating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #cdd5e5;
  font-size: 13px;
}
.floating-row:last-child { border-bottom: none; }
.section-grid {
  position: relative;
  margin: 32px 0;
  z-index: 1;
}
.section-head {
  margin-bottom: 16px;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  color: #9aa3b5;
  margin-bottom: 6px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
}
.section-head p { color: #cdd5e5; margin: 0; }
.card-grid {
  display: grid;
  gap: 14px;
}
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.info-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.info-card.soft { background: rgba(255,255,255,0.03); }
.info-card h3 { margin: 8px 0 6px; }
.info-card p { margin: 0; color: #cdd5e5; line-height: 1.5; }
.icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  display: grid;
  place-items: center;
  color: #9bc4ff;
}
.icon-wrap.ghost {
  background: rgba(255,255,255,0.05);
  color: #eaecef;
}
.mode-card {
  background: linear-gradient(155deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}
.mode-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  font-weight: 800;
}
.mode-card ul { padding-left: 18px; color: #cdd5e5; line-height: 1.6; }
.mode-note {
  margin-top: 10px;
  font-size: 13px;
  color: #fcd535;
  font-weight: 700;
}
.tapper-card,
.payments-card {
  background: linear-gradient(160deg, rgba(59,130,246,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.tapper-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.payments-card .payments-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #cdd5e5;
}
.payments-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.faq-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.3);
}
.faq-card h3 { margin: 0 0 6px; }
.faq-card p { margin: 0; color: #cdd5e5; line-height: 1.5; }
.roadmap-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}
.roadmap-card ul { margin: 8px 0 0; padding-left: 16px; color: #cdd5e5; line-height: 1.5; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
}
.pill.soft {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.pill.subtle {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.cta-section {
  margin: 36px 0;
}
.cta-card {
  background: linear-gradient(160deg, rgba(59,130,246,0.1), rgba(46,189,133,0.08));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.landing-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #cdd5e5;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.footer-brand .brand-copy {
  min-width: 0;
}
.footer-brand .brand-eyebrow {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.5px;
}
.footer-brand .brand-title {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: #cdd5e5;
}
.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #eaecef;
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { color: var(--yellow); }
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes pulseGlow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}
@keyframes sweep {
  0% { transform: translateX(-100%); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translateX(100%); opacity: 0.2; }
}
@keyframes auroraShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px) scale(1.02); }
}
@keyframes pulseWave {
  0% { transform: translateY(6px); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 0.9; }
  100% { transform: translateY(6px); opacity: 0.4; }
}
@keyframes popIn {
  0% { transform: translateY(8px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-4px); }
}
@media (max-width: 920px) {
  .landing-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .landing-actions { justify-content: center; width: 100%; }
  .cta-card { grid-template-columns: 1fr; }
  .floating-card { position: relative; right: 0; bottom: 0; margin-top: 12px; }
}
@media (max-width: 640px) {
  .landing-shell { padding: 18px 14px 36px; }
  .hero-visual { order: -1; }
  .visual-matrix { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* --- Landscape phone layout --- */
@media (orientation: landscape) and (max-height: 520px) {
  :root {
    --content-max: 100%;
    --nav-pad-y: 4px;
    --nav-offset: calc(52px + var(--nav-pad-y) * 2);
    --safe-top: calc(var(--app-safe-top) + 6px);
  }

  .app-layout { max-width: 100%; }
  .app-header {
    min-height: 48px;
    padding: var(--safe-top) 10px 6px;
    gap: 6px;
  }
  .header-meta { gap: 6px; }
  .brand-chip { padding: 6px 10px; gap: 8px; border-radius: 12px; }
  .brand-title { font-size: 14px; }
  .brand-eyebrow { font-size: 9px; }
  .hud-stats { gap: 6px; }
  .hud-box { padding: 6px 8px; border-radius: 8px; }
  .hud-lbl { font-size: 7px; }
  .hud-val { font-size: 11px; margin-top: 2px; }
  .hud-val--tight,
  .hud-val--tiny { font-size: 10px; }
  .account-swap,
  .wallet-btn { min-width: 72px; height: 32px; font-size: 11px; padding: 0 6px; }
  .account-swap .acc-val,
  .btn-label { font-size: 11px; }

  .chart-wrapper { min-height: 180px; }
  .timer-float { top: 10px; left: 10px; padding: 4px 8px; font-size: 11px; border-radius: 12px; }
  .chart-pool-chip { top: 56px; left: 10px; padding: 5px 7px; }
  .chart-pool-chip__total,
  .chart-pool-chip__top { font-size: 9px; }
  .chart-pool-distribution {
    right: 8px;
    top: 8px;
    width: min(58vw, 250px);
    padding: 6px;
  }
  .chart-pool-distribution__head,
  .chart-pool-distribution__num,
  .chart-pool-distribution__pct { font-size: 9px; }
  .chart-pool-distribution__list {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    max-height: 70px;
  }
  .zone-chip { padding: 3px 8px; font-size: 10px; }
  .history-bar { height: 36px; padding: 0 8px; }
  .h-cell { min-width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }

  .nav-bar {
    min-height: 52px;
    gap: 6px;
    padding: var(--nav-pad-y) 8px calc(var(--nav-pad-y) + env(safe-area-inset-bottom, 0px));
  }
  .nav-item { padding: 6px 8px; font-size: 10px; border-radius: 12px; }
  .nav-item svg { width: 18px; height: 18px; }

  .round-card { margin: 8px 10px; padding: 10px; gap: 8px; }
  .live-strip { padding: 8px 10px 6px; }
  .grid-shell { margin: 0 8px 8px; padding: 8px; }
  .grid-wrap { padding: 6px; gap: 8px; }
  .grid-actions { gap: 6px; }
  .float-btn { width: 38px; height: 38px; border-radius: 12px; }
  .float-chip { min-width: 52px; height: 30px; font-size: 10px; border-radius: 10px; padding: 0 8px; }
  .trade-pool-summary { padding: 6px 8px; }
  .trade-pool-summary__total,
  .trade-pool-summary__top { font-size: 9px; }
  .num-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .num-btn { min-height: 36px; border-radius: 10px; }
  .num-main { font-size: 13px; }
  .num-fake { font-size: 9px; }
  .group-grid { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 4px; }
  .group-btn { padding: 6px 8px; font-size: 10px; border-radius: 9px; }

  .mining-screen { padding: 10px 10px 14px; gap: 10px; }
  .account-screen { padding: 12px 10px 16px; }
  .account-screen--locked { padding: 12px 10px; }
}
