@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: 14px;
}
.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: flex-end;
  padding: 16px;
  z-index: 999;
}
.ui-modal {
  width: min(640px, 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: 18px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: var(--ui-blur);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ui-modal--lg { width: min(920px, 100%); }
.ui-modal--sm { width: min(420px, 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: 100dvh;
  --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);
  --safe-top: calc(env(safe-area-inset-top, 0px) + 12px);
  --content-max: 520px;
  --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;
}
#root {
  width: 100%;
  display: flex;
  justify-content: center;
  height: var(--app-height, 100dvh);
  min-height: var(--app-height, 100dvh);
}
.app-layout {
  display: flex; flex-direction: column;
  height: 100%; width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--bg); position: relative;
  min-height: var(--app-height, 100dvh);
  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 {
  max-width: 1200px;
  width: 100%;
  padding: 12px;
  background: radial-gradient(140% 140% at 30% 0%, #0c1526 0%, #070a11 50%, #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: 1400px;
  width: 130%;
}
.app-layout > * {
  position: relative;
  z-index: 1;
}
/* --- 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);
  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: flex; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.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; min-width: 70px; flex: 1; 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-val { font-size: 13px; font-weight: 800; color: var(--text); margin-top: 4px; white-space: normal; letter-spacing: 0.2px; }
.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: 0; justify-content: flex-end; }
.account-swap {
  min-width: 110px;
  height: 40px;
  font-weight: 800;
  font-size: 13px;
  gap: 8px;
  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: 110px;
  height: 40px;
  box-shadow: 0 12px 28px rgba(59,130,246,0.24);
}
.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; }
/* --- 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: 0; /* Keep chart visible while flexing */
}
.chart-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* UI Elements on Graph */
.timer-float {
  position: absolute; top: 16px; 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;
}
.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; }
.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; } }
.chart-result-popup {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  min-width: 220px;
  background:
    radial-gradient(140% 140% at 24% 6%, rgba(59,130,246,0.2), transparent 55%),
    radial-gradient(120% 120% at 80% 0%, rgba(46,189,133,0.18), transparent 60%),
    linear-gradient(150deg, rgba(17, 22, 32, 0.96), rgba(10, 13, 20, 0.95));
  border: 1px solid rgba(91, 156, 255, 0.6);
  padding: 18px 20px; border-radius: 14px; z-index: 20; text-align: center;
  box-shadow: 0 16px 46px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.chart-result-popup::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.25), transparent 55%);
  filter: blur(18px);
  opacity: 0.7;
  z-index: 0;
}
.chart-result-popup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.05), transparent 40%, rgba(255,255,255,0.06));
  opacity: 0.4;
  z-index: 0;
}
.chart-result-popup > * { position: relative; z-index: 1; }
.res-meta { font-size: 11px; color: #9fb5d8; letter-spacing: 0.6px; text-transform: uppercase; font-weight: 800; }
.res-num { font-size: 56px; font-weight: 900; color: #dfe9ff; line-height: 1; margin: 4px 0 6px; text-shadow: 0 6px 24px rgba(59,130,246,0.4); display: inline-flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: 0.4px; }
.res-pill { font-size: 11px; font-weight: 800; color: #0b0f18; padding: 6px 9px; border-radius: 10px; background: linear-gradient(135deg, #fcd535, #2ebd85); box-shadow: 0 10px 24px rgba(252,213,53,0.25); letter-spacing: 0.4px; }
.res-num__value { display: inline-block; min-width: 38px; }
.res-win {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46,189,133,0.2), rgba(59,130,246,0.16));
  border: 1px solid rgba(46,189,133,0.4);
  box-shadow: 0 10px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  color: #e7fff2;
}
.res-win__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2ebd85, #fcd535);
  color: #0b0f18;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(46,189,133,0.35), 0 0 0 1px rgba(11,15,24,0.35);
}
.res-win__label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px; color: #b7d7c5; }
.res-win__value { display: block; font-size: 15px; font-weight: 900; color: #f8fffb; text-shadow: 0 0 12px rgba(46,189,133,0.35); }
.res-win__hint { display: block; font-size: 11px; color: #98a9bc; margin-top: 2px; letter-spacing: 0.2px; }
.win-label text { text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 0 12px rgba(59,130,246,0.3); }
/* 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; }
.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: 16px;
  padding: 24px 12px 28px;
  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-shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-card {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 12px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(120% 120% at 20% 10%, rgba(59,130,246,0.18), transparent 55%);
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}
.auth-card > * { position: relative; z-index: 1; }
.auth-highlight {
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.35);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.strong-note { color: #eaecef; font-weight: 800; }
.mining-stack {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mine-hero {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #1f2530;
  background: linear-gradient(145deg, rgba(18, 24, 35, 0.95), rgba(11, 14, 21, 0.95));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.mine-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.mine-balance {
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}
.mine-unit { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.mine-sub { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.mine-chip {
  padding: 10px 12px;
  border-radius: 12px;
  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: 800;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(252, 213, 53, 0.18);
}
.tap-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #1f2530;
  background: 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-circle {
  width: 210px;
  height: 210px;
  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: 98px; height: 98px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.mine-letter img { width: 90px; height: 90px; 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: hidden;
  z-index: 3;
}
.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;
}
@keyframes tapFloat {
  0% { opacity: 0; transform: translate(-50%, -10%) scale(0.9); }
  12% { opacity: 1; transform: translate(-50%, -30%) scale(1); }
  55% { opacity: 1; transform: translate(-50%, -110%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(0.9); }
}
.tap-prompt {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  z-index: 2;
}
.tap-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tap-chip {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #1f2530;
  background: #111720;
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.tap-chip.primary { background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.45); color: #dbeafe; }
.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; }
/* --- 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 12px; 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-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)); }
.grid-wrap { position: relative; padding: 10px 8px 6px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.grid-body { position: relative; display: flex; gap: 8px; align-items: stretch; }
.grid-inner { flex: 1; }
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 6px; }
.num-btn {
  height: 46px; background: linear-gradient(170deg, #111827, #0e1521); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; 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-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); }
.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: 520px) {
  .app-header { grid-template-columns: 1fr; padding: calc(var(--safe-top) - 4px) 10px 8px; gap: 8px; }
  .header-meta { gap: 8px; }
  .brand-chip { width: 100%; }
  .header-actions { width: 100%; justify-content: space-between; }
  .header-actions .account-swap { flex: 1; justify-content: center; min-width: 0; }
  .header-actions .btn-plus { flex: 1; justify-content: center; min-width: 0; }
  .hud-box { min-width: 64px; }
  .grid-shell { margin: 0 10px 10px; padding: 10px; }
  .grid-wrap { padding: 10px 8px 6px; }
  .num-grid { gap: 6px; }
  .num-btn { height: 42px; 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: 72px; 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: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  backdrop-filter: blur(10px);
  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;
}
.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) {
  .nav-bar { gap: 6px; padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 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) {
  .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: 40px; 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: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  backdrop-filter: blur(8px);
}
.modal-pane,
.ui-modal {
  width: 92%;
  max-width: 540px;
  background: linear-gradient(160deg, rgba(21, 25, 31, 0.96), rgba(11, 14, 17, 0.98));
  padding: 20px 20px 16px;
  border-radius: 16px 16px 12px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
  max-height: 92vh;
  overflow-y: auto;
}
.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__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; }
.round-modal__close {
  margin-top: 14px; width: 100%; padding: 12px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #2f6cf6 0%, #5cc6ff 100%); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.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-note { font-size: 12px; color: #9aa3b5; }
.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 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: 85vh;
  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-close { border: 1px solid #232a35; background: #0e131c; color: #cbd5e1; border-radius: 10px; padding: 8px 12px; font-weight: 800; cursor: pointer; }
.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-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-btn:hover { border-color: rgba(59,130,246,0.45); transform: translateY(-1px); }
.wallet-btn.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-btn.ghost { background: rgba(255,255,255,0.03); border-style: dashed; color: #cbd5e1; }
.wallet-btn.danger { border-color: rgba(246,70,93,0.6); color: #fda4af; box-shadow: 0 10px 24px rgba(246,70,93,0.18); }
.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-btn.send-btn { flex: 0 0 38%; min-width: 128px; }
.wallet-note { font-size: 12px; color: #8b949e; }
.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-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-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.withdraw-history { margin-top: 12px; }
.withdraw-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.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; }
.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; }
@media (max-width: 480px) {
  .app-layout { max-width: 100%; }
  .app-header { grid-template-columns: 1fr; padding: calc(var(--safe-top) - 4px) 10px 8px; min-height: 56px; }
  .hud-box { padding: 4px 8px; min-width: 70px; }
  .chart-wrapper { min-height: 0; }
  .modal-pane { width: 96%; margin-bottom: 12px; }
  .history-bar { padding: 0 8px; }
  .nav-bar { padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .wallet-btn.send-btn { flex: 1 1 100%; }
}
/* --- ADMIN DASHBOARD --- */
.admin-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  overflow-y: auto;
  background: radial-gradient(120% 120% at 40% 0%, #0f1a2b 0%, #0b0e11 60%, #080b12 100%);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.admin-actions { display: flex; align-items: center; gap: 8px; }
.admin-tabs { display: flex; gap: 8px; }
.admin-tab {
  border: 1px solid var(--border);
  background: #111724;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.admin-tab.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(59,130,246,0.2);
}
.admin-tab.admin-logout {
  border-color: rgba(246,70,93,0.5);
  color: #fca5a5;
  background: rgba(246,70,93,0.08);
}
.admin-tab.admin-logout:hover { background: rgba(246,70,93,0.12); }
.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(--border);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-dim);
  background: #111724;
}
.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: 10px; }
.admin-title .eyebrow { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.admin-title .title { font-size: 18px; font-weight: 800; color: var(--text); }
.admin-range { display: flex; gap: 6px; }
.range-btn {
  border: 1px solid var(--border);
  background: #111724;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.range-btn.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(59,130,246,0.15);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.metric-card {
  background: #111724;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.03);
}
.metric-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1a2030;
  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: 10px;
}
@media (min-width: 680px) {
  .admin-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.chart-card {
  background: #0f141d;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.03);
}
.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(auto-fit, minmax(220px, 1fr)); }
.settings-field { display: flex; flex-direction: column; gap: 6px; }
.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-field input: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-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; }
}
.admin-table {
  background: #0f141d;
  border: 1px solid var(--border);
  border-radius: 14px;
  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: #111724;
  border: 1px solid var(--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; }
.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: #0f1218;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.contracts-table {
  background: #0f141d;
  border: 1px solid var(--border);
  border-radius: 14px;
  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: #111724;
  border: 1px solid var(--border);
}
.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; }
.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.withdraw-row select,
.withdraw-row .withdraw-input {
  background: #0b111a;
  border: 1px solid #1f2530;
  border-radius: 10px;
  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;
}
.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(--border);
  border-radius: 10px;
  background: #111724;
}
.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); }
/* --- 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; }
/* --- 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-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 20% 20%, rgba(59,130,246,0.2), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(46,189,133,0.2), transparent 45%),
    #0c1018;
  overflow: hidden;
  margin-bottom: 12px;
}
.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(59,130,246,0), rgba(59,130,246,0.6), rgba(46,189,133,0));
  filter: blur(1px);
  opacity: 0.8;
  animation: sweep 5.5s ease-in-out infinite;
}
.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-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)); }
}
