/* ============================================================
   LITE HOUSE — Global Stylesheet
   Theme: Dark luxury fintech — obsidian & electric gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Variables ───────────────────────────────────────────── */
:root {
  --obsidian:    #080C10;
  --deep:        #0D1117;
  --surface:     #131920;
  --surface-2:   #1A2230;
  --surface-3:   #1F2A3C;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,220,100,0.25);

  --gold:        #F0C040;
  --gold-dim:    #C8960A;
  --gold-glow:   rgba(240,192,64,0.15);
  --gold-text:   #FFD65E;

  --cyan:        #00D4FF;
  --cyan-dim:    rgba(0,212,255,0.12);
  --green:       #00E5A0;
  --green-dim:   rgba(0,229,160,0.12);
  --red:         #FF4D6A;
  --red-dim:     rgba(255,77,106,0.12);

  --text-1:      #F0F4FF;
  --text-2:      #8A95A8;
  --text-3:      #5A6478;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-gold: 0 0 24px rgba(240,192,64,0.2);
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);

  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'Inter', sans-serif;

  --sidebar-w:   260px;
  --header-h:    72px;
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--obsidian);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* ─── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
.mono { font-family: var(--font-mono); }

/* ─── Auth Layout ─────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(240,192,64,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(0,212,255,0.05) 0%, transparent 60%),
    var(--obsidian);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.5s ease;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-logo .logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--obsidian);
}
.auth-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.auth-logo .logo-text span { color: var(--gold); }
.auth-subtitle { color: var(--text-2); font-size: 0.9rem; margin-top: 6px; margin-bottom: 28px; }

/* ─── Form Elements ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-1);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-control::placeholder { color: var(--text-3); }
.form-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 6px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 6px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--obsidian);
  width: 100%;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-1);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--surface-3);
}
.btn-danger {
  background: var(--red-dim);
  border: 1px solid rgba(255,77,106,0.3);
  color: var(--red);
}
.btn-success {
  background: var(--green-dim);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--green);
}
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-icon { padding: 10px; width: 40px; height: 40px; }

/* ─── Dashboard Layout ────────────────────────────────────── */
.app-layout {
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--deep);
  border-right: 1px solid rgba(255,255,255,0.1);
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  margin-bottom: 36px;
}
.sidebar-logo .logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--obsidian);
  font-size: 1rem;
}
.sidebar-logo .logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.sidebar-logo .logo-name span { color: var(--gold); }

.nav-section { margin-bottom: 24px; }
.nav-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 12px;
  margin-bottom: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 2px;
  cursor: pointer;
}
.nav-link:hover { background: var(--surface); color: var(--text-1); }
.nav-link.active {
  background: rgba(240,192,64,0.12);
  color: var(--gold);
  border: 1px solid rgba(240,192,64,0.25);
  font-weight: 600;
}
.nav-link .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.nav-link .nav-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem;
  color: var(--obsidian);
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.7rem; color: var(--text-3); }

/* Main content — offset by fixed sidebar width */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
}
.topbar {
  height: var(--header-h);
  background: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
}
.topbar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.page-body {
  padding: 28px 32px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover {
  border-color: rgba(255,255,255,0.15);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.card-subtitle { font-size: 0.8rem; color: var(--text-2); margin-top: 4px; }

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--gold));
}
.stat-card.gold   { --accent: var(--gold); }
.stat-card.cyan   { --accent: var(--cyan); }
.stat-card.green  { --accent: var(--green); }
.stat-card.red    { --accent: var(--red); }
.stat-label { font-size: 0.75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.stat-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500; color: var(--text-1); }
.stat-sub { font-size: 0.78rem; color: var(--text-3); margin-top: 6px; }
.stat-icon {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.5rem;
  opacity: 0.25;
}

/* ─── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-pending  { background: rgba(240,192,64,0.12); color: var(--gold);  border: 1px solid rgba(240,192,64,0.2); }
.badge-approved { background: var(--green-dim);      color: var(--green); border: 1px solid rgba(0,229,160,0.2); }
.badge-rejected { background: var(--red-dim);        color: var(--red);   border: 1px solid rgba(255,77,106,0.2); }
.badge-paid     { background: var(--cyan-dim);       color: var(--cyan);  border: 1px solid rgba(0,212,255,0.2); }
.badge-active   { background: var(--green-dim);      color: var(--green); border: 1px solid rgba(0,229,160,0.2); }

/* ─── Market Ticker ───────────────────────────────────────── */
.market-ticker {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}
.ticker-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticker-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.ticker-label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.ticker-brand { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--gold); margin-left: auto; }

.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
}
.coin-item {
  background: var(--deep);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s;
}
.coin-item:hover { background: var(--surface); }
.coin-symbol { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--text-2); }
.coin-price { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; }
.coin-change { font-size: 0.75rem; font-weight: 600; }
.coin-change.up   { color: var(--green); }
.coin-change.down { color: var(--red); }

/* ─── Mining Plan Cards ────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--plan-color, var(--gold));
}
.plan-card:hover, .plan-card.selected {
  border-color: var(--plan-color, var(--gold));
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.plan-card.plan-free      { --plan-color: var(--text-3); }
.plan-card.plan-basic     { --plan-color: var(--cyan);   }
.plan-card.plan-executive { --plan-color: var(--gold);   }
.plan-card.plan-premium   { --plan-color: #BF7FFF;       }

.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.plan-cost { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 500; }
.plan-roi  { font-size: 0.85rem; color: var(--green); font-weight: 600; }
.plan-feature { font-size: 0.8rem; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.plan-feature::before { content: '✓'; color: var(--plan-color, var(--gold)); font-weight: 700; }

/* ─── Progress Bar ────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ─── Mining Status Widget ────────────────────────────────── */
.mining-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.mining-widget::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
}
.mining-status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
  display: inline-block;
  margin-right: 8px;
}
.mining-status-dot.inactive { background: var(--text-3); box-shadow: none; animation: none; }

/* ─── Deposit Steps ───────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
}
.step.active { color: var(--gold); }
.step.done   { color: var(--green); }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.step.active .step-num {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}
.step.done .step-num {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; }

/* Wallet Address display */
.address-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.address-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
  flex: 1;
  color: var(--text-1);
}

/* ─── Toast ───────────────────────────────────────────────── */
.lh-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-card);
  max-width: 380px;
  min-width: 260px;
}
.lh-toast--visible { transform: translateX(-50%) translateY(0); }
.lh-toast--success { border-color: rgba(0,229,160,0.3); }
.lh-toast--error   { border-color: rgba(255,77,106,0.3); }
.toast-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.lh-toast--success .toast-icon { background: var(--green-dim); color: var(--green); }
.lh-toast--error   .toast-icon { background: var(--red-dim);   color: var(--red); }
.lh-toast--info    .toast-icon { background: var(--cyan-dim);  color: var(--cyan); }

/* ─── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes blink-cursor {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3   { font-size: 1rem; color: var(--text-2); margin-bottom: 8px; }

/* ─── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ─── Dividers ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.8rem;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Referral code display ───────────────────────────────── */
.ref-code-box {
  background: var(--surface-2);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ref-code {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-text);
}

/* ─── Page Animations ─────────────────────────────────────── */
.fade-in { animation: fadeUp 0.4s ease forwards; }
.fade-in:nth-child(2) { animation-delay: 0.05s; }
.fade-in:nth-child(3) { animation-delay: 0.1s; }
.fade-in:nth-child(4) { animation-delay: 0.15s; }

/* ─── Mobile Hamburger ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.3s;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  /* app-layout has no grid — just remove the sidebar margin */
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .sidebar-overlay.open { opacity: 1; pointer-events: all; }
  .hamburger { display: flex; }
  .page-body { padding: 20px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 32px 24px; }
}
@media (max-width: 500px) {
  .stat-grid  { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .coin-grid  { grid-template-columns: 1fr 1fr; }
}

/* ─── Select ──────────────────────────────────────────────── */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A95A8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ─── Misc Utilities ──────────────────────────────────────── */
.text-gold    { color: var(--gold-text); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-cyan    { color: var(--cyan); }
.text-muted   { color: var(--text-2); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.flex         { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2        { gap: 8px; }
.gap-3        { gap: 12px; }
.mt-1         { margin-top: 8px; }
.mt-2         { margin-top: 16px; }
.mt-3         { margin-top: 24px; }
.mb-2         { margin-bottom: 16px; }
.mb-3         { margin-bottom: 24px; }
.w-full       { width: 100%; }
.mono         { font-family: var(--font-mono); }
.hidden       { display: none !important; }

/* AI Trading Simulation */
.trade-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trade-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.trade-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.2s;
  border: none;
  background: none;
}
.trade-tab.buy.active  { color: var(--green); background: var(--green-dim); }
.trade-tab.sell.active { color: var(--red);   background: var(--red-dim); }
.trade-body { padding: 24px; }

/* Chart Sparkline */
.sparkline {
  width: 60px;
  height: 24px;
}

/* ─── Logo Image (sidebar + auth) ────────────────────────── */
.sidebar-logo {
  padding: 20px 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(240,192,64,0.3));
  transition: filter 0.3s;
}
.sidebar-logo-img:hover {
  filter: drop-shadow(0 0 20px rgba(240,192,64,0.5));
}
.auth-logo-img {
  width: 220px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 24px rgba(240,192,64,0.35));
}
