:root {
  --vice-pink: #ff3e9d;
  --vice-coral: #ff7b54;
  --vice-gold: #ffd166;
  --vice-cyan: #00f0ff;
  --vice-green: #2ee59d;
  --vice-red: #ff3355;
  --vice-purple: #b55cff;
  --glass-bg: rgba(11, 14, 24, 0.8);
  --glass-border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}
input, textarea { user-select: text; -webkit-user-select: text; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070a14;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: #fff;
}

#game-container { position: fixed; inset: 0; z-index: 1; }
#game-container canvas { display: block; width: 100%; height: 100%; }
.hidden { display: none !important; }

/* Screen VFX Overlays */
#fx-damage, #fx-nitro, #fx-busted, #fx-lightning {
  position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0;
  transition: opacity 0.16s ease-out;
}
#fx-damage { background: radial-gradient(circle at center, transparent 42%, rgba(220, 15, 45, 0.72) 100%); }
#fx-nitro { background: radial-gradient(circle at center, transparent 58%, rgba(0, 225, 255, 0.34) 100%); }
#fx-busted { background: linear-gradient(90deg, rgba(255, 25, 55, 0.18), transparent 32%, transparent 68%, rgba(0, 140, 255, 0.18)); }
#fx-lightning { background: rgba(225, 240, 255, 0.75); transition: opacity 0.08s ease-out; }

/* Sniper Scope */
#sniper-scope {
  position: fixed; inset: 0; z-index: 14; pointer-events: none;
  background: radial-gradient(circle at center, transparent 27%, rgba(0, 0, 0, 0.96) 29%);
  display: flex; align-items: center; justify-content: center;
}
.scope-ring { position: relative; width: min(56vh, 56vw); height: min(56vh, 56vw); border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.28); }
.scope-h { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.65); }
.scope-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.65); }
.scope-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: #ff2a4b; box-shadow: 0 0 8px #ff2a4b; }

/* Precision Crosshair */
#crosshair {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; pointer-events: none; z-index: 15;
  transition: width 0.1s ease, height 0.1s ease;
}
#crosshair.aiming { width: 15px; height: 15px; }
.ch-line { position: absolute; background: rgba(255, 255, 255, 0.94); box-shadow: 0 0 4px rgba(0, 0, 0, 0.9); }
.ch-top { width: 2px; height: 6px; top: 0; left: 50%; transform: translateX(-50%); }
.ch-bottom { width: 2px; height: 6px; bottom: 0; left: 50%; transform: translateX(-50%); }
.ch-left { height: 2px; width: 6px; left: 0; top: 50%; transform: translateY(-50%); }
.ch-right { height: 2px; width: 6px; right: 0; top: 50%; transform: translateY(-50%); }
.ch-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--vice-cyan); top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

/* Top Left */
#top-left-bar { position: absolute; top: 18px; left: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pill-row { display: flex; gap: 6px; }
.pill {
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: 1.3px; text-transform: uppercase; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.pill.primary { border-color: rgba(255, 62, 157, 0.5); background: linear-gradient(90deg, rgba(255, 62, 157, 0.25), rgba(11, 14, 24, 0.88)); }
.pill.subtle { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.9); padding: 4px 12px; }
.pill.waypoint { border-color: var(--vice-cyan); color: var(--vice-cyan); background: rgba(0, 240, 255, 0.14); font-size: 11px; }
.pill.online-pill { border-color: rgba(46, 229, 157, 0.65); color: #6ee7b7; background: rgba(16, 185, 129, 0.16); font-size: 11px; }
.pill.hud-action-btn {
  pointer-events: auto; cursor: pointer; font-size: 11px; color: #e0f2fe;
  border-color: rgba(0, 240, 255, 0.45); background: rgba(12, 24, 44, 0.85);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.pill.hud-action-btn:hover { transform: scale(1.04); border-color: var(--vice-cyan); background: rgba(0, 240, 255, 0.22); }
.part-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.part-chip {
  font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px;
  background: rgba(0, 240, 255, 0.14); border: 1px solid rgba(0, 240, 255, 0.4); color: #a5f3fc;
}
.gear-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; margin-top: 2px; }
.gear-badge { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(163, 230, 53, 0.18); border: 1px solid #a3e635; color: #d9f99d; }
.map-actions { display: flex; gap: 10px; align-items: center; }

/* Top Right Status Panel — Sleek & Compact (never covers top Admin buttons!) */
#status-panel {
  position: absolute; top: 14px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  padding: 9px 13px; border-radius: 13px; min-width: 178px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}
#wanted-stars { display: flex; gap: 4px; font-size: 16px; line-height: 1; }
#wanted-stars .star { color: rgba(255, 255, 255, 0.16); transition: color 0.15s ease, transform 0.15s ease; }
#wanted-stars .star.active { color: var(--vice-gold); text-shadow: 0 0 10px rgba(255, 209, 102, 0.9); transform: scale(1.08); }
#wanted-stars.chasing .star.active { animation: policePulse 0.55s infinite alternate; }
#wanted-stars.cooling .star.active { animation: coolPulse 0.5s infinite alternate; }
@keyframes policePulse { 0% { color: #ff2e52; text-shadow: 0 0 12px #ff2e52; } 100% { color: #28a9ff; text-shadow: 0 0 12px #28a9ff; } }
@keyframes coolPulse { 0% { color: #fff; opacity: 1; } 100% { color: #888; opacity: 0.35; } }

#cash-display { font-size: 20px; font-weight: 900; color: var(--vice-green); text-shadow: 0 2px 10px rgba(46, 229, 157, 0.38); font-variant-numeric: tabular-nums; }
#weapon-box { display: flex; justify-content: space-between; width: 100%; font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--vice-cyan); }
#weapon-ammo { color: #fff; }

.bars-wrap { width: 100%; display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { font-size: 10px; font-weight: 800; color: rgba(255, 255, 255, 0.72); width: 18px; }
.bar-track { flex: 1; height: 7px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 0.2s ease; }
.bar-fill.health { background: linear-gradient(90deg, #16c784, #4ef2a8); }
.bar-fill.armor { background: linear-gradient(90deg, #0099ff, #00f0ff); }

/* Mission & Robbery */
#mission-banner {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(255, 62, 157, 0.25), rgba(11, 14, 24, 0.9));
  border: 1px solid rgba(255, 62, 157, 0.55); backdrop-filter: blur(10px);
  padding: 10px 24px; border-radius: 13px; text-align: center; min-width: 330px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
#mission-title { font-size: 11px; font-weight: 900; letter-spacing: 2px; color: var(--vice-gold); }
#mission-desc { font-size: 15px; font-weight: 700; margin-top: 2px; }
#mission-meta { display: flex; justify-content: center; gap: 20px; margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--vice-cyan); }

#robbery-bar-wrap {
  position: absolute; top: 96px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 8, 18, 0.92); border: 1px solid var(--vice-gold);
  padding: 10px 20px; border-radius: 12px; min-width: 320px; text-align: center; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}
.rob-label { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: var(--vice-gold); margin-bottom: 6px; }
.rob-track { height: 10px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; overflow: hidden; }
#robbery-fill { height: 100%; background: linear-gradient(90deg, #ff7b54, #ffd166); transition: width 0.08s linear; }

/* Toasts */
#toast-container { position: absolute; top: 116px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.toast {
  background: rgba(11, 14, 24, 0.92); border: 1px solid rgba(255, 255, 255, 0.18); border-left: 4px solid var(--vice-pink);
  padding: 10px 22px; border-radius: 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55); animation: toastIn 0.25s ease-out;
}
.toast.gold { border-left-color: var(--vice-gold); color: var(--vice-gold); }
.toast.cyan { border-left-color: var(--vice-cyan); color: var(--vice-cyan); }
.toast.green { border-left-color: var(--vice-green); color: var(--vice-green); }
.toast.red { border-left-color: var(--vice-red); color: #ff8ca0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Minimap */
#minimap-wrapper { position: absolute; bottom: 48px; left: 20px; width: 220px; height: 220px; }
#minimap { width: 216px; height: 216px; border-radius: 50%; background: #094b66; border: 3px solid rgba(255, 255, 255, 0.28); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65); display: block; }
.minimap-ring { position: absolute; top: 0; left: 0; width: 216px; height: 216px; border-radius: 50%; border: 1px solid rgba(255, 62, 157, 0.4); pointer-events: none; }
#minimap-north { position: absolute; top: -8px; left: 108px; transform: translateX(-50%); background: #141026; border: 1px solid var(--vice-pink); color: #fff; font-size: 10px; font-weight: 900; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
#minimap-legend { position: absolute; bottom: -24px; left: 0; width: 222px; display: flex; justify-content: center; gap: 9px; font-size: 10px; color: rgba(255, 255, 255, 0.84); font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95); }
#minimap-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; vertical-align: middle; }
.dot.pink { background: var(--vice-pink); } .dot.cyan { background: var(--vice-cyan); } .dot.orange { background: var(--vice-coral); } .dot.yellow { background: var(--vice-gold); } .dot.green { background: #a3e635; }

/* Context Prompt */
#prompt-box {
  position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%);
  background: rgba(11, 14, 24, 0.92); border: 1px solid rgba(0, 240, 255, 0.65);
  padding: 10px 24px; border-radius: 999px; font-size: 14px; font-weight: 800; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

/* Vehicle HUD */
#vehicle-hud {
  position: absolute; bottom: 48px; right: 22px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
  padding: 14px 20px; border-radius: 15px; min-width: 245px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
#veh-name-tag { font-size: 11px; font-weight: 900; letter-spacing: 1.4px; color: var(--vice-pink); text-transform: uppercase; margin-bottom: 4px; }
.speed-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#speed-value { font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #ffffff, #b8f5ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.speed-unit-col { display: flex; flex-direction: column; align-items: flex-end; }
.speed-unit { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.65); letter-spacing: 1px; }
#gear-value { font-size: 18px; font-weight: 900; color: var(--vice-gold); }
.nitro-row, .veh-hp-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.nitro-label, .veh-hp-label { font-size: 10px; font-weight: 800; letter-spacing: 0.7px; width: 50px; }
.nitro-label { color: var(--vice-cyan); } .veh-hp-label { color: rgba(255, 255, 255, 0.68); }
#nitro-pct { font-size: 11px; font-weight: 800; color: #fff; width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.nitro-track, .veh-hp-track { flex: 1; height: 7px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; overflow: hidden; }
#nitro-bar { height: 100%; background: linear-gradient(90deg, #ff3e9d, #00f0ff); transition: width 0.08s linear; }
#veh-hp-bar { height: 100%; background: var(--vice-green); transition: width 0.2s ease, background 0.2s ease; }
.heli-row { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; font-size: 11px; color: var(--vice-cyan); }

/* Bottom Controls Strip */
#controls-strip {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 13px; font-size: 11px; color: rgba(255, 255, 255, 0.78);
  background: rgba(9, 11, 22, 0.72); padding: 5px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap;
}
#controls-strip b { color: var(--vice-gold); margin-right: 3px; }

/* 13-SLOT GTA RADIAL WEAPON & ALPINE GEAR WHEEL */
#weapon-wheel { position: fixed; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; }
.wheel-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(10, 14, 28, 0.46), rgba(5, 7, 16, 0.78)); backdrop-filter: blur(4px); }
.wheel-container { position: relative; width: 630px; height: 630px; border-radius: 50%; z-index: 2; }
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 214px; height: 214px; border-radius: 50%;
  background: rgba(12, 16, 30, 0.95); border: 2px solid rgba(0, 240, 255, 0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14px; box-shadow: 0 0 40px rgba(0, 240, 255, 0.28);
}
#wheel-sel-name { font-size: 13.5px; font-weight: 900; color: #fff; letter-spacing: 0.7px; }
#wheel-sel-ammo { font-size: 11.5px; font-weight: 800; color: var(--vice-cyan); margin-top: 5px; }
#wheel-sel-stats { font-size: 10.5px; color: rgba(255, 255, 255, 0.78); margin-top: 4px; line-height: 1.3; }
.wheel-hint { font-size: 10px; color: var(--vice-gold); margin-top: 8px; }

.wheel-slot {
  position: absolute; width: 106px; height: 76px; margin-left: -53px; margin-top: -38px;
  border-radius: 13px; background: rgba(15, 20, 36, 0.92); border: 2px solid rgba(255, 255, 255, 0.16);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px; cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
.wheel-slot.gear-slot { border-color: rgba(163, 230, 53, 0.52); background: rgba(22, 34, 24, 0.92); }
.wheel-slot.locked { opacity: 0.36; filter: grayscale(1); }
.wheel-slot.selected {
  transform: scale(1.13); border-color: var(--vice-cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(255, 62, 157, 0.28));
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.48);
}
.wheel-slot-thumb { width: 68px; height: 34px; object-fit: contain; margin-bottom: 2px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); }
.wheel-slot-name { font-size: 9.2px; font-weight: 900; text-align: center; line-height: 1.08; }
.wheel-slot-ammo { font-size: 9px; font-weight: 700; color: var(--vice-gold); margin-top: 2px; }

/* Full Map & Shop Modals */
#fullmap-modal, .modal-overlay {
  position: fixed; inset: 0; z-index: 32; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 9, 18, 0.84); backdrop-filter: blur(8px);
}
.fullmap-card, .shop-card {
  background: rgba(13, 17, 30, 0.97); border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px; padding: 24px 28px; max-width: 1060px; width: 95%; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.78);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.modal-header h2 { font-size: 20px; letter-spacing: 1.5px; color: #fff; }
.shop-tag { font-size: 11px; font-weight: 900; letter-spacing: 2px; color: var(--vice-cyan); margin-bottom: 2px; }
.shop-balance { font-size: 15px; font-weight: 800; color: rgba(255, 255, 255, 0.8); }
.shop-balance span { color: var(--vice-green); font-size: 19px; }
.btn-close { cursor: pointer; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-weight: 800; padding: 7px 14px; border-radius: 10px; }
.btn-close:hover { background: rgba(255, 51, 85, 0.35); border-color: var(--vice-red); }

.fullmap-body { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
#fullmap-canvas { width: min(580px, 100%); height: auto; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.22); background: #0a4f6b; cursor: crosshair; }
.fullmap-legend { flex: 1; min-width: 245px; }
.fullmap-legend h3 { font-size: 14px; letter-spacing: 1.5px; color: var(--vice-gold); margin-bottom: 12px; text-transform: uppercase; }
.fullmap-legend ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.88); }
.leg-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 9px; vertical-align: middle; }
.map-tip { margin-top: 18px; font-size: 12px; color: var(--vice-cyan); line-height: 1.5; background: rgba(0, 240, 255, 0.08); padding: 10px 12px; border-radius: 10px; }

/* Shop Tabs & Cards with 3D Studio Previews! */
.shop-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-tab {
  cursor: pointer; padding: 9px 18px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78); font-size: 12px; font-weight: 900; letter-spacing: 1px;
}
.shop-tab.active { background: linear-gradient(90deg, rgba(0, 240, 255, 0.26), rgba(255, 62, 157, 0.26)); border-color: var(--vice-cyan); color: #fff; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.shop-item {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.shop-item:hover { border-color: rgba(0, 240, 255, 0.45); transform: translateY(-2px); }

.shop-thumb-wrap {
  width: 100%; height: 138px;
  background: radial-gradient(circle at 50% 60%, rgba(45, 70, 115, 0.65), rgba(10, 14, 26, 0.96) 80%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.shop-thumb { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-brand-badge {
  position: absolute; top: 8px; left: 10px;
  background: rgba(10, 14, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 900; color: var(--vice-gold); letter-spacing: 0.8px;
}
.shop-item-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; gap: 8px; }
.shop-item h4 { font-size: 15px; color: #fff; }
.shop-item .item-cat { font-size: 10.5px; font-weight: 800; color: var(--vice-cyan); letter-spacing: 1px; }
.shop-item .item-desc { font-size: 12px; color: rgba(255, 255, 255, 0.76); line-height: 1.42; }
.shop-item .item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.shop-item .item-price { font-size: 16px; font-weight: 900; color: var(--vice-green); }
.shop-item .btn-buy {
  cursor: pointer; border: none; padding: 8px 16px; border-radius: 9px;
  font-size: 12px; font-weight: 900; background: linear-gradient(90deg, #ff3e9d, #ff9955); color: #120822;
}
.shop-item .btn-buy:hover { filter: brightness(1.1); transform: scale(1.03); }
.shop-item .btn-buy.owned { background: rgba(46, 229, 157, 0.18); color: var(--vice-green); border: 1px solid var(--vice-green); }
.shop-item .btn-buy.equipped { background: rgba(0, 240, 255, 0.22); color: var(--vice-cyan); border: 1px solid var(--vice-cyan); }

/* Car Color Picker Swatches & 3-Stage Tuning UI */
.color-picker-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.28); transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  padding: 0; outline: none;
}
.color-swatch:hover { transform: scale(1.16); border-color: #fff; }
.color-swatch.active { transform: scale(1.18); border-color: #00f0ff; box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.45); }
.color-selected-label { font-size: 10.5px; font-weight: 800; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }
.tune-banner {
  grid-column: 1 / -1; background: linear-gradient(90deg, rgba(0, 240, 255, 0.14), rgba(255, 62, 157, 0.12));
  border: 1px solid rgba(0, 240, 255, 0.35); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.tune-banner-title { font-size: 14px; font-weight: 900; color: #fff; letter-spacing: 0.6px; }
.tune-banner-meta { font-size: 12px; font-weight: 700; color: var(--vice-cyan); }
.tune-stages { display: flex; gap: 5px; margin: 6px 0 2px; }
.tune-stage-pip {
  flex: 1; text-align: center; padding: 4px 0; border-radius: 6px; font-size: 10px; font-weight: 900;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.45);
}
.tune-stage-pip.done {
  background: linear-gradient(90deg, rgba(46, 229, 157, 0.25), rgba(0, 240, 255, 0.22));
  border-color: var(--vice-green); color: #a7f3d0;
}
.tune-stage-pip.next { border-color: var(--vice-gold); color: var(--vice-gold); background: rgba(255, 209, 102, 0.12); }

/* Garage Car Selector Bar (Top of Tuning Tab) & 3-Variant Tuning Part Buttons */
.garage-selector-wrap {
  grid-column: 1 / -1; background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.35); border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.garage-selector-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.garage-selector-title { font-size: 12px; font-weight: 900; letter-spacing: 1px; color: var(--vice-cyan); text-transform: uppercase; }
.garage-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.garage-car-chip {
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 10px; font-size: 11.5px; font-weight: 800;
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(255, 255, 255, 0.18); color: #e2e8f0;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.garage-car-chip:hover { border-color: var(--vice-cyan); transform: translateY(-1px); }
.garage-car-chip.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.25), rgba(255, 62, 157, 0.22));
  border-color: var(--vice-cyan); color: #fff; box-shadow: 0 0 14px rgba(0, 240, 255, 0.32);
}
.variant-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.variant-btn {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 7px 10px; border-radius: 9px; text-align: left;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 11px; font-weight: 800; transition: border-color 0.12s ease, background 0.12s ease;
}
.variant-btn:hover { border-color: var(--vice-gold); background: rgba(255, 209, 102, 0.12); }
.variant-btn.installed {
  border-color: var(--vice-green); background: rgba(46, 229, 157, 0.18); color: #a7f3d0;
}
.variant-btn .v-sub { font-size: 9.8px; font-weight: 600; color: rgba(255, 255, 255, 0.72); display: block; margin-top: 1px; }
.variant-btn .v-price { white-space: nowrap; font-size: 11px; font-weight: 900; color: var(--vice-green); }

/* Start & Pause Screens — Smooth Vertical Scrolling on ALL Screen Heights (Phone, Tablet, Desktop!) */
#start-screen, #pause-screen {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
  padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: radial-gradient(circle at 50% 25%, rgba(255, 62, 157, 0.22), rgba(7, 10, 20, 0.94) 68%);
  backdrop-filter: blur(8px);
}
.start-card, .pause-card {
  max-width: 980px; width: 95%; margin: auto; background: rgba(13, 16, 30, 0.93);
  border: 1px solid rgba(255, 110, 180, 0.35); border-radius: 22px; padding: 26px 30px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
}
.pause-card { max-width: 460px; }
.subtitle-top { font-size: 12px; font-weight: 900; letter-spacing: 4px; color: var(--vice-cyan); margin-bottom: 6px; }
.game-logo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; line-height: 1; }
.logo-vice { font-size: clamp(32px, 5vw, 54px); font-weight: 900; letter-spacing: 3px; background: linear-gradient(180deg, #fff5d6 0%, #ff8a5b 48%, #ff3e9d 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-vi { font-size: clamp(36px, 6vw, 62px); font-weight: 900; font-style: italic; padding: 2px 14px; border-radius: 12px; background: linear-gradient(135deg, #ff3e9d, #ff9a52, #00f0ff); color: #120822; }
.tagline { color: rgba(255, 255, 255, 0.82); font-size: 13.5px; margin-bottom: 22px; line-height: 1.5; }
.controls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; margin-bottom: 24px; }
.ctrl-group { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 14px 16px; }
.ctrl-group h3 { font-size: 13px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: var(--vice-gold); margin-bottom: 9px; }
.ctrl-group ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 12.2px; color: rgba(255, 255, 255, 0.88); }
kbd { display: inline-block; padding: 2px 6px; font-size: 11px; font-weight: 800; border-radius: 5px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff; margin-right: 4px; }

.btn-primary { cursor: pointer; border: none; padding: 14px 44px; border-radius: 999px; font-size: 15px; font-weight: 900; letter-spacing: 2px; color: #120822; background: linear-gradient(90deg, #ff3e9d, #ff9955, #ffd166); box-shadow: 0 8px 28px rgba(255, 62, 157, 0.45); transition: transform 0.15s ease; }
.btn-primary:hover { transform: translateY(-2px) scale(1.03); }
.btn-secondary { cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2); padding: 11px 22px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--vice-cyan); }
.load-status { margin-top: 12px; font-size: 12px; color: var(--vice-cyan); min-height: 18px; }
.pause-card h2 { font-size: 26px; letter-spacing: 4px; margin-bottom: 14px; color: var(--vice-gold); }
.pause-stats { font-size: 13px; color: rgba(255, 255, 255, 0.84); margin-bottom: 18px; line-height: 1.75; background: rgba(255, 255, 255, 0.05); padding: 12px; border-radius: 12px; }
.pause-actions { display: flex; flex-direction: column; gap: 10px; }

#wasted-screen { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15, 0, 10, 0.68); backdrop-filter: grayscale(85%) blur(4px); }
#wasted-title { font-size: clamp(48px, 9vw, 96px); font-weight: 900; letter-spacing: 10px; color: #ff3355; text-shadow: 0 6px 32px rgba(255, 51, 85, 0.85); }
#wasted-sub { margin-top: 10px; font-size: 18px; font-weight: 700; color: #fff; }

/* Alpine Camp Overnight Sleep Overlay */
#sleep-overlay {
  position: fixed; inset: 0; z-index: 38; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(14, 30, 58, 0.92), rgba(4, 7, 16, 0.98) 72%);
  backdrop-filter: blur(8px);
}
.sleep-card {
  text-align: center; padding: 34px 44px; border-radius: 20px; max-width: 520px; width: 90%;
  background: rgba(12, 18, 34, 0.9); border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}
.sleep-icon { font-size: 46px; margin-bottom: 10px; }
#sleep-title { font-size: 22px; font-weight: 900; letter-spacing: 2.5px; color: #38bdf8; margin-bottom: 8px; }
#sleep-sub { font-size: 14px; color: rgba(255, 255, 255, 0.86); line-height: 1.5; margin-bottom: 18px; }
.sleep-bar { width: 100%; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.sleep-bar-fill { width: 100%; height: 100%; background: linear-gradient(90deg, #38bdf8, #ffd166); animation: sleepProgress 2.6s linear forwards; }
@keyframes sleepProgress { from { transform: translateX(-100%); } to { transform: translateX(0%); } }

/* Mobile & Tablet Portrait-to-Landscape Overlay (ONLY shown on touch devices in portrait!) */
#rotate-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 62, 157, 0.28), rgba(6, 9, 18, 0.98) 70%);
  backdrop-filter: blur(12px);
}
.rotate-card {
  max-width: 380px; width: 100%; text-align: center; padding: 28px 24px; border-radius: 20px;
  background: rgba(13, 17, 32, 0.95); border: 1px solid rgba(0, 240, 255, 0.42);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.rotate-icon {
  font-size: 56px; margin-bottom: 12px; display: inline-block;
  animation: rotatePhoneHint 2.1s ease-in-out infinite;
}
@keyframes rotatePhoneHint {
  0%, 20% { transform: rotate(0deg); }
  50%, 80% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}
.rotate-card h2 { font-size: 18px; letter-spacing: 1.8px; color: var(--vice-gold); margin-bottom: 10px; }
.rotate-card p { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; margin-bottom: 18px; }

@media (pointer: coarse) and (orientation: portrait) {
  #rotate-overlay { display: flex; }
}

/* Mobile & Tablet Landscape Touch Controls — Compact, Translucent & ZERO Overlap! */
#mobile-controls {
  position: fixed; inset: 0; z-index: 22; pointer-events: none;
  touch-action: none;
}
#touch-joystick-zone {
  position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom));
  width: 102px; height: 102px; pointer-events: auto; touch-action: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.78;
}
#touch-joystick-base {
  width: 90px; height: 90px; border-radius: 50%; position: relative;
  background: rgba(10, 16, 30, 0.42); border: 1.5px solid rgba(0, 240, 255, 0.48);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
#touch-joystick-knob {
  width: 38px; height: 38px; border-radius: 50%; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #67e8f9, #0284c7);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 10px rgba(0, 240, 255, 0.45);
}
#touch-look-zone {
  position: absolute; top: 42px; right: 0; bottom: 0; left: 38%;
  pointer-events: auto; touch-action: none;
}
#touch-top-bar {
  position: absolute; top: max(6px, env(safe-area-inset-top)); left: 46%; transform: translateX(-50%);
  display: flex; gap: 4px; pointer-events: auto;
}
.touch-mini-btn {
  padding: 4px 7px; border-radius: 99px; font-size: 9.5px; font-weight: 800; color: #fff;
  background: rgba(11, 16, 30, 0.76); border: 1px solid rgba(255, 255, 255, 0.25);
  touch-action: manipulation; white-space: nowrap;
}
#touch-action-pad {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(58px, calc(52px + env(safe-area-inset-bottom)));
  display: grid; grid-template-columns: repeat(3, 42px); gap: 6px;
  pointer-events: auto; touch-action: none;
  opacity: 0.82;
}
.touch-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 16, 30, 0.62); color: #fff; font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; touch-action: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.38);
}
.touch-btn.fire { background: rgba(239, 68, 68, 0.7); border-color: #fca5a5; }
.touch-btn.boost { background: rgba(0, 240, 255, 0.32); border-color: var(--vice-cyan); }
.touch-btn.use { font-size: 11px; background: rgba(250, 204, 21, 0.32); border-color: var(--vice-gold); }
.touch-btn:active { transform: scale(0.9); filter: brightness(1.25); }

/* Touch-Scrollable Modals & Compact Mobile Landscape Layout (ZERO Overlap!) */
#fullmap-modal, .modal-overlay { -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.fullmap-card, .shop-card { -webkit-overflow-scrolling: touch; touch-action: pan-y; }

@media (max-width: 860px) {
  .controls-grid { grid-template-columns: 1fr; }
  #controls-strip { display: none; }
}
@media (pointer: coarse), (max-height: 540px) {
  /* Compact Scrollable Start Menu */
  .start-card { padding: 14px 18px; border-radius: 16px; }
  .tagline { font-size: 11.5px; margin-bottom: 10px; }
  .controls-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
  .ctrl-group { padding: 8px 9px; }
  .ctrl-group h3 { font-size: 10.5px; margin-bottom: 4px; }
  .ctrl-group ul { font-size: 10.2px; gap: 3px; }
  .btn-primary { padding: 10px 26px; font-size: 13px; }
  #controls-strip { display: none; }

  /* Slim Top-Left District & Time Pills */
  #top-left-bar { top: max(6px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); gap: 3px; }
  .pill { padding: 2px 8px; font-size: 9px; letter-spacing: 0.7px; }
  .pill.subtle { padding: 2px 7px; font-size: 8.5px; }
  .pill.waypoint { font-size: 8.5px; padding: 2px 7px; }
  #radio-badge { display: none; }

  /* Compact Minimap moved to TOP-LEFT under pills — ZERO collision with Bottom-Left Joystick! */
  #minimap-wrapper {
    top: calc(max(6px, env(safe-area-inset-top)) + 44px);
    left: max(8px, env(safe-area-inset-left));
    bottom: auto;
    width: 78px; height: 78px;
  }
  #minimap, .minimap-ring { width: 76px; height: 76px; border-width: 2px; }
  #minimap-north { left: 38px; top: -6px; width: 14px; height: 14px; font-size: 8px; }
  #minimap-legend { display: none; }

  /* Ultra-Compact Top-Right Status Panel — NEVER overlaps Admin Panel button! */
  #btn-open-admin-hud { display: none !important; }
  #status-panel {
    top: max(5px, env(safe-area-inset-top)); right: max(6px, env(safe-area-inset-right));
    padding: 4px 7px; min-width: 98px; max-width: 122px; border-radius: 9px; gap: 2px;
  }
  #wanted-stars { font-size: 10px; gap: 2px; }
  #cash-display { font-size: 11.5px; }
  #weapon-box { font-size: 8px; padding: 2px 5px; border-radius: 4px; }
  .bars-wrap { gap: 2px; margin-top: 1px; }
  .bar-label { font-size: 7.5px; width: 13px; }
  .bar-track { height: 3.5px; }
  .gear-badge { font-size: 7.5px; padding: 1px 4px; }

  /* Small, Clean Mobile Notifications (Toasts, Mission, Robbery, Prompt) */
  #toast-container { top: 36px; gap: 4px; max-width: 54vw; }
  .toast {
    padding: 4px 10px; font-size: 10px; border-radius: 7px; border-left-width: 3px;
    line-height: 1.25; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }
  #mission-banner {
    top: 34px; min-width: auto; max-width: 48vw; padding: 4px 10px; border-radius: 8px;
  }
  #mission-title { font-size: 8.5px; letter-spacing: 1px; }
  #mission-desc { font-size: 10.5px; }
  #mission-meta { font-size: 9.5px; gap: 10px; margin-top: 2px; }
  #robbery-bar-wrap { top: 68px; min-width: 185px; padding: 5px 10px; border-radius: 8px; }
  .rob-label { font-size: 9px; margin-bottom: 3px; }
  .rob-track { height: 6px; }
  #prompt-box {
    bottom: 58px; padding: 4px 11px; font-size: 10px; max-width: 48vw; text-align: center;
  }

  /* Compact Vehicle Speedometer centered at bottom — ZERO overlap with Right Action Buttons! */
  #vehicle-hud {
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 50%; right: auto; transform: translateX(-50%);
    min-width: 148px; padding: 5px 10px; border-radius: 10px;
  }
  #veh-name-tag { font-size: 8.5px; margin-bottom: 1px; }
  #speed-value { font-size: 21px; }
  .speed-unit { font-size: 8px; }
  #gear-value { font-size: 11px; }
  .nitro-row, .veh-hp-row { margin-top: 3px; gap: 4px; }
  .nitro-label, .veh-hp-label { font-size: 8px; width: 34px; }
  #nitro-pct { font-size: 8.5px; width: 24px; }
  .nitro-track, .veh-hp-track { height: 4px; }
  .heli-row { margin-top: 3px; padding-top: 3px; font-size: 8.5px; }
}

/* === USERNAME LOGIN, GLOBAL LEADERBOARD, ADMIN BADGE & GIFT SYSTEM === */
.player-pill {
  border-color: rgba(255, 255, 255, 0.25);
  color: #f8fafc;
  display: inline-flex; align-items: center; gap: 5px;
}
.admin-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: 0.7px;
  background: linear-gradient(90deg, #f59e0b, #facc15, #fef08a);
  color: #1c1004; box-shadow: 0 0 12px rgba(250, 204, 21, 0.65);
  text-transform: uppercase;
}
.admin-hud-btn {
  pointer-events: auto; cursor: pointer;
  background: linear-gradient(90deg, #f59e0b, #facc15); color: #160c02;
  border: 1px solid #fef08a; font-weight: 900;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.55);
}
.admin-hud-btn:hover { filter: brightness(1.1); transform: scale(1.03); }

.login-panel {
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 16px;
}
.login-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.login-row input, .login-admin-row input, .gift-custom-row input {
  background: rgba(7, 11, 22, 0.9); border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 11px 18px; color: #fff; font-size: 14px; font-weight: 700;
  outline: none; min-width: 230px; flex: 1; max-width: 340px;
}
.login-row input:focus, .login-admin-row input:focus, .gift-custom-row input:focus {
  border-color: var(--vice-cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}
.login-admin-row {
  display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 9px;
}
.btn-link {
  background: none; border: none; color: var(--vice-gold); font-size: 12px; font-weight: 800;
  cursor: pointer; text-decoration: underline; opacity: 0.85;
}
.btn-link:hover { opacity: 1; }
.btn-admin-sm, .btn-admin-full {
  cursor: pointer; border: none; padding: 8px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.8px; color: #1a0f02;
  background: linear-gradient(90deg, #f59e0b, #facc15, #fde047);
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.45);
}
.btn-admin-full { padding: 11px 22px; font-size: 13px; }
.login-error { margin-top: 7px; font-size: 12px; font-weight: 700; color: #ff6b81; min-height: 16px; }

.leaderboard-panel {
  background: rgba(9, 13, 25, 0.86); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; text-align: left;
}
.lb-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.lb-header h3 { font-size: 13.5px; font-weight: 900; letter-spacing: 1.4px; color: var(--vice-gold); }
.lb-count { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.65); }
.lb-admin-hint { font-size: 11px; font-weight: 800; color: #fde047; margin-top: 2px; }
.lb-refresh { padding: 5px 12px; font-size: 11px; }
.lb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lb-tab {
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85); padding: 6px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 800;
}
.lb-tab.active { background: linear-gradient(90deg, rgba(0, 240, 255, 0.25), rgba(255, 62, 157, 0.25)); border-color: var(--vice-cyan); color: #fff; }
.lb-list {
  display: flex; flex-direction: column; gap: 6px; max-height: 215px; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding-right: 4px;
}
.lb-list-tall { max-height: 55vh; }
.lb-empty { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); text-align: center; padding: 14px; }
.lb-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lb-row.is-me { border-color: rgba(0, 240, 255, 0.55); background: rgba(0, 240, 255, 0.09); }
.lb-row.is-admin-row { border-color: rgba(250, 204, 21, 0.45); background: rgba(250, 204, 21, 0.07); }
.lb-row.clickable { cursor: pointer; }
.lb-row.clickable:hover { border-color: var(--vice-gold); background: rgba(250, 204, 21, 0.14); }
.lb-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lb-rank { font-size: 12.5px; font-weight: 900; color: var(--vice-gold); min-width: 26px; }
.lb-name { font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lb-val { font-size: 13px; font-weight: 900; color: var(--vice-green); font-variant-numeric: tabular-nums; }
.btn-gift-row {
  cursor: pointer; border: none; padding: 4px 10px; border-radius: 99px; font-size: 10.5px; font-weight: 900;
  background: linear-gradient(90deg, #ff3e9d, #facc15); color: #160918;
}

.admin-card { max-width: 920px; }
.admin-section { margin-bottom: 18px; text-align: left; }
.admin-section h3 { font-size: 13px; font-weight: 900; letter-spacing: 1.3px; color: var(--vice-gold); margin-bottom: 10px; }
.admin-btn-grid, .gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 9px; }
.btn-admin-act {
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 12px; border-radius: 11px;
  font-size: 12px; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.08); text-align: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.btn-admin-act:hover { border-color: var(--vice-cyan); background: rgba(0, 240, 255, 0.16); transform: translateY(-1px); }
.btn-admin-act.op {
  border-color: rgba(250, 204, 21, 0.65);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(0, 240, 255, 0.18));
  color: #fef08a;
}
.gift-card { max-width: 560px; }
.gift-custom-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* === CHARACTER GENDER PICKER === */
.gender-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-top: 10px;
}
.gender-label { font-size: 11px; font-weight: 900; letter-spacing: 1.2px; color: var(--vice-cyan); }
.gender-btn {
  cursor: pointer; border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 18, 34, 0.85); color: rgba(255, 255, 255, 0.85);
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 900;
  transition: all 0.14s ease;
}
.gender-btn:hover { border-color: var(--vice-cyan); color: #fff; }
.gender-btn.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.3), rgba(255, 62, 157, 0.35));
  border-color: var(--vice-pink); color: #fff;
  box-shadow: 0 0 14px rgba(255, 62, 157, 0.35);
}
.gender-note { font-size: 11px; color: rgba(255, 255, 255, 0.58); font-weight: 700; }

/* === VICEPHONE 16 PRO SMARTPHONE OVERLAY === */
.phone-shell {
  width: min(410px, 94vw);
  height: min(740px, 90vh);
  background: linear-gradient(160deg, #0b1020 0%, #12172c 55%, #1d1330 100%);
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-radius: 36px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), 0 0 36px rgba(0, 240, 255, 0.22);
  display: flex; flex-direction: column; overflow: hidden;
  padding: 10px 14px 12px;
}
.phone-notch {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.86);
  padding: 2px 6px 8px;
}
.phone-island {
  width: 96px; height: 22px; border-radius: 99px;
  background: #020409; border: 1px solid rgba(255, 255, 255, 0.14);
}
.phone-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.phone-app-title {
  font-size: 13px; font-weight: 900; letter-spacing: 1.2px; color: #fff;
  text-align: center; flex: 1;
}
.phone-nav-btn {
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 800;
}
.phone-nav-btn.close { border-color: rgba(255, 80, 120, 0.55); color: #ff8aa8; }
.phone-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 2px; display: flex; flex-direction: column; gap: 10px;
}
.phone-home-bar {
  width: 110px; height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.35); margin: 8px auto 0;
}
.phone-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px;
}
.phone-app-icon {
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px; padding: 14px 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #fff; font-weight: 800; font-size: 11px; transition: transform 0.12s ease;
}
.phone-app-icon:hover { transform: translateY(-2px); border-color: var(--vice-cyan); }
.phone-app-emoji { font-size: 28px; line-height: 1; }
.phone-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 11px 12px; text-align: left;
}
.phone-card h4 { font-size: 13px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.phone-card p { font-size: 11.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.4; }
.phone-post-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--vice-cyan); font-weight: 800; margin-bottom: 4px;
}
.phone-input-row { display: flex; gap: 6px; }
.phone-input-row input {
  flex: 1; background: rgba(6, 10, 20, 0.9); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px; padding: 8px 10px; color: #fff; font-size: 12px; outline: none;
}
.phone-btn {
  cursor: pointer; border: none; border-radius: 10px; padding: 7px 12px;
  font-size: 11.5px; font-weight: 900; color: #090d1a;
  background: linear-gradient(90deg, var(--vice-cyan), var(--vice-green));
}
.phone-btn.pink { background: linear-gradient(90deg, #ff3e9d, #facc15); }
.phone-btn.red { background: linear-gradient(90deg, #ef4444, #f97316); color: #fff; }
.phone-btn.sm { padding: 5px 10px; font-size: 11px; }
.phone-row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.cloth-gender-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.88);
}

/* === IN-GAME PHOTO & VIDEO CAMERA VIEWFINDER + VICEGRAM MEDIA === */
#fx-shutter {
  position: fixed; inset: 0; z-index: 95;
  background: #ffffff; opacity: 0; pointer-events: none;
  transition: opacity 0.16s ease-out;
}
#camera-hud {
  position: fixed; inset: 0; z-index: 48;
  pointer-events: none;
}
.cam-corner {
  position: fixed; width: 42px; height: 42px;
  border-color: rgba(255, 255, 255, 0.85); border-style: solid;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}
.cam-corner.tl { top: 24px; left: 24px; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.cam-corner.tr { top: 24px; right: 24px; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.cam-corner.bl { bottom: 86px; left: 24px; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.cam-corner.br { bottom: 86px; right: 24px; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }
.cam-top-bar {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.cam-pill {
  background: rgba(8, 12, 24, 0.78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 99px;
  padding: 6px 14px; font-size: 11.5px; font-weight: 900; letter-spacing: 0.7px; color: #fff;
}
.cam-pill.rec {
  background: rgba(220, 38, 38, 0.9); border-color: rgba(255, 180, 180, 0.7);
  animation: camRecPulse 1s ease-in-out infinite;
}
@keyframes camRecPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.cam-bottom-dock {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 8px 12px; border-radius: 99px;
  background: rgba(8, 12, 24, 0.84); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}
.cam-dock-btn {
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  padding: 8px 14px; border-radius: 99px; font-size: 12px; font-weight: 900;
  transition: transform 0.12s ease, background 0.15s ease;
}
.cam-dock-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.2); }
.cam-dock-btn.snap {
  background: linear-gradient(90deg, var(--vice-cyan), var(--vice-green)); color: #09101d; border-color: transparent;
}
.cam-dock-btn.rec-btn {
  background: linear-gradient(90deg, #ff3e9d, #ef4444); color: #fff; border-color: transparent;
}
.cam-dock-btn.rec-btn.recording {
  background: #dc2626; box-shadow: 0 0 18px rgba(239, 68, 68, 0.85);
}
.cam-dock-btn.active {
  background: rgba(0, 240, 255, 0.25); border-color: var(--vice-cyan); color: #fff;
}
.cam-dock-btn.close { border-color: rgba(255, 100, 130, 0.55); color: #fda4af; }

.phone-media-bar {
  display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap;
}
.phone-draft-wrap {
  position: relative; margin-top: 8px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.4); background: #050812;
}
.phone-draft-wrap img, .phone-draft-wrap video {
  display: block; width: 100%; max-height: 185px; object-fit: cover; background: #000;
}
.phone-draft-remove {
  position: absolute; top: 6px; right: 6px; cursor: pointer;
  border: none; border-radius: 99px; width: 24px; height: 24px;
  background: rgba(0, 0, 0, 0.78); color: #fff; font-weight: 900; font-size: 12px;
}
.phone-post-media {
  margin-top: 7px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #03060f;
}
.phone-post-media img {
  display: block; width: 100%; max-height: 220px; object-fit: cover; cursor: zoom-in;
}
.phone-post-media video {
  display: block; width: 100%; max-height: 230px; background: #000;
}
.gallery-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.gallery-item {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; overflow: hidden;
}
.gallery-item img, .gallery-item video {
  display: block; width: 100%; max-height: 190px; object-fit: cover; background: #000;
}
.gallery-item-foot {
  padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
}
.gallery-item-meta { font-size: 10.5px; color: rgba(255, 255, 255, 0.68); font-weight: 700; }
.lightbox-card {
  position: relative; max-width: min(920px, 94vw); max-height: 90vh;
  background: #0a0f1e; border: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 18px; padding: 12px; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lightbox-card img {
  max-width: 100%; max-height: 76vh; border-radius: 12px; object-fit: contain;
}
.lightbox-close { position: absolute; top: 10px; right: 10px; }
.lightbox-caption { font-size: 13px; color: rgba(255, 255, 255, 0.9); font-weight: 700; text-align: center; }

/* === VICEBANK KARTEN-WALLET (VISA, MASTERCARD, AMEX GREEN/GOLD/PLATINUM/CENTURION) & POS PIN-TERMINAL === */
.bank-card-visual {
  position: relative; border-radius: 16px; padding: 15px 16px;
  color: #fff; overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.bank-card-visual::after {
  content: ''; position: absolute; top: -40%; right: -25%; width: 170px; height: 220px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  transform: rotate(24deg); pointer-events: none;
}
.bank-card-visual.visa_classic {
  background: linear-gradient(135deg, #0f2854 0%, #1d4ed8 55%, #0284c7 100%);
}
.bank-card-visual.mastercard_gold {
  background: linear-gradient(135deg, #784c12 0%, #ca8a04 48%, #facc15 100%);
  color: #1c1305; border-color: rgba(255, 244, 180, 0.7);
}
.bank-card-visual.amex_green {
  background: linear-gradient(135deg, #064e3b 0%, #059669 52%, #34d399 100%);
  border-color: rgba(167, 243, 208, 0.65);
}
.bank-card-visual.amex_gold {
  background: linear-gradient(135deg, #92400e 0%, #d97706 45%, #fde68a 100%);
  color: #1f1204; border-color: rgba(254, 243, 199, 0.85);
}
.bank-card-visual.amex_platinum {
  background: linear-gradient(135deg, #475569 0%, #cbd5e1 48%, #f8fafc 75%, #94a3b8 100%);
  color: #0f172a; border-color: rgba(255, 255, 255, 0.9);
}
.bank-card-visual.amex_centurion {
  background: linear-gradient(135deg, #05070c 0%, #181c26 50%, #090b10 100%);
  color: #f8dfa1; border: 1.5px solid #d4af37;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.85), 0 0 22px rgba(212, 175, 55, 0.28);
}
.bcv-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 900; letter-spacing: 1.1px; }
.bcv-chip-row { display: flex; align-items: center; gap: 10px; margin: 11px 0 10px; }
.bcv-chip {
  width: 34px; height: 25px; border-radius: 5px;
  background: linear-gradient(135deg, #fde047, #ca8a04);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.bcv-nfc { font-size: 13px; font-weight: 900; opacity: 0.85; letter-spacing: -1px; }
.bcv-num { font-size: 14px; font-weight: 900; letter-spacing: 2.2px; margin-bottom: 8px; font-family: monospace; }
.bcv-bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 10.5px; font-weight: 800; text-transform: uppercase; }

.pos-overlay { z-index: 125 !important; }
.pos-terminal-card {
  width: min(420px, 94vw);
  max-height: 92vh; overflow-y: auto;
  background: linear-gradient(165deg, #0b1222 0%, #141d33 100%);
  border: 2px solid rgba(0, 240, 255, 0.38);
  border-radius: 24px; padding: 16px 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.2);
  color: #fff;
}
.pos-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.pos-merchant { font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px; color: var(--vice-cyan); }
.pos-item-name { font-size: 15px; font-weight: 900; color: #fff; margin-top: 2px; }
.pos-amount-box {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 12px;
}
.pos-amount-lbl { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.68); }
.pos-amount-val { font-size: 21px; font-weight: 900; color: #2ee59d; }
.pos-pin-screen {
  background: #050914; border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px; padding: 10px 12px; text-align: center; margin: 10px 0;
}
.pos-pin-dots {
  font-size: 24px; font-weight: 900; letter-spacing: 10px; color: #38bdf8;
  min-height: 32px; display: flex; align-items: center; justify-content: center;
}
.pos-pin-msg { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.72); margin-top: 3px; }
.pos-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0;
}
.pos-key {
  cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border-radius: 11px; padding: 11px 0; font-size: 16px; font-weight: 900;
  transition: background 0.1s ease, transform 0.08s ease;
}
.pos-key:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.pos-key.ok { background: linear-gradient(90deg, #10b981, #00f0ff); color: #06101c; border-color: transparent; }
.pos-key.clr { background: rgba(239, 68, 68, 0.22); color: #fca5a5; border-color: rgba(239, 68, 68, 0.45); }
.pos-cash-row {
  display: flex; gap: 8px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.pos-cash-btn {
  flex: 1; cursor: pointer; border: 1px solid rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.14); color: #fde047;
  border-radius: 11px; padding: 9px 12px; font-size: 12px; font-weight: 900;
}
.pos-cash-btn:hover { background: rgba(250, 204, 21, 0.26); }
