/* LeadIdeal V2 - Custom Styles */
/* Optimized for conversions, mobile-first, minimal maintenance */

/* ============================================================================
   CSS Reset & Base
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Logo dark/light mode switching */
.logo-icon .logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-icon .logo-light {
    display: none;
  }

  .logo-icon .logo-dark {
    display: block !important;
  }
}

/* ============================================================================
   Design System - Custom Components (Tailwind Extensions)
   ============================================================================ */

/* Large Touch-Friendly Inputs */
.input-lg {
  height: 56px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #1f2937;
  transition: all 0.2s ease;
}

.input-lg::placeholder {
  color: #9ca3af;
}

.input-lg:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Hero input wrapper for clear button positioning */
.hero-input-wrapper {
  position: relative;
  display: flex;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-input-wrapper {
    margin-bottom: 12px;
  }
}

.hero-input-wrapper .input-lg {
  padding-right: 40px;
}

.input-clear-btn {
  position: absolute;
  right: 8px;
  /* adjusted for larger target */
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  /* Increased to 44px */
  height: 44px;
  /* Increased to 44px */
  padding: 0;
  border: none;
  background: transparent;
  /* Changed to transparent for cleaner look with large target */
  color: #374151;
  font-size: 24px;
  /* Increased for visibility */
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-clear-btn::after {
  content: '×';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #374151;
  color: white;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}

.input-clear-btn:hover::after {
  background: #1f2937;
}

/* Primary CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

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

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {

  .btn-primary,
  .btn-secondary,
  .input-lg {
    height: 48px;
    font-size: 16px;
  }
}

.btn-secondary:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

/* Package Selection Button */
.btn-select {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-select.featured {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-select.featured:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-select.custom {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-select.custom:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* ============================================================================
   Hero Section - Wave Pattern Background
   ============================================================================ */

.hero {
  position: relative;
  background-color: #0a0f1c;
  background-image: url('../images/hero-bg-desktop.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Tablet: Use square background */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    background-image: url('../images/hero-bg-square.png');
    background-position: center top;
  }
}

/* Mobile: Use portrait background */
@media (max-width: 768px) {
  .hero {
    background-image: url('../images/hero-bg-mobile.png');
    background-position: center top;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

/* Cinematic gradient overlay for text contrast — trendy depth effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.1), transparent),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Autocaller Hero ──────────────────────────────────────────────── */
/* V2: Hero uses inline styles on <section> for split-layout design. */
/* Class retained as fallback. */
.hero-autocaller {
  position: relative;
  background: linear-gradient(135deg, #020617 0%, #0f172a 35%, #1e293b 100%);
  min-height: 0;
}

/* ── Deal-Matcher Hero ───────────────────────────────────────────── */
/* Defined inline in deal-matcher.html <style>, CSS class .hero-deal-matcher */
/* Keep wave-pattern class for optional additional effects */
.wave-pattern {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* Search box glassmorphism */
.search-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .search-box {
    padding: 16px;
  }
}

/* ============================================================================
   Package Cards
   ============================================================================ */

.package-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  /* Fixed height layout - buttons align at bottom */
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

@media (max-width: 768px) {
  .package-card {
    min-height: auto;
    padding: 24px;
  }
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.package-card.featured {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #3b82f6;
  transform: scale(1.02);
}

.package-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Promo-active state for Starter card */
.package-card.promo-active {
  border: 2px solid #10b981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 20px;
  white-space: nowrap;
}

.package-badge.featured {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.package-badge.custom {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 16px 0 24px;
  text-align: center;
}

.price-display .text-5xl {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1f2937, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Uniform /report label styling */
.price-display .text-gray-600 {
  font-size: 0.9rem;
  color: #6b7280;
}

.features-list {
  list-style: none;
  margin: 24px 0;
  /* Push buttons to bottom of card */
  flex-grow: 1;
}

.features-list li {
  padding: 8px 0;
  color: #4b5563;
  font-size: 15px;
}

/* Custom package builder */
.custom-expanded {
  animation: expand-in 0.3s ease;
}

@keyframes expand-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Toggle switch */
.toggle-bg {
  position: relative;
  width: 52px;
  height: 28px;
  background: #d1d5db;
  border-radius: 14px;
  transition: background 0.2s;
  cursor: pointer;
}

.toggle-bg::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#phone-toggle:checked~.toggle-bg {
  background: #10b981;
}

#phone-toggle:checked~.toggle-bg::after {
  transform: translateX(24px);
}

/* ============================================================================
   Payment Modal
   ============================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hide language switch button when any modal is open */
body:has(.modal-overlay.active) .lang-switch {
  display: none !important;
}
/* Geo gating: hide Hebrew switch by default until geo resolves */
.lang-switch[data-lang-switch="he"] {
  display: none;
}
.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
  /* Changed from auto to hidden */
  display: flex;
  /* Added for child scroll containment */
  flex-direction: column;
  /* Added for child scroll containment */
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  position: relative;
  -webkit-overflow-scrolling: touch;
    /* smooth momentum scroll on iOS */
}

/* Custom Scrollbar for Modal Body (Floating & Inset) */
.modal-body::-webkit-scrollbar {
  width: 12px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
  /* Fixes sharp corner issue by letting container clipping show through */
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 20px;
  border: 3px solid transparent;
  /* Creates the inset look */
  background-clip: content-box;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

/* Firefox support */
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f9fafb;
}

/* Mobile: Centered Modal (replaces Bottom sheet) */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: center;
      /* Center vertically instead of flex-end */
  }

  .modal-container {
    width: 95%;
      max-height: 85vh;
      /* Leave space top and bottom */
      max-height: calc(85dvh - env(safe-area-inset-bottom, 0px));
      border-radius: 16px;
      /* Consistent rounded corners */
      transform: scale(0.95);
      /* Desktop-style animation */
      padding-bottom: 0;
  }

  .modal-overlay.active .modal-container {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .modal-header {
    padding: 16px 20px;
  }
}
.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.modal-back,
.modal-close {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-back:hover,
.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* Payment tabs */
.payment-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.payment-tabs .tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-tabs .tab.active {
  color: #1f2937;
  background: white;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-panel {
  padding: 24px;
}

@media (max-width: 768px) {
  .payment-panel {
    padding: 16px 20px;
  }
}
.payment-panel.hidden {
  display: none;
}

/* Order summary */
.order-summary {
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  margin: 24px;
}

@media (max-width: 768px) {
  .order-summary {
    padding: 16px;
    margin: 16px 20px;
  }
}
/* Stripe card element */
.stripe-card-element {
  padding: 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.stripe-card-element:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Legal consent */
.legal-consent {
  padding: 0 24px 24px;
}

@media (max-width: 768px) {
  .legal-consent {
    padding: 0 20px 20px;
  }
}
.legal-consent label {
  cursor: pointer;
}

.legal-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================================
   Animations
   ============================================================================ */

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

.animate-fade-in-delay {
  animation: fade-in 0.6s ease-out 0.2s both;
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  h1.text-4xl {
    font-size: 2rem !important;
    /* 32px */
    line-height: 1.2;
  }

  h2.text-4xl {
    font-size: 1.75rem !important;
    /* 28px */
  }

  .text-xl {
    font-size: 1rem !important;
  }
}

/* ============================================================================
   Promo Code Styling - V2
   ============================================================================ */

/* Promo badge - single line, compact */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.promo-badge svg {
  width: 14px;
  height: 14px;
}

/* Promo price display */
.promo-price {
  font-size: 3rem;
  font-weight: 700;
  color: #10b981;
  text-align: center;
}

/* Original price strikethrough */
.original-price-line {
  text-align: center;
  margin-bottom: 4px;
}

.original-price-line .line-through {
  font-size: 1.2rem;
  color: #9ca3af;
  text-decoration: line-through;
}

/* Promo button styling */
.btn-select.promo-btn {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-select.promo-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Card title centering */
.package-card h3 {
  text-align: center;
}

/* Promo badge at card top (replaces 'Try Risk-Free' when promo active) */
.promo-badge-top {
  background: linear-gradient(135deg, #34d399, #2dd4bf) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

/* ============================================================================
   ICP Form - Mobile-First Responsive Design (2026 Best Practices)
   ============================================================================ */

/* Base form layout */
#icp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form group container */
#icp-form>div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Consistent label styling */
#icp-form label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
}

/* All inputs and selects - consistent sizing */
#icp-form input[type="text"],
#icp-form input[type="email"],
#icp-form select {
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 400;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

#icp-form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 36px;
}

#icp-form input:focus,
#icp-form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#icp-form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Location grid - responsive */
#icp-form .grid-cols-3 {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  #icp-form .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Custom inputs (hidden by default) */
#icp-region-custom,
#icp-city-custom,
#icp-job-title-custom {
  margin-top: 8px;
}

/* Form hints */
#icp-form p.text-xs {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

/* Error states */
#icp-form input.error,
#icp-form select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

#icp-form .error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}

/* Submit button enhancement */
#icp-form .btn-primary {
  margin-top: 8px;
  height: 52px;
  font-size: 16px;
}

/* Modal container adjustments for ICP */
#icp-modal .modal-container {
  max-width: 520px;
}

@media (max-width: 480px) {
  #icp-modal .modal-container {
    max-width: 100%;
  }

  #icp-modal .p-6 {
    padding: 16px;
  }

  /* Stack package summary on mobile */
  #icp-modal .bg-blue-50 .flex {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  #icp-modal .bg-blue-50 .text-right {
    text-align: center;
  }
}

/* Disabled select styling */
#icp-form select:disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ============================================================================
   Package Navigation (ICP Modal)
   ============================================================================ */


.package-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.package-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #6b7280;
}

.package-nav-btn:hover:not(:disabled) {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.package-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.package-nav-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================================================
   Toast Notifications
   ============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
}

.toast-error {
  background: #ef4444;
  color: white;
}

.toast-info {
  background: #3b82f6;
  color: white;
}

.toast-success {
  background: #10b981;
  color: white;
}

/* ============================================================================
   Stripe Tab Visibility (dev only) - DEPRECATED
   ============================================================================ */

/* Payment tabs have been removed - PayPal is the only payment method */

/* ============================================================================
   Promo Interstitial Slide-in Panel
   ============================================================================ */

/* Body scroll-lock when any overlay is open */
body.scroll-locked {
  overflow: hidden !important;
}
.promo-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-interstitial.active {
  display: flex;
  opacity: 1;
}

.promo-panel-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.promo-panel-content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.promo-interstitial.active .promo-panel-content {
  transform: translateX(0);
}

.promo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.promo-content {
  flex: 0 0 auto;
    min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: 48px 32px;
  text-align: center;
}

.promo-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-12px);
  }

  60% {
    transform: translateY(-6px);
  }
}

.promo-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0 0 8px 0;
}

.promo-subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  margin: 0 0 32px 0;
}

.promo-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.promo-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.promo-details .promo-price {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-details .original-price {
  font-size: 1.5rem;
  color: #6b7280;
  text-decoration: line-through;
}

.promo-details .free-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #10b981;
}

.promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
  width: 100%;
  max-width: 300px;
}

.promo-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: #e5e7eb;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-features li:last-child {
  border-bottom: none;
}

.promo-features .check-icon {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.promo-ctas {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-promo-accept {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-promo-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-promo-skip {
  width: 100%;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #9ca3af;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-promo-skip:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .promo-panel-content {
    max-width: 100%;
  }

  .promo-content {
    padding: 32px 24px;
  }

  .promo-icon {
    font-size: 48px;
  }

  .promo-title {
    font-size: 1.5rem;
  }

  .promo-subtitle {
    font-size: 1rem;
  }

  .promo-details .free-price {
    font-size: 2rem;
  }
}

/* ── CTA Banner ─────────────────────────────────────── */
.cta-banner-link {
  text-decoration: none;
  color: inherit;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.cta-banner {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  gap: 16px;
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cta-banner-headline {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.cta-banner-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 400;
  margin: 4px 0 0 0;
}

.cta-banner-arrow {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Desktop: full clickable, 50px closer to sample table */
@media (min-width: 768px) {
  .cta-banner-link {
    margin-top: -50px;
    position: relative;
    z-index: 5;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    margin-bottom: -30px;
    transition: box-shadow 0.2s ease;
  }

  .cta-banner-link:hover {
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.45);
  }

  .cta-banner-link:hover .cta-banner-arrow {
    transform: translateX(4px);
  }

  .cta-banner {
    border-radius: 12px;
    padding: 24px 32px;
  }
}

/* Mobile: stack vertically, full width */
@media (max-width: 767px) {
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-content {
    flex-direction: column;
    gap: 8px;
  }

  .cta-banner-headline {
    font-size: 1.1rem;
  }

  .cta-banner-arrow {
    display: none;
  }
}

/* RTL support for HE */
[dir="rtl"] .cta-banner-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .cta-banner-link:hover .cta-banner-arrow {
  transform: scaleX(-1) translateX(4px);
}

/* ── RTL Promo Panel Overrides ──────────────────────── */
[dir="rtl"] .promo-panel-content {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  border-radius: 0 16px 16px 0;
}
[dir="rtl"] .promo-panel-content.promo-panel-visible {
  transform: translateX(0);
}
[dir="rtl"] .promo-close-btn {
  right: auto;
  left: 16px;
}
[dir="rtl"] .promo-features li {
  direction: rtl;
  text-align: right;
}
