/* ==========================================================================
   DreamCar Giveaway — design tokens v2: "Trusted & Verified"
   Base: charcoal navy #0f1319 / #161b23 card surface (not pure black — reads corporate, not casino)
   Accent: emerald #2fae7a (verified/secure) + platinum #c7ccd1 (premium, neutral)
   Warning/urgency (used sparingly, functional only): amber #d99a3d
   Type: "Sora" for headlines (clean geometric, not decorative-luxury) + "Inter" for body/UI
   ========================================================================== */

:root {
  --navy: #0f1319;
  --surface: #161b23;
  --surface-2: #1d232c;
  --border: #2a323d;
  --emerald: #2fae7a;
  --emerald-bright: #3fd196;
  --platinum: #c7ccd1;
  --amber: #d99a3d;
  --cream: #eef1f4;
  --muted: #8b93a1;
  --danger: #e0655a;

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 14px 34px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; color: var(--muted); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 44px 0; }

/* ------------------------- Buttons ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  font-family: var(--font-body);
}
.btn:active { transform: scale(0.98); }

.btn-gold, .btn-primary {
  background: var(--emerald);
  color: #06140e;
  box-shadow: 0 6px 18px rgba(47, 174, 122, 0.28);
}
.btn-gold:hover, .btn-primary:hover { background: var(--emerald-bright); box-shadow: 0 8px 22px rgba(47, 174, 122, 0.38); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--platinum); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ------------------------- Trust ribbon (replaces activity ticker) ------------------------- */
.ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.ticker-track { display: flex; justify-content: center; flex-wrap: wrap; animation: none !important; }
.trust-ribbon {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-ribbon span { display: inline-flex; align-items: center; gap: 7px; }
.trust-ribbon .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; }
.ticker-item { display: none; } /* legacy per-purchase ticker retired in favor of the trust ribbon */

/* ------------------------- Header ------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 19, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span { color: var(--emerald-bright); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; color: #c3c9d2; transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--cream); }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 74px 0 0 0; background: var(--navy); flex-direction: column; padding: 28px 24px; gap: 20px; transform: translateY(-110%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ------------------------- Hero ------------------------- */
.hero { position: relative; padding: 64px 0 56px; background: var(--navy); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--emerald-bright); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
  background: rgba(47, 174, 122, 0.1);
  border: 1px solid rgba(47, 174, 122, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; }

.hero h1 { color: var(--cream); }
.hero h1 em { font-style: normal; color: var(--emerald-bright); }
.hero-sub { font-size: 1.08rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-stat .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); font-weight: 700; }
.hero-stat .label { font-size: 0.8rem; color: var(--muted); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--surface);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .price-chip {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(15, 19, 25, 0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cream);
  backdrop-filter: blur(6px);
}

/* ------------------------- Badges ------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-live { background: rgba(47, 174, 122, 0.14); color: var(--emerald-bright); }
.badge-ending { background: rgba(217, 154, 61, 0.14); color: var(--amber); }
.badge-ended { background: rgba(139, 147, 161, 0.14); color: var(--muted); }

/* ------------------------- Section headers ------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-head .view-all { font-weight: 600; color: var(--emerald-bright); white-space: nowrap; font-size: 0.9rem; }

/* ------------------------- Competition cards ------------------------- */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .comp-grid { grid-template-columns: 1fr; } }

.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.comp-card:hover { border-color: rgba(47, 174, 122, 0.35); }
.comp-media { position: relative; aspect-ratio: 16/10; background: var(--surface-2); }
.comp-media img { width: 100%; height: 100%; object-fit: cover; }
.comp-media .badge { position: absolute; top: 14px; left: 14px; }
.comp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.comp-category { font-size: 0.74rem; color: var(--emerald-bright); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.comp-body h3 { margin-bottom: 6px; }
.comp-value { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }

.progress-track { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--emerald); border-radius: 99px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); margin-bottom: 18px; }
.progress-meta strong { color: var(--cream); }

.comp-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.comp-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--cream); font-weight: 700; }
.comp-price small { display: block; font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); font-weight: 500; }

/* ------------------------- Featured strip ------------------------- */
.featured-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 860px) { .featured-strip { grid-template-columns: 1fr; } }
.featured-media { position: relative; min-height: 300px; background: var(--surface-2); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-content { padding: 42px 40px; display: flex; flex-direction: column; justify-content: center; }

/* ------------------------- Trust / how it works ------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.trust-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(47, 174, 122, 0.12); color: var(--emerald-bright);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.2rem;
  border: 1px solid rgba(47, 174, 122, 0.2);
}

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step .step-num { counter-increment: step; font-family: var(--font-display); font-size: 1.5rem; color: var(--emerald); opacity: 0.55; margin-bottom: 8px; }
.step .step-num::before { content: counter(step, decimal-leading-zero); }

/* ------------------------- Verification strip (explicit trust builder) ------------------------- */
.verify-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 860px) { .verify-strip { grid-template-columns: repeat(2, 1fr); } }
.verify-item { background: var(--surface); padding: 26px 22px; text-align: center; }
.verify-item .v-icon { font-size: 1.3rem; color: var(--emerald-bright); margin-bottom: 10px; }
.verify-item .v-title { font-weight: 600; font-size: 0.9rem; color: var(--cream); margin-bottom: 4px; }
.verify-item .v-sub { font-size: 0.78rem; color: var(--muted); }

/* ------------------------- Winners ------------------------- */
.winner-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; gap: 16px; align-items: center; }
.winner-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--emerald); flex-shrink: 0; background: var(--surface-2); }
.winner-name { font-weight: 600; color: var(--cream); }
.winner-prize { font-size: 0.84rem; color: var(--emerald-bright); }
.winner-quote { font-size: 0.88rem; margin-top: 6px; }

/* ------------------------- Forms ------------------------- */
label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 7px; color: #c3c9d2; }
.form-row { margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

input[type=text], input[type=email], input[type=number], input[type=password], input[type=tel], textarea, select {
  width: 100%; padding: 12px 15px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--cream); font-family: var(--font-body); font-size: 0.95rem; outline: none;
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--emerald); }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #5c6472; }

.qty-stepper { display: flex; align-items: center; gap: 14px; }
.qty-stepper button { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--cream); font-size: 1.2rem; cursor: pointer; }
.qty-stepper input { text-align: center; width: 80px; }

/* ------------------------- Panels / alerts ------------------------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: rgba(47, 174, 122, 0.1); color: var(--emerald-bright); border: 1px solid rgba(47,174,122,0.28); }
.alert-error { background: rgba(224, 101, 90, 0.1); color: #ff9c92; border: 1px solid rgba(224,101,90,0.3); }
.alert-info { background: rgba(199, 204, 209, 0.08); color: var(--platinum); border: 1px solid rgba(199,204,209,0.2); }

.address-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 17px; font-family: 'SF Mono', Consolas, monospace; font-size: 0.92rem;
  word-break: break-all; color: var(--emerald-bright);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.copy-btn { background: none; border: 1px solid var(--border); color: var(--cream); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 0.76rem; flex-shrink: 0; }
.copy-btn:hover { border-color: var(--platinum); }

/* ------------------------- Footer ------------------------- */
.site-footer { background: #0c0f14; border-top: 1px solid var(--border); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 46px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 15px; }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ------------------------- Misc ------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.gold-text { color: var(--emerald-bright); } /* class name kept for compatibility with existing PHP templates */
.divider { height: 1px; background: var(--border); margin: 36px 0; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }

/* No confetti / shimmer / floating orbs — kept intentionally out of this trust-first design. */
.confetti-piece { display: none; }
