:root {
  --sb-green: #22A958;
  --sb-green-bright: #00D170;
  --sb-green-dark: #168242;
  --sb-dark: #0e111b;
  --sb-panel: rgba(14, 17, 27, 0.86);
  --sb-surface: #ffffff;
  --sb-bg-soft: #f5f7fa;
  --sb-text: #111827;
  --sb-muted: #64748b;
  --sb-danger: #ef4444;
  --sb-gold: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--sb-dark);
  user-select: none;
}

#game-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

/* =========================================================
   MOBILE PORTRAIT GUARD: ANIMATED "ROTATE YOUR PHONE"
   ========================================================= */
.rotate-device-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at center, #13251e 0%, #090c14 75%);
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 18px;
}

@media (pointer: coarse) and (orientation: portrait), (max-width: 760px) and (orientation: portrait) {
  .rotate-device-overlay {
    display: flex;
  }
}

.rotate-logo {
  width: 112px;
  margin-bottom: 6px;
}

.rotate-phone-stage {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate-phone-icon {
  width: 54px;
  height: 92px;
  border: 4px solid #00D170;
  border-radius: 14px;
  background: rgba(0, 209, 112, 0.12);
  box-shadow: 0 0 28px rgba(0, 209, 112, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  animation: rotatePhoneAnim 2.2s ease-in-out infinite;
}

.rotate-phone-notch {
  width: 20px;
  height: 4px;
  border-radius: 99px;
  background: #00D170;
  margin-bottom: 8px;
}

.rotate-phone-screen {
  flex: 1;
  width: 100%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate-phone-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
}

.rotate-arrow-arc {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 30px;
  color: #fbbf24;
  animation: arrowPulse 2.2s ease-in-out infinite;
}

@keyframes rotatePhoneAnim {
  0%, 18% { transform: rotate(0deg); }
  45%, 72% { transform: rotate(-90deg); }
  92%, 100% { transform: rotate(0deg); }
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.rotate-device-overlay h2 {
  font-size: 22px;
  font-weight: 900;
  color: #00D170;
}

.rotate-device-overlay p {
  font-size: 14px;
  line-height: 1.8;
  color: #cbd5e1;
  max-width: 310px;
}

/* =========================================================
   STAGE 1: 16:9 GTA VI POSTER BOOT & LOADING SCREEN
   ========================================================= */
.boot-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #05070c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.boot-poster-stage {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  max-width: 177.78vh; /* Strict 16:9 widescreen framing */
  max-height: 56.25vw;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  animation: posterEntrance 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes posterEntrance {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.boot-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boot-footer-ui {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px 36px 20px;
  background: linear-gradient(0deg, rgba(6, 8, 14, 0.96) 0%, rgba(6, 8, 14, 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.boot-tip-row {
  width: 100%;
  max-width: 780px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
  font-size: 13px;
}

.boot-progress-track {
  width: 100%;
  max-width: 780px;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
}

.boot-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #fbbf24, #00D170);
  box-shadow: 0 0 14px rgba(0, 209, 112, 0.8);
  transition: width 0.15s linear;
}

.boot-continue-btn {
  margin-top: 4px;
  background: linear-gradient(90deg, #ec4899, #f59e0b, #00D170);
  color: #070b12;
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.45);
  animation: btnPulse 1.1s infinite alternate;
}

/* =========================================================
   STAGE 2: 10-SECOND SKIPPABLE LIVE 3D CINEMATIC INTRO
   ========================================================= */
.intro-video-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cinematic-bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 10vh;
  background: #000;
  z-index: 82;
}
.cinematic-bar.top { top: 0; }
.cinematic-bar.bottom { bottom: 0; }

.intro-studio-card {
  position: fixed;
  inset: 0;
  z-index: 83;
  background: #0b0f1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.9s ease;
}

.intro-studio-card.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-studio-badge {
  width: 170px;
  height: 170px;
  border-radius: 34px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(0, 209, 112, 0.5), 0 18px 44px rgba(0, 0, 0, 0.7);
  animation: studioReveal 2.6s ease-out forwards;
}

@keyframes studioReveal {
  0% { opacity: 0; transform: scale(0.78); }
  35% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1.06); }
}

.intro-studio-logo {
  width: 118px;
  height: auto;
}

.intro-studio-sub {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #a7f3d0;
  text-transform: uppercase;
}

.intro-caption {
  position: fixed;
  bottom: 13vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 84;
  background: rgba(10, 14, 24, 0.72);
  border: 1px solid rgba(0, 209, 112, 0.45);
  color: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.skip-intro-btn {
  position: fixed;
  bottom: 24px;
  left: 32px;
  z-index: 86;
  pointer-events: auto;
  background: rgba(14, 17, 27, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.skip-intro-btn:hover {
  background: var(--sb-green-bright);
  color: #07130d;
  border-color: transparent;
}

/* =========================================================
   STAGE 3: AAA CINEMATIC MINIMALIST MAIN MENU (DELIVERY DAY TEHRAN)
   ========================================================= */
.gta-title-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 96px 7vw 76px;
}

body.lang-fa .gta-title-screen {
  direction: rtl;
}

body.lang-en .gta-title-screen {
  direction: ltr;
}

.gta-bg-hero {
  position: absolute;
  inset: -1.5%;
  background: url('./assets/menu-hero-fa.jpg?v=5.2') center 18% / cover no-repeat;
  filter: contrast(1.04) saturate(1.05);
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}

body.lang-fa .gta-bg-hero {
  background-image: url('./assets/menu-hero-fa.jpg?v=5.2');
  background-position: center 18%;
}

body.lang-en .gta-bg-hero {
  background-image: url('./assets/menu-hero-en.jpg?v=5.2');
  background-position: center 18%;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.045) translate(-0.6%, -0.3%); }
}

/* Directional cinematic vignette — darkens ONLY the menu side (Right in FA, Left in EN) */
.gta-bg-scrim {
  position: absolute;
  inset: 0;
}

body.lang-fa .gta-bg-scrim {
  background:
    linear-gradient(270deg, rgba(10, 9, 8, 0.80) 0%, rgba(10, 9, 8, 0.44) 34%, rgba(10, 9, 8, 0.04) 58%, rgba(10, 9, 8, 0) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0) 24%);
}

body.lang-en .gta-bg-scrim {
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.80) 0%, rgba(10, 9, 8, 0.44) 34%, rgba(10, 9, 8, 0.04) 58%, rgba(10, 9, 8, 0) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0) 24%);
}

/* Top Whisper-Minimal Language & Account Bar (Right in FA, Left in EN) */
.lang-switcher {
  position: fixed;
  top: 26px;
  z-index: 15;
  display: flex;
  gap: 4px;
  background: rgba(14, 13, 12, 0.56);
  border: 1px solid rgba(255, 248, 232, 0.14);
  backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 999px;
}

body.lang-fa .lang-switcher {
  right: 7vw;
  left: auto;
}

body.lang-en .lang-switcher {
  left: 7vw;
  right: auto;
}

.opt-lang-group {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 999px;
}

.lang-pill {
  border: none;
  background: transparent;
  color: rgba(240, 232, 220, 0.74);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-pill.active {
  background: rgba(34, 197, 94, 0.92);
  color: #06130b;
}

.gta-menu-column {
  position: relative;
  z-index: 5;
  width: 440px;
  max-width: 86vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 6vh;
}

body.lang-fa .gta-menu-column {
  direction: rtl;
  align-items: flex-start;
  text-align: right;
}

body.lang-en .gta-menu-column {
  direction: ltr;
  align-items: flex-start;
  text-align: left;
}

/* Minimalist AAA Editorial Title Lockup (like Delivery Day - Tehran) */
.gta-logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aaa-menu-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 206, 174, 0.78);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

body.lang-fa .aaa-menu-eyebrow {
  letter-spacing: 0;
  font-size: 13px;
  color: rgba(235, 218, 188, 0.82);
}

.aaa-menu-title {
  margin: 0;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: rgba(242, 235, 224, 0.95);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

body.lang-fa .aaa-menu-title {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(28px, 3.1vw, 42px);
}

/* Pure Minimalist AAA Console Menu Navigation — Zero Clunky Boxes */
.gta-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.gta-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 8px 6px;
  color: rgba(235, 226, 212, 0.72);
  font-family: 'Anton', 'Vazirmatn', sans-serif;
  font-size: clamp(19px, 1.85vw, 24px);
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
  transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

body.lang-fa .gta-menu-btn {
  font-family: 'Vazirmatn', sans-serif;
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 700;
  letter-spacing: 0;
}

.gta-btn-bar {
  width: 3px;
  height: 20px;
  border-radius: 99px;
  background: transparent;
  transition: all 0.18s ease;
}

body.lang-en .gta-menu-btn:hover {
  color: #ffffff;
  transform: translateX(8px);
}

body.lang-fa .gta-menu-btn:hover {
  color: #ffffff;
  transform: translateX(-8px);
}

.gta-menu-btn:hover .gta-btn-bar {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
}

.gta-menu-btn.highlighted {
  color: #ffffff;
  font-weight: 800;
}

.gta-menu-btn.highlighted .gta-btn-bar {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.75);
}

/* Subtle Creator Credit Corner Badge (Right in FA, Left in EN — never covers courier!) */
.creator-badge {
  position: fixed;
  bottom: 42px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 13, 12, 0.54);
  border: 1px solid rgba(255, 248, 232, 0.14);
  backdrop-filter: blur(12px);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

body.lang-fa .creator-badge {
  right: 7vw;
  left: auto;
}

body.lang-en .creator-badge {
  left: 7vw;
  right: auto;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(34, 197, 94, 0.85);
}

.creator-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.creator-tag {
  font-size: 10px;
  color: var(--sb-green-bright);
  font-weight: 700;
}

.creator-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.creator-role {
  font-size: 11px;
  color: #cbd5e1;
}

/* Thin AAA Bottom Loading Bar */
.gta-bottom-loader {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 0 34px 12px;
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.loader-version {
  font-family: monospace;
  color: rgba(255, 255, 255, 0.45);
}

.loader-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
}

.loader-fill {
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, var(--sb-green), var(--sb-green-bright), #fbbf24);
  box-shadow: 0 0 12px var(--sb-green-bright);
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   MODALS (OPTIONS & GARAGE)
   ========================================================= */
.overlay-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(8px);
  padding: 20px;
}

.options-panel {
  width: 100%;
  max-width: 460px;
  background: #141926;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.options-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.opt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #e2e8f0;
}

.opt-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--sb-green-bright);
  cursor: pointer;
}

.opt-row input[type="range"] {
  width: 150px;
  accent-color: var(--sb-green-bright);
}

.opt-keys-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 2;
  color: #cbd5e1;
}

kbd {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin: 0 3px;
}

.sb-btn {
  border: none;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.sb-btn:active { transform: scale(0.97); }

.sb-btn-primary {
  background: linear-gradient(135deg, var(--sb-green), var(--sb-green-bright));
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 169, 88, 0.35);
}

.sb-btn-primary:hover { filter: brightness(1.06); }
.sb-btn-reject { background: #fee2e2; color: #b91c1c; }
.sb-btn-active { background: #e2e8f0; color: #0f172a; }
.sb-btn-buy { background: #0f172a; color: #00D170; }
.sb-btn-locked { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.sb-btn-close { background: #f1f5f9; color: #334155; }

.garage-panel {
  width: 100%;
  max-width: 1020px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 26px;
  padding: 24px 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.garage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.garage-title-group { display: flex; align-items: center; gap: 14px; }
.garage-logo { width: 72px; }
.garage-title-group h2 { font-size: 20px; color: var(--sb-text); }
.garage-title-group p { font-size: 13px; color: var(--sb-muted); }

.garage-wallet-pill {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 14px;
  display: flex;
  gap: 8px;
}

.garage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.garage-card {
  background: var(--sb-bg-soft);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.garage-card.selected { border-color: var(--sb-green); background: #f0fdf4; }
.garage-card.vip-card { background: linear-gradient(145deg, #111622, #182a24); color: #fff; border-color: rgba(0, 209, 112, 0.55); }
.garage-card.vip-card .garage-name { color: #fff; }
.garage-card.vip-card .garage-sub, .garage-card.vip-card .stat-row { color: #cbd5e1; }
.garage-card.vip-card .garage-badge { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }

.garage-badge { align-self: flex-start; background: rgba(34, 169, 88, 0.14); color: var(--sb-green-dark); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.garage-name { font-size: 17px; font-weight: 800; color: var(--sb-text); }
.garage-sub { font-size: 12px; color: var(--sb-muted); margin-bottom: 6px; }
.garage-stats { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.stat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #334155; }
.stat-bar { flex: 1; height: 7px; background: rgba(148, 163, 184, 0.3); border-radius: 999px; overflow: hidden; }
.stat-bar > div { height: 100%; background: linear-gradient(90deg, var(--sb-green), var(--sb-green-bright)); border-radius: 999px; }

/* =========================================================
   GAMEPLAY HUD & SNAPP! BOX DRIVER APP PHONE
   ========================================================= */
#game-hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }

.hud-top-bar {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hud-brand-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sb-panel);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hud-logo { height: 26px; width: auto; }
.hud-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.2); }
.hud-district-tag { font-size: 13px; color: #e2e8f0; }

.hud-metrics { display: flex; gap: 10px; }

.metric-pill {
  background: var(--sb-panel);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.metric-label { font-size: 12px; color: #94a3b8; }
.metric-value { font-size: 14px; font-weight: 800; }
.text-green { color: var(--sb-green-bright) !important; }
.text-gold { color: #fbbf24 !important; }

.hud-quick-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.hud-chip {
  background: var(--sb-panel);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hud-chip:hover { background: rgba(34, 169, 88, 0.85); }

.hud-delivery-status {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 22;
}

.delivery-pill {
  background: var(--sb-panel);
  color: #fff;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.pkg-bar-track { width: 110px; height: 9px; background: rgba(255, 255, 255, 0.18); border-radius: 999px; overflow: hidden; }
.pkg-bar-fill { height: 100%; width: 100%; background: var(--sb-green-bright); transition: width 0.2s ease, background 0.2s ease; }

.snapp-phone {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 288px;
  background: #ffffff;
  border: 7px solid #161b26;
  border-radius: 32px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  pointer-events: auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.snapp-phone.offer-alert { transform: scale(1.03); box-shadow: 0 0 0 3px var(--sb-green-bright), 0 24px 60px rgba(0, 209, 112, 0.45); }
.phone-notch { width: 84px; height: 14px; background: #161b26; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; margin: 0 auto; }
.phone-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 10px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.phone-logo { height: 24px; }

.status-toggle-btn { display: flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; background: #f1f5f9; color: #475569; border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 800; cursor: pointer; }
.status-toggle-btn.online { background: #ecfdf5; border-color: var(--sb-green); color: var(--sb-green-dark); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.status-dot.online { background: var(--sb-green-bright); box-shadow: 0 0 8px var(--sb-green-bright); }

.phone-map-wrap { width: 100%; height: 175px; background: #e2e8f0; position: relative; overflow: hidden; }
#phone-minimap { width: 100%; height: 100%; display: block; }
.phone-dynamic-panel { padding: 12px; background: #f8fafc; }
.phone-card { background: #ffffff; border-radius: 18px; padding: 12px; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); display: flex; flex-direction: column; gap: 8px; }
.idle-title { font-size: 14px; font-weight: 800; color: var(--sb-text); text-align: center; }
.idle-sub { font-size: 12px; color: var(--sb-muted); text-align: center; line-height: 1.6; }
.searching-card { align-items: center; text-align: center; padding: 16px 12px; }
.radar-pulse { width: 34px; height: 34px; border-radius: 50%; background: var(--sb-green-bright); animation: radar 1.4s infinite ease-out; margin-bottom: 4px; }
@keyframes radar { 0% { transform: scale(0.65); opacity: 0.95; } 100% { transform: scale(1.65); opacity: 0; } }
.searching-title { font-size: 13px; font-weight: 800; color: var(--sb-text); }
.searching-sub { font-size: 12px; color: var(--sb-muted); }

.offer-progress-track { width: 100%; height: 5px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.offer-progress-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--sb-green), var(--sb-green-bright)); transition: width 0.1s linear; }
.offer-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.offer-pkg-badge { font-size: 11px; font-weight: 800; background: #f1f5f9; color: #1e293b; padding: 3px 8px; border-radius: 8px; }
.offer-pay-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.offer-pay-badge.online { background: #ecfdf5; color: #047857; }
.offer-pay-badge.cash { background: #fef3c7; color: #b45309; }
.offer-fare-row { display: flex; align-items: baseline; justify-content: space-between; }
.offer-fare { font-size: 19px; font-weight: 900; color: var(--sb-green-dark); }
.offer-dist { font-size: 12px; font-weight: 700; color: var(--sb-muted); }
.offer-routes { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed #e2e8f0; border-bottom: 1px dashed #e2e8f0; padding: 7px 0; }
.route-row { display: flex; align-items: flex-start; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.dot-origin { background: var(--sb-green-bright); }
.dot-dest { background: #0ea5e9; }
.route-info { display: flex; flex-direction: column; }
.route-tag { font-size: 10px; color: var(--sb-muted); }
.route-addr { font-size: 12px; font-weight: 700; color: var(--sb-text); }
.offer-actions { display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; }

.trip-step-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; align-self: flex-start; }
.trip-step-pill.pickup { background: #ecfdf5; color: #047857; }
.trip-step-pill.dropoff { background: #e0f2fe; color: #0369a1; }
.trip-target-name { font-size: 15px; font-weight: 900; color: var(--sb-text); }
.trip-meta { font-size: 12px; color: #475569; }
.trip-dist-live { font-size: 13px; font-weight: 800; color: var(--sb-green-dark); }
.trip-hint { font-size: 11px; color: var(--sb-muted); background: #f1f5f9; padding: 7px 10px; border-radius: 10px; text-align: center; }

.pulse-btn { animation: btnPulse 1.1s infinite alternate; }
@keyframes btnPulse { from { transform: scale(1); } to { transform: scale(1.03); } }

.summary-card { align-items: center; text-align: center; }
.summary-check { width: 38px; height: 38px; border-radius: 50%; background: var(--sb-green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; }
.summary-title { font-size: 14px; font-weight: 900; color: var(--sb-text); }
.summary-pay-note { font-size: 11px; color: #047857; background: #ecfdf5; padding: 4px 10px; border-radius: 8px; }
.summary-rows { width: 100%; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #334155; border-top: 1px solid #e2e8f0; padding-top: 8px; }
.summary-rows > div { display: flex; justify-content: space-between; }
.summary-total { border-top: 1px dashed #cbd5e1; padding-top: 6px; font-size: 14px; color: var(--sb-text); }

.hud-bottom-left { position: fixed; bottom: 18px; left: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: auto; }

.radio-payam-widget {
  width: 280px;
  background: rgba(14, 17, 27, 0.92);
  border: 1px solid rgba(0, 209, 112, 0.45);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.radio-payam-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
}

.radio-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: liveBlink 1.1s infinite alternate;
}

@keyframes liveBlink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.radio-title {
  flex: 1;
  font-weight: 800;
}

.radio-close-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.radio-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.radio-payam-frame {
  width: 100%;
  height: 76px;
  display: block;
  background: #0e111b;
}

.speedometer { background: var(--sb-panel); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; padding: 10px 20px; display: flex; align-items: baseline; gap: 8px; color: #fff; }
.speed-num { font-size: 36px; font-weight: 900; line-height: 1; color: var(--sb-green-bright); min-width: 54px; text-align: center; }
.speed-unit { font-size: 12px; color: #cbd5e1; }
.controls-mini { display: flex; gap: 10px; background: rgba(14, 17, 27, 0.72); padding: 6px 12px; border-radius: 12px; font-size: 11px; color: #cbd5e1; }

.toast-stack { position: fixed; top: 124px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; }
.toast-item { background: rgba(14, 17, 27, 0.92); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(-8px) scale(0.95); transition: all 0.22s ease; }
.toast-item.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { border: 1px solid var(--sb-green-bright); color: #dcfce7; }
.toast-good { background: linear-gradient(135deg, #16a34a, #00D170); color: #fff; font-size: 15px; font-weight: 900; }
.toast-warn { background: #b45309; color: #fef3c7; }
.toast-danger { background: #b91c1c; color: #fee2e2; }

/* =========================================================
   MOBILE LANDSCAPE TOUCH CONTROLS & RESPONSIVE HUD
   ========================================================= */
.mobile-touch-controls {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 35;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

@media (pointer: coarse) {
  .mobile-touch-controls {
    display: flex;
  }
  .controls-mini {
    display: none;
  }
}

.touch-steer-pad,
.touch-pedal-pad {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.touch-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 17, 27, 0.72);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  backdrop-filter: blur(8px);
  touch-action: none;
}

.touch-btn:active {
  transform: scale(0.92);
  background: var(--sb-green-bright);
  color: #07130d;
}

.touch-gas {
  background: rgba(34, 169, 88, 0.85);
  border-color: #00D170;
  font-size: 14px;
}

.touch-brake {
  background: rgba(239, 68, 68, 0.78);
  border-color: #fca5a5;
  font-size: 13px;
}

.touch-horn {
  width: 48px;
  height: 48px;
  align-self: center;
  font-size: 18px;
}

@media (max-height: 520px) {
  .snapp-phone {
    width: 224px;
    bottom: 84px;
    right: 12px;
    border-width: 5px;
    border-radius: 22px;
  }
  .phone-map-wrap { height: 105px; }
  .hud-bottom-left { bottom: 86px; left: 12px; }
  .speedometer { padding: 6px 12px; }
  .speed-num { font-size: 24px; min-width: 38px; }
  .gta-line-top { font-size: 46px; }
  .gta-line-mid { font-size: 54px; }
  .gta-line-tehran { font-size: 34px; }
  .gta-menu-btn { padding: 8px 14px; font-size: 14px; }
}

/* =========================================================
   ONLINE MMO: ACCOUNT PILL, AUTH, LEADERBOARD, WORLD MAP, 3D GARAGE
   ========================================================= */
.account-pill {
  background: rgba(0, 209, 112, 0.22) !important;
  border-color: rgba(0, 209, 112, 0.55) !important;
  color: #a7f3d0 !important;
  font-weight: 800;
}

.hud-online-pill {
  font-size: 12px;
  font-weight: 800;
  color: #86efac;
  background: rgba(0, 209, 112, 0.16);
  border: 1px solid rgba(0, 209, 112, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* AUTH MODAL */
.auth-panel {
  width: min(460px, 94vw);
  background: rgba(13, 18, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.auth-logo {
  height: 30px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #22A958, #00D170);
  color: #05130c;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.auth-field input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.auth-field input:focus {
  border-color: #00D170;
  box-shadow: 0 0 0 3px rgba(0, 209, 112, 0.2);
}

.auth-error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 900;
}

.auth-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.auth-footer p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.7;
}

.auth-guest-btn,
.auth-logout-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-logout-btn {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

/* LEADERBOARD MODAL (RICH LIST) */
.lb-panel {
  width: min(940px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(160deg, rgba(11, 17, 32, 0.98), rgba(15, 31, 46, 0.97));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 26px;
  padding: 22px 26px;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.78);
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.lb-header h2 {
  margin: 0;
  font-size: 22px;
  color: #fde047;
}

.lb-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #cbd5e1;
}

.lb-header-actions {
  display: flex;
  gap: 8px;
}

.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}

.podium-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  position: relative;
}

.podium-card.rank-1 {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.24), rgba(15, 23, 42, 0.85));
  border-color: #fbbf24;
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(251, 191, 36, 0.2);
}

.podium-card.rank-2 {
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.18), rgba(15, 23, 42, 0.85));
  border-color: #cbd5e1;
}

.podium-card.rank-3 {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.2), rgba(15, 23, 42, 0.85));
  border-color: #d97706;
}

.podium-medal {
  font-size: 32px;
  line-height: 1;
}

.podium-name {
  font-size: 16px;
  font-weight: 900;
  margin: 6px 0 4px;
}

.podium-wallet {
  font-size: 15px;
  font-weight: 900;
  color: #00D170;
}

.podium-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.lb-my-rank {
  background: rgba(0, 209, 112, 0.16);
  border: 1px solid rgba(0, 209, 112, 0.45);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  color: #dcfce7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lb-table-wrap {
  overflow-y: auto;
  max-height: 320px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lb-table th,
.lb-table td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lb-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.lb-table tr.is-me {
  background: rgba(0, 209, 112, 0.14);
}

.lb-online-dot {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 209, 112, 0.2);
  color: #4ade80;
}

.lb-offline-dot {
  color: #64748b;
  font-size: 11px;
}

/* GTA WORLD MAP MODAL */
.wmap-panel {
  width: min(1160px, 96vw);
  height: min(820px, 92vh);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(11, 17, 28, 0.97);
  border: 1px solid rgba(0, 209, 112, 0.35);
  border-radius: 24px;
  padding: 18px 22px;
  color: #fff;
}

.wmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wmap-header h2 {
  margin: 0;
  font-size: 20px;
}

.wmap-header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.wmap-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.wmap-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#world-map-canvas {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: grab;
  background: #0d1522;
}

#world-map-canvas:active {
  cursor: grabbing;
}

.wmap-landmarks-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wmap-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.wmap-chip:hover {
  border-color: #00D170;
  background: rgba(0, 209, 112, 0.18);
}

/* UPGRADED 120-VEHICLE GARAGE WITH 6 CATEGORY TABS & LIVE 3D SHOWROOM */
.garage-panel-xl {
  width: min(1240px, 96vw) !important;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.garage-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.garage-cat-tab {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 9px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.garage-cat-tab:hover {
  border-color: rgba(0, 209, 112, 0.5);
  color: #fff;
}

.garage-cat-tab.active {
  background: linear-gradient(135deg, #22A958, #00D170);
  color: #04130b;
  border-color: transparent;
}

.garage-cat-tab.vip-tab.active {
  background: linear-gradient(135deg, #f59e0b, #fde047);
  color: #1c1002;
}

.garage-content-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  min-height: 0;
  flex: 1;
}

@media (max-width: 900px) {
  .garage-content-split {
    grid-template-columns: 1fr;
  }
}

.garage-showroom-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.garage-3d-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 209, 112, 0.3);
  background: radial-gradient(circle at 50% 40%, #1c2c45, #0b1120);
}

#garage-3d-canvas {
  width: 100%;
  height: 240px;
  display: block;
}

.garage-3d-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 17, 32, 0.78);
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 112, 0.35);
}

.garage-preview-details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.garage-grid-scroll {
  max-height: 58vh;
  overflow-y: auto;
  padding-inline-end: 4px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

.garage-card.previewing {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.garage-showroom-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.garage-3d-stage:hover .garage-showroom-photo {
  transform: scale(1.04);
}

.garage-view-toggle {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid rgba(0, 209, 112, 0.5);
  color: #dcfce7;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  z-index: 4;
}

.garage-view-toggle:hover {
  background: #00D170;
  color: #05130c;
}

.garage-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1120;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.garage-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.garage-card:hover .garage-card-thumb img {
  transform: scale(1.06);
}

.garage-card-swatch {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.garage-card-tier-pill {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(11, 17, 32, 0.82);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 112, 0.35);
}

/* SECRET GTA CHEAT INPUT BAR (Triggered only by '-' key) */
.secret-cheat-bar {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: min(360px, 90vw);
  background: rgba(8, 12, 22, 0.94);
  border: 1px solid rgba(0, 209, 112, 0.55);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.secret-cheat-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.secret-cheat-prompt {
  color: #00D170;
  font-family: monospace;
  font-size: 16px;
  font-weight: 900;
}

.secret-cheat-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  outline: none;
}

.hud-alt-pill {
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* INTERACTIVE BUILDING & BUSINESS REAL-ESTATE DRAWER (Dark Obsidian + Electric Lime) */
.bldg-drawer {
  position: fixed;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: min(390px, 94vw);
  z-index: 92;
  background: #0d111a;
  border: 1px solid rgba(190, 242, 100, 0.28);
  border-radius: 20px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.82);
  overflow: hidden;
}

.bldg-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #090d14;
}

.bldg-drawer-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.bldg-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.bldg-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bldg-lime-btn {
  width: 100%;
  background: #bef264;
  color: #090e04;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.14s ease;
}

.bldg-lime-btn:hover {
  background: #d9f99d;
  transform: translateY(-1px);
}

.bldg-hero {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bldg-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(190, 242, 100, 0.5);
}

.bldg-logo-box img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.bldg-name {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 4px;
}

.bldg-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

.bldg-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.bldg-stat-cell {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bldg-stat-cell span {
  font-size: 11px;
  color: #94a3b8;
}

.bldg-stat-cell strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.bldg-stat-cell strong.lime {
  color: #bef264;
}

.bldg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bldg-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(190, 242, 100, 0.12);
  border: 1px solid rgba(190, 242, 100, 0.35);
  color: #bef264;
}

.bldg-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bldg-outline-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.bldg-outline-btn:hover {
  border-color: #bef264;
  color: #bef264;
}

.bldg-address-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.6;
}

.bldg-address-box small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-bottom: 2px;
}

.bldg-perk-box {
  background: rgba(190, 242, 100, 0.08);
  border: 1px solid rgba(190, 242, 100, 0.3);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12px;
  color: #dcfce7;
  line-height: 1.65;
}

.bldg-history {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bldg-history h4 {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.bldg-hist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 10px;
  border-radius: 8px;
}







