/* ============================================================
   CITY VIBES - STYLING, HUD, SNIPER SCOPE & VIEW MODES
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0a0e14;
  color: #fff;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ------------------------------------------------------------
   CROSSHAIR
   ------------------------------------------------------------ */
#reticle-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
  pointer-events: none;
  z-index: 10;
}

/* ------------------------------------------------------------
   TACTICAL MIL-DOT SNIPER SCOPE OVERLAY
   ------------------------------------------------------------ */
#sniper-scope-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
  z-index: 70;
}

/* Circular scope mask vignette */
.scope-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.95) 48%, #000 70%);
}

.scope-circle-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.scope-circle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.scope-crosshair-h {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: rgba(255, 0, 68, 0.75);
  box-shadow: 0 0 4px #ff0044;
}

.scope-crosshair-v {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1.5px;
  background: rgba(255, 0, 68, 0.75);
  box-shadow: 0 0 4px #ff0044;
}

.scope-ticks .tick {
  position: absolute;
  background: #ff0044;
}

.scope-ticks .t1 { top: calc(50% - 40px); left: calc(50% - 6px); width: 12px; height: 1.5px; }
.scope-ticks .t2 { top: calc(50% + 40px); left: calc(50% - 6px); width: 12px; height: 1.5px; }
.scope-ticks .t3 { left: calc(50% - 40px); top: calc(50% - 6px); height: 12px; width: 1.5px; }
.scope-ticks .t4 { left: calc(50% + 40px); top: calc(50% - 6px); height: 12px; width: 1.5px; }

.scope-telemetry {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ------------------------------------------------------------
   MAIN HUD
   ------------------------------------------------------------ */
#hud-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* Top Left: Balance & Stats */
.hud-top-left {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-panel {
  background: rgba(16, 24, 34, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.balance-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.balance-item .label {
  font-size: 11px;
  color: #8899a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-item.cash-val {
  color: #2ecc71;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.balance-item.bank-val {
  color: #3498db;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

/* Bars: Health & Armor */
.bars-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 220px;
}

.stat-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.25s ease-out;
}

.health-fill {
  background: linear-gradient(90deg, #e74c3c, #2ecc71);
}

.armor-fill {
  background: linear-gradient(90deg, #2980b9, #00f0ff);
}

/* Status Row: View Mode & Holster */
.hud-status-row {
  display: flex;
  gap: 8px;
}

.status-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pill-interactive {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.pill-interactive:hover {
  transform: scale(1.05);
}

#hud-viewmode-pill {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid #00f0ff;
  color: #00f0ff;
}

.pill-safe {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
}

.pill-danger {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid #ef4444;
  color: #ef4444;
  animation: pulseDanger 1.2s infinite;
}

@keyframes pulseDanger {
  0% { box-shadow: 0 0 4px #ef4444; }
  50% { box-shadow: 0 0 16px #ef4444; }
  100% { box-shadow: 0 0 4px #ef4444; }
}

/* Top Right: Minimap & Wanted Stars */
.hud-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wanted-stars-container {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 234, 0, 0.4);
}

.star-icon {
  font-size: 20px;
  color: #475569;
}

.star-icon.star-active {
  color: #ffea00;
  text-shadow: 0 0 10px #ffea00;
  animation: starPulse 1s infinite alternate;
}

@keyframes starPulse {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

.minimap-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
  background: #11171d;
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-radius 0.3s ease,
              box-shadow 0.3s ease;
}

.minimap-wrapper.maximized {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(740px, 92vw);
  height: min(740px, 86vh);
  border-radius: 20px;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.6), 0 0 0 1000px rgba(5, 10, 16, 0.8);
  z-index: 500;
  display: flex;
  flex-direction: column;
}

.minimap-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(10, 20, 32, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.6);
  color: #00f0ff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, transform 0.15s;
}

.minimap-btn:hover {
  background: #00f0ff;
  color: #000;
  transform: scale(1.1);
}

#minimap-max-header {
  padding: 12px 18px;
  background: rgba(10, 20, 32, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #00f0ff;
  letter-spacing: 1px;
}

#minimap-canvas {
  width: 100%;
  height: 100%;
  display: block;
  flex: 1;
}

/* Bottom Center: Speedometer */
#hud-speedometer {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(10, 15, 22, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 8px 24px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.speedo-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#hud-speedometer .speed-num {
  font-size: 32px;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 1px;
}

#hud-speedometer .speed-unit {
  font-size: 13px;
  color: #8899a6;
  font-weight: 700;
}

.nitro-bar-wrap {
  width: 100%;
  display: none;
}

.nitro-fill {
  background: linear-gradient(90deg, #ff0077, #00f0ff);
}

/* Bottom Center: Interaction Prompt */
#hud-interact-prompt {
  position: absolute;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #ffea00;
  color: #ffea00;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(255, 234, 0, 0.35);
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}

#hud-interact-prompt:hover {
  background: #ffea00;
  color: #000;
}

/* Bottom Left: Mission / Job Card */
#hud-job-card {
  position: absolute;
  bottom: 25px;
  left: 20px;
  display: none;
  width: 290px;
  background: rgba(16, 24, 34, 0.9);
  border-left: 4px solid #f39c12;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

#job-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #f39c12;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

#job-card-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
  line-height: 1.3;
}

#job-card-timer {
  font-size: 13px;
  font-weight: 700;
  color: #e74c3c;
}

/* Phone launcher button */
#phone-toggle-btn {
  position: absolute;
  bottom: 25px;
  right: 25px;
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #0072ff);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

#phone-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.8);
}

/* Notifications */
#notification-container {
  position: absolute;
  top: 140px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
}

.toast-notification {
  background: rgba(15, 23, 42, 0.92);
  border-left: 4px solid #00f0ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: slideIn 0.3s ease-out;
  transition: opacity 0.3s, transform 0.3s;
}

.toast-notification.hide {
  opacity: 0;
  transform: translateX(-20px);
}

.toast-success { border-left-color: #2ecc71; }
.toast-error { border-left-color: #e74c3c; }
.toast-property { border-left-color: #9b59b6; }
.toast-guild, .toast-target_kill { border-left-color: #ff0044; }
.toast-ambulance { border-left-color: #ff3333; }
.toast-delivery { border-left-color: #f39c12; }
.toast-taxi { border-left-color: #f1c40f; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ------------------------------------------------------------
   IN-GAME SMARTPHONE ("VIBEPHONE 16 PRO")
   ------------------------------------------------------------ */
#smartphone-modal {
  position: absolute;
  bottom: -720px;
  right: 90px;
  width: 330px;
  height: 630px;
  background: #090c10;
  border: 4px solid #2d3748;
  border-radius: 46px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
  z-index: 100;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#smartphone-modal.active {
  bottom: 25px;
}

.phone-notch {
  width: 90px;
  height: 20px;
  background: #000;
  border-radius: 14px;
  margin: 10px auto 0 auto;
}

.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
}

#phone-screen-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

#phone-screen-content::-webkit-scrollbar {
  width: 4px;
}
#phone-screen-content::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 2px;
}

.phone-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  padding: 18px 4px;
}

.phone-app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s;
}

.phone-app-icon:hover {
  transform: scale(1.08);
}

.phone-app-icon .icon-box {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.phone-app-icon span {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

.icon-cam { background: linear-gradient(135deg, #4b5563, #1f2937); }
.icon-jobs { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-prop { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.icon-guild { background: linear-gradient(135deg, #ef4444, #991b1b); }
.icon-avatar { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.icon-garage { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.icon-radio { background: linear-gradient(135deg, #f43f5e, #be185d); }
.icon-gallery { background: linear-gradient(135deg, #10b981, #059669); }
.icon-bank { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.phone-app-header {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-app-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #00f0ff;
}

.phone-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.phone-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

.phone-card p {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.swatch-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

.swatch:hover {
  transform: scale(1.15);
  border-color: #fff;
}

.bounty-tag {
  background: #ff0044;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-owned {
  background: #2ecc71;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.phone-bottom-bar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#phone-home-btn {
  width: 110px;
  height: 4px;
  background: #94a3b8;
  border-radius: 2px;
  cursor: pointer;
}

#phone-home-btn:hover {
  background: #fff;
}

/* ------------------------------------------------------------
   SMARTPHONE CAMERA VIEWFINDER OVERLAY
   ------------------------------------------------------------ */
#camera-viewfinder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 80;
  pointer-events: none;
}

#camera-viewfinder.active {
  display: block;
}

.camera-grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
}
.camera-grid-line.h1 { top: 33.33%; left: 0; width: 100%; height: 1px; }
.camera-grid-line.h2 { top: 66.66%; left: 0; width: 100%; height: 1px; }
.camera-grid-line.v1 { left: 33.33%; top: 0; height: 100%; width: 1px; }
.camera-grid-line.v2 { left: 66.66%; top: 0; height: 100%; width: 1px; }

.camera-header-bar {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 1px;
}

#camera-target-box {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 2px dashed #ff0044;
  border-radius: 8px;
  display: none;
  pointer-events: none;
  transition: border-color 0.2s;
}

#camera-target-box.box-dead {
  border-color: #2ecc71;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

#camera-target-box.box-alive {
  border-color: #ff0044;
  box-shadow: 0 0 15px rgba(255, 0, 68, 0.5);
}

#camera-target-status {
  position: absolute;
  bottom: -48px;
  left: -20px;
  width: 170px;
  background: rgba(0, 0, 0, 0.85);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
}

#camera-shutter-btn {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  transition: transform 0.1s;
}

#camera-shutter-btn:active {
  transform: translateX(-50%) scale(0.9);
}

#camera-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  transition: opacity 0.15s ease-out;
}

#camera-flash.flash {
  opacity: 0.95;
}

/* ------------------------------------------------------------
   GAME MODALS
   ------------------------------------------------------------ */
.game-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 600px;
  max-width: 92vw;
  max-height: 85vh;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.game-modal.active {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

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

.modal-header h2 {
  font-size: 20px;
  color: #00f0ff;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.shop-item-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.mechanic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .mechanic-grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary { background: #00f0ff; color: #000; }
.btn-success { background: #2ecc71; color: #fff; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-secondary { background: #475569; color: #cbd5e1; }
.btn-info { background: #3b82f6; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 11px; }

/* Bounty Reward Popup */
#bounty-reward-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(10, 15, 22, 0.95);
  border: 2px solid #2ecc71;
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.6);
  border-radius: 20px;
  padding: 30px 40px;
  text-align: center;
  z-index: 300;
  display: none;
}

#bounty-reward-modal.active {
  display: block;
  animation: popReward 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popReward {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.bounty-amount {
  font-size: 42px;
  font-weight: 900;
  color: #2ecc71;
  text-shadow: 0 0 20px rgba(46, 204, 113, 0.7);
  margin: 10px 0;
}

.photo-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

/* ------------------------------------------------------------
   ARMOR FILL IN HUD
   ------------------------------------------------------------ */
.armor-fill {
  background: linear-gradient(90deg, #00f0ff, #0984e3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ------------------------------------------------------------
   24/7 SUPERMART & SHOP INTERIOR MODAL
   ------------------------------------------------------------ */
.store-clerk-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 15px;
}

.clerk-avatar {
  font-size: 32px;
}

.clerk-speech {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #ecf0f1;
}

.store-layout-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 15px;
}

.store-shelf-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.store-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  transition: background 0.15s, border-color 0.15s;
}

.store-item-card:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
}

.store-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-item-icon {
  font-size: 26px;
}

.register-box {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.35);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

/* ------------------------------------------------------------
   CITY WELCOME CARD (CINEMATIC ARRIVAL BANNER)
   ------------------------------------------------------------ */
#city-welcome-card {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(10, 15, 24, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35);
  border-radius: 30px;
  padding: 12px 36px;
  text-align: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#city-welcome-card.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#city-welcome-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #00f0ff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

#city-welcome-tagline {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

/* ------------------------------------------------------------
   COAST GUARD SEA BOUNDARY WARNING BANNER
   ------------------------------------------------------------ */
#sea-boundary-banner {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(231, 76, 60, 0.9);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid #ff7675;
  box-shadow: 0 0 25px rgba(231, 76, 60, 0.8);
  z-index: 150;
  display: none;
  pointer-events: none;
  animation: pulseSea 1s infinite alternate;
}

@keyframes pulseSea {
  from { opacity: 0.8; transform: translateX(-50%) scale(0.98); }
  to { opacity: 1; transform: translateX(-50%) scale(1.02); }
}

/* ------------------------------------------------------------
   CINEMATIC BUSTED SCREEN OVERLAY
   ------------------------------------------------------------ */
#busted-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(120, 10, 20, 0.85) 0%, rgba(10, 5, 8, 0.98) 85%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in;
}

#busted-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.busted-content {
  text-align: center;
  max-width: 520px;
  animation: zoomBusted 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes zoomBusted {
  from { transform: scale(1.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.busted-title {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #ff3838;
  text-shadow: 0 0 40px rgba(255, 56, 56, 0.8), 0 0 80px rgba(255, 0, 0, 0.5);
  margin: 0;
}

.busted-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  letter-spacing: 2px;
  margin-top: 8px;
}

.busted-details {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 56, 56, 0.4);
  border-radius: 14px;
  padding: 16px 24px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.busted-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #aaa;
}

.busted-respawn-msg {
  color: #94a3b8;
  font-size: 13px;
  font-style: italic;
}

/* ------------------------------------------------------------
   CINEMATIC WASTED SCREEN OVERLAY
   ------------------------------------------------------------ */
#wasted-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(60, 60, 60, 0.85) 0%, rgba(5, 5, 5, 0.98) 85%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in;
}

#wasted-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.wasted-content {
  text-align: center;
  animation: zoomBusted 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.wasted-title {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #ff4757;
  text-shadow: 0 0 40px rgba(255, 71, 87, 0.8);
  margin: 0;
}

.wasted-subtitle {
  font-size: 16px;
  color: #cbd5e1;
  margin-top: 8px;
}

/* ------------------------------------------------------------
   ATM & PHYSICAL BANKING STYLES
   ------------------------------------------------------------ */
.atm-screen-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.atm-balance-display {
  display: flex;
  justify-content: space-around;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
}

.atm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.atm-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
}

.atm-val {
  font-size: 24px;
  font-weight: 800;
  font-family: monospace;
}

.text-cash {
  color: #2ecc71;
  text-shadow: 0 0 12px rgba(46, 204, 113, 0.4);
}

.text-bank {
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.atm-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.atm-column {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.atm-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atm-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.atm-btn:hover {
  transform: translateY(-2px);
}

.btn-outline-success {
  background: transparent;
  border: 1.5px solid #2ecc71;
  color: #2ecc71;
}

.btn-outline-success:hover {
  background: #2ecc71;
  color: #000;
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid #00f0ff;
  color: #00f0ff;
}

.btn-outline-primary:hover {
  background: #00f0ff;
  color: #000;
}

