/* ─────────────────────────────────────────────────────────────────────────────
 * index.css
 * Design System for Checkout Funnel
 * Dark theme with premium glassmorphism, gradients, and micro-animations
 * ───────────────────────────────────────────────────────────────────────────── */

/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --color-primary: #007bff; /* Mayar Blue */
  --color-primary-light: #4da3ff;
  --color-primary-dark: #0056b3;
  --color-primary-glow: rgba(0, 123, 255, 0.2);

  /* Accent */
  --color-accent: #f39c12; /* Orange */
  --color-accent-light: #f1c40f;
  --color-accent-glow: rgba(243, 156, 18, 0.2);

  /* Status */
  --color-success: #28a745;
  --color-warning: #ff9800;
  --color-danger: #dc3545;
  --color-danger-glow: rgba(220, 53, 69, 0.2);
  --color-info: #17a2b8;

  /* Backgrounds */
  --bg-body: #F4F6F9; /* Light greyish body */
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FA;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-strong: rgba(0, 0, 0, 0.05);
  --bg-input: #FFFFFF;
  --bg-input-focus: #FFFFFF;

  /* Text */
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-inverse: #FFFFFF;

  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-default: rgba(0, 0, 0, 0.1);
  --border-focus: var(--color-primary);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 15px var(--color-primary-glow);
  --shadow-glow-accent: 0 0 15px var(--color-accent-glow);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, var(--color-primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.checkout-container {
  position: relative;
  z-index: var(--z-base);
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  min-height: 100dvh;
}

/* ─── Step System ──────────────────────────────────────────────────────────── */
.funnel-step {
  display: none;
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) forwards;
}

.funnel-step.active {
  display: block;
}

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

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-200px) rotate(720deg); opacity: 0; }
}

/* ─── Progress Bar ─────────────────────────────────────────────────────────── */
.progress-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-strong);
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.progress-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.progress-dot.completed {
  background: var(--color-success);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--bg-glass-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-line.filled {
  background: var(--color-primary);
}

.progress-line.filled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
  background-size: 200% 100%;
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: rgba(108, 92, 231, 0.2);
  box-shadow: var(--shadow-md);
}

.card--elevated {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(108, 92, 231, 0.3);
}

.card--accent {
  border-color: rgba(0, 206, 201, 0.3);
  box-shadow: var(--shadow-md), var(--shadow-glow-accent);
}

.card--danger {
  border-color: rgba(255, 107, 107, 0.3);
}

/* ─── Badge ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  animation: float 3s ease-in-out infinite;
}

.badge--warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.badge--danger {
  background: linear-gradient(135deg, var(--color-danger), #ee5a24);
}

.badge--success {
  background: linear-gradient(135deg, var(--color-success), #00CEC9);
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
.heading-xl {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heading-lg {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-md {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
}

.heading-sm {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
}

.text-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Price Display ────────────────────────────────────────────────────────── */
.price-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.price-current {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.price-original {
  font-size: var(--text-lg);
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-danger);
  background: var(--color-danger-glow);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
}

/* ─── Benefits List ────────────────────────────────────────────────────────── */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
}

.benefits-list li::before {
  content: '✓';
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(0, 184, 148, 0.15);
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: 700;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-align: center;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

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

/* Primary CTA */
.btn-primary {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-primary-glow);
}

.btn-primary:not(:disabled):active {
  transform: translateY(0);
}

/* Accent CTA (for upsell) */
.btn-accent {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-accent), #00B894);
  color: var(--text-inverse);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-accent:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

/* Ghost / Decline button */
.btn-ghost {
  width: 100%;
  padding: var(--space-md);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--bg-glass);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

/* ─── Forms ────────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--duration-normal) ease;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--color-danger);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  display: none;
}

.form-error.visible {
  display: block;
}

/* ─── Order Bump Checkbox ──────────────────────────────────────────────────── */
.order-bump-card {
  position: relative;
  cursor: pointer;
  border: 2px dashed rgba(253, 203, 110, 0.3);
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.05), rgba(255, 107, 107, 0.03));
  transition: all var(--duration-normal) var(--ease-out);
  animation: wiggle 4s ease-in-out infinite;
}

.order-bump-card:hover {
  border-color: rgba(253, 203, 110, 0.5);
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.08), rgba(255, 107, 107, 0.05));
}

.order-bump-card.selected {
  border-style: solid;
  border-color: var(--color-warning);
  box-shadow: 0 0 20px rgba(253, 203, 110, 0.15);
  animation: none;
}

.order-bump-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

.order-bump-checkbox input[type="checkbox"] {
  display: none;
}

.order-bump-checkmark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-default);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}

.order-bump-checkbox input:checked ~ .order-bump-checkmark {
  background: var(--color-warning);
  border-color: var(--color-warning);
}

.order-bump-checkbox input:checked ~ .order-bump-checkmark::after {
  content: '✓';
  color: var(--text-inverse);
  font-weight: 900;
  font-size: var(--text-sm);
}

/* ─── Countdown Timer ──────────────────────────────────────────────────────── */
.countdown-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.1), rgba(253, 203, 110, 0.1));
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-danger);
}

.countdown-digits {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-warning);
  min-width: 60px;
  text-align: center;
}

/* ─── Testimonial ──────────────────────────────────────────────────────────── */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--color-warning);
  letter-spacing: 2px;
}

/* ─── Body scroll lock when modal is open ──────────────────────────────────── */
body.modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

/* ─── Payment Modal / Embed ────────────────────────────────────────────────── */
.payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: fadeIn var(--duration-normal) ease;
  overscroll-behavior: contain;
}

.payment-overlay.active {
  display: flex;
}

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

.payment-modal {
  width: 100%;
  max-width: 500px;
  height: 85dvh;
  max-height: 85dvh;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleIn var(--duration-normal) var(--ease-bounce);
  position: relative;
  z-index: var(--z-modal);
}

.payment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.payment-modal-title {
  font-size: var(--text-base);
  font-weight: 700;
}

.payment-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
  flex-shrink: 0;
}

.payment-modal-close:hover {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
}

.payment-iframe-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.payment-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  -webkit-overflow-scrolling: touch;
  overflow: auto;
}

.payment-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: var(--bg-surface);
  z-index: 1;
}

.payment-loading.hidden {
  display: none;
}

/* ─── Spinner ──────────────────────────────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-glass-strong);
  border-top-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-inline {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* ─── Voucher Card ─────────────────────────────────────────────────────────── */
.voucher-card {
  position: relative;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.1));
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  overflow: hidden;
}

.voucher-card::before,
.voucher-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--bg-body);
  border-radius: var(--radius-full);
  top: 50%;
  transform: translateY(-50%);
}

.voucher-card::before {
  left: -15px;
}

.voucher-card::after {
  right: -15px;
}

.voucher-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  padding: var(--space-sm) var(--space-xl);
  background: var(--bg-glass-strong);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.voucher-code:hover {
  background: var(--bg-glass);
  transform: scale(1.02);
}

.voucher-code.copied {
  color: var(--color-success);
}

/* ─── Thank You ────────────────────────────────────────────────────────────── */
.thank-you-emoji {
  font-size: 4rem;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-toast);
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-in-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ─── Divider ──────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ─── Security Badges ──────────────────────────────────────────────────────── */
.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.security-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ─── Error Toast ──────────────────────────────────────────────────────────── */
.error-toast {
  position: fixed;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(-200%);
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.08));
  border: 1px solid rgba(255, 107, 107, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--color-danger);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: var(--z-toast);
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out);
  max-width: 90%;
  text-align: center;
}

.error-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ─── Utilities ────────────────────────────────────────────────────────────── */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
  }

  .checkout-container {
    padding: var(--space-md) var(--space-sm);
  }

  .card {
    padding: var(--space-lg);
  }

  .price-current {
    font-size: var(--text-3xl);
  }

  .payment-overlay {
    padding: 0;
  }

  .payment-modal {
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
 * NEW PREMIUM ONE-PAGE CHECKOUT STYLES 
 * ───────────────────────────────────────────────────────────────────────────── */

/* Scarcity Banner */
.scarcity-banner {
  background: rgba(230, 126, 34, 0.1);
  border: 1px solid rgba(230, 126, 34, 0.3);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.scarcity-banner .countdown-timer {
  font-size: var(--text-base);
  font-weight: 800;
  padding: var(--space-xs) var(--space-md);
}

/* Card Additions */
.checkout-card {
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.checkout-card .card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
  text-transform: uppercase;
}

/* Form Input Icons */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: var(--space-md);
  font-size: var(--text-lg);
  color: var(--text-muted);
}
.input-icon-wrapper .form-input {
  padding-left: 3rem; /* Make room for icon */
  border-radius: var(--radius-md);
}

/* Order Bump Box with Toggle */
.order-bump-box {
  background: rgba(243, 156, 18, 0.05);
  border: 2px dashed rgba(243, 156, 18, 0.4);
  transition: all var(--duration-normal) var(--ease-out);
}
.order-bump-box.selected {
  background: rgba(243, 156, 18, 0.1);
  border: 2px solid var(--color-warning);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bump-title {
  font-weight: 800;
  color: var(--text-heading);
}

/* Hand Icon Animation */
.bump-hand-icon {
  display: inline-block;
  font-size: 2rem;
  animation: fastPulseGlow 0.6s infinite alternate ease-in-out;
  transition: all 0.3s ease;
  transform-origin: center right;
}
.order-bump-box.selected .bump-hand-icon {
  opacity: 0;
  transform: scale(0);
  width: 0;
  margin: 0;
}
@keyframes fastPulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(243, 156, 18, 0.4)); }
  100% { transform: scale(1.2) translateX(-5px); filter: drop-shadow(0 0 12px rgba(243, 156, 18, 1)); }
}

.bump-price-box {
  background-color: rgba(0, 0, 0, 0.02); /* subtle grayish background */
  border: 1px solid rgba(243, 156, 18, 0.3); /* yellowish/orange outline */
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.bump-price-box > div {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: nowrap;
}

.price-strike {
  text-decoration: line-through;
  white-space: nowrap;
  color: var(--text-muted);
}

/* Mobile responsive for bump price box */
@media (max-width: 480px) {
  .bump-price-box {
    padding: var(--space-xs) var(--space-sm);
  }
  .bump-price-box > div {
    gap: var(--space-xs);
  }
  .bump-price-box .price-strike {
    font-size: 0.7rem;
  }
  .bump-price-box .price-add {
    font-size: 1rem;
  }
  .bump-price-box .limited-text {
    font-size: 0.65rem;
  }
}

/* Order Bump Image */
.bump-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

/* Hint text below bump */
.bump-hint {
  color: var(--text-muted) !important;
  font-size: 0.75rem !important; /* Smaller size */
}

/* Toggle Switch (Apple-style) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-default);
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  box-shadow: var(--shadow-sm);
}
input:checked + .slider {
  background-color: var(--color-warning);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--color-warning);
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Summary Box */
.summary-row {
  padding: var(--space-sm) 0;
}
.bump-row {
  display: none;
  animation: slideDown 0.3s ease forwards;
}
.bump-row.active {
  display: flex;
}

/* Price Animation */
@keyframes highlightPrice {
  0% { transform: scale(1); color: var(--color-primary); }
  50% { transform: scale(1.1); color: var(--color-warning); }
  100% { transform: scale(1); color: var(--color-primary); }
}
.animate-price {
  animation: highlightPrice 0.5s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Social Proof Bar */
.social-proof-bar {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Trust Badges bottom */
.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Typography & Layout Utilities (Added for strict compliance) */
.font-bold { font-weight: 700 !important; }
.text-danger { color: var(--color-danger) !important; }
.text-primary { color: var(--color-primary) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.leading-tight { line-height: 1.2 !important; }
.leading-relaxed { line-height: 1.6 !important; }
.text-left { text-align: left !important; }

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-xs { padding: var(--space-xs) !important; }
.p-sm { padding: var(--space-sm) !important; }
.p-md { padding: var(--space-md) !important; }
.p-lg { padding: var(--space-lg) !important; }
.p-xl { padding: var(--space-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-xs) !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
