/* ============================================================
   ClubHouse G — Premium Theme
   Typefaces: DM Serif Display (headings) + DM Sans (body)
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:           #060f1a;
  --bg2:          #091828;
  --panel:        rgba(10, 24, 38, 0.70);
  --panel-solid:  #0a1826;

  --border:       rgba(175, 223, 249, 0.11);
  --border-hi:    rgba(175, 223, 249, 0.24);
  --border-top:   rgba(255, 255, 255, 0.10);

  --text:         rgba(255, 255, 255, 0.93);
  --muted:        rgba(175, 210, 235, 0.62);

  --ice:          #afdef9;
  --ice2:         #93cfe9;
  --ice-dim:      rgba(175, 223, 249, 0.18);
  --mint:         #9fe9cc;

  --vbox-purple: #7c3aed;
  --vbox-pink:   #ff4fd8;
  --vbox-ink:    #241b2a;
  --paper:       #ffffff;
  --paper2:      #fbfbfe;
  --paper-edge:  rgba(20, 20, 35, 0.10);

  /* Spacing scale (4px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;

  /* Radius */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-card:
    0 2px 4px  rgba(0, 0, 0, 0.30),
    0 8px 20px rgba(0, 0, 0, 0.40),
    0 24px 48px rgba(0, 0, 0, 0.28);
  --shadow-raise:
    0 2px 4px  rgba(0, 0, 0, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.44),
    0 32px 56px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(175, 223, 249, 0.12);
  --shadow-btn:
    0 4px 12px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(175, 223, 249, 0.20);
  --shadow-btn-hover:
    0 6px 16px rgba(0, 0, 0, 0.32),
    0 12px 32px rgba(175, 223, 249, 0.30),
    0 0  20px rgba(175, 223, 249, 0.18);

  --ring:  0 0 0 3px rgba(175, 223, 249, 0.24);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.55, 0, 1, 0.45);
  --dur-xs:    100ms;
  --dur-sm:    180ms;
  --dur-md:    300ms;
  --dur-lg:    480ms;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after { 
  box-sizing: border-box; 
}

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

body {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 1100px 640px at 12% -8%,  rgba(175, 223, 249, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse  900px 520px at 88%  8%,  rgba(159, 233, 204, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse  820px 500px at 50% 110%, rgba(175, 223, 249, 0.09) 0%, transparent 58%),
    linear-gradient(175deg, var(--bg2) 0%, #040d17 60%, #030b13 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-sm) var(--ease);
}
a:hover { 
  color: var(--ice); 
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin: 0 0 var(--sp-3);
}

h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(20px, 3vw, 26px); }
h3 { font-size: 18px; }

p {
  margin: 0 0 var(--sp-3);
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-7);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
}

.hero-logo {
  width: 148px;
  max-width: 58vw;
  margin-bottom: var(--sp-4);
  filter:
    drop-shadow(0 0 22px rgba(175, 223, 249, 0.32))
    drop-shadow(0 0 48px rgba(175, 223, 249, 0.16))
    drop-shadow(0 0 80px rgba(175, 223, 249, 0.08));
  transition: filter var(--dur-md) var(--ease);
}

.hero-logo:hover {
  filter:
    drop-shadow(0 0 28px rgba(175, 223, 249, 0.44))
    drop-shadow(0 0 60px rgba(175, 223, 249, 0.22));
}

.hero h1 { 
  margin: var(--sp-2) 0 var(--sp-3); 
}

.hero-sub {
  max-width: 500px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

/* ── Hero Background Image System ───────────────────────── */

.hero--with-bg {
  position: relative;
  overflow: hidden;
  padding: 120px 20px 100px;
}

/* Background image layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  /* 🔥 REPLACE THIS PATH with your actual image */
  background-image: url("../images/background.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.05); /* subtle cinematic zoom */
}

/* Dark gradient overlay so image blends into your theme */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(circle at 30% 20%, rgba(140, 90, 255, 0.25), transparent 55%),
    linear-gradient(to bottom,
      rgba(6, 15, 26, 0.85) 0%,
      rgba(6, 15, 26, 0.75) 40%,
      rgba(6, 15, 26, 0.92) 100%
    );
}

/* Ensure content sits above */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Header / Nav ─────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(5, 13, 22, 0.78);
  border-bottom: 1px solid var(--border);
  box-shadow: 
    inset 0 1px 0 rgba(175, 223, 249, 0.06), 
    0 1px 0 rgba(0, 0, 0, 0.4);
}

nav {
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

nav .brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  letter-spacing: 0.07em;
  font-weight: 600;
  font-size: 14px;
}

nav .links {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.nav-btn {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  background: linear-gradient(
    160deg,
    rgba(175, 223, 249, 0.09) 0%,
    rgba(175, 223, 249, 0.03) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform     var(--dur-sm) var(--ease),
    box-shadow    var(--dur-sm) var(--ease),
    border-color  var(--dur-sm) var(--ease),
    background    var(--dur-sm) var(--ease);
}

.nav-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  box-shadow: 
    0 6px 20px rgba(175, 223, 249, 0.16), 
    0 2px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    160deg,
    rgba(175, 223, 249, 0.16) 0%,
    rgba(175, 223, 249, 0.07) 100%
  );
}

.nav-btn:active {
  transform: translateY(0);
  transition-duration: var(--dur-xs);
}

.nav-primary {
  background: linear-gradient(
    160deg,
    rgba(175, 223, 249, 0.92) 0%,
    rgba(130, 200, 230, 0.92) 100%
  );
  color: #040d17;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-btn);
}

.nav-primary:hover {
  box-shadow: var(--shadow-btn-hover);
  background: linear-gradient(
    160deg,
    rgba(195, 235, 255, 0.96) 0%,
    rgba(150, 215, 245, 0.96) 100%
  );
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: var(--sp-5) 0 var(--sp-6);
  border-bottom: 1px solid rgba(175, 223, 249, 0.08);
}

.section:last-child {
  border-bottom: none;
}

/* ── Panels / Cards ───────────────────────────────────────── */
.panel {
  background: linear-gradient(
    160deg,
    rgba(14, 32, 50, 0.76) 0%,
    rgba(8, 20, 34, 0.62) 100%
  );
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

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

/* ── Product Carousel (IMPROVED) ──────────────────────────── */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--sp-2) var(--sp-1) var(--sp-4);
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar { 
  height: 8px; 
}

.carousel::-webkit-scrollbar-thumb { 
  background: rgba(175, 223, 249, 0.18); 
  border-radius: 999px; 
}

.carousel::-webkit-scrollbar-track { 
  background: rgba(255, 255, 255, 0.03); 
  border-radius: 999px; 
}

/* Product Card */
.card {
  scroll-snap-align: start;
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(14, 32, 50, 0.88) 0%,
    rgba(7, 18, 30, 0.74) 100%
  );
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--shadow-card);
  transition:
    transform    var(--dur-md) var(--ease),
    border-color var(--dur-md) var(--ease),
    box-shadow   var(--dur-md) var(--ease);
  overflow: visible; /* Changed from hidden to visible to prevent badge cropping */
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg, 
    rgba(175, 223, 249, 0.07) 0%, 
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-raise);
}

/* Product Image Container with Gallery Support */
.card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.20);
  border-bottom: 1px solid var(--border);
}

.card-image-gallery {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--dur-md) var(--ease);
}

.card-image-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 
    transform var(--dur-md) var(--ease), 
    filter var(--dur-md) var(--ease);
}

.card:hover .card-image-item img {
  transform: scale(1.03);
  filter: brightness(1.06);
}

/* Image Gallery Navigation Dots */
.card-image-dots {
  position: absolute;
  bottom: var(--sp-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-1);
  z-index: 2;
  padding: var(--sp-1) var(--sp-2);
  background: rgba(6, 15, 26, 0.70);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(175, 223, 249, 0.30);
  cursor: pointer;
  transition: 
    background var(--dur-sm) var(--ease),
    transform var(--dur-sm) var(--ease);
}

.card-image-dot:hover {
  background: rgba(175, 223, 249, 0.50);
  transform: scale(1.2);
}

.card-image-dot.active {
  background: var(--ice);
  transform: scale(1.3);
}

/* Navigation Arrows (for cards with multiple images) */
.card-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 15, 26, 0.80);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: 
    background var(--dur-sm) var(--ease),
    transform var(--dur-sm) var(--ease),
    opacity var(--dur-sm) var(--ease);
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card:hover .card-image-arrow {
  opacity: 1;
}

.card-image-arrow:hover {
  background: rgba(175, 223, 249, 0.16);
  transform: translateY(-50%) scale(1.1);
}

.card-image-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.card-image-arrow--prev {
  left: var(--sp-2);
}

.card-image-arrow--next {
  right: var(--sp-2);
}

.card-image-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--ice);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card Content */
.card-content {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.card-title { 
  margin: 0;
  font-size: 18px;
}

.card-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.price {
  margin-top: auto;
  padding-top: var(--sp-2);
  font-weight: 700;
  font-size: 16px;
  color: var(--ice);
  letter-spacing: 0.02em;
}

/* Sold Out Badge */
.sold-out-badge {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 10;
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(
    135deg,
    rgba(255, 69, 58, 0.98) 0%,
    rgba(220, 50, 40, 0.98) 100%
  );
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  border: 2px solid rgba(255, 255, 255, 0.30);
  box-shadow: 
    0 6px 20px rgba(255, 69, 58, 0.60),
    0 2px 8px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  animation: soldOutPulse 2.5s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.30);
}

@keyframes soldOutPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 6px 20px rgba(255, 69, 58, 0.60),
      0 2px 8px rgba(0, 0, 0, 0.40),
      inset 0 1px 0 rgba(255, 255, 255, 0.20);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 
      0 8px 28px rgba(255, 69, 58, 0.75),
      0 4px 12px rgba(0, 0, 0, 0.50),
      inset 0 1px 0 rgba(255, 255, 255, 0.30);
  }
}

/* Sold out card overlay */
.card.sold-out {
  opacity: 0.60;
  pointer-events: none;
}

.card.sold-out .card-image-container {
  position: relative;
}

/* Add diagonal stripes overlay for sold out */
.card.sold-out .card-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 10px,
    transparent 10px,
    transparent 20px
  );
  pointer-events: none;
  z-index: 2;
}

.card.sold-out .card-image-item img {
  filter: grayscale(50%) brightness(0.85);
  cursor: default;
}

.card.sold-out:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

/* Keep badge interactive even when card is disabled */
.card.sold-out .sold-out-badge {
  pointer-events: auto;
}

/* Single image fallback (no gallery UI) */
.card-image-container.single-image .card-image-dots,
.card-image-container.single-image .card-image-arrow {
  display: none;
}

/* ── Forms ────────────────────────────────────────────────── */
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: var(--sp-4) 0 var(--sp-2);
}

label:first-of-type {
  margin-top: 0;
}

input,
textarea,
select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.06);
  background: rgba(4, 12, 22, 0.60);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition:
    border-color var(--dur-sm) var(--ease),
    box-shadow   var(--dur-sm) var(--ease),
    background   var(--dur-sm) var(--ease);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(175, 223, 249, 0.44);
  background: rgba(4, 14, 26, 0.72);
  box-shadow: var(--ring), 0 0 18px rgba(175, 223, 249, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.30);
}

/* ── Buttons ──────────────────────────────────────────────── */
button {
  border: none;
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    rgba(185, 230, 255, 0.96) 0%,
    rgba(135, 205, 235, 0.96) 100%
  );
  color: #040d17;
  box-shadow: var(--shadow-btn);
  transition:
    transform     var(--dur-sm) var(--ease),
    box-shadow    var(--dur-sm) var(--ease),
    filter        var(--dur-sm) var(--ease);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.36) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform var(--dur-lg) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  filter: brightness(1.04);
}

.btn:hover::after { 
  transform: translateX(100%); 
}

.btn:active {
  transform: translateY(0);
  transition-duration: var(--dur-xs);
}

/* ── Success Banner ───────────────────────────────────────── */
.success {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(159, 233, 204, 0.09);
  border: 1px solid rgba(159, 233, 204, 0.22);
  border-top-color: rgba(159, 233, 204, 0.30);
  color: var(--text);
  font-size: 14px;
  margin-bottom: var(--sp-4);
}

/* ── Subscription Table ───────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-lg);
  overflow: hidden;
}

thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: var(--sp-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

tbody td {
  padding: var(--sp-3);
  border-bottom: 1px solid rgba(175, 223, 249, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  transition: background var(--dur-sm) var(--ease);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td { 
  background: rgba(175, 223, 249, 0.05); 
}

.subCheck {
  width: 17px;
  height: 17px;
  accent-color: var(--ice);
  cursor: pointer;
}

.service-logo {
  height: 18px;
  vertical-align: middle;
  margin-right: var(--sp-2);
}

/* ── Total Row ────────────────────────────────────────────── */
.totalRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: 18px;
}

#totalDisplay {
  color: var(--ice);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(175, 223, 249, 0.28);
  letter-spacing: 0.02em;
}

/* ── ROI Display ──────────────────────────────────────────── */
.roi-row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: var(--sp-4);
}

.roi-card {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.roi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ice);
  margin: var(--sp-2) 0;
  text-shadow: 0 0 18px rgba(175, 223, 249, 0.28);
  letter-spacing: 0.02em;
}

.roi-card--highlight {
  position: relative;
  padding: var(--sp-4);
  background: linear-gradient(
    160deg,
    rgba(159, 233, 204, 0.07) 0%,
    rgba(159, 233, 204, 0.03) 100%
  );
  border: 1px solid rgba(159, 233, 204, 0.18);
  border-top-color: rgba(159, 233, 204, 0.28);
  border-radius: var(--r-md);
}

.roi-value--savings {
  color: var(--mint);
  text-shadow: 0 0 18px rgba(159, 233, 204, 0.28);
}

/* ── Info Panel & Tabs ────────────────────────────────────── */
.info-panel__title { 
  margin-bottom: var(--sp-4); 
}

.tabs {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  padding: var(--sp-1);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  min-width: 70px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    color        var(--dur-sm) var(--ease),
    background   var(--dur-sm) var(--ease),
    border-color var(--dur-sm) var(--ease);
}

.tab:hover {
  color: var(--text);
  background: rgba(175, 223, 249, 0.08);
}

.tab--active {
  color: var(--ice);
  background: rgba(175, 223, 249, 0.12);
  border-color: var(--border);
}

.tab-content {
  display: none;
  animation: fadeUp var(--dur-md) var(--ease) both;
}

.tab-content--active { 
  display: block; 
}

@keyframes fadeUp {
  from { 
    opacity: 0; 
    transform: translateY(6px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ── Info Lists ───────────────────────────────────────────── */
.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.info-list li {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  padding-left: var(--sp-3);
  border-left: 2px solid var(--border);
  transition: border-color var(--dur-sm) var(--ease);
}

.info-list li:hover { 
  border-left-color: var(--ice); 
}

.tip-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ice);
  margin-bottom: var(--sp-1);
}

.info-note {
  margin-top: var(--sp-4);
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.6;
}

/* ── Channel Grid ─────────────────────────────────────────── */
.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.channel-grid span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(175, 223, 249, 0.07);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  transition: 
    background var(--dur-sm) var(--ease), 
    color var(--dur-sm) var(--ease);
}

.channel-grid span:hover {
  background: rgba(175, 223, 249, 0.14);
  color: var(--text);
}

/* ── Glossary Grid ────────────────────────────────────────── */
.glossary-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-3);
  align-items: center;
}

.gl-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ice);
  background: rgba(175, 223, 249, 0.08);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.gl-name {
  font-size: 13px;
  color: var(--muted);
}

/* ── Remote Image ─────────────────────────────────────────── */
.remote-wrap {
  margin-top: var(--sp-3);
  display: flex;
  justify-content: center;
}

.remote-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid rgba(175, 223, 249, 0.14);
  box-shadow: var(--shadow-card);
}

/* ── Legality Tab ─────────────────────────────────────────── */
.legality-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ice);
  margin: 0 0 var(--sp-3);
}

.legality-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(175, 223, 249, 0.06);
  border-left: 3px solid var(--ice);
  border-radius: var(--r-sm);
}

.legality-section {
  margin-bottom: var(--sp-4);
}

.legality-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ice);
  margin: 0 0 var(--sp-2);
}

.legality-section p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.legality-list {
  margin: 0;
  padding-left: var(--sp-5);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.legality-list li {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  position: relative;
}

.legality-list li::before {
  content: "✓";
  position: absolute;
  left: calc(-1 * var(--sp-5));
  color: var(--mint);
  font-weight: 700;
  font-size: 14px;
}

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-section { 
  text-align: center; 
}

.reviews-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding: var(--sp-2) var(--sp-1) var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reviews-carousel::-webkit-scrollbar { 
  height: 8px; 
}

.reviews-carousel::-webkit-scrollbar-thumb {
  background: rgba(175, 223, 249, 0.18);
  border-radius: 999px;
}

.reviews-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.review-card {
  scroll-snap-align: start;
  text-align: left;
  background: linear-gradient(
    160deg,
    rgba(14, 32, 50, 0.82) 0%,
    rgba(7, 18, 30, 0.72) 100%
  );
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg, 
    rgba(175, 223, 249, 0.06) 0%, 
    transparent 45%
  );
  pointer-events: none;
}

.stars {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--ice);
  text-shadow: 0 0 14px rgba(175, 223, 249, 0.28);
  margin-bottom: var(--sp-2);
}

.review-title {
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: rgba(255, 255, 255, 0.92);
}

.review-text {
  margin: 0 0 var(--sp-3);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.review-author {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Certificate (Official paper style + vBox accents) ───────────────── */
.certification-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
}

.certificate {
  margin-top: var(--sp-5);
  width: min(820px, 100%);
}

/* Outer wrapper for a little drop shadow separation */
.certificate__inner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;

  /* Paper */
  background:
    /* paper fibers */
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.025) 0%, transparent 55%),
    /* faint vBox accent wash */
    radial-gradient(circle at 18% 10%, rgba(124,58,237,0.10) 0%, transparent 55%),
    radial-gradient(circle at 92% 22%, rgba(255,79,216,0.08) 0%, transparent 55%),
    linear-gradient(135deg, var(--paper) 0%, var(--paper2) 100%);

  color: var(--vbox-ink);

  /* Engraved outer border */
  border: 1px solid var(--paper-edge);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.10);
  padding: clamp(22px, 4vw, 46px);
}

/* Inner frame border like real certificates */
.certificate__inner::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  pointer-events: none;

  background:
    linear-gradient(135deg,
      rgba(124,58,237,0.28) 0%,
      rgba(255,79,216,0.22) 50%,
      rgba(124,58,237,0.18) 100%
    );

  /* Create a thin “frame” effect */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: 0.7;
}

/* Subtle emboss highlight line */
.certificate__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75), transparent 28%),
    linear-gradient(0deg, rgba(0,0,0,0.06), transparent 30%);
  opacity: 0.55;
}

.certificate__watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: 0.24em;
  opacity: 0.045;
  transform: rotate(-12deg);
  color: rgba(36, 27, 42, 1);
  user-select: none;
  pointer-events: none;
}

.certificate__top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-6);
  position: relative;
  z-index: 1;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(36, 27, 42, 0.12);
}

.certificate__meta {
  flex: 1;
  text-align: center;
}

.certificate__label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(36, 27, 42, 0.55);
  margin-bottom: var(--sp-2);
}

.certificate__org {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--vbox-ink);
  margin: 0;
  line-height: 1.05;
}

.certificate__logo {
  height: 46px;
  width: auto;
  margin: var(--sp-3) auto 0;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.certificate__meta-k {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(36, 27, 42, 0.52);
}

.certificate__meta-v {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(36, 27, 42, 0.92);
}

/* Seal position */
.certificate__seal {
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  filter:
    drop-shadow(0 10px 20px rgba(0,0,0,0.16))
    drop-shadow(0 0 26px rgba(124,58,237,0.18));
}

.certificate__seal svg {
  width: 100%;
  height: 100%;
}

/* Seal colors */
.seal-ring {
  fill: rgba(255,255,255,0.65);     /* lighter center for readability */
  stroke: rgba(124,58,237,0.85);
  stroke-width: 3;
}
.seal-dash {
  stroke: rgba(255,79,216,0.55);
}
.seal-burst {
  fill: rgba(255,79,216,0.10);
  stroke: rgba(124,58,237,0.35);
  stroke-width: 1.2;
}
.seal-text {
  fill: #1b1022;            /* darker ink */
  font-size: 13px;          /* slightly bigger */
  letter-spacing: 2.6px;
  paint-order: stroke;      /* outline to help readability */
  stroke: rgba(255,255,255,0.75);
  stroke-width: 2px;
}
.seal-sub {
  fill: rgba(27,16,34,0.78);
  font-size: 10px;
  letter-spacing: 2.2px;
  paint-order: stroke;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 1.6px;
}

.certificate__title {
  margin: var(--sp-5) 0 var(--sp-3);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.12;
  color: var(--vbox-ink);
  position: relative;
  z-index: 1;
}

.certificate__title::after {
  content: "";
  display: block;
  width: min(240px, 60%);
  height: 3px;
  margin: var(--sp-3) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vbox-purple), var(--vbox-pink));
  opacity: 0.9;
}

.certificate__sub {
  margin: 0 auto var(--sp-5);
  max-width: 66ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(36, 27, 42, 0.78);
  position: relative;
  z-index: 1;
}

.certificate__foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(36, 27, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  position: relative;
  z-index: 1;
}

.certificate__line {
  height: 1px;
  width: 180px;
  background: linear-gradient(90deg, rgba(124,58,237,0.55), rgba(255,79,216,0.45));
}

.certificate__sig {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(124,58,237,0.85);
}

.certificate__below {
  margin-top: var(--sp-4);
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12.5px;

  color: rgba(255,255,255,0.92); /* white text */

  background: linear-gradient(
    90deg,
    rgba(124,58,237,0.72),
    rgba(255,79,216,0.58)
  );
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 10px 16px;

  box-shadow:
    0 10px 22px rgba(124,58,237,0.18),
    0 6px 16px rgba(255,79,216,0.10);
}

/* Mobile */
@media (max-width: 640px) {
  .certificate__meta-row {
    grid-template-columns: 1fr;
  }
  .certificate__seal {
    width: 92px;
    height: 92px;
    top: 14px;
    right: 14px;
  }
  .certificate__line {
    width: 110px;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  width: 100%;
  margin-top: var(--sp-7);
  padding: 0;
  background: transparent;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  font-size: 13px;
  color: var(--muted);
}

.footer-inner a {
  color: var(--ice);
  text-decoration: none;
  opacity: 0.82;
  transition: opacity var(--dur-sm) var(--ease);
}

.footer-inner a:hover {
  text-decoration: underline;
  opacity: 1;
}

.footer-inner .divider { 
  opacity: 0.35; 
}

/* ── Responsive Adjustments ───────────────────────────────── */
@media (max-width: 640px) {
  .carousel {
    grid-auto-columns: minmax(240px, 1fr);
  }
  
  .certificate__inner {
    padding: var(--sp-5);
  }
  
  .certificate__seal {
    width: 76px;
    height: 76px;
  }
  
  .certificate__line {
    width: 84px;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: var(--sp-3);
  }
  
  nav .links {
    width: 100%;
    justify-content: center;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: var(--sp-2);
  }
  
  .footer-inner .divider {
    display: none;
  }
  
  .roi-row {
    flex-direction: column;
  }
}

/* ── Lightbox Modal ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  cursor: zoom-out;
  animation: lightboxFadeIn var(--dur-md) var(--ease);
}

.lightbox.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  animation: lightboxZoomIn var(--dur-md) var(--ease);
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(175, 223, 249, 0.15);
  border: 1px solid var(--border-hi);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 15, 26, 0.80);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: 
    background var(--dur-sm) var(--ease),
    transform var(--dur-sm) var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(175, 223, 249, 0.16);
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--ice);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 15, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: 
    background var(--dur-sm) var(--ease),
    transform var(--dur-sm) var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(175, 223, 249, 0.20);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-nav--prev {
  left: var(--sp-5);
}

.lightbox-nav--next {
  right: var(--sp-5);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke: var(--ice);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-counter {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(6, 15, 26, 0.80);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* Zoom cursor hint */
.card-image-item img {
  cursor: zoom-in;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox {
    padding: var(--sp-4);
  }
  
  .lightbox-close {
    top: auto;
    bottom: calc(100% + var(--sp-3));
    right: 0;
  }
  
  .lightbox-counter {
    bottom: auto;
    top: calc(100% + var(--sp-3));
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-nav--prev {
    left: var(--sp-3);
  }
  
  .lightbox-nav--next {
    right: var(--sp-3);
  }
}

/* ── Utility Classes ──────────────────────────────────────── */
.inquiry-title {
  margin-bottom: var(--sp-4);
}

.form-submit {
  margin-top: var(--sp-4);
}

.nav-logo {
  height: 28px;
  width: auto;
  margin-right: var(--sp-2);
  filter: drop-shadow(0 0 8px rgba(175, 223, 249, 0.25));
}

nav .brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ── Site Disclaimer ───────────────────────────────────── */
.site-disclaimer {
  margin-top: var(--sp-7);
  padding: var(--sp-4) var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.site-disclaimer__inner {
  max-width: 900px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}