:root {
  --bg: #06060a;
  --text: #eaf6ff;
  --muted: #9fb7cb;
  --accent: #00ff98;
}

body {
  margin: 0;
  font-family: 'Arimo', Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

header {
  background: linear-gradient(180deg, #071018, #08121a);
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}

#gtavehlogo {
  max-width: 640px;
  width: 76%; /* Doubled from 38% to 76% for 2x size */
  height: 100px; /* Doubled from 50px to 100px for 2x size */
  margin: 0 auto;
  display: block;
}

.header-controls {
  position: absolute;
  right: 12px;
  top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  min-width: 220px;
}

.btn-red {
  background: linear-gradient(180deg, #6f0f14, #b71c1c);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Removed the third view button by limiting to two buttons */
.view-toggle {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.view-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0f12;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}

.view-btn.active {
  box-shadow: 0 0 18px rgba(0, 255, 150, 0.12);
  color: var(--bg);
  background: linear-gradient(180deg, #00ff98, #00d68a);
}

.container {
  max-width: 1300px;
  margin: 18px auto;
  padding: 0 12px;
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

#garages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.garage {
  background: linear-gradient(180deg, #0d1116, #0a0d11);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.garage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

.garage-head h3 {
  margin: 0;
  font-size: 18px;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.select {
  padding: 6px 8px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.vehicles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card {
  width: 150px;
  background: #0f1418;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
}

.card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.name {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: var(--text);
}

.del-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.del-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

.drop-marker {
  height: 6px;
  background: linear-gradient(90deg, #00ff00, #66ff66);
  border-radius: 4px;
  margin: 6px 0;
  box-shadow: 0 6px 18px rgba(0, 255, 100, 0.06);
}

/* Dual vs Full modes */
.dual-mode #garages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.full-mode #garages {
  display: block;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: linear-gradient(180deg, #0c1216, #071018);
  padding: 18px;
  border-radius: 12px;
  max-width: 920px;
  width: 94%;
  color: var(--text);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.modal-img {
  width: 100%;
  border-radius: 8px;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.stat-table th, .stat-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-align: left;
  font-size: 14px;
}

.stat-table th {
  color: var(--muted);
  width: 36%;
}

.modal-input {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: var(--text);
}

.name-input {
  width: 100%;
  font-size: 20px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #111;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  transition: all .28s;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}