/* ══════════════════════════════════════════════════════════════════
   TURECARGA — Premium Red Design System & Liquid Glass Styles
   Vibrant Crimson & Ruby Aesthetic • 50% Extra Balance Platform
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ── Vibrant Red Color System ── */
  --primary-red: #E50914;
  --primary-red-hover: #D00812;
  --primary-red-active: #B8050E;
  --primary-red-glow: rgba(229, 9, 20, 0.28);
  --primary-red-subtle: rgba(229, 9, 20, 0.08);
  --primary-red-border: rgba(229, 9, 20, 0.22);
  --ruby-light: #FF334B;
  --ruby-dark: #990000;
  
  --gradient-red: linear-gradient(135deg, #FF2E4C 0%, #E50914 52%, #B8050E 100%);
  --gradient-red-hover: linear-gradient(135deg, #FF4560 0%, #F51824 52%, #D00812 100%);
  --gradient-red-glow: 0 10px 28px -6px rgba(229, 9, 20, 0.45);
  
  --apple-bg: #f8f9fb;
  --apple-text: #111827;
  --apple-text-secondary: #6B7280;
  --apple-text-tertiary: #9CA3AF;
  
  --accent-green: #10B981;
  --accent-green-bg: #ECFDF5;
  --accent-orange: #F59E0B;

  /* ── Surfaces & Borders ── */
  --card-bg: #ffffff;
  --card-border: #E5E7EB;
  --card-shadow: 0 24px 60px -15px rgba(229, 9, 20, 0.08), 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-blur: blur(24px) saturate(190%);

  /* ── Physics & Animation ── */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.18s var(--ease-apple);
  --transition-normal: 0.28s var(--ease-apple);

  /* ── Radii ── */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;
}

/* ── Global Reset & Typography ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #faf5f5 45%, #f4e8e8 100%);
  background-attachment: fixed;
  color: var(--apple-text);
  line-height: 1.45;
  letter-spacing: -0.015em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── Ambient Studio Lighting (Red / Crimson Glow) ── */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 46, 76, 0.18) 0%, rgba(229, 9, 20, 0.08) 45%, transparent 75%);
  top: -140px;
  left: 15%;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.14) 0%, rgba(255, 255, 255, 0.7) 50%, transparent 80%);
  top: 30%;
  right: -80px;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 51, 75, 0.12) 0%, transparent 70%);
  bottom: -60px;
  left: 5%;
}

/* ── Layout Viewport Container ── */
.app-viewport {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar Header ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(229, 9, 20, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px -8px rgba(229, 9, 20, 0.08);
  margin-bottom: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--apple-text);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
}

.brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111827;
}

.brand-title span {
  color: var(--primary-red);
}

.nav-pill-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-red-subtle);
  border: 1px solid var(--primary-red-border);
  color: var(--primary-red);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  animation: pulseBadge 2.2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.2); }
  50% { transform: scale(1.03); box-shadow: 0 0 12px 2px rgba(229, 9, 20, 0.25); }
}

.nav-security {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--apple-text-secondary);
  font-size: 12.5px;
  font-weight: 600;
}

.nav-security svg {
  color: var(--accent-green);
}

/* ── Step Progress Navigator ── */
.step-progress-nav {
  margin-bottom: 22px;
}

.step-progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}

.step-progress-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  background: var(--gradient-red);
  border-radius: var(--radius-md);
  box-shadow: var(--gradient-red-glow);
  transition: transform 0.35s var(--ease-spring), width 0.35s var(--ease-apple);
  z-index: 0;
  pointer-events: none;
}

.step-nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--apple-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.step-nav-item.active {
  color: #ffffff;
}

.step-nav-item.completed {
  color: var(--primary-red);
}

.step-nav-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.step-nav-item.active .step-nav-dot {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.step-nav-item.completed .step-nav-dot {
  background: var(--primary-red-subtle);
  color: var(--primary-red);
}

/* ── Selected Operator Floating Bar ── */
.selected-operator-bar-container {
  display: none;
  margin-bottom: 18px;
  animation: slideDownFade 0.3s var(--ease-apple);
}

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

.selected-operator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid var(--primary-red-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px -6px rgba(229, 9, 20, 0.1);
}

.operator-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-logo-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fafafa;
  padding: 4px;
}

.operator-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.operator-bar-text {
  font-size: 13.5px;
  color: var(--apple-text);
}

.operator-bar-text strong {
  color: var(--primary-red);
  font-weight: 800;
}

.operator-bar-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Main Wizard Centerpiece Glass Card ── */
.wizard-container {
  flex: 1;
}

.wizard-glass-panel {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding: 34px 30px;
  position: relative;
}

.wizard-step {
  display: none;
  animation: stepFadeIn 0.32s var(--ease-apple);
}

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

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

.step-header {
  text-align: center;
  margin-bottom: 28px;
}

.step-badge-mini {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-red);
  background: var(--primary-red-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.step-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14.5px;
  color: var(--apple-text-secondary);
}

.text-red-highlight {
  color: var(--primary-red);
  font-weight: 700;
}

/* ── Step 1: Carrier Grid (Antel, Claro, Movistar) ── */
.carrier-grid-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 10px 0 20px;
}

.carrier-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #F3F4F6;
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  outline: none;
}

.carrier-card:hover {
  border-color: rgba(229, 9, 20, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -8px rgba(229, 9, 20, 0.12);
}

.carrier-card.selected {
  border-color: var(--primary-red);
  background: #fffafa;
  box-shadow: 0 16px 36px -10px rgba(229, 9, 20, 0.2), 0 0 0 3px rgba(229, 9, 20, 0.1);
  transform: translateY(-2px);
}

.carrier-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.carrier-card.selected .carrier-card-badge {
  background: var(--gradient-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.carrier-card-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.carrier-card-logo img {
  max-width: 90px;
  max-height: 50px;
  object-fit: contain;
}

.carrier-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
}

.carrier-card-sub {
  font-size: 12px;
  color: var(--apple-text-secondary);
}

/* ── Step 2: Form Inputs ── */
.step-form-body {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #374151;
}

.input-container-apple {
  position: relative;
  display: flex;
  align-items: center;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.input-container-apple:focus-within {
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.country-pill {
  padding: 0 14px;
  background: #F3F4F6;
  border-right: 1.5px solid #E5E7EB;
  height: 48px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #4B5563;
  user-select: none;
}

.apple-input-field {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  outline: none;
}

.apple-input-field.full {
  width: 100%;
}

.field-hint {
  font-size: 12px;
  color: var(--apple-text-secondary);
  line-height: 1.35;
}

/* ── Step 3: Balance Dynamic Showcase & Amount Grid ── */
.apple-balance-showcase {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFF0F1 100%);
  border: 1.5px solid var(--primary-red-border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px -8px rgba(229, 9, 20, 0.12);
}

.showcase-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--apple-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.showcase-val-pay {
  font-size: 24px;
  font-weight: 800;
  color: #374151;
}

.showcase-arrow {
  color: var(--primary-red);
  animation: bounceRight 1.5s infinite ease-in-out;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

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

.showcase-bonus-pill {
  background: var(--gradient-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.35);
}

.showcase-val-total {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: -0.02em;
}

.currency-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--apple-text-secondary);
}

.amount-grid-generic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.amount-card-step {
  position: relative;
  background: #ffffff;
  border: 2px solid #F3F4F6;
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.amount-card-step:hover {
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateY(-2px);
}

.amount-card-step.selected {
  border-color: var(--primary-red);
  background: #FFF8F8;
  box-shadow: 0 10px 24px -6px rgba(229, 9, 20, 0.18), 0 0 0 2px rgba(229, 9, 20, 0.12);
}

.card-check-mini {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.amount-card-step.selected .card-check-mini {
  background: var(--gradient-red);
  color: #ffffff;
}

.card-badge-popular {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(229, 9, 20, 0.3);
}

.card-badge-popular.badge-best {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.amount-pay-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.amount-recibe-tag {
  display: block;
  font-size: 11.5px;
  color: var(--apple-text-secondary);
}

.amount-recibe-tag strong {
  color: var(--primary-red);
  font-weight: 800;
}

/* Custom amount */
.custom-amount-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-custom-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #4B5563;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-custom-toggle:hover, .btn-custom-toggle.active {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: var(--primary-red-subtle);
}

.custom-amount-input-box {
  width: 100%;
  max-width: 360px;
}

/* ── Step 4: Payment (2 Columns Grid) ── */
.payment-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: start;
}

/* 3D Virtual Card Showcase */
.card-showcase-wrapper {
  perspective: 1000px;
  margin-bottom: 20px;
}

.card-perspective {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.virtual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  user-select: none;
}

.virtual-card.red-skin {
  background: linear-gradient(135deg, #1e0507 0%, #8a0b12 40%, #e50914 100%);
}

.virtual-card.visa-skin {
  background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
}

.virtual-card.master-skin {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

.virtual-card.oca-skin {
  background: linear-gradient(135deg, #0A5071 0%, #1783B5 100%);
}

.card-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 100%);
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chip-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emv-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #E6CA65 0%, #BA9734 100%);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.contactless-icon svg {
  color: rgba(255, 255, 255, 0.7);
}

.card-brand-display img {
  height: 26px;
  object-fit: contain;
}

.card-number-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 19px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.card-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 2px;
}

.card-holder-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.card-exp-value {
  font-size: 13px;
  font-weight: 700;
}

/* Order Summary Box */
.order-final-summary {
  background: #F9FAFB;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.final-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--apple-text-secondary);
}

.final-summary-row strong {
  color: #111827;
}

.final-summary-row.highlight {
  padding-top: 8px;
  border-top: 1px dashed #E5E7EB;
  color: var(--primary-red);
}

.final-summary-row.highlight strong {
  color: var(--primary-red);
  font-size: 15px;
  font-weight: 800;
}

/* Payment Selector Tabs */
.pm-selector-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.pm-tab-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: #ffffff;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #4B5563;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pm-tab-btn img {
  height: 20px;
  object-fit: contain;
}

.pm-tab-btn.selected {
  border-color: var(--primary-red);
  background: #FFF8F8;
  color: var(--primary-red);
}

.pm-tab-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 800;
  color: var(--primary-red);
  opacity: 0;
}

.pm-tab-btn.selected .pm-tab-badge {
  opacity: 1;
}

/* Card Inputs */
#paymentCardForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apple-input, .apple-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  outline: none;
  transition: all var(--transition-fast);
}

.apple-input:focus, .apple-select:focus {
  border-color: var(--primary-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
}

.input-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-right {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--apple-text-secondary);
}

.terms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--apple-text-secondary);
  cursor: pointer;
  margin-top: 4px;
}

.terms-row input {
  accent-color: var(--primary-red);
  width: 16px;
  height: 16px;
}

.terms-link {
  color: var(--primary-red);
  text-decoration: underline;
}

/* ── Wizard Footer Navigation ── */
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #F3F4F6;
}

.nav-btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F3F4F6;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #4B5563;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-btn-back:hover {
  background: #E5E7EB;
  color: #111827;
}

.nav-btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-red);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 34px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--gradient-red-glow);
  transition: all var(--transition-normal);
  min-width: 160px;
}

.nav-btn-next:hover {
  background: var(--gradient-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(229, 9, 20, 0.5);
}

.nav-btn-next:active {
  transform: scale(0.98);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ── Success Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

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

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  animation: popUp 0.35s var(--ease-spring);
}

@keyframes popUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-check-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid #A7F3D0;
}

.receipt-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--apple-text-secondary);
}

.receipt-row strong {
  color: #111827;
}

.cta-button {
  width: 100%;
  padding: 14px;
  background: var(--gradient-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--gradient-red-glow);
  transition: all var(--transition-fast);
}

.cta-button:hover {
  background: var(--gradient-red-hover);
  transform: translateY(-2px);
}

/* ── Redesigned Footer ── */
.app-footer {
  margin-top: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--apple-text-secondary);
}

.app-footer p {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Responsive Queries ── */
@media (max-width: 700px) {
  .app-viewport {
    padding: 14px 12px 40px;
  }
  
  .wizard-glass-panel {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .step-progress-nav .step-nav-label {
    display: none;
  }
  
  .carrier-grid-triple {
    gap: 10px;
  }

  .carrier-card {
    padding: 16px 8px;
  }

  .carrier-card-logo img {
    max-width: 70px;
    max-height: 40px;
  }

  .carrier-card-name {
    font-size: 14px;
  }

  .payment-2col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-number-display {
    font-size: 16px;
  }

  .step-title {
    font-size: 20px;
  }
}
