:root {
  /* Brand color system */
  --brand-gradient: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 50%, #3b82f6 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(59, 130, 246, 0.12) 100%);
  --brand-red: #f43f5e;
  --brand-violet: #8b5cf6;
  --brand-blue: #3b82f6;

  /* Deal accent colors */
  --deal-green: #10b981;
  --deal-green-dark: #059669;
  --deal-soft: rgba(16, 185, 129, 0.12);
  --deal-border: rgba(16, 185, 129, 0.3);
  --deal-text: #34d399;

  /* Permanent Dark Theme Tokens */
  --bg-body: #090d16;
  --bg-card: #111827;
  --bg-card-subtle: #1a2234;
  --bg-wash: #151d2d;
  --bg-header: rgba(17, 24, 39, 0.85);
  --border-color: #1f293d;
  --border-focus: #374151;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.22);
  --ticket-notch: #090d16;
  --badge-bg: #1e293b;
  --table-stripe: #121a2a;
  --table-hover: #1b263b;
  --footer-bg: #060911;
  --footer-text: #94a3b8;
  --footer-heading: #e2e8f0;
}

[data-theme="dark"] {
  /* Inherits dark tokens */
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  line-height: 1.5;
}

code, kbd, samp, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Banner */
.top-banner {
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.halloween-banner {
  background: linear-gradient(90deg, #ea580c 0%, #c026d3 50%, #7c3aed 100%);
  border-bottom: 1px solid rgba(251, 146, 60, 0.3);
}

.top-banner .badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.halloween-badge {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #fb923c !important;
  font-weight: 800 !important;
  border: 1px solid rgba(251, 146, 60, 0.5);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.navbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(-4deg);
}

.vendor-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.4));
  flex-shrink: 0;
}

.ticket-brand-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-brand-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
  flex-shrink: 0;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  position: relative;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease;
}

.brand-logo:hover .logo-badge {
  transform: scale(1.06) rotate(-3deg);
}

.logo-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background: var(--bg-card-subtle);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.dark-icon { display: none; }
[data-theme="dark"] .dark-icon { display: block; }
[data-theme="dark"] .light-icon { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.cta-full {
  display: inline;
}

.cta-short {
  display: none;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
  padding: 48px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.vendor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.vendor-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}

.trust-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
}

.halloween-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fb923c;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.hero-halloween-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fb923c;
  margin-bottom: 8px;
  text-shadow: 0 0 14px rgba(249, 115, 22, 0.4);
}

.hero-title {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 16px;
}

.highlight-orange {
  background: linear-gradient(135deg, #fb923c 0%, #f43f5e 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.hero-title-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* 50% Stacking Formula Box */
.stacking-formula-box {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%), var(--bg-card);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 18px 0 22px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 115, 22, 0.12);
}

.formula-header {
  font-size: 12px;
  font-weight: 800;
  color: #fdba74;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.formula-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr auto 1.25fr;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.formula-col {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 8px;
  transition: all 0.2s ease;
}

.formula-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.formula-val.val-green {
  color: #34d399;
}

.formula-val.val-max {
  color: #fb923c;
  font-size: 20px;
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.formula-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
  line-height: 1.2;
}

.formula-note {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 2px;
}

.formula-sign {
  font-size: 20px;
  font-weight: 800;
  color: #a855f7;
}

.formula-col.formula-highlight {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  cursor: pointer;
}

.formula-col.formula-highlight:hover {
  transform: translateY(-2px);
  border-color: #34d399;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.formula-col.formula-total {
  border-color: #fb923c;
  background: rgba(249, 115, 22, 0.14);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.2);
}

/* Ticket Halloween Styles */
.ticket-left-halloween {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16) 0%, rgba(139, 92, 246, 0.16) 100%), var(--bg-card) !important;
  border-right: 2px dashed rgba(249, 115, 22, 0.35) !important;
}

.ticket-halloween-tag {
  font-size: 11px;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticket-stack-chip {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.hero-title .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Top Banner Code Chip */
.top-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s ease;
  font-size: 13px;
}

.top-code-chip:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.04);
}

.top-code-chip small {
  font-size: 10px;
  opacity: 0.85;
}

/* Hero Title Code Badge */
.hero-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  background: var(--deal-soft);
  border: 2px dashed #10b981;
  padding: 4px 12px 4px 14px;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  margin-left: 6px;
}

.hero-code-badge:hover {
  border-color: #059669;
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.45);
}

.badge-code-text {
  font-family: 'JetBrains Mono', monospace;
  color: #10b981;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 0.95em;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.badge-copy-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

/* Pulsing Glow Effect */
.badge-pulse-glow {
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(0.97); opacity: 0.8; }
  50% { transform: scale(1.03); opacity: 0; }
  100% { transform: scale(0.97); opacity: 0; }
}

/* High-Impact Hero Quick-Copy Card */
.hero-instant-card {
  margin: 18px 0 22px;
  background: var(--bg-card);
  border: 2px solid #10b981;
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.22), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-instant-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
}

.hero-instant-card:hover {
  transform: translateY(-2px);
  border-color: #059669;
  box-shadow: 0 14px 35px -5px rgba(16, 185, 129, 0.35), var(--shadow-glow);
}

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

.instant-discount-pill {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #10b981;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.instant-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.instant-off {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.instant-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.05em;
}

.pulse-green-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.instant-code-display {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--text-main);
  line-height: 1;
}

[data-theme="dark"] .instant-code-display {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.instant-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.instant-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  transition: all 0.15s ease;
}

.hero-instant-card:hover .instant-copy-btn {
  transform: scale(1.03);
}

.instant-valid-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 20px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.highlight-icon {
  color: #10b981;
}

/* Coupon Ticket Card (Peptide Hybrid Style) */
.ticket-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.ticket-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.coupon-ticket {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coupon-ticket:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ticket-left {
  width: 140px;
  background: var(--deal-soft);
  color: var(--deal-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  text-align: center;
  flex-shrink: 0;
  border-right: 2px dashed var(--border-color);
  position: relative;
}

/* Semicircle Ticket Notches */
.ticket-left::before,
.ticket-left::after {
  content: "";
  position: absolute;
  right: -9px;
  width: 16px;
  height: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  z-index: 2;
}

.ticket-left::before {
  top: -9px;
}

.ticket-left::after {
  bottom: -9px;
}

.discount-huge {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.04em;
}

.discount-huge span {
  font-size: 26px;
}

.discount-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.85;
}

.ticket-right {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.ticket-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-brand-info h3 {
  font-size: 16px;
  font-weight: 700;
}

.ticket-scope {
  font-size: 12px;
  color: var(--text-muted);
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Copy Code Box */
.code-action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--deal-soft);
  border: 1px dashed var(--deal-border);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-action-box:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.16);
}

.code-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.copy-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
}

.verification-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: var(--bg-card-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 999px;
}

.verification-note {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.ticket-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
  text-align: center;
}

.main-shop-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.5);
}

.ticket-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Deal Snapshot Grid (Peptide Hybrid 2x4 Layout) */
.snapshot-section {
  padding: 48px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-violet);
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.snapshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.snapshot-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-violet);
}

.snapshot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.snapshot-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card-subtle);
  display: grid;
  place-items: center;
  color: var(--brand-violet);
}

.snapshot-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.snapshot-val.highlight {
  color: var(--brand-violet);
  font-family: 'JetBrains Mono', monospace;
}

.snapshot-progress {
  margin-top: 10px;
  height: 4px;
  background: var(--bg-card-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.snapshot-progress-bar {
  height: 100%;
  background: var(--brand-gradient);
  border-radius: 999px;
}

/* Feature/Perk Cards (3 horizontal cards) */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.perk-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--deal-soft);
  color: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.perk-content h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.perk-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Promotions & Stack Section (From Couponory) */
.promotions-section {
  padding: 48px 0;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.promo-tag-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-red { background: rgba(244, 63, 94, 0.12); color: #f43f5e; }
.badge-violet { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.badge-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }

.promo-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.promo-cta-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-violet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.promo-cta-link:hover {
  text-decoration: underline;
}

/* How to Use Section (Couponory 4-step workflow) */
.how-to-section {
  padding: 56px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Products Table Section (Peptide Hybrid Style) */
.products-section {
  padding: 56px 0;
}

.table-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card-subtle);
  padding: 4px;
  border-radius: 10px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.filter-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.filter-tab .tab-count {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.table-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 220px;
}

.search-box input {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-wash);
  padding: 0 12px 0 34px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--brand-violet);
}

.search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--brand-violet);
}

.sort-select {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-wash);
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

/* Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.product-table thead {
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
}

.product-table th {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.product-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.product-table tbody tr:hover {
  background: var(--table-hover);
}

.product-name-cell {
  font-weight: 600;
  color: var(--text-main);
}

.product-name-cell .form-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--badge-bg);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 400;
}

.product-size {
  color: var(--text-muted);
  font-size: 13px;
}

.price-strike {
  text-decoration: line-through;
  color: var(--text-subtle);
  font-size: 12px;
  margin-right: 6px;
}

.price-discounted {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--text-main);
  font-size: 15px;
}

.price-per-mg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--deal-text);
  font-weight: 600;
}

.table-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-gradient);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.table-shop-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Verification Editor Box (From Couponory) */
.editor-verify-section {
  padding: 40px 0;
}

.editor-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.editor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-gradient-soft);
  border: 2px solid var(--brand-violet);
  display: grid;
  place-items: center;
  color: var(--brand-violet);
  flex-shrink: 0;
}

.editor-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.editor-role {
  font-size: 12px;
  color: var(--brand-violet);
  font-weight: 600;
  margin-bottom: 6px;
}

.editor-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 56px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  background: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-violet);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 18px;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 24px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: var(--footer-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--footer-text);
  max-width: 480px;
}

.footer-col h5 {
  color: var(--footer-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--footer-text);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #f8fafc;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .top-banner {
    font-size: 11px;
    padding: 6px 12px;
    gap: 8px;
    justify-content: center;
    line-height: 1.4;
    text-align: center;
  }

  .banner-stack-hint,
  .banner-promo-label {
    display: none;
  }

  .navbar {
    height: 62px;
  }

  .brand-logo {
    font-size: 16px;
    gap: 8px;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .nav-actions {
    gap: 6px;
  }

  .theme-btn {
    width: 34px;
    height: 34px;
  }

  .cta-full {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .header-cta {
    padding: 6px 14px;
    font-size: 12px;
    gap: 4px;
    flex-shrink: 0;
  }

  .mobile-toggle {
    display: flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-title-sub {
    font-size: 16px;
  }

  .formula-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .formula-sign {
    display: none;
  }

  .formula-col.formula-total {
    margin-top: 4px;
  }

  .hero-code-badge {
    margin-left: 0;
    margin-top: 8px;
    display: inline-flex;
  }

  .hero-instant-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .instant-left {
    justify-content: flex-start;
  }

  .instant-right {
    align-items: stretch;
    width: 100%;
  }

  .instant-copy-btn {
    justify-content: center;
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  .instant-valid-hint {
    text-align: center;
  }

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

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

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

  .coupon-ticket {
    flex-direction: column;
  }

  .ticket-left {
    width: 100%;
    border-right: none;
    border-bottom: 2px dashed var(--border-color);
    padding: 16px;
  }

  .ticket-left::before, .ticket-left::after {
    display: none;
  }
}

/* Coupon Modal Popup (Couponory Style) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), var(--shadow-glow);
  position: relative;
  transform: scale(0.92) translateY(18px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--brand-gradient);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--border-color);
  transform: scale(1.05);
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.modal-vendor-meta h3 {
  font-size: 17px;
  font-weight: 800;
}

.modal-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.modal-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-subtext {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Modal Code Display Box */
.modal-code-box {
  background: var(--deal-soft);
  border: 2px dashed #10b981;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-code-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.modal-copy-btn {
  background: #10b981;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.modal-copy-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.modal-copied-state {
  display: none;
}

.modal-copy-btn.copied .modal-default-state {
  display: none;
}

.modal-copy-btn.copied .modal-copied-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-copy-btn.copied {
  background: #059669;
}

/* Primary Redirect Button */
.modal-store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.modal-store-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* Modal Micro-steps */
.modal-steps-list {
  background: var(--bg-card-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-step-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-violet);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Modal Feedback */
.modal-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.feedback-buttons {
  display: flex;
  gap: 8px;
}

.feedback-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-wash);
  font-size: 12px;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.feedback-btn:hover {
  background: var(--deal-soft);
  border-color: #10b981;
}

/* ==========================================================================
   Section 1: Order Tiers & Savings Calculator
   ========================================================================== */
.savings-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
}

.savings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}

.saving-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.saving-tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-violet);
  box-shadow: var(--shadow-glow);
}

.saving-tier-card.featured {
  border: 2px solid var(--brand-violet);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, var(--bg-card) 40%);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.35);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.tier-badge.badge-popular {
  background: var(--brand-gradient);
  color: #ffffff;
}

.tier-badge.badge-subtle {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.tier-badge.badge-max {
  background: rgba(16, 185, 129, 0.15);
  color: var(--deal-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tier-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tier-cart-example {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tier-calc-box {
  background: var(--bg-card-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
  border: 1px solid var(--border-color);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-row.savings {
  color: #10b981;
  font-weight: 700;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.tier-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tier-final-price {
  font-size: 26px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
}

.tier-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.tier-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.tier-benefit-item svg {
  color: #10b981;
  flex-shrink: 0;
}

.tier-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  transition: all 0.2s ease;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.tier-cta-btn:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.tier-cta-btn.featured-btn {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.tier-cta-btn.featured-btn:hover {
  opacity: 0.93;
}

/* ==========================================================================
   Section 2: 7-Point Quality Testing Standards (7/7 Score)
   ========================================================================== */
.standards-section {
  padding: 64px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 100%);
  border-top: 1px solid var(--border-color);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.standard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.standard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
}

.standard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.standard-step-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-violet);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}

.standard-spec-tag {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.standard-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.standard-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.standard-verified-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.standards-summary-bar {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.summary-shield {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.summary-score-text h4 {
  font-size: 15px;
  font-weight: 800;
}

.summary-score-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-badge-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   Section 3: Verified Reviews & Testimonials
   ========================================================================== */
.reviews-section {
  padding: 64px 0;
  border-top: 1px solid var(--border-color);
}

.reviews-stat-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 28px;
  text-align: center;
}

.stat-item h3 {
  font-size: 26px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-violet);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.reviewer-name h4 {
  font-size: 14px;
  font-weight: 700;
}

.reviewer-role {
  font-size: 11px;
  color: var(--text-muted);
}

.review-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.review-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-subtle);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-weight: 600;
}

/* Responsive updates for new sections */
@media (max-width: 1024px) {
  .savings-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .reviews-stat-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-stat-banner {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .standards-summary-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile sticky coupon bar (phones only) */
.m-sticky-bar { display: none; }

@media (max-width: 768px) {
  .m-sticky-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: rgba(17, 24, 39, 0.95);
    border-top: 1px solid #1f293d;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  }
  .m-sticky-info { flex: 1; min-width: 0; line-height: 1.25; color: #fff; }
  .m-sticky-code { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; }
  .m-sticky-code strong { font-family: 'JetBrains Mono', monospace; font-size: 15px; letter-spacing: 0; text-transform: none; color: #34d399; background: rgba(16, 185, 129, 0.12); border: 1px dashed rgba(16, 185, 129, 0.5); border-radius: 6px; padding: 1px 8px; margin-left: 4px; }
  .m-sticky-note { font-size: 10.5px; color: #cbd5e1; margin-top: 3px; }
  .m-sticky-copy, .m-sticky-go {
    flex-shrink: 0;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }
  .m-sticky-copy { background: #1a2234; color: #f8fafc; border: 1px solid #374151; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; font-weight: 700; }
  .m-sticky-copy.done { background: #10b981; border-color: #10b981; color: #fff; }
  .m-sticky-go { background: linear-gradient(135deg, #f43f5e 0%, #8b5cf6 50%, #3b82f6 100%); color: #fff; border: 0; border-radius: 10px; padding: 11px 14px; font-size: 12.5px; font-weight: 700; }
  body { padding-bottom: 80px; }
  .toast, .copy-toast { bottom: 92px !important; right: 12px !important; left: 12px; max-width: none; }
}

/* Announcement bar + header stay visible while scrolling (desktop); phones keep the header sticky only */
.sticky-top-stack { display: contents; }
@media (min-width: 769px) {
  .sticky-top-stack { display: block; position: sticky; top: 0; z-index: 100; }
  .sticky-top-stack .site-header { position: static; }
  html { scroll-padding-top: 120px; }
  
}


/* Tap feedback: press-in, pop + ring when a copy / store button is used */
@keyframes tapPop {
  0% { transform: scale(1); }
  30% { transform: scale(0.92); }
  65% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes tapRing {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6); }
  100% { box-shadow: 0 0 0 16px rgba(139, 92, 246, 0); }
}
.tap-pop { animation: tapPop 0.45s ease, tapRing 0.7s ease-out; }
.header-cta, .main-shop-btn, .tier-cta-btn, .promo-cta-link, .top-code-chip, .copy-trigger, .m-sticky-copy, .m-sticky-go, .modal-copy-btn {
  -webkit-tap-highlight-color: rgba(139, 92, 246, 0.25);
  touch-action: manipulation;
}
.header-cta:active, .main-shop-btn:active, .tier-cta-btn:active, .promo-cta-link:active, .top-code-chip:active, .copy-trigger:active, .m-sticky-copy:active, .m-sticky-go:active, .modal-copy-btn:active { transform: scale(0.95); }

/* A hidden toast must never sit on top of the buttons underneath it */
.copy-toast:not(.show),
.toast:not(.show) {
  pointer-events: none;
  visibility: hidden;
}
