/* =====================================================
   HUSTLE CITY — MASTER STYLESHEET
   ===================================================== */

/* --- 1. THEME VARIABLES --- */
:root {
  --cream: #F5EBDC;
  --sand: #E8D9BE;
  --brown: #2E1F14;
  --muted: #7A6A55;
  --oxblood: #1F4A2E;
  --terra: #C86B3C;
  --gold: #D4A017;
  --green: #2E5B3A;
  --red: #A52818;
  --border: #DFD0B0;
  --bg: var(--cream);
  --surface: var(--sand);
  --text: var(--brown);
  --shadow: rgba(31,74,46,0.15);
}

/* Warmer, softer dark mode */
[data-theme="dark"] {
  --bg: #181310;
  --surface: #252018;
  --text: #F0E5D8;
  --muted: #9E917E;
  --oxblood: #A87A56;
  --terra: #C4936A;
  --border: #382C24;
  --shadow: rgba(0,0,0,0.5);
  --cream: #252018;
  --sand: #382C24;
  --gold: #D9B14E;
  --green: #7FB389;
  --red: #C87A6A;
}

/* --- 2. GLOBAL BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); user-select: none; -webkit-user-select: none; transition: background 0.3s, color 0.3s; }
.screen { position: fixed; inset: 0; display: none; flex-direction: column; overflow-y: auto; padding: 24px; }
.screen.active { display: flex; }
.btn { border: none; padding: 14px 20px; border-radius: 10px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit; transition: transform 0.1s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--oxblood); color: #F5EBDC; }
.btn-secondary { background: transparent; color: var(--oxblood); border: 2px solid var(--oxblood); }
.btn-gold { background: var(--gold); color: #3A2418; }
.btn-ghost { background: transparent; color: var(--muted); border: none; font-size: 13px; padding: 8px; }
.small { font-size: 12px; color: var(--muted); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.topbar h2 { font-size: 22px; color: var(--oxblood); }

/* --- 3. HOME SCREEN --- */
#screen-home { align-items: center; justify-content: flex-start; text-align: center; padding: 14px 16px 88px; position: relative; overflow: hidden; height: 100vh; height: 100dvh; display: none; flex-direction: column; }
#screen-home.active { display: flex; }
.home-top { flex-shrink: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 6px; }
.home-scroll { flex: 1; overflow-y: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 8px; }
.logo { font-size: 22px; font-weight: 900; color: var(--oxblood); letter-spacing: -0.8px; line-height: 0.95; }
.tagline { color: var(--muted); margin: 4px 0 10px; font-size: 12px; }
.wallet-bar { display: flex; justify-content: space-around; width: 100%; max-width: 340px; background: var(--surface); border-radius: 12px; padding: 8px; margin-bottom: 8px; border: 1px solid var(--border); }
.wallet-bar div { text-align: center; flex: 1; }
.wallet-bar strong { display: block; font-size: 15px; font-weight: 900; color: var(--oxblood); }
.wallet-bar span { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.hustle-grid { display: grid; gap: 6px; width: 100%; max-width: 340px; margin-bottom: 8px; }
.hustle-card { background: var(--surface); border: 2px solid var(--border); border-radius: 10px; padding: 8px 10px; text-align: left; display: flex; gap: 8px; align-items: center; transition: border-color 0.2s; }
.hustle-card.open { border-color: var(--gold); }
.hustle-card.locked { opacity: 0.7; }
.hustle-icon { font-size: 24px; }
.hustle-card h3 { font-size: 13px; margin-bottom: 1px; color: var(--text); }
.hustle-card p { font-size: 10px; color: var(--muted); line-height: 1.2; }
.hustle-card .action { margin-left: auto; font-size: 10px; padding: 6px 10px; border-radius: 8px; background: var(--gold); color: #3A2418; font-weight: 800; border: none; font-family: inherit; cursor: pointer; }
.hustle-card .action:disabled { opacity: 0.5; }
.writein-box { width: 100%; max-width: 340px; background: var(--surface); border: 2px dashed var(--gold); border-radius: 12px; padding: 8px 10px; text-align: left; }
.writein-box label { display: block; font-size: 11px; font-weight: 800; color: var(--oxblood); margin-bottom: 5px; }
.writein-box input { width: 100%; padding: 9px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 13px; background: var(--bg); color: var(--text); margin-bottom: 6px; }
.writein-box button { padding: 7px 12px; border-radius: 8px; background: var(--oxblood); color: #F5EBDC; border: none; font-weight: 800; font-size: 11px; font-family: inherit; cursor: pointer; }
.home-links { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 10px; display: flex; gap: 10px; justify-content: center; }
.home-links a { color: var(--terra); text-decoration: none; font-weight: 700; }
.signin-pill { position: absolute; top: 12px; left: 16px; background: var(--gold); color: #3A2418; border: none; padding: 8px 14px; border-radius: 20px; font-family: inherit; font-weight: 900; font-size: 12px; cursor: pointer; z-index: 40; }
body.is-signed-in .signin-pill { display: none; }
body.in-round .signin-pill { display: none; }
.theme-toggle { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 40; }
body.in-round .theme-toggle { display: none; }

/* --- 4. SETUP SCREEN --- */
#screen-setup h2 { font-size: 24px; color: var(--oxblood); margin-bottom: 4px; }
#screen-setup .sub { color: var(--muted); margin-bottom: 18px; font-size: 13px; }
.product-grid { display: grid; gap: 10px; margin-bottom: 14px; }
.product-card { background: var(--surface); border: 3px solid transparent; border-radius: 14px; padding: 14px; text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: center; font-family: inherit; color: var(--text); }
.product-card.selected { border-color: var(--oxblood); box-shadow: 0 4px 12px var(--shadow); }
.product-card .emoji { font-size: 34px; }
.product-card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.product-card small { color: var(--muted); font-size: 11px; }
.name-row { margin: 14px 0; }
.name-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.name-row input, .name-row select { width: 100%; padding: 12px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; background: var(--surface); color: var(--text); font-family: inherit; }
.name-row input:focus { outline: none; border-color: var(--oxblood); }

/* --- 5. ROUND & GAME SCENE --- */
#screen-round { padding: 0; }
.round-hud { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--oxblood); color: #F5EBDC; font-weight: 800; font-size: 14px; flex-shrink: 0; gap: 6px; }
.hud-timer { min-width: 32px; }
.hud-money { color: var(--gold); flex: 1; text-align: center; }
.hud-combo { background: var(--gold); color: #3A2418; padding: 3px 8px; border-radius: 20px; font-size: 11px; }
.hud-theme-btn { background: rgba(255,255,255,0.18); border: none; color: #F5EBDC; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
#camera-picker { display: flex; gap: 2px; background: rgba(0,0,0,0.15); border-radius: 8px; padding: 2px; }
.cam-btn { background: transparent; color: #F5EBDC; border: none; border-radius: 6px; padding: 4px 8px; font-weight: 800; font-size: 11px; cursor: pointer; }
.cam-btn.active { background: var(--gold); color: #3A2418; }

.game-area { flex: 1; position: relative; overflow: hidden; min-height: 220px; background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 45%, #c2a878 100%); }
.scene { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.scene-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #f8e9c8 0%, #f1dda8 40%, #e6cc8a 100%); }
[data-theme="dark"] .scene-sky { background: linear-gradient(180deg, #2a1d14 0%, #1e140c 100%); }
.scene-skyline { position: absolute; left: 0; right: 0; bottom: 52%; height: 16%; background: linear-gradient(180deg, transparent 0%, rgba(120,90,60,0.25) 60%, rgba(90,65,40,0.45) 100%); border-bottom: 2px solid rgba(60,40,25,0.15); }
.scene-skyline::before { content: '🏢🏬🏪🏢🏬🏪🏢🏬'; position: absolute; bottom: 0; left: 0; right: 0; font-size: 34px; letter-spacing: 2px; opacity: 0.35; text-align: center; white-space: nowrap; }
.scene-trees { position: absolute; left: 0; right: 0; bottom: 50%; height: 8%; font-size: 24px; opacity: 0.55; text-align: center; letter-spacing: 20px; white-space: nowrap; }
.scene-stalls { position: absolute; bottom: 38%; left: -5%; right: -5%; height: 22%; background: repeating-linear-gradient(90deg, #8a5a2b 0 40px, #7a4f24 40px 44px, #8a5a2b 44px 84px); opacity: 0.35; border-radius: 6px; }
.scene-road { position: absolute; left: -5%; right: -5%; bottom: 32%; height: 13%; background: linear-gradient(180deg, #6f6f6f 0%, #4a4a4a 60%, #3a3a3a 100%); }
.scene-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, #c2a878 0%, #a8895c 100%); }
[data-theme="dark"] .scene-ground { background: linear-gradient(180deg, #3a2a1c 0%, #241a11 100%); }

.billboard { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: min(72%, 340px); height: 70px; border-radius: 8px; background: rgba(255,255,255,0.85); border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--muted); z-index: 1; }
[data-theme="dark"] .billboard { background: rgba(42,29,20,0.9); }
.billboard img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.trader { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); font-size: 56px; z-index: 1; }
.tool-belt { position: absolute; left: 0; right: 0; bottom: 36%; display: flex; justify-content: center; gap: 14px; z-index: 3; }
.tool-belt .tool { width: 68px; height: 68px; border-radius: 14px; background: rgba(255,255,255,0.96); border: 2px dashed var(--gold); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: var(--oxblood); text-align: center; text-transform: uppercase; }
.tool-belt .tool img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.stall-front { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, #7a4f24 0%, #5d3b1a 100%); border-top: 4px solid #4a2f13; z-index: 2; }
.dynamic-layer { position: absolute; inset: 0; z-index: 5; }

/* Customers & Bubbles */
.customer { position: absolute; width: 60px; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; z-index: 6; }
.customer .body { font-size: 40px; }
.customer .wanted { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 20px; background: var(--bg); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px var(--shadow); z-index: 2; }
.customer .patience { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 52px; height: 5px; background: rgba(0,0,0,0.15); border-radius: 3px; overflow: hidden; }
.customer .patience-fill { height: 100%; background: var(--green); transition: width 0.1s linear, background 0.3s; }
.customer .bubble { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: var(--brown); color: #F5EBDC; font-size: 10px; padding: 3px 8px; border-radius: 8px; white-space: nowrap; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,0.2); z-index: 3; }
.customer .bubble::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--brown); }
/* FORCE BUBBLES TO ALWAYS SHOW */
.customer .bubble { opacity: 1 !important; } 
.customer.called .bubble { background: var(--gold); color: #3A2418; }
.customer.called .bubble::after { border-top-color: var(--gold); }
.customer.thief .wanted { background: var(--red); color: #fff; }

/* Shelf */
.shelf { display: flex; flex-direction: column; flex-shrink: 0; background: transparent; }
.shelf-brand { background: linear-gradient(180deg, #8a5a2b 0%, #6b421c 50%, #5d3b1a 100%); color: #F5EBDC; font-size: 11px; font-weight: 900; letter-spacing: 1.6px; text-align: center; padding: 10px 12px; text-transform: uppercase; border-top: 3px solid #4a2f13; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.shelf-brand img { max-height: 40px; max-width: 90%; object-fit: contain; }
.shelf-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; background: var(--brown); }
.shelf-btn { background: var(--cream); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; border: 3px solid transparent; color: var(--brown); }
.shelf-btn .icon { font-size: 26px; }
.shelf-btn .label { font-size: 11px; font-weight: 900; text-transform: uppercase; text-align: center; }
[data-theme="dark"] .shelf-btn { background: #F5EBDC; color: #1A0F08; }

/* Float */
.float { position: absolute; font-weight: 900; font-size: 20px; color: var(--green); animation: floatUp 0.9s ease-out forwards; z-index: 12; transform: translate(-50%,0); }
@keyframes floatUp { 0% { opacity: 1; transform: translate(-50%,0); } 100% { opacity: 0; transform: translate(-50%,-50px); } }

/* Wig Plug Override */
.game-area[data-hustle="wig_plug"] .scene-sky { background: linear-gradient(180deg,#fce4ec 0%,#f8bbd0 40%,#f48fb1 100%); }
[data-theme="dark"] .game-area[data-hustle="wig_plug"] .scene-sky { background: linear-gradient(180deg,#6a2a4a 0%,#4a1a30 100%); }
.game-area[data-hustle="wig_plug"] .scene-skyline::before { content: '💇‍♀️ 👰 💒 🎀 💄'; }
.game-area[data-hustle="wig_plug"] .scene-stalls { background: repeating-linear-gradient(90deg,#e91e63 0 40px,#f06292 40px 44px,#e91e63 44px 84px); }
.game-area[data-hustle="wig_plug"] .scene-ground { background: linear-gradient(180deg,#e8c8d0 0%,#d8b8c0 100%); }
[data-theme="dark"] .game-area[data-hustle="wig_plug"] .scene-ground { background: linear-gradient(180deg,#3a2a30 0%,#2a1a20 100%); }

/* --- 6. RESULT SCREEN --- */
#screen-result { align-items: center; justify-content: center; text-align: center; }
.result-title { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.result-money { font-size: 56px; font-weight: 900; color: var(--oxblood); margin: 6px 0; }
.result-near { color: var(--green); font-weight: 700; margin: 4px 0 18px; }
.result-stats { display: flex; gap: 20px; margin-bottom: 18px; justify-content: center; }
.result-stats strong { display: block; font-size: 18px; font-weight: 900; }
.result-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; }

/* --- 7. DASHBOARD (CLEAN & INLINE MENU) --- */
#screen-dashboard { padding: 20px 16px 100px; background: var(--bg); }
[data-dash-color="green"] { --dash-accent: #1F4A2E; --dash-accent-2: #2E5B3A; --dash-accent-fg: #F5EBDC; --dash-text: #1F4A2E; }
[data-dash-color="pink"] { --dash-accent: #C2185B; --dash-accent-2: #E91E63; --dash-accent-fg: #FFFFFF; --dash-text: #C2185B; }

.dash-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dash-hamburger { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.dash-hamburger.open { background: var(--dash-accent, #1F4A2E); color: #FFF; border-color: var(--dash-accent); }
.dash-header-text { flex: 1; }
.dash-greeting { font-size: 18px; font-weight: 900; color: var(--dash-text, #1F4A2E); margin-bottom: 2px; }
.dash-meta { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.dash-signout-btn { background: transparent; border: none; color: var(--terra); font-size: 11px; font-weight: 800; text-decoration: underline; }

/* Collapsible area */
.dash-menu { display: none; }
.dash-menu.open { display: block; }

/* Wallet Card */
.dash-wallet-card { background: linear-gradient(135deg, var(--dash-accent, #1F4A2E) 0%, var(--dash-accent-2, #2E5B3A) 100%); color: #FFF; border-radius: 18px; padding: 22px 20px; margin-bottom: 16px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.dash-wallet-label { font-size: 10px; opacity: 0.8; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; }
.dash-wallet-value { font-size: 44px; font-weight: 900; margin: 10px 0 6px; }
.dash-lifetime { font-size: 12px; opacity: 0.9; font-weight: 700; }

/* Stats Row */
.dash-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.dash-stat { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 6px; text-align: center; }
.dash-stat strong { display: block; font-size: 18px; font-weight: 900; color: var(--dash-text, #1F4A2E); }
.dash-stat span { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; }

/* Play Buttons */
.dash-play-btn { width: 100%; font-size: 16px; padding: 16px; margin-bottom: 10px; border-radius: 14px; font-weight: 900; background: var(--dash-accent, #1F4A2E); color: #FFF; border: none; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }

/* Sections & Panels */
.dash-section, .dash-bills-panel { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.dash-section-title { font-size: 11px; font-weight: 900; color: var(--dash-text, #1F4A2E); text-transform: uppercase; margin-bottom: 12px; }

/* Stock Bars */
.dash-stock-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dash-stock-name { flex: 0 0 110px; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-stock-bar-bg { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.dash-stock-bar-fill { height: 100%; border-radius: 5px; transition: width 0.3s; }
.dash-stock-count { flex: 0 0 32px; text-align: right; font-size: 15px; font-weight: 900; }
.dash-restock-btn { width: 100%; padding: 12px; font-size: 12px; background: var(--terra); color: #fff; border: none; border-radius: 10px; font-weight: 900; margin-top: 12px; }

/* Quicklinks */
.dash-quicklinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.dash-quicklink { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 8px; font-size: 12px; font-weight: 800; text-align: center; }
.dash-market-btn { width: 100%; padding: 14px; font-size: 14px; background: var(--dash-accent, #1F4A2E); color: #FFF; border: none; border-radius: 12px; font-weight: 900; margin-bottom: 16px; }

/* --- 8. SHOP, MARKETPLACE, SETTINGS --- */
.lb-tabs { display: flex; gap: 6px; margin: 14px 0; background: var(--surface); padding: 4px; border-radius: 10px; }
.lb-tab { flex: 1; padding: 10px 4px; border-radius: 8px; border: none; font-weight: 700; font-size: 11px; color: var(--muted); cursor: pointer; }
.lb-tab.active { background: var(--oxblood); color: #FFF; }
.shop-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.shop-item .icon { font-size: 28px; }
.shop-item .info { flex: 1; }
.shop-item .buy-btn { padding: 8px 14px; border-radius: 8px; background: var(--gold); border: none; font-weight: 800; font-size: 12px; }
.vendor-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.vendor-chip { padding: 7px 14px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--border); font-size: 12px; font-weight: 800; white-space: nowrap; }
.vendor-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px; display: flex; gap: 12px; margin-bottom: 10px; }
.color-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.color-swatch { aspect-ratio: 1; border-radius: 12px; border: 3px solid transparent; cursor: pointer; }
.color-swatch.selected { border-color: var(--text); box-shadow: 0 0 0 3px rgba(31,74,46,0.25); }

/* --- 9. MODALS, FABS, TOASTS --- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: var(--bg); border-radius: 16px; padding: 22px; max-width: 340px; width: 100%; text-align: center; border: 2px solid var(--border); }
.modal h3 { font-size: 19px; color: var(--oxblood); margin-bottom: 8px; }
.modal p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; }
.fab { position: fixed; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 50; cursor: pointer; }
.fab-whatsapp { right: 16px; background: #25D366; color: #fff; }
.fab-faq { left: 16px; background: var(--oxblood); color: #F5EBDC; }
.fab svg { width: 28px; height: 28px; fill: currentColor; }
body.in-round .fab { display: none; }
.toast-referral { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 800; z-index: 120; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* =====================================================
   LEADERBOARD ROWS (MISSING FIX)
   ===================================================== */
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.lb-row:last-child {
  border-bottom: none;
}
.lb-row.self {
  background: var(--surface);
  border-radius: 8px;
  font-weight: 800;
}
.lb-rank {
  width: 26px;
  font-weight: 900;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.lb-rank.top {
  color: var(--gold);
}
.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--brown);
  font-size: 13px;
  flex-shrink: 0;
}
.lb-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-score {
  font-weight: 900;
  color: var(--oxblood);
  font-variant-numeric: tabular-nums;
}

/* =====================================================
   MARKETPLACE BUTTONS FIX
   ===================================================== */
.vendor-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.vendor-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #FFF;
}
.vendor-btn.call {
  background: var(--oxblood);
  color: #F5EBDC;
}
.vendor-btn.wa {
  background: #25D366; /* WhatsApp Green */
  color: #fff;
}
/* =====================================================
   BILLS BUTTONS (MISSING FIX)
   ===================================================== */
.bill-pay-btn {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--oxblood); /* Uses your primary green color */
  color: #F5EBDC;
  border: none;
  font-family: inherit;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.bill-pay-btn:active {
  transform: scale(0.95);
}
.bill-pay-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
