/* 234HUSTLE - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Syne:wght@700;800;900&display=swap');

/* ============================================================
   CSS VARIABLES / THEMES
   ============================================================ */
:root, [data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --bg-card: #14141e;
  --bg-hover: #1e1e2e;
  --border: #1e1e2e;
  --border-light: #2a2a3a;
  --text-primary: #f0f0f8;
  --text-secondary: #8888a8;
  --text-muted: #555570;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --accent-soft: rgba(230,57,70,0.12);
  --accent2: #ff6b35;
  --success: #2ec27e;
  --warning: #f6a300;
  --info: #4fc3f7;
  --danger: #e63946;
  --sidebar-width: 260px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}
[data-theme="light"] {
  --bg-primary: #f5f5f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ebebf0;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f5;
  --border: #e0e0ea;
  --border-light: #ebebf2;
  --text-primary: #111118;
  --text-secondary: #555570;
  --text-muted: #9090a8;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --accent-soft: rgba(230,57,70,0.08);
  --accent2: #ff6b35;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
}
[data-theme="blue"] {
  --bg-primary: #060b1a;
  --bg-secondary: #0c1629;
  --bg-tertiary: #111e38;
  --bg-card: #0e1a30;
  --bg-hover: #152040;
  --border: #1a2a48;
  --border-light: #243558;
  --text-primary: #e8f0fe;
  --text-secondary: #7090c0;
  --text-muted: #405070;
  --accent: #4fc3f7;
  --accent-hover: #0288d1;
  --accent-soft: rgba(79,195,247,0.12);
  --accent2: #7c4dff;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}
[data-theme="brown"] {
  --bg-primary: #0f0c08;
  --bg-secondary: #1a1410;
  --bg-tertiary: #251e18;
  --bg-card: #1e1810;
  --bg-hover: #2e2318;
  --border: #2e2318;
  --border-light: #3a2e20;
  --text-primary: #f0e8d8;
  --text-secondary: #a08060;
  --text-muted: #605040;
  --accent: #d4a044;
  --accent-hover: #b8860b;
  --accent-soft: rgba(212,160,68,0.12);
  --accent2: #c0392b;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.num-font {
    font-family: 'Space Grotesk', sans-serif; /* or 'Inter', 'Roboto Mono', etc. */
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-logo { 
    padding: 24px 20px; 
    border-bottom: 1px solid var(--border); 
}

.sidebar-logo .brand {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    
    /* 1. Layout Fix: Prevents the gradient 'box' from stretching or glitching */
    display: inline-block;
    width: fit-content;
    vertical-align: middle;

    /* 2. Gradient & Clipping Logic */
    background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    
    /* 3. Transparency & Fallback */
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    
    /* 4. Rendering Insurance */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.sidebar-logo .motto { font-size: 10px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
.sidebar-section-title { padding: 16px 20px 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  border-radius: 8px; margin: 1px 8px;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-nav a i { width: 18px; font-size: 14px; }
.sidebar-nav .badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.sidebar-categories { padding: 8px; }
.sidebar-cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: var(--text-secondary);
  transition: all var(--transition);
}
.sidebar-cat-item:hover, .sidebar-cat-item.active { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-cat-item i { font-size: 12px; width: 16px; color: var(--accent); }
.sidebar-bottom { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
.become-seller-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff !important; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  -webkit-text-fill-color: #fff;
  transition: opacity var(--transition);
}
.become-seller-btn:hover { opacity: 0.9; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-search { flex: 1; max-width: 400px; position: relative; }
.topbar-search input {
  width: 100%; background: var(--bg-tertiary);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 14px 9px 36px; color: var(--text-primary);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color var(--transition);
}
.topbar-search input:focus { border-color: var(--accent); }
.topbar-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.wallet-badge {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--success);
  display: flex; align-items: center; gap: 6px;
}
.topbar-icon-btn {
  width: 38px; height: 38px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: all var(--transition); position: relative;
}
.topbar-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.user-avatar-btn { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 2px solid var(--border); transition: border-color var(--transition); }
.user-avatar-btn:hover { border-color: var(--accent); }
.user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  cursor: pointer; border: 2px solid var(--border); flex-shrink: 0;
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 12px; min-width: 200px;
  box-shadow: var(--shadow); z-index: 200; overflow: hidden;
}
.dropdown-menu.js-open { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  width: 100%; background: none; border: none;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: background var(--transition);
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Hamburger */
.hamburger {
  display: none; width: 38px; height: 38px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 8px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-primary);
}

/* Theme dropdown */
.theme-dropdown-wrap { position: relative; }
.theme-dropdown-toggle {
  width: 38px; height: 38px; background: var(--bg-tertiary);
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); transition: all 0.2s;
}
.theme-dropdown-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 300; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all 0.2s ease; min-width: 160px;
}
.theme-dropdown-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-dropdown-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; }
.theme-dots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-option { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; cursor: pointer; transition: background 0.15s; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.theme-option:hover { background: var(--bg-hover); color: var(--text-primary); }
.theme-option.active { background: var(--accent-soft); color: var(--accent); }
.theme-swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.theme-swatch.dark  { background: #111118; }
.theme-swatch.light { background: #f5f5f8; border-color: #ccc; }
.theme-swatch.blue  { background: #0c1629; }
.theme-swatch.brown { background: #1a1410; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { padding: 24px; flex: 1; }
.page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.card-header h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg-tertiary); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .value { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--text-primary); }
.stat-card .sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-card.accent { border-color: var(--accent); background: var(--accent-soft); }
.stat-card.success { border-color: var(--success); background: rgba(46,194,126,0.08); }

/* ============================================================
   PRODUCT LIST
   ============================================================ */
.products-grid { display: flex; flex-direction: column; gap: 10px; }
.product-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color var(--transition), transform 0.15s ease;
}
.product-item:hover { border-color: var(--border-light); transform: translateX(2px); }
.product-item .product-id { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); background: var(--bg-tertiary); padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.product-item .product-info { flex: 1; min-width: 0; }
.product-item .product-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-item .product-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.product-item .cat-tag { background: var(--bg-tertiary); padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.product-item .vendor-name { color: var(--accent); }
.product-item .product-price { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.product-item .product-actions { display: flex; gap: 8px; align-items: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text-secondary); border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { opacity: 0.85; color: #fff; }
.btn-ghost { background: var(--bg-tertiary); color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { opacity: 0.85; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-icon { padding: 8px; min-width: 36px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
  width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text-primary);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { padding: 10px 14px; text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: middle; }
.table tbody tr:hover td { background: var(--bg-hover); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-success { background: rgba(46,194,126,0.15); color: var(--success); }
.badge-danger  { background: rgba(230,57,70,0.15); color: var(--danger); }
.badge-warning { background: rgba(246,163,0,0.15); color: var(--warning); }
.badge-info    { background: rgba(79,195,247,0.15); color: var(--info); }
.badge-muted   { background: var(--bg-tertiary); color: var(--text-muted); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: all 0.2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 16px; width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(16px); transition: transform 0.2s ease;
  box-shadow: var(--shadow);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 700px; }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; background: var(--bg-tertiary); border: none; border-radius: 6px; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--transition); }
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ============================================================
   ALERTS / TOASTS
   ============================================================ */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: rgba(46,194,126,0.1); border-color: rgba(46,194,126,0.3); color: var(--success); }
.alert-danger  { background: rgba(230,57,70,0.1); border-color: rgba(230,57,70,0.3); color: var(--danger); }
.alert-warning { background: rgba(246,163,0,0.1); border-color: rgba(246,163,0,0.3); color: var(--warning); }
.alert-info    { background: rgba(79,195,247,0.1); border-color: rgba(79,195,247,0.3); color: var(--info); }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 10px; padding: 14px 16px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 10px; border-left: 3px solid var(--accent); }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-danger  { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }

/* ============================================================
   ORDER DETAILS
   ============================================================ */
.delivered-content { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-family: 'Courier New', monospace; font-size: 12px; color: var(--success); word-break: break-all; white-space: pre-wrap; max-height: 200px; overflow-y: auto; }

/* ============================================================
   TICKET CHAT
   ============================================================ */
.ticket-chat { display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; padding: 16px; background: var(--bg-tertiary); border-radius: 8px; margin-bottom: 16px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.chat-msg.me { margin-left: auto; background: var(--accent-soft); border: 1px solid rgba(230,57,70,0.2); border-bottom-right-radius: 4px; }
.chat-msg.them { background: var(--bg-card); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-msg .chat-meta { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); transition: all var(--transition); }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; display: block; }
.empty-state h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 13px; }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-icon { width: 80px; height: 80px; background: rgba(46,194,126,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 36px; color: var(--success); }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; }
.sidebar-overlay.open { display: block; }

/* ============================================================
   PAYMENT OPTIONS
   ============================================================ */
.pay-option { background: var(--bg-tertiary); border: 2px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: all var(--transition); text-align: center; }
.pay-option:hover { border-color: var(--accent); }
.pay-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.pay-option i { font-size: 24px; color: var(--accent); margin-bottom: 8px; display: block; }
.pay-option .pay-label { font-size: 13px; font-weight: 700; }
.pay-option .pay-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.balance-show { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.balance-show .bal-label { font-size: 12px; color: var(--text-muted); }
.balance-show .bal-value { font-size: 18px; font-weight: 800; color: var(--success); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -100%; top: 0; height: 100%; transition: left 0.3s ease; z-index: 200; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .hamburger { display: flex; }
  .topbar-search { display: none; }
  .wallet-badge-text { display: none; }
  .page-content { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 12px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NUMBER / BALANCE FONT — easier to read figures
   ============================================================ */
/* ============================================================
   FANTASISTA NUMBER / BALANCE FONT 
   ============================================================ */
.num-font,
.wallet-badge,
.wallet-badge-text,
.stat-card .value,
.bal-value,
.cart-item-price,
.product-price,     /* <--- This usually covers PC */
.product-item .product-price,
.product-price,
.mob-price,
.naira-amount {
    /* This creates the technical, sharp 'Fantasista' look */
    font-family: 'Space Grotesk', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    /* Extra bold for that premium feel */
    letter-spacing: 0.2px;
    /* Tighter tracking for currency */
    color: var(--text-primary);
}

/* Specific highlight for the Wallet and Accent Stats */
.wallet-badge-text,
.stat-card.accent .value {
    color: var(--success);
}

/* --- Crypto Modal Fixes --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Darker background for focus */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px); /* Modern blur effect */
}

/* This class is added by JS to show the modal */
.modal-overlay.open {
    display: flex !important;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 0; /* Header and body handle padding */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}