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

/* ─── CSS Variables ─────────────────────── */
:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #161626;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(99,102,241,0.4);

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --sidebar-width: 260px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ─── Layout ─────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
}
.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.sidebar-logo .logo-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-user .user-name { font-weight: 600; font-size: 0.9rem; }
.sidebar-user .user-vip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,158,11,0.12);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 4px;
  border: 1px solid rgba(245,158,11,0.25);
}
.sidebar-user .user-balance { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }
.sidebar-user .user-balance span { color: var(--success); font-weight: 600; }

.sidebar-nav { padding: 12px 12px; flex: 1; overflow-y: auto; }
.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 8px 10px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(99,102,241,0.08));
  color: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--danger);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}
.sidebar-footer a:hover { background: rgba(239,68,68,0.1); }

/* ─── Main Content ─────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 28px;
  min-height: 100vh;
}
.page-header {
  margin-bottom: 28px;
}
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.page-header p { color: var(--text-secondary); margin-top: 4px; font-size: 0.9rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { color: var(--text-muted); }

/* ─── Cards ─────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-accent); box-shadow: var(--shadow); }
.card-sm { padding: 16px; border-radius: var(--radius-sm); }
.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-value { font-size: 1.8rem; font-weight: 700; letter-spacing: -1px; }
.card-value.gold { color: var(--gold); }
.card-value.success { color: var(--success); }
.card-value.accent { color: var(--accent-light); }

/* ─── Stats Grid ─────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  border-radius: 0 2px 2px 0;
}
.stat-card.violet::before { background: var(--accent); }
.stat-card.gold::before { background: var(--gold); }
.stat-card.green::before { background: var(--success); }
.stat-card.blue::before { background: var(--info); }
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-accent); box-shadow: var(--shadow); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.stat-value { font-size: 1.4rem; font-weight: 700; }

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.5);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  box-shadow: 0 4px 15px rgba(245,158,11,0.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.5); }
.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Forms ─────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: rgba(255,255,255,0.06);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select option, select.form-control option { background: #1a1a2e; color: #f1f5f9; }

.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 6px; }

/* ─── Badges ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.25); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: var(--danger); border: 1px solid rgba(239,68,68,0.25); }
.badge-info    { background: rgba(99,102,241,0.15); color: var(--accent-light); border: 1px solid rgba(99,102,241,0.25); }
.badge-muted   { background: rgba(148,163,184,0.1); color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Tables ─────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { transition: background var(--transition); }
tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--bg-card-hover); }
td { padding: 14px 16px; font-size: 0.875rem; vertical-align: middle; }

/* ─── Flash Messages ─────────────────────── */
.flash-container { position: fixed; top: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; }
.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 380px;
  backdrop-filter: blur(16px);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
  box-shadow: var(--shadow);
  border: 1px solid;
}
.flash-success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: var(--success); }
.flash-error   { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.3);  color: var(--danger); }
.flash-info    { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.3); color: var(--accent-light); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(120%); } }

/* ─── Auth Pages ─────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: radial-gradient(ellipse at top left, rgba(99,102,241,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(245,158,11,0.08) 0%, transparent 60%),
              var(--bg-primary); */
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent-light); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Platform Cards ─────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: block;
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.2);
  background: var(--bg-card-hover);
}
.platform-card img {
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: brightness(0) invert(1) opacity(0.8);
}
.platform-card .platform-name { font-weight: 700; font-size: 1rem; }
.platform-card .platform-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Order Cards ─────────────────────────── */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
}
.order-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow); }
.order-card-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.order-card-img-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(99,102,241,0.1);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.order-card-body {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
}
.order-card-info { flex: 1; }
.order-card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.order-card-meta { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.7; }
.order-card-meta span { color: var(--text-primary); font-weight: 600; }
.order-card-actions { padding: 0 20px 16px; display: flex; gap: 10px; justify-content: flex-end; }

/* ─── QR Code Box ─────────────────────────── */
.qr-box {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.3), var(--shadow);
}
.qr-box img { width: 200px; height: 200px; display: block; }

.address-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--accent-light);
  word-break: break-all;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* ─── Tips Box ─────────────────────────────── */
.tips-box {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.tips-box .tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tips-box ol { padding-left: 16px; }
.tips-box li { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.5; }

/* ─── VIP Badge ─────────────────────────────── */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.vip-1 { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }
.vip-2 { background: rgba(245,158,11,0.12); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.vip-3 { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ─── Tabs ─────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  text-align: center;
  padding: 9px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  font-family: inherit;
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(99,102,241,0.4);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Info Row ─────────────────────────────── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.info-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.info-row .info-label { font-size: 0.82rem; color: var(--text-muted); }
.info-row .info-value { font-size: 0.9rem; font-weight: 600; text-align: right; }

/* ─── Grid Helpers ─────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent-light); }
.font-bold { font-weight: 700; }
.w-100 { width: 100%; }

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

/* ─── Mobile Hamburger ─────────────────────── */
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px;
  cursor: pointer;
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 90;
  backdrop-filter: blur(4px);
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: none; } /* Hidden as bottom nav is primary */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .overlay.open { display: block; }
  .main-content { margin-left: 0; padding: 16px; padding-bottom: 80px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 28px 20px; }
}

/* ─── Mobile Navigation ───────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  backdrop-filter: blur(10px);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
  padding: 8px 0;
  flex: 1;
}

.mobile-bottom-nav .nav-item svg {
  width: 22px;
  height: 22px;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--accent-light);
}

/* Dashboard Top Grid */
.dashboard-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.top-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.top-nav-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.top-nav-card .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.top-nav-card.recharge .icon-circle { background: rgba(16,185,129,0.15); color: var(--success); }
.top-nav-card.withdraw .icon-circle { background: rgba(239,68,68,0.15); color: var(--danger); }
.top-nav-card.wallet   .icon-circle { background: rgba(99,102,241,0.15); color: var(--accent-light); }
.top-nav-card.invite   .icon-circle { background: rgba(245,158,11,0.15); color: var(--gold); }

.top-nav-card .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .main-content { padding-bottom: 80px; } /* Space for bottom nav */
  .dashboard-top-grid { gap: 8px; }
  .top-nav-card { padding: 12px 4px; }
  .top-nav-card .icon-circle { width: 40px; height: 40px; }
  /* Hide sidebar toggle if we have bottom nav, or keep it as backup?
     The user didn't say to hide it, but the bottom nav is the primary mobile UI now.
  */
}

/* ─── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Gradient Text ─────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Highlight Box ─────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(245,158,11,0.06));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

/* ─── Pulse animation ─────────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
}
.pulse { animation: pulse-glow 2s ease-in-out infinite; }

/* ─── Loading Spinner ─────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
