/* 1uptrade.xyz refreshed UI */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Backgrounds ---- */
  --bg-main: #070B14;
  --bg-secondary: #0B1220;
  --bg-tertiary: #10192E;
  --bg-glass: rgba(255, 255, 255, 0.05);

  /* ---- Primary Neon (Profit / Action) ---- */
  --green-neon: #00FF99;
  --green-soft: #1DB954;
  --green-muted: #2EFF7A;

  /* ---- Secondary Neon (Tech / Trust) ---- */
  --blue-neon: #00C2FF;
  --blue-soft: #2D9CDB;
  --blue-muted: #3FA9F5;

  /* ---- Premium / Levels ---- */
  --gold: #FFD166;
  --gold-soft: #F2C94C;
  --gold-strong: #FFB703;

  /* ---- Status Colors ---- */
  --success: #00FF99;
  --warning: #FFD166;
  --danger: #FF4D4F;
  --danger-soft: #FF6B6B;
  --info: #00C2FF;

  /* ---- Text Colors ---- */
  --text-main: #FFFFFF;
  --text-secondary: #BFC7D5;
  --text-muted: #8A94A6;

  /* ---- Borders ---- */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-neon-green: rgba(0, 255, 153, 0.4);
  --border-neon-blue: rgba(0, 194, 255, 0.4);

  /* ---- Shadows / Glow ---- */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glow-green: 0 0 20px rgba(0, 255, 153, 0.45);
  --glow-blue: 0 0 20px rgba(0, 194, 255, 0.45);
  --glow-gold: 0 0 20px rgba(255, 209, 102, 0.45);
  --radius: 16px;
  --radius-lg: 20px;
  --primary: var(--green-neon);
  --primary-strong: var(--green-soft);
  --accent: var(--blue-neon);
  --panel: var(--bg-secondary);
  --panel-alt: var(--bg-tertiary);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --content-max: 1200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg-secondary), var(--bg-main));
  color: var(--text-main);
  font-family: 'Manrope', 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px at 8% -10%, rgba(0, 194, 255, 0.08), transparent 40%),
    radial-gradient(900px at 92% 12%, rgba(0, 255, 153, 0.08), transparent 42%);
  opacity: 1;
  z-index: -1;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-neon); text-decoration: none; font-weight: 600; }
a:hover { color: var(--green-neon); text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }

/* Dark neon global overrides */
::selection { background: rgba(0, 255, 153, 0.25); color: var(--text-main); }
input, select, textarea {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-neon);
  box-shadow: 0 0 0 2px rgba(0,255,153,0.2);
}
::placeholder { color: var(--text-muted); opacity: 0.85; }

.table th { color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
.table td { color: var(--text-main); border-bottom: 1px solid var(--border-light); }
.table tr:hover { background: rgba(0, 255, 153, 0.06); }

.footer, .mobile-nav {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  color: var(--text-muted);
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--green-neon); }
.small-text { font-size: 0.9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--muted); margin: 0 0 4px; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 12px; }
.brand-mark { display: flex; gap: 12px; align-items: center; }
.brand-icon, .icon-sm { width: 20px; height: 20px; }
.pill-icon { width: 18px; height: 18px; }
.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,255,153,0.15), rgba(0,194,255,0.12));
  border: 1px solid rgba(0,255,153,0.4);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  width: fit-content;
}
.label-icon { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.prose p { margin: 0 0 0.8rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }

button { font: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-block: 1px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-tertiary), var(--bg-secondary));
  background-size: 180% 180%;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(115deg, transparent 0%, rgba(99,102,241,0.16) 35%, rgba(14,165,233,0.14) 60%, transparent 90%);
  transform: translateX(-120%);
  transition: transform 0.4s ease;
  pointer-events: none;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(37,99,235,0.05), rgba(8,145,178,0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover {
  border-color: var(--green-neon); 
  color: var(--green-neon);
  transform: translateY(-1px);
  box-shadow: var(--glow-green);
  background-position: 100% 0;
}
.btn:hover::after { opacity: 1; }
.btn:hover::before { transform: translateX(140%); }
.btn.primary {
  background: linear-gradient(90deg, var(--green-neon), var(--blue-neon));
  border-color: var(--border-neon-green);
  color: #000;
  box-shadow: var(--glow-green);
}
.btn.primary:hover { 
  background: linear-gradient(90deg, var(--green-soft), var(--blue-neon));
  border-color: var(--border-neon-blue); 
  color: #000;
  transform: translateY(-2px);
}
.btn.ghost { 
  background: transparent; 
  border-color: var(--border-light); 
  color: var(--text-main);
}
.btn.ghost:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

/* Button Icons */
.btn-icon {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
  filter: brightness(1.15) saturate(1.2) drop-shadow(0 0 6px rgba(0,255,153,0.35));
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn.primary .btn-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(0,255,153,0.55));
}

.btn:hover .btn-icon.primary {
  transform: scale(1.1);
}
.btn.small { padding: 5px 8px; font-size: 0.9rem; border-radius: 999px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.btn-icon { width: 14px; height: 14px; }
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 50%;
}
.icon-btn:hover { color: var(--primary); background: var(--panel-alt); }

/* Neon action button system (global) */
.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-soft);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(14px);
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transform: translateX(-120%);
  transition: 0.6s ease;
}
.action-btn:hover::before {
  opacity: 1;
  transform: translateX(120%);
}
.action-btn .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  transition: all 0.35s ease;
}
.action-btn .icon img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.35));
}
.action-btn .label {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-main);
}
.action-btn:hover {
  transform: translateY(-4px) scale(1.02);
}
.action-btn:hover .icon {
  transform: rotate(-6deg) scale(1.15);
}
.action-btn:active {
  transform: scale(0.97);
}

.action-btn.deposit .icon {
  background: linear-gradient(135deg, var(--green-neon), var(--green-soft));
  color: #000;
  box-shadow: 0 0 25px rgba(0,255,153,0.6);
}
.action-btn.withdraw .icon {
  background: linear-gradient(135deg, var(--blue-neon), var(--blue-muted));
  color: #000;
  box-shadow: 0 0 25px rgba(0,194,255,0.6);
}
.action-btn.record .icon {
  background: linear-gradient(135deg, var(--blue-neon), #00ffd1);
  color: #000;
  box-shadow: 0 0 22px rgba(0,194,255,0.6);
}
.action-btn.trade {
  border-color: rgba(0,255,153,0.5);
  box-shadow: 0 0 35px rgba(0,255,153,0.15);
}
.action-btn.trade .icon {
  background: linear-gradient(135deg, var(--green-neon), var(--blue-neon));
  color: #000;
  box-shadow: 0 0 35px rgba(0,255,153,0.6);
}
.action-btn.referral .icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #000;
  box-shadow: 0 0 25px rgba(255,209,102,0.6);
}
.action-btn.staking .icon {
  background: linear-gradient(135deg, var(--green-neon), #34d399);
  color: #000;
  box-shadow: 0 0 25px rgba(0,255,153,0.6);
}
.action-btn.support .icon {
  background: linear-gradient(135deg, #5ac8fa, var(--blue-neon));
  color: #000;
  box-shadow: 0 0 25px rgba(0,194,255,0.6);
}
.action-btn.account .icon {
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  color: #000;
  box-shadow: 0 0 18px rgba(255,255,255,0.5);
}
.action-btn.overview .icon {
  background: linear-gradient(135deg, var(--blue-neon), #00ffd1);
  color: #000;
  box-shadow: 0 0 25px rgba(0,194,255,0.6);
}
.action-btn.transfer .icon {
  background: linear-gradient(135deg, var(--blue-neon), var(--blue-soft));
  color: #000;
  box-shadow: 0 0 22px rgba(0,194,255,0.6);
}
.action-btn.nav-btn {
  padding: 16px 18px;
  gap: 14px;
}
.action-btn.nav-btn .icon {
  width: 52px;
  height: 52px;
}

@media (max-width: 720px) {
  .action-btn { padding: 12px 14px; gap: 12px; }
  .action-btn .icon { width: 46px; height: 46px; border-radius: 12px; }
  .action-btn .icon img { width: 22px; height: 22px; }
  .action-btn .label { font-size: 16px; letter-spacing: 0.5px; }
}

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--text); }
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: var(--text);
  transition: all 0.3s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
textarea { resize: vertical; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 4px; }

.tabs {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--panel-alt);
  border: 5px solid var(--border);
  border-radius: var(--radius);
}
.tab-button {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.tab-button.active {
  background: var(--panel);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel.hidden { display: none !important; }
.auth-card .tab-panel.is-active { display: grid; gap: 12px; }

.inline-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  color: var(--text-main);
}
.inline-notice.warning { border-color: rgba(255, 209, 102, 0.4); background: rgba(255, 209, 102, 0.08); }
.notice-icon { width: 18px; height: 18px; margin-top: 2px; }
.notice-title { margin: 0; font-weight: 700; }
.notice-text { margin: 2px 0 0; color: var(--muted); }

.dashboard-alert-row {
  position: sticky;
  top: 0;
  z-index: 50;
}
.ticker-notice {
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(8,145,178,0.14));
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 10px 30px rgba(37,99,235,0.15);
  overflow: hidden;
}
.ticker-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}
.ticker-track {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.ticker-track .notice-text {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  animation: ticker-run 14s linear infinite;
  color: #0f172a;
  font-weight: 600;
}
@keyframes ticker-run {
  0% { transform: translateX(0); }
  100% { transform: translateX(-60%); }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: capitalize;
}
.badge-ok { background: rgba(22, 163, 74, 0.1); color: var(--success); }

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px;
}
.window {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.window.soft { 
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.window-body,
.dashboard-pane,
.profile-strip,
.wallet-card,
.wallet-stat,
.market-card,
.connection-chip,
.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  position: relative;
}
.title-bar,
.title-bar-text,
.title-user,
.wallet-label,
.wallet-value {
  color: var(--text-main);
}
.title-bar > .title-bar-text,
.title-bar > .overview-connection {
  flex: 1 1 0;
}
.title-bar-text { 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--text);
}

.global-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  padding: 12px;
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.92));
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.25), 0 2px 8px rgba(0,0,0,0.25);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}
.global-loading.hidden { display: none; }
.global-loading.done { opacity: 0; transition: opacity 0.4s ease; }
.gl-brand img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--glow-green);
  background: var(--bg-tertiary);
}

.network-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.94), rgba(239, 68, 68, 0.9));
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.35);
  z-index: 9999;
}
.network-banner.hidden { display: none; }
.network-banner .network-text { display: grid; gap: 2px; }
.network-banner strong { font-size: 0.95rem; }
.network-banner span { font-size: 0.9rem; opacity: 0.9; }
.gl-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a5b4fc, #6366f1);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(99,102,241,0.15);
}
.gl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0f2fe;
  box-shadow: 0 0 0 6px rgba(224, 242, 254, 0.2);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.gl-text { flex: 1; display: grid; gap: 6px; }
.gl-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.gl-fill {
  position: absolute;
  inset: 0;
  width: 8%;
  background: linear-gradient(90deg, #22c55e, #06b6d4, #6366f1);
  background-size: 200% 100%;
  animation: loading-flow 1.1s linear infinite;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
  transition: width 0.3s ease;
}
.gl-text div:first-child { font-weight: 700; font-size: 0.95rem; }

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}
@keyframes loading-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.title-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.8;
}
.window-body { padding: 14px; }

.dashboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: var(--dashboard-grid-template, repeat(auto-fit, minmax(320px, 1fr)));
  align-items: start;
}
.dashboard-grid.dashboard-layout-two-col {
  --dashboard-grid-template: minmax(280px, 280px) minmax(0, 1fr);
}

@media (max-width: 1150px) {
  .dashboard-grid.dashboard-layout-two-col {
    --dashboard-grid-template: repeat(auto-fit, minmax(320px, 1fr));
  }
}
.dashboard-pane { border-radius: var(--radius-lg); }
.dashboard-pane:not(.active-pane):not([data-fixed-pane="true"]) { display: none; }

.auth-page { display: flex; align-items: center; justify-content: center; }
.auth-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--content-max);
  width: 100%;
  padding: clamp(16px, 4vw, 40px);
}
.auth-shell.login-shell {
  position: relative;
  isolation: isolate;
}
.auth-shell.login-shell::before,
.auth-shell.login-shell::after {
  content: "";
  position: absolute;
  filter: blur(6px);
  z-index: -1;
}
.auth-shell.login-shell::before {
  inset: -120px auto auto -120px;
  width: clamp(260px, 32vw, 420px);
  height: clamp(260px, 32vw, 420px);
  background: radial-gradient(circle at 30% 30%, rgba(0, 194, 255, 0.22), transparent 60%);
}
.auth-shell.login-shell::after {
  inset: auto -140px -140px auto;
  width: clamp(280px, 36vw, 460px);
  height: clamp(280px, 36vw, 460px);
  background: radial-gradient(circle at 60% 60%, rgba(0, 255, 153, 0.24), transparent 58%);
}
.auth-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow);
}
.auth-hero h1 { margin: 6px 0 10px; }
.auth-hero p { margin: 0; color: var(--text-secondary); }
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.hero-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: linear-gradient(120deg, rgba(0,255,153,0.08), rgba(0,194,255,0.08));
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.14);
}
.auth-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3vw, 28px);
  color: var(--text);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,255,153,0.12), rgba(0,194,255,0.08), rgba(255,255,255,0));
  opacity: 0.6;
  pointer-events: none;
}
.auth-card > * { position: relative; z-index: 1; }
.login-card { backdrop-filter: blur(6px); }
.login-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.auth-tagline { margin: 2px 0 0; color: var(--text-secondary); }
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  margin: 10px 0 6px;
  border-radius: 14px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.auth-tabs .tab-button {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  padding: 12px 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}
.auth-tabs .tab-button:hover { border-color: var(--primary); color: var(--text); }
.auth-tabs .tab-button.tab-active,
.auth-tabs .tab-button.active {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #020617;
  border-color: var(--border-neon-green);
  box-shadow: 0 10px 26px rgba(0, 255, 153, 0.26);
}
.tab-panels { margin-top: 12px; display: grid; gap: 16px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; gap: 12px; }
.auth-form { display: grid; gap: 12px; }
.auth-actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.auth-actions .btn {
  width: 100%;
  justify-content: center;
}
.auth-note {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}
.login-tips {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 10px;
}
.login-tips li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 600;
}
.auth-footer-links a { color: var(--text); }
.auth-summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.summary-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.login-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--muted);
}
.auth-tagline { margin: 4px 0 0; color: var(--muted); }
.auth-actions { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.auth-note { color: var(--muted); font-size: 0.9rem; }
.login-tips {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}
.login-tips li { display: flex; align-items: center; gap: 8px; }
.auth-footer-links { margin-top: 16px; color: var(--muted); }
.auth-footer-links a { color: var(--text); font-weight: 600; }

.dashboard-body {
  background: radial-gradient(circle at top, var(--bg-secondary), var(--bg-main));
  color: var(--text-main);
}
.dashboard-body::before { background: none; }
.dashboard-body .page-shell {
  max-width: 520px;
  margin: 0 auto;
  display: block;
  padding: 12px 10px 100px;
}
.dashboard-body .page-shell > * { grid-column: auto; }
.dashboard-body .desktop-nav { grid-row: auto; }
.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.nav-brand strong { font-size: 1.05rem; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.desktop-nav {
  display: none;
  position: sticky;
  top: 68px;
  align-self: flex-start;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
}
.desktop-nav h4 { margin: 0 0 8px; }
.desktop-nav .nav-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.desktop-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}
.desktop-nav a:hover { border-color: var(--green-neon); color: var(--green-neon); }
.nav-search {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-main);
  min-width: 200px;
}
.nav-user {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-neon), var(--blue-neon));
  border: 1px solid var(--border-neon-blue);
}

.overview-hero { margin-top: 12px; }
.header-cards { width: 100%; }
.title-user { display: inline-flex; gap: 6px; align-items: center; font-size: 0.95rem; color: var(--muted); }
.email-guard { display: inline-flex; gap: 6px; align-items: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-dashboard {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  color: var(--text-main);
}
.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}
.topbar-brand img[data-app-icon] {
  width: clamp(32px, 6vw, 44px);
  height: clamp(32px, 6vw, 44px);
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.brand-name { text-transform: uppercase; font-size: 0.95rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-action { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.topbar-action .action-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.02em; }
.circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  display: grid;
  place-items: center;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.circle-btn:hover { transform: translateY(-2px); border-color: var(--primary); }
.circle-btn img { width: 18px; height: 18px; }
.mobile-topbar .add-home-text { display: none; }

.profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.avatar-block { display: flex; align-items: center; gap: 10px; }
.avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.avatar-ring img { width: 28px; height: 28px; }
.profile-text { display: grid; gap: 2px; }
.profile-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--text); min-width: 0; }
.profile-name #user-email {
  display: inline-block;
  max-width: min(240px, 60vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
  color: #ffffff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
}
.connection-row {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 12px;
}
.connection-row .connection-chip {
  width: fit-content;
}
@media (max-width: 540px) {
  .connection-row {
    justify-content: center;
  }
  .connection-row .connection-chip {
    width: 100%;
    justify-content: center;
  }
}
.connection-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  position: relative;
}
.connection-chip[data-state="live"] {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
  border-color: rgba(46, 204, 113, 0.5);
}
.connection-chip img { width: 18px; height: 18px; }
.connection-chip p { margin: 0; }
.connection-chip.compact {
  padding: 6px 8px;
  gap: 6px;
}
.connection-chip.compact img {
  width: 16px;
  height: 16px;
}
.live-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,194,255,0.4);
  animation: pulse 1.8s ease-in-out infinite;
}
.connection-chip[data-state="live"] .live-pulse {
  background: var(--green-neon);
  box-shadow: 0 0 0 0 rgba(0,255,153,0.4);
}
.connection-chip[data-state="live"] #overview-connection-icon {
  animation: breathe 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(0,255,153,0.6));
}
.connection-chip[data-state="loading"] #overview-connection-icon {
  animation: spin 2s linear infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,194,255,0.35); transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(0,194,255,0); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 rgba(0,194,255,0); transform: scale(1); }
}
@keyframes breathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 540px) {
  .profile-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .connection-chip {
    width: 100%;
  }
  .connection-chip.compact {
    justify-content: flex-start;
  }
}

.wallet-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.8;
}
.wallet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 600;
}
.wallet-head-actions .icon-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.wallet-head-actions .icon-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: var(--primary);
}

.balance-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.wallet-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.wallet-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 6px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.wallet-box .wallet-amount { font-weight: 800; font-size: 1.4rem; }
.wallet-box .label { color: var(--muted); font-weight: 700; }

/* Wallet Overview Grid - Professional Design */
.wallet-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

@media (min-width: 768px) {
  .wallet-overview-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .wallet-stat.highlight {
    grid-column: span 2;
  }
}

.wallet-stat {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wallet-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wallet-stat:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.wallet-stat:hover::before {
  opacity: 1;
}

.wallet-stat.highlight {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 
    0 20px 25px -5px rgba(37, 99, 235, 0.25),
    0 10px 10px -5px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wallet-stat.highlight::before {
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  opacity: 1;
}

.wallet-label {
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Icons before labels */
.wallet-stat[data-icon="profit"] .wallet-label::before { content: "↑"; color: #059669; }
.wallet-stat[data-icon="referral"] .wallet-label::before { content: "👥"; color: #0891b2; }
.wallet-stat[data-icon="balance"] .wallet-label::before { content: "💰"; color: #2563eb; }
.wallet-stat[data-icon="hold"] .wallet-label::before { content: "🔒"; color: #d97706; }
.wallet-stat[data-icon="pending"] .wallet-label::before { content: "⏳"; color: #ca8a04; }
.wallet-stat[data-icon="staked"] .wallet-label::before { content: "📈"; color: #7c3aed; }
.wallet-stat[data-icon="deposit"] .wallet-label::before { content: "📥"; color: #64748b; }
.wallet-stat[data-icon="withdraw"] .wallet-label::before { content: "📤"; color: #64748b; }
.wallet-stat[data-icon="total"] .wallet-label::before { content: "💎"; color: #ffffff; }

.wallet-value {
  color: #1e293b;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  font-feature-settings: "tnum";
  position: relative;
}

.wallet-value.dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  align-items: start;
}

.wallet-value.dual .wallet-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-value.dual .small-label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.wallet-value small {
  font-size: 0.7em;
  opacity: 0.7;
  font-weight: 500;
}

.wallet-stat.highlight .wallet-label {
  color: rgba(255, 255, 255, 0.9);
}

.wallet-stat.highlight .wallet-value {
  color: #ffffff;
  font-size: 1.5rem;
}

/* Color-coded wallet values */
.wallet-value.profit { color: #059669; }
.wallet-value.referral { color: #0891b2; }
.wallet-value.balance { color: #2563eb; }
.wallet-value.hold { color: #d97706; }
.wallet-value.pending { color: #ca8a04; }
.wallet-value.staked { color: #7c3aed; }
.wallet-value.total { 
  color: #ffffff; 
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.wallet-actions .action-btn {
  width: 100%;
  justify-content: flex-start;
}
.wallet-actions .action-btn .label { font-size: 17px; }

@media (max-width: 768px) {
  .wallet-actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .wallet-actions .action-btn { padding: 12px 14px; gap: 10px; }
  .wallet-actions .action-btn .icon { width: 44px; height: 44px; }
  .wallet-actions .action-btn .label { font-size: 15px; }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.stat-card strong { 
  color: var(--text); 
  font-size: 1.15rem; 
  font-weight: 700;
}
.stat-card:nth-child(1) strong { color: var(--danger); }
.stat-card:nth-child(2) strong { color: var(--success); }
.stat-card:nth-child(3) strong { color: var(--primary); }
.stat-card:nth-child(4) strong { color: var(--accent); }
.stat-card.full { 
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #ffffff;
}
.stat-card.full strong { color: #ffffff; }

.account-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.account-chips .chip {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.account-chips .chip strong { 
  color: var(--text); 
  font-size: 1.05rem; 
  font-weight: 700;
}

.wallet-band { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.wallet-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 25px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}
.wallet-total { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wallet-value { font-size: 1.4rem; font-weight: 800; }
.wallet-pnl strong { transition: color 0.15s ease; }
.wallet-pnl.profit strong { color: var(--success); }
.wallet-pnl.loss strong { color: var(--danger); }
.wallet-tabs {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.wallet-tabs.quick-nav .action-btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 96px;
}
.wallet-tabs .action-btn .icon { width: 52px; height: 52px; }
.wallet-tabs .action-btn .label { font-size: 16px; letter-spacing: 0.6px; }
.wallet-tabs .action-btn.active {
  border-color: rgba(0,255,153,0.5);
  box-shadow: 0 0 28px rgba(0,255,153,0.14);
}
.wallet-tabs .action-btn.active .icon { transform: rotate(-3deg) scale(1.12); }
@media (max-width: 768px) {
  .wallet-tabs { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .wallet-tabs.quick-nav .action-btn { min-height: 82px; padding: 12px 14px; gap: 10px; }
  .wallet-tabs .action-btn .icon { width: 44px; height: 44px; }
  .wallet-tabs .action-btn .icon img { width: 20px; height: 20px; }
  .wallet-tabs .action-btn .label { font-size: 15px; }
}
.wallet-accounts {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--panel);
}
.wallet-account-head { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.wallet-account-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.wallet-account-list li {
  display: flex;
  justify-content: space-between;
  background: var(--panel-alt);
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.main-area { grid-column: 1 / -1; }
.assets-body { display: grid; gap: 12px; }
.assets-header { display: flex; align-items: center; justify-content: space-between; }
.assets-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.assets-actions { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); 
  gap: 12px; 
}
.assets-actions .action-btn {
  width: 100%;
  justify-content: flex-start;
}
.assets-actions .action-btn .label { font-size: 16px; }
@media (max-width: 768px) {
  .assets-actions { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

.assets-account-card {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.assets-bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.assets-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}
.assets-bottom-nav a.active { border-color: var(--primary); color: var(--primary); }
.add-home-btn .add-home-icon { display: none; }

.market-grid { 
  display: grid; 
  gap: 12px; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

@media (max-width: 768px) {
  .market-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.market-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
  min-height: 80px;
  transition: all 0.3s ease;
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.market-card img { 
  width: 32px; 
  height: 32px; 
  object-fit: contain; 
  border-radius: 8px;
}
.market-meta strong { font-size: 1rem; }
.market-meta small { color: var(--muted); }
.market-stats { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.price { font-weight: 800; color: var(--text); }
.change { font-weight: 700; }
.change-up { color: var(--success); }
.change-down { color: var(--danger); }

.terminal { display: grid; gap: 12px; }
.trade-note { padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--panel-alt); color: var(--muted); }
.candle-view, .trade-schedule {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.05);
}
.trade-window-label { color: var(--muted); font-weight: 600; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.table th { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.trade-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Trade Button Styles */
.trade-btn {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: var(--text);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.trade-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(8, 145, 178, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trade-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.trade-btn:hover::before {
  opacity: 1;
}

.trade-btn.responsive {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.trade-btn .btn-icon {
  transition: all 0.3s ease;
}

.trade-btn:hover .btn-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .trade-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}
.trade-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.trade-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.trade-card .trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.trade-card .trade-row:first-of-type { border-top: 0; padding-top: 0; }
.trade-card .trade-row strong { font-weight: 800; }
.trade-card .meta { display: grid; gap: 4px; color: var(--muted); font-size: 0.95rem; }
.trade-card .amount { font-weight: 800; }
.trade-card.trade-profit {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.12);
}
.trade-card.trade-loss {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}
.trade-card.trade-pending {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}
.trade-card.trade-pending .trade-timer { color: var(--primary); font-variant-numeric: tabular-nums; }
.activity-cards #tbl-activity {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.activity-cards #tbl-activity tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.activity-cards #tbl-activity td {
  border: none;
  padding: 0;
  color: var(--text);
}
.activity-cards #tbl-activity tr td:first-child { font-weight: 700; }

/* Professional Activity Cards */
.activity-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.activity-card:hover::before {
  opacity: 1;
}

.activity-card.profit {
  border-left: 4px solid var(--success);
}

.activity-card.profit::before {
  background: var(--success);
}

.activity-card.rejected {
  border-left: 4px solid var(--danger);
}

.activity-card.rejected::before {
  background: var(--danger);
}

.activity-card.completed {
  border-left: 4px solid var(--success);
}

.activity-card.completed::before {
  background: var(--success);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.activity-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--panel-alt);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.activity-type.profit {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
  color: var(--success);
}

.activity-type.rejected {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
  color: var(--danger);
}

.activity-type.completed {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.05));
  color: var(--success);
}

.activity-timestamp {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.activity-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.activity-message {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.activity-note {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.activity-amount {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.activity-amount.profit {
  color: var(--success);
}

.activity-amount.rejected {
  color: var(--danger);
}

.activity-amount.completed {
  color: var(--text);
}

@media (max-width: 768px) {
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .activity-card {
    padding: 16px;
  }
}

.window.soft.collapsible .title-bar { cursor: pointer; }
.window.soft.collapsible.collapsed .window-body { display: none; }

.notice-banner .banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
}
.notice-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.coin-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-alt);
}
.contact-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.contact-msg { margin: 8px 0; color: var(--text); }
.contact-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.referral-share { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.referral-share-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  display: grid;
  gap: 6px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}
.referral-link-row { display: flex; gap: 8px; }
.referral-link-row input { flex: 1; }
.referral-stats-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.ref-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel-alt);
}
.referral-levels { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ref-level-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
.ref-level-card.unlocked { border-color: var(--success); box-shadow: 0 8px 16px rgba(22, 163, 74, 0.12); }
.ref-level-head { font-weight: 800; margin-bottom: 6px; }
.ref-level-body { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.referral-data-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  margin-top: 10px;
}

/* Wallet chain icon (deposit wallets) */
.wallet-chain-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.wallet-chain-icon img {
  max-width: 65px;
  max-height: 65px;
}

.staking-section { display: grid; gap: 14px; }
.staking-calculator {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  display: grid;
  gap: 12px;
}
.staking-calculator-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.staking-calc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.staking-calc-results { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.calc-result {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--panel-alt);
}
.staking-plan-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.staking-plan-grid > div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--panel);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.05);
}
.staking-plan-grid > div header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.steps-list { margin: 8px 0 0; padding-left: 1.2rem; color: var(--muted); }

.footer {
  max-width: var(--content-max);
  margin: 24px auto;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}
.footer a { color: var(--text); font-weight: 600; margin: 0 6px; }
.footer-social img { width: 18px; height: 18px; }

.page-header {
  max-width: var(--content-max);
  margin: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: linear-gradient(135deg, rgba(7, 11, 20, 0.9), rgba(16, 25, 46, 0.9));
  border-top: 1px solid var(--border-strong);
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  gap: 12px;
  z-index: 1200;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 194, 255, 0.12);
  backdrop-filter: blur(14px);
}
.mobile-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 12px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mobile-nav a:hover { 
  border-color: var(--primary); 
  color: var(--primary);
  transform: translateY(-1px);
}
.mobile-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transform: translateX(-120%);
  transition: 0.6s ease;
}
.mobile-nav a:hover::before,
.mobile-nav a.active::before {
  opacity: 1;
  transform: translateX(120%);
}
.mobile-spacer { height: 88px; }

.mobile-nav + .mobile-spacer { height: 72px; }
.mobile-nav a span { font-size: 0.9rem; line-height: 1.1; }
.mobile-nav a img { 
  width: 22px; 
  height: 22px; 
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(0, 132, 255, 0.28);
  transition: all 0.3s ease, background 0.3s ease;
  object-fit: contain;
}

.mobile-nav a:hover img {
  transform: scale(1.1);
}

.mobile-nav a.active img {
  transform: scale(1.15);
  background: linear-gradient(135deg, var(--green-neon), var(--green-soft));
  box-shadow: 0 0 18px rgba(0,255,153,0.28);
}

.mobile-spacer { height: 96px; }
.mobile-nav + .mobile-spacer { height: 100px; }

@media (max-width: 640px) {
  .assets-bottom-nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .assets-bottom-nav a {
    flex: 1 1 calc(50% - 10px);
    min-width: 120px;
    padding: 10px 8px;
    text-align: center;
  }
  .assets-bottom-nav a img {
    width: 22px;
    height: 22px;
  }
  .assets-bottom-nav a span {
    font-size: 0.92rem;
    line-height: 1.1;
  }

  .mobile-nav {
    padding: 8px 10px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .mobile-nav a {
    padding: 9px 8px;
    gap: 6px;
    min-width: 0;
  }
  .mobile-nav a img {
    width: clamp(20px, 6vw, 26px);
    height: clamp(20px, 6vw, 26px);
    object-fit: contain;
  }
  .mobile-nav a span {
    font-size: clamp(11px, 3vw, 14px);
    line-height: 1.15;
  }

  .action-btn.nav-btn,
  .assets-actions .action-btn,
  .wallet-tabs.quick-nav .action-btn,
  .wallet-actions .action-btn {
    padding: 10px 12px;
    gap: 8px;
  }
  .action-btn.nav-btn .icon,
  .assets-actions .action-btn .icon,
  .wallet-tabs.quick-nav .action-btn .icon,
  .wallet-actions .action-btn .icon {
    width: 42px;
    height: 42px;
  }
  .action-btn.nav-btn .icon img,
  .assets-actions .action-btn .icon img,
  .wallet-tabs.quick-nav .action-btn .icon img,
  .wallet-actions .action-btn .icon img {
    width: 18px;
    height: 18px;
  }
  .action-btn.nav-btn .label,
  .assets-actions .action-btn .label,
  .wallet-tabs.quick-nav .action-btn .label,
  .wallet-actions .action-btn .label {
    font-size: 14px;
    line-height: 1.15;
  }
}

.fab-trade {
  position: fixed;
  right: 16px;
  bottom: 90px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
}

/* Gift box */
.gift-stack {
  display: grid;
  gap: 12px;
}
.gift-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(0,255,153,0.08), rgba(0,194,255,0.06));
  box-shadow: var(--shadow);
}
.gift-card.soft {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.gift-card h4 { margin: 4px 0; }
.gift-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  z-index: 2400;
  padding: 12px;
}
.gift-modal.hidden { display: none; }
.gift-modal-card {
  width: min(520px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Admin gift settings */
.gift-admin-grid {
  display: grid;
  gap: 16px;
}
.gift-schedule-grid {
  display: grid;
  gap: 12px;
}
.gift-day-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.toasts {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}
.toast {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--text);
}
.toast.success { border-color: rgba(22, 163, 74, 0.4); color: var(--success); }
.toast.error { border-color: rgba(220, 38, 38, 0.4); color: var(--danger); }
.toast.info { border-color: rgba(14, 165, 233, 0.4); color: #075985; }

.error-alerts {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2100;
  max-width: 360px;
}
.error-alert {
  position: relative;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.alert-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.1));
  opacity: 0.25;
  pointer-events: none;
}
.error-alert strong { display: block; margin-bottom: 4px; }
.error-alert p { margin: 0; color: var(--muted); }
.error-alert .alert-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.error-alert .alert-action {
  margin-top: 8px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.tone-warning { border-color: rgba(245, 158, 11, 0.5) !important; }
.tone-danger { border-color: rgba(220, 38, 38, 0.5) !important; }

@media (min-width: 900px) {
  .mobile-nav, .mobile-spacer { display: none; }
  .desktop-nav { display: block; }
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .wallet-band { grid-template-columns: 1fr; }
  .assets-actions, .wallet-actions { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .title-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dashboard-nav { position: sticky; top: 0; }
  .admin-scaffold { grid-template-columns: 1fr; }
  .admin-sidebar {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 120;
    background: radial-gradient(circle at 20% 10%, rgba(0,255,153,0.1), transparent 36%), radial-gradient(circle at 90% 0%, rgba(0,194,255,0.08), transparent 40%), var(--bg-main);
    padding: 8px 6px;
    border-radius: var(--radius-lg);
  }
  .sidebar-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .sidebar-link { white-space: nowrap; }
  .admin-panels { grid-template-columns: 1fr; }
  .user-layout { grid-template-columns: 1fr; }
  .page-shell { grid-template-columns: 1fr; }
  .page-shell > * { grid-column: auto; }
  .dashboard-body .page-shell { grid-template-columns: 1fr; }
  .dashboard-body .page-shell > * { grid-column: auto; }
}


.win98, .admin-shell { background: var(--page-bg); color: var(--text); }
.win98-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.win98-toolbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }

.admin-scaffold {
  max-width: 1400px;
  width: 100%;
  margin: 16px auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
  padding: 0 20px 28px;
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 12px;
  height: fit-content;
  z-index: 90;
}
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 12px;
  box-shadow: var(--shadow);
}
.sidebar-card.subtle {
  background: linear-gradient(145deg, rgba(0,255,153,0.08), rgba(0,194,255,0.05));
  border-color: var(--border-neon-green);
  color: var(--text);
}
.sidebar-label { margin: 0 0 6px; color: var(--text-secondary); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
.sidebar-list { display: grid; gap: 8px; }
.sidebar-link {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  font-weight: 800;
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.18);
}
.sidebar-link img { width: 18px; height: 18px; filter: brightness(1.1); }
.sidebar-link:hover {
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateX(3px);
  box-shadow: var(--glow-green);
}
.sidebar-link.active {
  border-color: var(--border-neon-green);
  color: #04121a;
  background: linear-gradient(135deg, rgba(0,255,153,0.18), rgba(0,194,255,0.14));
  box-shadow: 0 10px 30px rgba(0,255,153,0.22), inset 0 1px 0 rgba(255,255,255,0.12);
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.sidebar-link.active img { filter: brightness(0.2); }
.sidebar-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  color: var(--text-main);
  border-color: var(--primary);
}

/* Floating CTA button */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
  z-index: 1200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-cta:hover,
.floating-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.45);
}
.floating-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.floating-cta-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.floating-cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.floating-cta-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.floating-cta-label.hidden {
  display: none;
}
@media (max-width: 720px) {
  .floating-cta {
    bottom: 5rem;
    right: 0.95rem;
  }
}
.admin-content { display: grid; gap: 10px; }
.admin-panels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px;
}
.admin-alert-window .title-bar-text {
  color: var(--text) !important;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}
.admin-alert-body .alert-copy h4 {
  color: var(--text-main);
}
.admin-alert-body .alert-copy .muted {
  color: var(--text-secondary);
  font-weight: 500;
}
.admin-card h3 { margin: 0 0 8px; }
.admin-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.admin-stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-alt);
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.04);
}
.admin-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.admin-login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}
/* Admin forms: keep every setting on its own row for clarity */
.admin-shell .form-grid {
  grid-template-columns: 1fr;
}
.admin-shell .form-grid > * {
  grid-column: 1 / -1;
}
.admin-shell .form-grid .form-actions {
  justify-content: flex-start;
}
/* Admin panels: one card per row */
.admin-shell .admin-grid {
  grid-template-columns: 1fr;
}
.admin-shell .user-layout {
  grid-template-columns: 1fr;
}
.admin-shell .user-card-list,
.admin-shell .overview-metrics,
.admin-shell .user-buckets,
.admin-shell .pending-grid {
  grid-template-columns: 1fr;
}
.auth-hero ul { padding-left: 1.2rem; margin: 8px 0 0; color: var(--muted); }
.auth-hero .hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; color: var(--muted); }
.admin-main { display: flex; flex-direction: column; gap: 16px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 4px; }
.admin-grid { display: flex; flex-direction: column; gap: 10px; }
.admin-main, .admin-grid, .admin-content { max-width: none; }
.pending-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pending-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}
.pending-card.soft { background: var(--panel-alt); }
.pending-label { color: var(--muted); font-weight: 600; }
.pending-value { font-weight: 800; font-size: 1.4rem; }
.overview-metrics, .user-buckets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.metric-card, .bucket-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}
.bucket-card.full { grid-column: 1 / -1; }
.bucket-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bucket-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-user-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { color: var(--muted); font-weight: 700; }
.user-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.user-card-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.user-card-list .card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 12px; box-shadow: 0 6px 14px rgba(15,23,42,0.05); }
.user-editor { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--panel-alt); box-shadow: inset 0 0 0 1px rgba(37,99,235,0.04); }
.admin-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-grid { display: flex; flex-direction: column; gap: 10px; }

/* Force single-column stacking for all admin grids/cards */
.admin-shell .admin-grid,
.admin-shell .user-card-list,
.admin-shell .user-layout,
.admin-shell .overview-metrics,
.admin-shell .user-buckets,
.admin-shell .pending-grid {
  grid-template-columns: 1fr !important;
}

/* New admin stack layout */
.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.admin-group {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.group-head h3 { margin: 2px 0; }
.group-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-group .window {
  box-shadow: none;
  border: 1px solid var(--border);
}
.admin-group .window + .window { margin-top: 8px; }
.admin-group.hidden { display: none; }
/* Focused admin panels */
.admin-shell .admin-panel {
  background: linear-gradient(150deg, rgba(7,11,20,0.85), rgba(16,25,46,0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.admin-shell .admin-panel .title-bar {
  background: linear-gradient(135deg, rgba(0,255,153,0.12), rgba(0,194,255,0.06));
  border-bottom-color: var(--border-strong);
  color: var(--text);
}
.admin-shell .admin-panel .title-bar::before { opacity: 0.9; }
.admin-shell .admin-panel .window-body { padding: 16px; }
.admin-shell .pending-card,
.admin-shell .metric-card,
.admin-shell .bucket-card {
  position: relative;
  overflow: hidden;
  border-color: var(--border-strong);
  background: linear-gradient(145deg, rgba(0,255,153,0.08), rgba(0,194,255,0.05));
}
.admin-shell .pending-card::before,
.admin-shell .metric-card::before,
.admin-shell .bucket-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0,255,153,0.16), transparent 55%);
  pointer-events: none;
}
.admin-shell .pending-card .pending-value { font-size: 1.6rem; letter-spacing: 0.3px; }
.admin-shell .window-body {
  color: var(--text-main);
}
.admin-shell .table th,
.admin-shell .table td {
  border-color: var(--border);
}
.admin-shell .admin-group {
  background: linear-gradient(150deg, rgba(7,11,20,0.9), rgba(16,25,46,0.92));
  border-color: var(--border-strong);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.admin-shell .group-head {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-bottom-color: var(--border);
}
.admin-shell .group-actions .btn.ghost {
  border-color: var(--border);
  color: var(--text-secondary);
}
.admin-shell .group-actions .btn.ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
}
/* Hard-disable the old User Card List section if cached */
#user-cards-section { display: none !important; }

/* User cards styling */
.user-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.user-card header strong { display: block; }
.user-card .user-meta-row,
.user-card .user-balances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.user-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.user-card-actions .btn {
  flex: 1 1 160px;
  justify-content: center;
}

/* Audit layout - tighter card grid */
.audit-panel {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
}
.audit-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.audit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 8px;
}
.audit-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.audit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.audit-summary div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--panel-alt);
  text-align: center;
}
.audit-summary small { color: var(--muted); font-weight: 700; display: block; margin-bottom: 4px; }
.audit-summary strong { font-size: 1.1rem; }
.audit-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
.audit-list article,
.audit-list div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.audit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.audit-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.audit-item strong {
  font-weight: 800;
}
.audit-item .muted {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}
.audit-item .btn {
  padding: 6px 10px;
  box-shadow: none;
}
.audit-list .muted { color: var(--muted); }
.audit-card table {
  width: 100%;
  border-collapse: collapse;
}
.audit-card td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
}
.audit-card td:last-child { text-align: right; font-weight: 700; }
.audit-card td small { color: var(--muted); display: block; }
