* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#root {
  width: 100%;
  height: 100%;
}
.hud-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.hud-right-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.hud-right-panel::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 400px;
  height: calc(100% + 80px);
  background: radial-gradient(ellipse at center right, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hud-logo {
  width: 215px;
  height: 80px;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hud-server-badges {
  display: flex;
  flex-direction: row;
  gap: 8px;
  pointer-events: auto;
}

.server-badge {
  background: rgba(0, 0, 0, 0.5);
  color: #eaeaea;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(234, 234, 234, 0.1);
}

.server-online-text {
  color: #eaeaea;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.online-label {
  color: rgba(234, 234, 234, 0.8);
  font-size: 12px;
  font-weight: 400;
}

.online-count {
  color: #eaeaea;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}

.server-name-badge {
  background: rgba(0, 0, 0, 0.5) !important;
}

.server-name-text {
  color: #eaeaea;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.info-block {
  background: #141414 !important;
  border-radius: 12px;
  padding: 16px 24px;
  width: 300px;
  margin-top: 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bonus-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bonus-text {
  color: #eaeaea;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bonus-status {
  color: #eaeaea;
  font-size: 14px;
  font-weight: 400;
}

.btc-icon {
  background: #ff4747;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.quest-block {
  background: #141414 !important;
  border-radius: 12px;
  padding: 16px 24px;
  width: 300px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.quest-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(255, 71, 71, 0.2) 0%, rgba(255, 71, 71, 0) 100%) !important;
  pointer-events: none;
  z-index: 0;
}

.quest-header {
  color: #eaeaea;
  margin-bottom: 16px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.quest-title {
  font-size: 16px;
  font-weight: 600;
  opacity: 1;
}

.quest-subtitle {
  font-size: 12px;
  opacity: 1;
  color: rgba(234, 234, 234, 0.6);
}

.quest-divider {
  height: 3px;
  background: #ff4747 !important;
  width: calc(100% + 48px);
  margin: 12px -24px;
  position: relative;
  z-index: 1;
}

.quest-content {
  color: #eaeaea;
  text-align: left;
  margin-top: 16px;
  margin-bottom: 4px;
}

.quest-description {
  font-size: 14px;
  margin-bottom: 8px;
}

.quest-progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quest-checkbox {
  width: 16px;
  height: 16px;
  background-color: rgba(234, 234, 234, 0.1) !important;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quest-checkbox.completed {
  background: #ff4747;
  border-color: #ff4747;
}

.quest-progress {
  font-size: 12px;
  opacity: 0.4;
}

.hud-bottom {
  position: absolute;
  bottom: 20px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.minimap-placeholder {
  width: 300px;
  height: 200px;
}

.minimap {
  width: 300px;
  height: 200px;
  background: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.minimap-content {
  width: 100%;
  height: calc(100% - 20px);
  background: linear-gradient(45deg, #1e1e1e 25%, transparent 25%), 
              linear-gradient(-45deg, #1e1e1e 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #1e1e1e 75%), 
              linear-gradient(-45deg, transparent 75%, #1e1e1e 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.3;
}

.status-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  gap: 4px;
  height: 20px;
  align-items: center;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3) !important;
}

.status-bar {
  flex: 1;
  height: 12px;
  position: relative;
  overflow: hidden;
}

.health-bar {
  background: #1e1e1e !important;
}

.stamina-bar {
  background: #1e1e1e !important;
}

.status-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.health-fill {
  background: #ff4747 !important;
}

.stamina-fill {
  background: #eaeaea !important;
}

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #eaeaea;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  height: 200px;
  justify-content: space-between;
  position: relative;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}

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

.info-item.time-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.info-item.location-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.info-item.money-item {
  gap: 4px;
}

.weather-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.info-value {
  font-size: 13px;
  font-weight: 600;
}

.info-label {
  font-size: 12px;
  opacity: 0.9;
}

.info-label-single {
  font-size: 13px;
  font-weight: 500;
}

.info-time {
  font-size: 15px;
  font-weight: 600;
}

.info-date {
  font-size: 11px;
  opacity: 0.8;
}

.info-location {
  font-size: 13px;
  font-weight: 600;
}

.info-sublocation {
  font-size: 11px;
  opacity: 0.7;
}

.money-icon-svg {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.money-value {
  font-size: 13px;
  font-weight: 600;
}

/* ჰოთქეების ბლოკი - დამოუკიდებელი ელემენტი ეკრანის მარცხენა მხარეს, შუაში */
.hotkeys-side-block {
  position: absolute;
  top: 50%;
  left: 45px;
  transform: translateY(-50%);
  /* background: rgba(20, 20, 20, 0.55); */
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.hotkey-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eaeaea;
  font-size: 14px;
}

.hotkey-key {
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  border: 1px solid rgba(234, 234, 234, 0.1);
}

.hotkey-label {
  opacity: 0.8;
}

/* ==================== სპიდომეტრი ==================== */

.speedo-wrapper {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

.speedo-gauge {
  position: relative;
  width: 230px;
  height: 230px;
  flex-shrink: 0;
}

.speedo-gauge svg {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.speedo-track {
  stroke: rgba(234, 234, 234, 0.14);
  stroke-width: 11;
}

.speedo-progress {
  stroke: url(#speedoGradient);
  stroke-width: 11;
  filter: drop-shadow(0 0 6px rgba(255, 59, 59, 0.65));
  transition: d 0.25s ease;
}

.speedo-knob {
  fill: #eaeaea;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 8px rgba(255, 59, 59, 0.8));
}

.speedo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #eaeaea;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.speedo-value {
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  font-variant-numeric: tabular-nums;
}

.speedo-unit {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.55;
  margin-top: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.vehicle-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 34px);
  grid-auto-rows: 34px;
  gap: 6px;
}

.status-icon-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(234, 234, 234, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eaeaea;
}

.status-icon-box svg {
  width: 17px;
  height: 17px;
}

.status-icon-box.dim {
  opacity: 0.3;
}

.status-icon-box.active {
  color: #ff4747;
  border-color: rgba(255, 71, 71, 0.4);
}

.fuel-level-box {
  padding: 3px 5px;
}

.fuel-bar {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.fuel-bar span {
  flex: 1;
  height: 100%;
  background: rgba(234, 234, 234, 0.15);
  border-radius: 1px;
}

.fuel-bar span.filled {
  background: #6fcf3d;
}

/* ==================== იარაღის პანელი ==================== */

.weapon-panel {
  width: 300px;
  min-height: 92px;
  background: #141414 !important;
  border-radius: 12px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.weapon-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  background: linear-gradient(to left, rgba(255, 71, 71, 0.35) 0%, rgba(255, 71, 71, 0) 100%) !important;
  pointer-events: none;
  z-index: 0;
}

.weapon-ammo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #eaeaea;
}

.ammo-current {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ammo-total {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.weapon-icon-wrap {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.weapon-icon {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}



/* ---- CEF overlay ---- */
html, body {
  background: transparent !important;
  overflow: hidden;
  user-select: none;
  cursor: default;
}
.hud-container { pointer-events: none; }
.hud-right-panel { pointer-events: none; }


/* ============================ CEF პაკეტები ============================ */
.cef-page {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 20000;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: auto;
}
.cef-page.visible { opacity: 1; }

.cef-page-right  { justify-content: flex-end; padding-right: 60px; background: none; backdrop-filter: none; }
.cef-page-center-small { background: rgba(0, 0, 0, 0.35); }

.cef-window {
  width: 420px;
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.cef-window-wide  { width: 780px; }
.cef-window-small { width: 340px; }

.cef-phone {
  width: 300px;
  height: 600px;
  background: rgba(18, 18, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.cef-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cef-window-title { font-size: 15px; font-weight: 600; color: #fff; }

.cef-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}
.cef-close:hover { color: #ff3b3b; }

.cef-window-body { padding: 18px; }

.cef-menu-list { display: flex; flex-direction: column; gap: 8px; }
.cef-menu-item {
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.cef-menu-item:hover { background: rgba(255, 59, 59, 0.15); border-color: rgba(255, 59, 59, 0.4); }

.cef-hint { color: rgba(255, 255, 255, 0.45); font-size: 13px; }

/* კურსორი მხოლოდ მაშინ ჩანს, როცა ფოკუსია */
body.cef-focused { cursor: default; }
body.cef-focused .cef-page { pointer-events: auto; }

/* ==================== სასიცოცხლო მაჩვენებლები (რგოლები) ==================== */
.vitals { display: flex; gap: 10px; justify-content: flex-end; pointer-events: none; }
.vt { --c: #eaeaea; position: relative; width: 52px; height: 52px; color: var(--c); border-radius: 50%;
  background: radial-gradient(circle, rgba(14,14,14,.9) 55%, rgba(0,0,0,.75)); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
#vt-hp, #vt-food { --c: #ff4747; }
.vt-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vt-bg { fill: none; stroke: rgba(234,234,234,.14); stroke-width: 4; }
.vt-fill { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px var(--c)); transition: stroke-dashoffset .35s ease, stroke .3s; }
.vt-ic { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 4px var(--c)); }
.vt.low { --c: #ff4747; animation: vtPulse .9s infinite alternate; }
.vt.zero .vt-ic { opacity: .35; }
@keyframes vtPulse { to { box-shadow: 0 0 16px rgba(255,71,71,.55), 0 4px 14px rgba(0,0,0,.5); } }

/* ==================== სიჩქარეთა კოლოფი ==================== */
.gear { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.gear-ch {
  min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font: 800 19px "Rajdhani", "Segoe UI", Arial, sans-serif; letter-spacing: .02em; color: #eaeaea;
  background: rgba(10,10,10,.75); border: 1px solid rgba(234,234,234,.22);
  box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(234,234,234,.06);
  transition: color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.gear-ch.bump { transform: scale(1.18); }
.gear.rev .gear-ch { color: #ff4747; border-color: #ff4747; box-shadow: 0 0 12px rgba(255,71,71,.55), 0 2px 8px rgba(0,0,0,.5); }
.gear.drive .gear-ch { border-color: rgba(255,71,71,.55); }
.gear-ticks { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.gear-ticks i { width: 4px; border-radius: 2px; background: rgba(234,234,234,.16); transition: background .15s, box-shadow .15s; }
.gear-ticks i:nth-child(1) { height: 6px; } .gear-ticks i:nth-child(2) { height: 8px; } .gear-ticks i:nth-child(3) { height: 10px; }
.gear-ticks i:nth-child(4) { height: 12px; } .gear-ticks i:nth-child(5) { height: 15px; } .gear-ticks i:nth-child(6) { height: 18px; }
.gear-ticks i.on { background: #ff4747; box-shadow: 0 0 6px rgba(255,71,71,.7); }
