:root {
  --bg: #07110d;
  --panel: #0e1b15;
  --panel2: #10251b;
  --text: #eefaf3;
  --muted: #9db4a7;
  --green: #19e681;
  --green2: #10b965;
  --danger: #ff5c77;
  --line: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(25,230,129,.18), transparent 32rem),
    linear-gradient(135deg, #050806, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

.topbar {
  padding: 22px clamp(16px, 4vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(5,8,6,.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  margin: 0 0 4px;
}

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(22px, 4vw, 36px); margin-bottom: 0; }
h2 { font-size: clamp(24px, 4vw, 38px); }
p { color: var(--muted); line-height: 1.5; }

main {
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.hero {
  min-height: 60vh;
  display: grid;
  align-content: center;
}

.choice-grid, .category-grid, .vehicle-grid {
  display: grid;
  gap: 18px;
}

.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}

.choice-card, .category-card, .vehicle-card, .form-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
}

.choice-card, .category-card {
  color: var(--text);
  padding: 26px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.choice-card:hover, .category-card:hover, .vehicle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(25,230,129,.6);
}

.choice-card span { font-size: 40px; display: block; margin-bottom: 14px; }
.choice-card strong, .category-card strong { display: block; font-size: 22px; margin-bottom: 8px; }
.choice-card small { color: var(--muted); font-size: 15px; line-height: 1.45; }

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.category-card {
  background: linear-gradient(135deg, rgba(25,230,129,.12), rgba(255,255,255,.02));
  min-height: 130px;
}

.section-head {
  margin-bottom: 22px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.search {
  width: 100%;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
  margin-bottom: 22px;
  font-size: 16px;
}

.search:focus {
  border-color: var(--green);
}

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

.vehicle-card {
  overflow: hidden;
  background: rgba(14,27,21,.86);
  border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease;
}

.vehicle-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  background: #0b120e;
  display: block;
}

.vehicle-body {
  padding: 18px;
}

.vehicle-title {
  font-size: 20px;
  margin: 0 0 10px;
}

.meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  margin-bottom: 16px;
}

.meta b { color: var(--text); }

.primary, .ghost {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #021006;
  width: 100%;
}

.ghost {
  background: rgba(255,255,255,.07);
  color: var(--text);
  border: 1px solid var(--line);
}

.form-wrap {
  padding: clamp(18px, 4vw, 34px);
  max-width: 650px;
  margin: 0 auto;
}

.form {
  display: grid;
  gap: 14px;
}

.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
  font-size: 16px;
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form input:focus, .form textarea:focus {
  border-color: var(--green);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.notice {
  padding: 16px 18px;
  border: 1px solid rgba(25,230,129,.35);
  background: rgba(25,230,129,.08);
  border-radius: 16px;
  margin-top: 18px;
}

.error {
  border-color: rgba(255,92,119,.5);
  background: rgba(255,92,119,.10);
}

@media (max-width: 650px) {
  .topbar { align-items: flex-start; gap: 12px; }
  .row, .topbar { flex-direction: column; }
  .two { grid-template-columns: 1fr; }
}

/* Sfondo Underground Garage */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,12,6,.84)),
    url("/ug-background.png") center center / cover no-repeat;
  opacity: .78;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(151,255,0,.14), transparent 34%), rgba(0,0,0,.2);
  z-index: -1;
  pointer-events: none;
}

.topbar {
  background: rgba(0, 0, 0, .58);
}

.hero {
  min-height: 68vh;
}

.conventions {
  overflow: hidden;
  border: 1px solid rgba(151,255,0,.28);
  border-radius: 18px;
  background: rgba(0,0,0,.42);
  box-shadow: 0 0 40px rgba(151,255,0,.10);
  margin: 0 0 34px;
  white-space: nowrap;
}

.ticker {
  display: inline-flex;
  gap: 46px;
  padding: 14px 22px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  animation: tickerMove 26s linear infinite;
}

.ticker span::before {
  content: "✦ ";
  color: #fff;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.vehicle-card.reserved {
  opacity: .74;
  border-color: rgba(255, 204, 0, .45);
}

.reserved-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 204, 0, .13);
  color: #ffdf64;
  border: 1px solid rgba(255, 204, 0, .35);
  font-weight: 800;
  margin-bottom: 12px;
}

.primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.3);
}

.price-disclaimer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  z-index: 30;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(151,255,0,.28);
  background: rgba(0, 0, 0, .72);
  color: var(--text);
  box-shadow: 0 0 35px rgba(151,255,0,.12);
  backdrop-filter: blur(8px);
  line-height: 1.4;
  font-size: 14px;
}

.price-disclaimer b { color: var(--green); }

#buyVehicleInfo small {
  color: var(--muted);
  display: inline-block;
  margin-top: 6px;
}

@media (max-width: 650px) {
  .price-disclaimer {
    position: static;
    margin: 14px auto 0;
    width: min(100% - 32px, 650px);
  }
}
