/* ============================================================
   GemBid — Premium Business Design System v3.0
   Signature Spring Animations · Deep Glassmorphism · Tactile UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  /* Brand Gold */
  --gold:        #C9A84C;
  --gold-light:  #E8C870;
  --gold-dark:   #9E7A2A;
  --gold-glow:   rgba(201,168,76,0.35);
  --gold-rgb:    201, 168, 76;

  /* Surfaces — Dark Mode (default) */
  --deep:        #060611;
  --surface:     #0C0C1A;
  --surface-2:   #131325;
  --surface-3:   #1A1A30;
  --surface-4:   #22223A;
  --surface-5:   #2A2A44;

  /* Borders */
  --border:      rgba(201,168,76,0.15);
  --border-2:    rgba(255,255,255,0.065);
  --border-3:    rgba(255,255,255,0.04);

  /* Text */
  --text:        #F0F0F8;
  --text-muted:  #8080A8;
  --text-subtle: #404060;

  /* Status */
  --success:     #10B981;
  --success-dim: rgba(16,185,129,0.12);
  --danger:      #F43F5E;
  --danger-dim:  rgba(244,63,94,0.12);
  --warning:     #F59E0B;
  --warning-dim: rgba(245,158,11,0.12);
  --info:        #3B82F6;
  --info-dim:    rgba(59,130,246,0.12);
  --accent:      #8B5CF6;
  --accent-dim:  rgba(139,92,246,0.12);

  /* Aliases */
  --primary:     var(--gold);

  /* Radii */
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Shadows — Layered for Real Depth */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow:      0 4px 16px rgba(0,0,0,0.45), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5), 0 20px 64px rgba(0,0,0,0.4);
  --shadow-xl:   0 16px 64px rgba(0,0,0,0.6), 0 32px 96px rgba(0,0,0,0.4);
  --shadow-gold: 0 2px 12px rgba(201,168,76,0.25), 0 4px 24px rgba(201,168,76,0.15);
  --shadow-gold-lg: 0 4px 20px rgba(201,168,76,0.35), 0 8px 48px rgba(201,168,76,0.2);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.15);

  /* Transitions — Signature Spring Curves */
  --transition:       0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --spring:           0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ── Light Mode Variables ─────────────────────────────────── */
[data-theme="light"] {
  /* Surfaces */
  --deep:        #F2F4F8;
  --surface:     #FFFFFF;
  --surface-2:   #F8F9FB;
  --surface-3:   #ECEEF3;
  --surface-4:   #E2E5ED;
  --surface-5:   #D8DCE8;

  /* Borders */
  --border:      rgba(201,168,76,0.3);
  --border-2:    rgba(0,0,0,0.08);
  --border-3:    rgba(0,0,0,0.05);

  /* Text */
  --text:        #0F1117;
  --text-muted:  #5B6178;
  --text-subtle: #9BA3BB;

  /* Status dims adjusted for light */
  --success-dim: rgba(16,185,129,0.1);
  --danger-dim:  rgba(244,63,94,0.1);
  --warning-dim: rgba(245,158,11,0.1);
  --info-dim:    rgba(59,130,246,0.1);
  --accent-dim:  rgba(139,92,246,0.1);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --shadow:      0 4px 16px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12), 0 20px 64px rgba(0,0,0,0.08);
  --shadow-xl:   0 16px 64px rgba(0,0,0,0.15), 0 32px 96px rgba(0,0,0,0.1);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* Light mode specific overrides */
[data-theme="light"] .navbar {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
[data-theme="light"] .hero {
  background: radial-gradient(ellipse at 65% 40%, rgba(201,168,76,0.08) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.05) 0%, transparent 50%),
              var(--deep);
}
[data-theme="light"] .footer {
  background: var(--surface);
  border-top-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
[data-theme="light"] .btn-surface {
  background: var(--surface-3);
  color: #374151;
  border-color: var(--border-2);
}
[data-theme="light"] .btn-surface:hover {
  background: var(--surface-4);
  color: #111827;
}
[data-theme="light"] .table th {
  background: var(--surface-3);
  color: #6B7280;
}
[data-theme="light"] .table td {
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
  background: rgba(201,168,76,0.1);
}
[data-theme="light"] .form-control {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.12);
  color: #111827;
}
[data-theme="light"] .form-control:focus {
  background: #FFFFFF;
  border-color: rgba(201,168,76,0.6);
}
[data-theme="light"] .glass {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .toast {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
[data-theme="light"] .admin-sidebar {
  background: #FFFFFF;
  border-right-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .admin-topbar {
  background: rgba(255,255,255,0.94);
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .stat-card,
[data-theme="light"] .kpi-card {
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .wallet-hero {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(139,92,246,0.04) 100%);
  border-color: rgba(201,168,76,0.25);
}

/* Theme toggle button */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition-smooth);
  font-size: 1rem;
}
.theme-toggle:hover {
  background: var(--surface-4);
  color: var(--gold);
  border-color: var(--border);
  box-shadow: 0 0 12px var(--gold-glow);
}
[data-theme="light"] .theme-toggle { color: #F59E0B; }

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
img, svg { display: block; max-width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

.display-title { font-family: var(--font-display); font-style: italic; }
.text-gold     { color: var(--gold); }
.text-muted    { color: var(--text-muted); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-warning  { color: var(--warning); }
.text-info     { color: var(--info); }
.text-text     { color: var(--text); }
.text-primary  { color: var(--info); }
.text-lg       { font-size: 1.1rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition-smooth); }
a:hover { color: var(--gold-light); }

/* ── Layout ──────────────────────────────────────────────── */
.container   { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 28px; }
.section     { padding: 96px 0; }
.section-sm  { padding: 56px 0; }
.section-xs  { padding: 32px 0; }
.grid-2   { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: 70px;
  background: rgba(6,6,17,0.82);
  backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-smooth);
  box-shadow: 0 1px 0 rgba(201,168,76,0.06), 0 4px 24px rgba(0,0,0,0.3);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--gold); text-decoration: none;
  letter-spacing: -0.02em;
  transition: all var(--transition-smooth);
}
.navbar-brand:hover { color: var(--gold-light); text-shadow: 0 0 20px var(--gold-glow); }
.navbar-brand .gem-icon { font-size: 1.6rem; line-height: 1; }
.navbar-nav  { display: flex; align-items: center; gap: 2px; list-style: none; }
.navbar-nav a {
  padding: 7px 16px; border-radius: 8px;
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  transition: all var(--transition-smooth); letter-spacing: 0.01em;
  position: relative; overflow: hidden;
}
.navbar-nav a::after {
  content: '';
  position: absolute; bottom: 4px; left: 16px; right: 16px; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--gold); background: rgba(var(--gold-rgb), 0.08);
}
.navbar-nav a:hover::after, .navbar-nav a.active::after { transform: scaleX(1); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  border: none; cursor: pointer; letter-spacing: 0.01em;
  transition: all var(--transition-smooth); text-decoration: none;
  white-space: nowrap; line-height: 1.4;
  position: relative;
}
.btn:active { transform: scale(0.97) translateY(1px) !important; }

/* Sheen only on gold/primary filled buttons */
.btn-gold::before, .btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none; border-radius: inherit;
}

.btn-gold, .btn-primary {
  background: linear-gradient(145deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #07060E;
  box-shadow: 0 2px 12px rgba(var(--gold-rgb), 0.3), var(--shadow-inset);
  font-weight: 700;
}
.btn-gold:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-lg);
  color: #07060E;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(var(--gold-rgb), 0.45);
  color: var(--gold);
  box-shadow: none;
}
.btn-outline::before { display: none; }
.btn-outline:hover {
  background: rgba(var(--gold-rgb), 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(var(--gold-rgb), 0.15);
}
.btn-surface {
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-inset);
}
.btn-surface:hover {
  background: var(--surface-4); color: var(--text);
  border-color: var(--border);
}
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #e11d48; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(244,63,94,0.3); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.btn-sm   { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-lg   { padding: 13px 30px; font-size: 0.95rem; }
.btn-xl   { padding: 16px 38px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-block, .w-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--gold-rgb), 0.2);
  box-shadow: var(--shadow);
}
.card-body   { padding: 24px; }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h4, .card-header h5 { margin: 0; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border-2); }

/* Gold-accented premium card */
.card-premium {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-premium::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 20%, var(--gold-light) 50%, var(--gold-dark) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer-border 3s linear infinite;
}
.card-premium:hover {
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--gold-rgb), 0.15);
}
@keyframes shimmer-border {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: center; gap: 18px;
  transition: all var(--transition-smooth);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.4), transparent);
  opacity: 0; transition: opacity var(--transition-smooth);
}
.stat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(var(--gold-rgb),0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition-smooth);
  pointer-events: none;
}
.stat-card:hover { border-color: rgba(var(--gold-rgb), 0.2); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after  { opacity: 1; }

.stat-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.18), rgba(var(--gold-rgb), 0.04));
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold);
  transition: all var(--transition-smooth);
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0);
}
.stat-card:hover .stat-icon {
  box-shadow: 0 0 0 6px rgba(var(--gold-rgb), 0.08), 0 4px 16px rgba(var(--gold-rgb), 0.15);
  transform: scale(1.06);
}
.stat-value {
  font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; font-weight: 600; }

/* ── Gem Cards ───────────────────────────────────────────── */
.gem-card { position: relative; transform-style: preserve-3d; }
.gem-card .img-wrap { overflow: hidden; position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.gem-card .gem-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gem-card:hover .gem-img { transform: scale(1.07); }
.gem-card .gem-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(6,6,17,0.88); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 11px; font-size: 0.72rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.gem-card .watchlist-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(6,6,17,0.88); backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
}
.gem-card .watchlist-btn:hover, .gem-card .watchlist-btn.active {
  color: var(--danger); border-color: rgba(244,63,94,0.4);
  background: rgba(244,63,94,0.12);
  box-shadow: 0 0 12px rgba(244,63,94,0.2);
  transform: scale(1.1);
}
.gem-price { font-size: 1.15rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.gem-name  { font-weight: 600; font-size: 1rem; margin-bottom: 3px; color: var(--text); }

/* ── Live Badge ──────────────────────────────────────────── */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(244,63,94,0.08); color: var(--danger);
  border: 1px solid rgba(244,63,94,0.25); border-radius: 20px;
  padding: 3px 10px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.live-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(244,63,94,0.4);
  animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
  0%  { transform: scale(1);   box-shadow: 0 0 0 0 rgba(244,63,94,0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(244,63,94,0); }
  100%{ transform: scale(1);   box-shadow: 0 0 0 0 rgba(244,63,94,0); }
}

/* ── Countdown ───────────────────────────────────────────── */
.countdown { display: flex; gap: 6px; }
.countdown-unit {
  background: var(--surface-3); border: 1px solid var(--border-2);
  border-radius: 9px; padding: 6px 10px; text-align: center; min-width: 46px;
  box-shadow: var(--shadow-inset);
}
.countdown-unit .num { font-size: 1.3rem; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-unit .lbl { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  {
  display: block; font-weight: 600; font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.07em;
}
.form-control {
  width: 100%; padding: 11px 16px;
  background: var(--surface-3); border: 1.5px solid var(--border-2);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 0.93rem;
  transition: all var(--transition-smooth); outline: none;
  box-shadow: var(--shadow-inset);
}
.form-control:focus {
  border-color: rgba(var(--gold-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.1), var(--shadow-inset);
  background: var(--surface-4);
}
.form-control::placeholder { color: var(--text-subtle); }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238080A8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
textarea.form-control { resize: vertical; min-height: 110px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.form-hint  { color: var(--text-muted); font-size: 0.8rem; margin-top: 5px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid; font-size: 0.88rem;
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  animation: alert-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes alert-enter { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.alert i { font-size: 1.1rem; flex-shrink: 0; }
.alert-success { background: var(--success-dim); border-color: rgba(16,185,129,0.25); color: var(--success); }
.alert-error, .alert-danger { background: var(--danger-dim); border-color: rgba(244,63,94,0.25); color: var(--danger); }
.alert-warning { background: var(--warning-dim); border-color: rgba(245,158,11,0.25); color: var(--warning); }
.alert-info    { background: var(--info-dim); border-color: rgba(59,130,246,0.25); color: var(--info); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-gold    { background: rgba(var(--gold-rgb), 0.12); color: var(--gold); border: 1px solid rgba(var(--gold-rgb), 0.25); }
.badge-primary { background: rgba(var(--gold-rgb), 0.12); color: var(--gold); border: 1px solid rgba(var(--gold-rgb), 0.25); }
.badge-success { background: var(--success-dim); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-danger  { background: var(--danger-dim);  color: var(--danger);  border: 1px solid rgba(244,63,94,0.2); }
.badge-warning { background: var(--warning-dim); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-info    { background: var(--info-dim);    color: var(--info);    border: 1px solid rgba(59,130,246,0.2); }
.badge-muted   { background: var(--surface-4); color: var(--text-muted); border: 1px solid var(--border-2); }
.badge-accent  { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(139,92,246,0.2); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap  { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); }
.table       { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--surface-3); color: var(--text-muted);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 12px 18px; font-weight: 700; text-align: left;
  white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border-2); font-size: 0.88rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr {
  transition: background var(--transition-smooth);
}
.table tbody tr:hover td {
  background: rgba(var(--gold-rgb), 0.04);
}

/* Table rows enter animation */
.table tbody tr {
  animation: row-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.table tbody tr:nth-child(1)  { animation-delay: 0.04s; }
.table tbody tr:nth-child(2)  { animation-delay: 0.07s; }
.table tbody tr:nth-child(3)  { animation-delay: 0.10s; }
.table tbody tr:nth-child(4)  { animation-delay: 0.13s; }
.table tbody tr:nth-child(5)  { animation-delay: 0.16s; }
.table tbody tr:nth-child(n+6){ animation-delay: 0.2s; }
@keyframes row-enter { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 65% 40%, rgba(var(--gold-rgb), 0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.05) 0%, transparent 50%),
              var(--deep);
}
.hero-content { position: relative; z-index: 1; }
.hero-title   { font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1.08; margin-bottom: 20px; letter-spacing: -0.03em; }
.hero-sub     { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 36px; line-height: 1.75; }

/* ── Section Headers ─────────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(var(--gold-rgb), 0.08); border: 1px solid rgba(var(--gold-rgb), 0.18);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.75rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; letter-spacing: -0.02em; }
.section-desc  { color: var(--text-muted); max-width: 560px; line-height: 1.75; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { width: 255px; flex-shrink: 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--text-muted); font-weight: 500; font-size: 0.88rem;
  transition: all var(--transition-smooth); text-decoration: none; margin-bottom: 2px;
  border: 1px solid transparent;
}
.sidebar-link:hover {
  background: rgba(var(--gold-rgb), 0.07);
  color: var(--gold); border-color: var(--border);
}
.sidebar-link.active {
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold); border-color: rgba(var(--gold-rgb), 0.2);
  font-weight: 600;
}
.sidebar-link .icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }

/* ── Toasts ──────────────────────────────────────────────── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 320px; max-width: 420px;
  background: rgba(19,19,37,0.92);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  animation: toast-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; gap: 12px; font-size: 0.88rem; font-weight: 500;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger);  }
.toast.info    { border-left: 3px solid var(--info);    }
@keyframes toast-enter { from { opacity: 0; transform: translateX(32px) scale(0.96); } to { opacity: 1; transform: translateX(0) scale(1); } }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.page-btn {
  min-width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 10px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition-smooth); text-decoration: none;
  box-shadow: var(--shadow-inset);
}
.page-btn:hover, .page-btn.active {
  background: var(--gold); color: var(--deep); border-color: var(--gold); font-weight: 700;
  box-shadow: var(--shadow-gold);
}

/* ── Upload Zone ─────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-2); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer; transition: all var(--transition-smooth);
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: rgba(var(--gold-rgb), 0.45); background: rgba(var(--gold-rgb), 0.03);
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.06);
}
.upload-zone .upload-icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--text-muted); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.upload-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); }

/* ── Glassmorphism ───────────────────────────────────────── */
.glass {
  background: rgba(19,19,37,0.78);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── Shimmer ─────────────────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.6s infinite; border-radius: 8px;
}
@keyframes shimmer { 0%{background-position:200%} 100%{background-position:-200%} }

/* ── Dividers ────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border-2); margin: 24px 0; }
.separator {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.82rem; margin: 20px 0;
}
.separator::before, .separator::after { content: ''; flex: 1; border-top: 1px solid var(--border-2); }

/* ── Avatar ──────────────────────────────────────────────── */
.avatar    { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 2px solid var(--border); }
.avatar-lg { width: 80px; height: 80px; }
.avatar-xl { width: 100px; height: 100px; }
.avatar-letter {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--deep); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--surface); border-top: 1px solid var(--border-2);
  padding: 72px 0 36px; margin-top: auto;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.55rem; color: var(--gold);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.footer-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.75; max-width: 290px; }
.footer h6   { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 18px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a  { color: var(--text-muted); font-size: 0.88rem; transition: color var(--transition-smooth); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border-2);
  color: var(--text-subtle); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Wallet Balance Hero Card ────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.1) 0%, rgba(139,92,246,0.06) 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.2); border-radius: var(--radius-xl); padding: 40px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.wallet-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(var(--gold-rgb), 0.06), transparent);
  pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .sidebar { width: 220px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { width: 100%; }
  .hero-title { font-size: 2rem; }
  .navbar-nav { display: none; }
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .wallet-hero { padding: 24px; }
}

/* ── Utilities ───────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.flex-column  { flex-direction: column; }
.items-start  { align-items: flex-start; }
.gap-1  { gap: 8px; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }
.gap-4  { gap: 32px; }
.mt-1   { margin-top: 8px;  } .mt-2   { margin-top: 16px; } .mt-3   { margin-top: 24px; } .mt-4   { margin-top: 32px; }
.mb-1   { margin-bottom: 8px; } .mb-2   { margin-bottom: 16px; } .mb-3   { margin-bottom: 24px; } .mb-4   { margin-bottom: 32px; }
.p-2    { padding: 16px; } .p-3    { padding: 24px; } .p-4    { padding: 32px; }
.py-2   { padding-top: 16px; padding-bottom: 16px; }
.rounded { border-radius: var(--radius); } .rounded-lg { border-radius: var(--radius-lg); }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-sm  { font-size: 0.85rem; } .text-xs   { font-size: 0.75rem; }
.font-bold { font-weight: 700; } .font-600 { font-weight: 600; }
.d-none   { display: none; } .img-fluid { max-width: 100%; height: auto; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger);  }
.text-warning { color: var(--warning); }
.cursor-pointer { cursor: pointer; }

/* ── KPI mini cards ──────────────────────────────────────── */
.kpi-card {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.kpi-card:hover { border-color: rgba(var(--gold-rgb), 0.2); transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.kpi-value { font-size: 1.65rem; font-weight: 800; line-height: 1; color: var(--text); }
.kpi-change { font-size: 0.75rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.kpi-change.up   { color: var(--success); }
.kpi-change.down { color: var(--danger); }

/* ── Premium Animations ──────────────────────────────────── */

/* Entry Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slide-right {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up    { animation: fade-up   0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-fade-in    { animation: fade-in   0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-scale-in   { animation: scale-in  0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.animate-slide-right{ animation: slide-right 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }

.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.16s; }
.animate-delay-3 { animation-delay: 0.24s; }
.animate-delay-4 { animation-delay: 0.32s; }
.animate-delay-5 { animation-delay: 0.40s; }
.animate-delay-6 { animation-delay: 0.48s; }
.animate-delay-7 { animation-delay: 0.56s; }
.animate-delay-8 { animation-delay: 0.64s; }

/* ── Glow Pulse ──────────────────────────────────────────── */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(var(--gold-rgb), 0.2); }
  50%       { box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.45), 0 0 48px rgba(var(--gold-rgb), 0.1); }
}
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Number Shimmer (for stat values) ───────────────────── */
@keyframes gold-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.stat-value {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 40%, var(--gold) 60%, var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gold-shimmer 4s linear infinite;
}
