/* Burning Teslas Gallery */
.burning-gallery-container {
  margin: 32px 0 24px 0;
}
.burning-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.burning-gallery-img-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.15s;
}
.burning-gallery-img-link:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255, 80, 0, 0.18);
}
.burning-gallery-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #222;
}
/* News card image styling */
.news-card-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 8px;
}

/* Accident statistics table styling */
.accident-stats-container {
  margin-bottom: 24px;
}
.accident-stats {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.accident-stats th, .accident-stats td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: center;
}
.accident-stats th {
  background: #f5f5f5;
}
:root {
  color-scheme: dark;
  font-family: 'Inter', sans-serif;
  background: #020207;
  color: #f7f8fb;
  --surface: rgba(18, 20, 37, 0.92);
  --surface-strong: rgba(28, 31, 58, 0.96);
  --text-muted: #bbc3dc;
  --accent: #ed4d4d;
  --accent-soft: rgba(237, 77, 77, 0.16);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, rgba(255, 79, 79, 0.16), transparent 22%),
    linear-gradient(180deg, #020207 0%, #090b19 48%, #070814 100%);
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff4f4f, #ff8c4a);
  font-size: 1.3rem;
}

.brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: #e6e8ff;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  margin-top: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #9ba4ce;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-text {
  margin: 24px 0 32px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  min-width: 170px;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, #ff4f4f, #ff8c4a);
  color: white;
  box-shadow: 0 18px 30px rgba(255, 79, 79, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f7f8fb;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.mockup-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 30px;
  background: rgba(10, 12, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-glow {
  position: absolute;
  inset: -30px 0 0 40px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 79, 79, 0.32), transparent 35%);
  pointer-events: none;
}

.mockup-header {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff7d5d;
}

.mockup-body {
  display: grid;
  gap: 16px;
}

.mockup-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3ff;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.mockup-row strong {
  font-size: 1.02rem;
}

.mockup-row.accent {
  background: rgba(237, 77, 77, 0.16);
  border: 1px solid rgba(237, 77, 77, 0.24);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
}

.feature-grid article {
  padding: 28px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.feature-grid h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.feature-grid p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.store {
  margin-top: 72px;
}

.store-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 30px;
  background: rgba(28, 31, 58, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.store-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.55rem);
}

.store-header p {
  margin: 14px 0 0;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card,
.car-card,
.news-card,
.donation-card,
.accident-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(10, 12, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
}

.product-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(237, 77, 77, 0.14);
  color: #ffb3b3;
}

.product-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #d8d9f4;
  font-weight: 600;
}

.product-meta span:first-child {
  color: white;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.store-info {
  padding: 20px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
  color: var(--text-muted);
}

.section-header {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.car-collection,
.accident-highlights {
  margin-top: 72px;
  padding: 36px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.car-grid,
.support-grid,
.news-grid,
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.car-card {
  position: relative;
  min-height: 240px;
}

.car-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd7d7;
}

.accident-list {
  grid-template-columns: 1fr 1fr;
}

.section-footer {
  margin-top: 18px;
  text-align: right;
}

@media (max-width: 960px) {
  .car-grid,
  .support-grid,
  .product-grid,
  .accident-list {
    grid-template-columns: 1fr;
  }
}

.cart-panel {
  position: fixed;
  top: 80px;
  right: -420px;
  width: min(420px, 92vw);
  height: calc(100vh - 100px);
  background: rgba(10, 12, 26, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.35);
  transition: right 0.28s ease;
  z-index: 20;
  overflow: hidden;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  gap: 18px;
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.checkout-button {
  width: 100%;
}

.news-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  margin: 72px 0 36px;
}

.news-hero-panel {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 79, 79, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.news-hero-panel p {
  margin: 0 0 12px;
  color: white;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(20, 23, 44, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.news-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.news-info {
  margin-top: 56px;
  padding: 34px 28px;
  border-radius: 30px;
  background: rgba(28, 31, 58, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-info ul {
  margin-top: 20px;
  padding-left: 20px;
  line-height: 1.8;
  color: var(--text-muted);
}

.calendar-preview,
.calendar-shell,
.event-listing,
.news-grid {
  margin-top: 36px;
}

.calendar-small,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-small {
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-grid {
  padding: 18px;
  border-radius: 28px;
  background: rgba(12, 14, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-cell {
  min-height: 88px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #f8f9ff;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.calendar-cell span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.calendar-cell:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.calendar-cell.empty {
  background: transparent;
  box-shadow: none;
}

.calendar-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.accident-day {
  background: linear-gradient(180deg, rgba(255, 183, 72, 0.14), rgba(31, 25, 9, 0.92));
  border: 1px solid rgba(255, 183, 72, 0.22);
}

.burning-day {
  background: linear-gradient(180deg, rgba(255, 95, 95, 0.18), rgba(40, 10, 10, 0.95));
  border: 1px solid rgba(255, 89, 89, 0.30);
}

.calendar-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--text-muted);
  align-items: center;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
}

.legend-safe {
  background: rgba(255, 255, 255, 0.18);
}

.legend-accident {
  background: rgba(255, 183, 72, 0.85);
}

.legend-burning {
  background: rgba(255, 95, 95, 0.95);
}

.news-error {
  color: #ffb3b3;
  font-size: 1rem;
}

@media (max-width: 960px) {
  .hero, .story, .news-hero {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cart-panel {
    width: 100vw;
  }
}

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

  .store-header, .store-info, .news-hero-panel, .news-info {
    padding: 22px;
  }
}

.story {
  display: grid;
  grid-template-columns: 0.95fr 0.9fr;
  gap: 36px;
  margin-top: 72px;
  align-items: center;
}

.story-copy h2 {
  margin-top: 0;
  font-size: 2.15rem;
}

.story-copy p {
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
}

.story-copy ul {
  margin-top: 24px;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.story-copy li {
  margin-bottom: 12px;
}

.story-visual {
  display: flex;
  justify-content: center;
}

.burning-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 38px 32px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 79, 79, 0.16), rgba(11, 13, 29, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(255, 79, 79, 0.08);
  overflow: hidden;
}

.burning-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%);
}

.burning-card h3 {
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.burning-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.spark {
  position: absolute;
  top: -16px;
  right: -18px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 109, 109, 0.6), transparent 60%);
  filter: blur(14px);
  z-index: 0;
  animation: pulse 3.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 0.55; }
}

@media (max-width: 960px) {
  .hero, .story {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 24px 18px 36px;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===================== Sales page additions ===================== */
.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 28px;
}
.price-now {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
}
.price-was {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-note {
  font-size: 0.9rem;
  color: #ffb3b3;
  font-weight: 600;
}
.hero-microcopy,
.cart-microcopy {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cart-microcopy { text-align: center; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.trust-strip strong {
  display: block;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ff4f4f, #ff8c4a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trust-strip span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.months-section,
.reviews-section,
.faq-section {
  margin-top: 72px;
}
.months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.month-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 110px;
}
.month-card.hot {
  background: linear-gradient(180deg, rgba(255, 95, 95, 0.18), rgba(40, 10, 10, 0.92));
  border-color: rgba(255, 89, 89, 0.3);
}
.month-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #9ba4ce;
  margin-bottom: 10px;
}
.month-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.review-card p {
  margin: 0 0 16px;
  line-height: 1.7;
}
.review-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq-grid {
  display: grid;
  gap: 14px;
}
.faq-item {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item p {
  margin: 14px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}
.product-meta s { color: var(--text-muted); }

.site-footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }

@media (max-width: 960px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .months-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .months-grid { grid-template-columns: 1fr 1fr; }
}

/* ===================== Visual overhaul v2 ===================== */
:root {
  --accent: #ff5a2e;
  --ember: #ff8a3d;
  --gold: #ffd24a;
}

body {
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(255, 120, 40, 0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 8%, rgba(224, 31, 31, 0.14), transparent 55%),
    linear-gradient(180deg, #06060b 0%, #0a0a14 55%, #060609 100%);
}

/* Logo as image */
img.brand-mark {
  background: none;
  border-radius: 0;
  filter: drop-shadow(0 4px 14px rgba(255, 90, 46, 0.55));
}

/* Headline polish */
.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #ffd9c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 90, 46, 0.12);
  border: 1px solid rgba(255, 122, 24, 0.28);
  color: #ffc7a3;
  width: fit-content;
  margin-bottom: 22px;
}

/* Buttons: lift + glow */
.button { transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; cursor: pointer; }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px rgba(255, 90, 46, 0.4); filter: saturate(1.1); }
.button-secondary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }

/* Hero artwork */
.hero-visual { position: relative; }
.hero-art {
  width: 100%;
  max-width: 520px;
  height: auto;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.4deg); }
}
.hero-badge {
  position: absolute;
  bottom: 8%;
  left: -6px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(12, 12, 20, 0.86);
  border: 1px solid rgba(255, 122, 24, 0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}
.hero-badge strong { color: var(--gold); font-size: 1.05rem; }
.hero-badge span { color: var(--text-muted); font-size: 0.8rem; }

/* Product thumbnails */
.product-thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0c0c12;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-thumb .product-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(4px);
}
.product-card { transition: transform 0.2s ease, border-color 0.2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 24, 0.35); }

/* Section headers a touch larger */
.section-header h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0; letter-spacing: -0.02em; }
.section-header p { color: var(--text-muted); max-width: 620px; line-height: 1.75; margin: 0; }

/* Trust strip accent */
.trust-strip { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(10,10,18,0.6)); }

/* Gallery polish */
.burning-gallery-img { height: 150px; }

/* Make the storefront product grid breathe (5 items) */
@media (min-width: 961px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===================== Hero photo treatment (v3) ===================== */
.hero-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 60px rgba(255,90,46,0.25);
  border: 1px solid rgba(255,122,24,0.25);
  animation: floaty 7s ease-in-out infinite;
}
.hero-photo > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: 42%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.6));
  transform: rotate(2deg);
}
@media (max-width: 640px) {
  .hero-overlay { width: 38%; }
}

/* ===================== Multi-page components ===================== */
a.brand { text-decoration: none; color: inherit; }
.nav a.active { color: #ff8a3d; }

.shop-hero { margin: 56px 0 36px; text-align: center; }
.shop-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 16px; letter-spacing: -0.03em; }
.shop-hero .hero-text { margin: 0 auto; }

/* Product detail page */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
.pdp-main {
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(255,122,24,0.25);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 50px rgba(255,90,46,0.2);
  aspect-ratio: 1/1;
  object-fit: cover;
}
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.pdp-thumbs img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0c0c12;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pdp-thumbs img:hover { border-color: rgba(255,122,24,0.6); transform: translateY(-2px); }
.pdp-info h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin: 6px 0 10px; letter-spacing: -0.02em; }
.pdp-tagline { color: var(--text-muted); font-size: 1.15rem; margin: 0 0 22px; }
.pdp-specs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.pdp-specs li {
  display: flex; gap: 14px; padding: 14px 18px;
  border-radius: 14px; background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07); color: var(--text-muted);
}
.pdp-specs strong { color: #fff; min-width: 120px; }

/* CTA band */
.cta-band {
  margin-top: 72px;
  padding: 48px 32px;
  border-radius: 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,90,46,0.18), rgba(20,10,8,0.92));
  border: 1px solid rgba(255,122,24,0.3);
  display: grid;
  gap: 22px;
  justify-items: center;
}
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 18ch; }

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

/* ===================== Mobile nav + responsive overhaul (v4) ===================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .header { flex-wrap: nowrap; gap: 12px; position: relative; }
  .brand-subtitle { display: none; }
  .nav-toggle { display: flex; order: 2; }
  .cart-toggle { order: 3; min-width: 0; padding: 12px 16px; margin-top: 0; }
  .nav {
    display: none;
    order: 4;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(10,10,18,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    z-index: 40;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px 16px;
    border-radius: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav a:hover, .nav a.active { background: rgba(255,122,24,0.14); }
}

/* Tablet + phone layout tuning */
@media (max-width: 860px) {
  .hero { margin-top: 36px; gap: 32px; }
  .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-shell { padding: 18px 16px 32px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero-text { font-size: 0.98rem; }
  .price-now { font-size: 2rem; }
  .months-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .month-card { padding: 14px; min-height: 92px; }
  .product-grid { grid-template-columns: 1fr; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .section-header h2 { font-size: 1.7rem; }
  .store-header { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 32px 20px; }
  .cta-band .button { width: 100%; }
  .site-footer { flex-direction: column; gap: 16px; text-align: center; }
  .site-footer nav { justify-content: center; flex-wrap: wrap; }
  .hero-badge { left: 8px; bottom: 8px; padding: 10px 14px; }
  .burning-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-art, .spark { animation: none !important; }
  * { scroll-behavior: auto; }
}

/* Larger tap targets everywhere on touch */
@media (hover: none) {
  .button { min-height: 48px; }
}

/* ===================== Click-safety fixes (v5) ===================== */
/* The closed cart drawer must never intercept clicks on the page. */
.cart-panel { pointer-events: none; }
.cart-panel.open { pointer-events: auto; }

/* Incident timeline page */
.incident-timeline { display: grid; gap: 22px; }

/* ===================== Fund the Burn — campaign (v6) ===================== */
.campaign-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
.campaign-hero .hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.campaign-hero .hero-photo img { width: 100%; display: block; }
.campaign-hero .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,2,7,0) 40%, rgba(2,2,7,0.55) 100%);
}
.live-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(225, 31, 31, 0.92);
  color: #fff;
}
.live-pill::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: livepulse 1.4s infinite;
}
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Progress panel */
.fund-panel {
  background: linear-gradient(135deg, rgba(255,90,46,0.10), rgba(20,10,8,0.85));
  border: 1px solid rgba(255,122,24,0.28);
  border-radius: 22px;
  padding: 26px 28px;
  margin: 28px 0;
}
.fund-figures { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.fund-figures .fund-raised {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffd24a, #ff5a2e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fund-figures small { display: block; color: var(--text-muted); font-weight: 500; font-size: 0.82rem; margin-top: 4px; }
.fund-figures .fund-goal-wrap { text-align: right; font-weight: 700; }
.fund-bar-track { height: 16px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; margin: 16px 0 12px; }
.fund-bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#ff5a2e,#ffd24a); transition: width 1s ease; box-shadow: 0 0 18px rgba(255,122,24,0.6); }
.fund-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.fund-meta strong { color: #fff; }

/* Reward tiers */
.fund-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fund-tier {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fund-tier.tier-top { border-color: rgba(255,210,74,0.55); background: linear-gradient(160deg, rgba(255,210,74,0.12), var(--surface)); }
.fund-tier .tier-amt { font-size: 1.5rem; font-weight: 800; color: #fff; }
.fund-tier .tier-name { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.fund-tier p { margin: 0; color: var(--text-muted); flex: 1; line-height: 1.6; }
.fund-tier .button { margin-top: 6px; }

/* Livestream */
.stream-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px;
  margin-top: 32px;
}
.stream-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000 center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
}
.stream-frame::after { content: ""; position: absolute; inset: 0; background: rgba(2,2,7,0.62); }
.stream-locked { position: relative; z-index: 1; color: #fff; }
.stream-locked .lock-ico { font-size: 2.4rem; }
.stream-locked strong { display: block; font-size: 1.1rem; margin-top: 6px; }
.stream-locked span { color: var(--text-muted); font-size: 0.9rem; }

/* Pledge form (shared) */
.pledge-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pledge-form input[type=email] { flex: 1; min-width: 220px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.3); color: #fff; font-size: 1rem; }

.fund-disclaimer { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; border-left: 3px solid #ff5a2e; padding-left: 16px; }

/* Sold-out product cards */
.product-card.is-soldout { opacity: 0.66; }
.product-card.is-soldout .product-thumb img { filter: grayscale(0.65) brightness(0.7); }
.product-tag.tag-soldout { background: rgba(120,120,140,0.28); color: #e6e8f2; }
.product-card .button[disabled] { cursor: not-allowed; opacity: 0.8; }

@media (max-width: 820px) {
  .campaign-hero, .stream-panel { grid-template-columns: 1fr; }
  .fund-tiers { grid-template-columns: 1fr; }
}
