/* ═══════════════════════════════════════════════════════════════
   VoicePay AI — Style Sheet
   Premium fintech dashboard inspired by modern banking apps.
   Deep navy, white surfaces, PayPal-blue accents.
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  /* Colors */
  --navy:        #0a1929;
  --navy-soft:   #1a2d45;
  --blue-paypal: #0070BA;
  --blue-dark:   #003087;
  --blue-light:  #e8f4fc;
  --blue-glow:   rgba(0, 112, 186, 0.25);
  --green:       #00a67e;
  --green-light: #e6f9f2;
  --red:         #d9534f;
  --red-light:   #fdecea;
  --amber:       #f5a623;
  --amber-light: #fff8e1;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --white:       #ffffff;

  /* Typography */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs:       0.75rem;
  --fs-sm:       0.875rem;
  --fs-base:     1rem;
  --fs-lg:       1.125rem;
  --fs-xl:       1.25rem;
  --fs-2xl:      1.5rem;
  --fs-3xl:      2rem;
  --fs-4xl:      2.75rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Radii */
  --r-sm:  0.5rem;
  --r-md:  0.75rem;
  --r-lg:  1rem;
  --r-xl:  1.25rem;
  --r-2xl: 1.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl:  0 12px 40px rgba(0,0,0,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  200ms;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── RESET / BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--navy);
  background: var(--gray-50);
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { color: var(--blue-paypal); text-decoration: none; }
a:hover { text-decoration: underline; }

.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: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  background: var(--blue-paypal); color: var(--white);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { border-radius: var(--r-md); }
.logo-text {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-accent {
  background: linear-gradient(135deg, var(--blue-paypal), var(--blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sp-1);
}
.nav-link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-600);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  text-decoration: none;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--blue-light);
  color: var(--blue-paypal);
  text-decoration: none;
}
.nav-link.active {
  background: var(--blue-light);
  color: var(--blue-paypal);
  font-weight: 600;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-light);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  white-space: nowrap;
}
.sandbox-badge svg { width: 14px; height: 14px; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  color: var(--gray-600);
  transition: background var(--dur) var(--ease);
}
.mobile-menu-btn:hover { background: var(--gray-100); }
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--sp-4) var(--sp-6);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav-link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.mobile-nav-link:hover { background: var(--blue-light); color: var(--blue-paypal); text-decoration: none; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .sandbox-badge span:not(.sandbox-badge svg) { /* keep icon on mobile */ }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-light) 100%);
  padding: var(--sp-16) 0 var(--sp-12);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}

.hero-sub {
  font-size: var(--fs-lg);
  color: var(--gray-500);
  margin-bottom: var(--sp-8);
  max-width: 440px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.hero-privacy {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--gray-400);
}
.hero-privacy svg { width: 16px; height: 16px; color: var(--green); }

/* Waveform visual */
.hero-visual {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.waveform-hero {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 120px;
}

.wave-bar {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-paypal), var(--blue-dark));
  animation: wave 1.4s ease-in-out infinite;
  opacity: 0.6;
}
.wave-bar:nth-child(1) { height: 30px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 50px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 70px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 90px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 100px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 90px; animation-delay: 0.5s; }
.wave-bar:nth-child(7) { height: 70px; animation-delay: 0.6s; }
.wave-bar:nth-child(8) { height: 50px; animation-delay: 0.7s; }
.wave-bar:nth-child(9) { height: 30px; animation-delay: 0.8s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 0.8; }
}

@media (max-width: 768px) {
  .hero { padding: var(--sp-10) 0 var(--sp-8); }
  .hero-inner { flex-direction: column; text-align: center; gap: var(--sp-8); }
  .hero-text h1 { font-size: var(--fs-3xl); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-privacy { justify-content: center; }
  .hero-visual { flex: none; }
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border: none;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:focus-visible {
  outline: 3px solid var(--blue-glow);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-paypal), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 48, 135, 0.25);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(0, 48, 135, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--fs-base);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section {
  padding: var(--sp-12) 0;
}
.section-alt {
  background: var(--white);
}
.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--sp-10);
  color: var(--navy);
}

/* ═══════════════════════════════════════
   PAYMENT CARD
   ═══════════════════════════════════════ */
.payment-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  border: 1px solid var(--gray-100);
}

/* Status bar */
.status-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-500);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background var(--dur) var(--ease);
}
.status-dot.ready     { background: var(--green); }
.status-dot.listening { background: var(--blue-paypal); animation: pulse-dot 1s infinite; }
.status-dot.processing{ background: var(--amber); animation: pulse-dot 1.2s infinite; }
.status-dot.error     { background: var(--red); }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

/* Mic area */
.mic-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
}

.mic-btn {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue-paypal), var(--blue-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 112, 186, 0.35);
  transition: all var(--dur) var(--ease);
}
.mic-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(0, 112, 186, 0.45);
}
.mic-btn:active:not(:disabled) { transform: scale(0.97); }
.mic-btn:focus-visible { outline: 3px solid var(--blue-glow); outline-offset: 4px; }

.mic-btn.listening {
  background: var(--red);
  box-shadow: 0 4px 20px rgba(217, 83, 79, 0.4);
}

.mic-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid var(--blue-paypal);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.mic-btn.listening .mic-ring {
  opacity: 1;
  animation: mic-pulse 1.5s ease-out infinite;
}
@keyframes mic-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

.mic-instruction {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  text-align: center;
}

.mic-unsupported {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--amber);
  background: var(--amber-light);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
}
.mic-unsupported svg { width: 16px; height: 16px; }

/* Transcription */
.transcription-area {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.transcription-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: var(--sp-2);
}
.transcription-label svg { width: 14px; height: 14px; }
.transcription-text {
  font-size: var(--fs-base);
  color: var(--navy);
  min-height: 1.6em;
}

/* Language row */
.language-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.lang-label {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--gray-500);
  white-space: nowrap;
}
.lang-label svg { width: 16px; height: 16px; }
.lang-select {
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.lang-select:focus { border-color: var(--blue-paypal); outline: none; }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-4) 0;
  color: var(--gray-400);
  font-size: var(--fs-sm);
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Text input */
.text-input-row {
  display: flex;
  gap: var(--sp-2);
}
.text-input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-full);
  font-size: var(--fs-base);
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.text-input::placeholder { color: var(--gray-400); }
.text-input:focus {
  outline: none;
  border-color: var(--blue-paypal);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.btn-send {
  padding: var(--sp-3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

/* Example chips */
.examples-row {
  margin-top: var(--sp-6);
}
.examples-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: var(--sp-3);
}
.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: var(--fs-xs);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip svg { width: 14px; height: 14px; }
.chip:hover {
  background: var(--blue-light);
  border-color: var(--blue-paypal);
  color: var(--blue-paypal);
}
.chip:focus-visible { outline: 2px solid var(--blue-paypal); outline-offset: 2px; }

/* ═══════════════════════════════════════
   REVIEW CARD
   ═══════════════════════════════════════ */
.review-card {
  max-width: 620px;
  margin: var(--sp-6) auto 0;
  background: var(--white);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  border: 1px solid var(--gray-100);
  animation: slideUp 0.3s var(--ease);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.review-header h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy);
}
.review-header h3 svg { width: 20px; height: 20px; color: var(--blue-paypal); }

.ai-badge {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-paypal);
  background: var(--blue-light);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
}

.review-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.review-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}
.review-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--navy);
  background: var(--gray-50);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.review-input:focus {
  outline: none;
  border-color: var(--blue-paypal);
  box-shadow: 0 0 0 3px var(--blue-glow);
  background: var(--white);
}

.review-field-row {
  display: flex;
  gap: var(--sp-4);
}
.review-field-row .review-field { flex: 1; }

.field-hint {
  display: block;
  font-size: var(--fs-xs);
  margin-top: var(--sp-1);
  color: var(--red);
  min-height: 1.2em;
}
.field-hint.ai-inferred {
  color: var(--blue-paypal);
}

.review-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.validation-msg {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--red-light);
  color: var(--red);
}

@media (max-width: 480px) {
  .review-field-row { flex-direction: column; gap: var(--sp-5); }
}

/* ═══════════════════════════════════════
   CONFIRMATION MODAL
   ═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 25, 41, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: fadeIn 0.2s var(--ease);
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--white);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-8);
  max-width: 440px;
  width: 100%;
  animation: slideUp 0.3s var(--ease);
}
.modal-card h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-6);
}
.modal-card h3 svg { width: 22px; height: 22px; color: var(--green); }

.confirm-details {
  margin-bottom: var(--sp-6);
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--gray-100);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-label {
  font-size: var(--fs-sm);
  color: var(--gray-500);
}
.confirm-value {
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}
.confirm-amount {
  font-size: var(--fs-xl);
  color: var(--blue-paypal);
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.confirm-actions .btn { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════ */
.checkout-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-8);
  text-align: center;
  border: 1px solid var(--gray-100);
}
.checkout-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}
.checkout-card h3 svg { width: 20px; height: 20px; color: var(--blue-paypal); }
.checkout-info {
  color: var(--gray-500);
  margin-bottom: var(--sp-6);
}

.paypal-buttons {
  min-height: 55px;
  margin-bottom: var(--sp-6);
}

.checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8) 0;
  color: var(--gray-500);
}

.checkout-result {
  padding: var(--sp-8) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.checkout-result svg { width: 48px; height: 48px; }
.checkout-result h4 { font-size: var(--fs-xl); }

.checkout-success svg { color: var(--green); }
.checkout-success h4  { color: var(--green); }

.checkout-failure svg { color: var(--red); }
.checkout-failure h4  { color: var(--red); }

.checkout-cancel {
  margin-top: var(--sp-4);
}

/* Spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue-paypal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════
   TRANSACTIONS
   ═══════════════════════════════════════ */
.transactions-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.txn-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--dur) var(--ease);
}
.txn-card:hover { box-shadow: var(--shadow-md); }

.txn-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.txn-icon.completed { background: var(--green-light); color: var(--green); }
.txn-icon.pending   { background: var(--amber-light); color: var(--amber); }
.txn-icon.failed    { background: var(--red-light);   color: var(--red); }
.txn-icon svg { width: 20px; height: 20px; }

.txn-info {
  flex: 1;
  min-width: 0;
}
.txn-recipient {
  font-weight: 600;
  color: var(--navy);
  font-size: var(--fs-sm);
}
.txn-date {
  font-size: var(--fs-xs);
  color: var(--gray-400);
}

.txn-right {
  text-align: right;
  flex-shrink: 0;
}
.txn-amount {
  font-weight: 700;
  color: var(--navy);
  font-size: var(--fs-base);
}
.txn-status {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
}
.txn-status.completed { background: var(--green-light); color: var(--green); }
.txn-status.pending   { background: var(--amber-light); color: var(--amber); }
.txn-status.failed    { background: var(--red-light);   color: var(--red); }

.demo-notice {
  max-width: 700px;
  margin: 0 auto var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--amber-light);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--amber);
  font-weight: 500;
}
.demo-notice svg { width: 18px; height: 18px; flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: var(--sp-12) 0;
  color: var(--gray-400);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto var(--sp-4); opacity: 0.4; }
.empty-state h4 { font-size: var(--fs-lg); color: var(--gray-500); margin-bottom: var(--sp-2); }

.transactions-loading {
  text-align: center;
  padding: var(--sp-8) 0;
  color: var(--gray-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  background: var(--gray-50);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-100);
  position: relative;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--blue-paypal), var(--blue-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg { width: 26px; height: 26px; }

.step-number {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-paypal);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.step-card p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: var(--sp-10) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: var(--sp-2);
}
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--gray-400);
}
.footer-notices {
  max-width: 480px;
}
.footer-notices p {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--gray-400);
  margin-bottom: var(--sp-3);
}
.footer-notices svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-notices { margin: 0 auto; }
  .footer-notices p { justify-content: center; text-align: left; }
}

/* ═══════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}
.toast {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy);
  animation: slideInRight 0.3s var(--ease);
  max-width: 360px;
}
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast.success svg { color: var(--green); }
.toast.error svg   { color: var(--red); }
.toast.info svg    { color: var(--blue-paypal); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════
   UTILITIES / RESPONSIVE TWEAKS
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .payment-card { padding: var(--sp-5); }
  .review-card  { padding: var(--sp-5); }
  .modal-card   { padding: var(--sp-6); }
  .example-chips { flex-direction: column; }
}


/* Ensure hidden elements never appear */
[hidden] {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════
   VOICEPAY AI — SHOPPING & EXTENDED UI STYLES
   Added for VoicePay AI v2 upgrade
   ═══════════════════════════════════════════════════════════ */

/* ─── SECTION HEADERS ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.section-subtitle {
  font-size: var(--fs-base);
  color: var(--gray-500);
  margin-top: var(--sp-2);
  max-width: 600px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-title i, .section-title svg {
  width: 24px; height: 24px;
  color: var(--blue-paypal);
}

/* ─── HOME / HERO ENHANCEMENTS ─── */
.hero-eyebrow { margin-bottom: var(--sp-4); }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid rgba(0,112,186,0.2);
}
.eyebrow-badge i { width: 14px; height: 14px; }

.hero-accent { color: var(--blue-paypal); }

.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue-paypal);
  color: var(--blue-paypal);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-size: var(--fs-base);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.btn-outline:hover {
  background: var(--blue-paypal);
  color: var(--white);
}

/* Hero cards stack */
.hero-cards-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
}

.hero-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.hero-card-product {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.hero-card-icon { font-size: 2.5rem; }
.hero-card-name { font-weight: 700; font-size: var(--fs-lg); color: var(--navy); }
.hero-card-price { font-size: var(--fs-xl); font-weight: 800; color: var(--blue-paypal); }
.hero-card-badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-top: var(--sp-1);
}
.hero-card-badge.best-overall { background: var(--green-light); color: #0a7a5a; }

.hero-card-payment { display: flex; flex-direction: column; gap: var(--sp-3); }
.hero-card-row { display: flex; align-items: center; gap: var(--sp-3); }
.hero-card-mic { width: 20px; height: 20px; color: var(--blue-paypal); }
.hero-card-voice-text { font-style: italic; color: var(--gray-600); font-size: var(--fs-sm); }
.hero-card-confirm { display: flex; flex-direction: column; gap: var(--sp-1); }
.hero-card-confirm-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--gray-600);
}
.status-pill {
  background: var(--green-light);
  color: #0a7a5a;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* Hero steps row */
.hero-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-8) 0 var(--sp-4);
}
.hero-step {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.hero-step-icon {
  width: 40px; height: 40px;
  background: var(--blue-light);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-step-icon i { width: 20px; height: 20px; color: var(--blue-paypal); }
.hero-step-content { display: flex; flex-direction: column; }
.hero-step-content strong { font-weight: 700; color: var(--navy); }
.hero-step-content span { font-size: var(--fs-sm); color: var(--gray-500); }
.hero-step-arrow { font-size: var(--fs-xl); color: var(--gray-400); }

/* ─── SHOPPING INPUT PANEL ─── */
.shopping-input-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-6);
}

.shopping-input-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.shopping-input-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue-paypal), var(--blue-dark));
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.shopping-input-icon i { width: 24px; height: 24px; color: var(--white); }
.shopping-input-header h3 { font-size: var(--fs-xl); font-weight: 700; color: var(--navy); margin-bottom: 0; }
.shopping-input-header p { font-size: var(--fs-sm); color: var(--gray-500); margin: 0; }

.shopping-voice-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.shop-mic-btn {
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: var(--blue-paypal);
  color: var(--white);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
  margin-top: 4px;
}
.shop-mic-btn:hover { background: var(--blue-dark); transform: scale(1.05); }
.shop-mic-btn.listening {
  background: var(--red);
  animation: pulse-mic 1s ease-in-out infinite;
}
.shop-mic-btn i { width: 20px; height: 20px; }

.shopping-text-wrap { flex: 1; }

.shopping-textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--navy);
  resize: vertical;
  transition: border-color var(--dur) var(--ease);
  background: var(--gray-50);
}
.shopping-textarea:focus {
  outline: none;
  border-color: var(--blue-paypal);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.shopping-textarea::placeholder { color: var(--gray-400); }

.shopping-transcription {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--blue-paypal);
  padding: var(--sp-2) var(--sp-4);
  background: var(--blue-light);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}

.shopping-status {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--blue-light);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  color: var(--blue-dark);
  font-weight: 500;
  margin-top: var(--sp-4);
}

/* ─── PARSED PREFS CARD ─── */
.parsed-prefs-card {
  background: var(--blue-light);
  border: 1px solid rgba(0,112,186,0.15);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
  animation: fadeIn 0.3s var(--ease);
}
.parsed-prefs-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
}
.parsed-prefs-header i { width: 16px; height: 16px; color: var(--blue-paypal); }
.parsed-prefs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.pref-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--white);
  border: 1px solid rgba(0,112,186,0.2);
  border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--navy);
}
.pref-chip i { width: 12px; height: 12px; color: var(--blue-paypal); }
.pref-label { color: var(--gray-500); }
.pref-value { font-weight: 600; }
.parsed-prefs-actions { margin-top: var(--sp-3); }

/* ─── SHOPPING ERROR ─── */
.shopping-error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--red-light);
  border: 1px solid rgba(217,83,79,0.2);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}
.shopping-error > i { width: 24px; height: 24px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.shopping-error strong { color: var(--red); font-size: var(--fs-base); display: block; }
.shopping-error p { font-size: var(--fs-sm); color: var(--gray-700); margin-top: var(--sp-1); }

/* ─── FOLLOW-UP PANEL ─── */
.followup-panel {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-8);
}
.followup-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--sp-3);
}
.followup-header i { width: 16px; height: 16px; }
.followup-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.chip-sm { font-size: var(--fs-xs); padding: var(--sp-1) var(--sp-3); }
.followup-input-row {
  display: flex;
  gap: var(--sp-3);
}
.followup-input { flex: 1; }

/* ─── PRODUCTS SECTION ─── */
.products-section { animation: fadeIn 0.4s var(--ease); }

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.products-header h3 { font-size: var(--fs-2xl); font-weight: 700; color: var(--navy); }
.products-meta { display: flex; align-items: center; gap: var(--sp-3); }

.demo-catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--amber-light);
  color: #92400e;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  border: 1px solid rgba(245,166,35,0.3);
}
.demo-catalog-badge i { width: 12px; height: 12px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.products-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--blue-paypal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.product-card-featured {
  border-color: var(--blue-paypal);
  box-shadow: 0 0 0 2px rgba(0,112,186,0.12), var(--shadow-md);
}
.product-card-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,166,126,0.15), var(--shadow-md);
}
.product-card-over-budget {
  opacity: 0.8;
  border-style: dashed;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
}
.badge-best-overall  { background: #FEF3C7; color: #92400E; }
.badge-best-budget   { background: var(--green-light); color: #0a7a5a; }
.badge-best-features { background: var(--blue-light);  color: var(--blue-dark); }

.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.product-emoji { font-size: 2.5rem; flex-shrink: 0; }
.product-title-group { flex: 1; min-width: 0; }
.product-brand { font-size: var(--fs-xs); font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-size: var(--fs-base); font-weight: 700; color: var(--navy); line-height: 1.3; margin: var(--sp-1) 0; }
.product-merchant { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); color: var(--gray-400); }
.product-merchant i { width: 12px; height: 12px; }

/* Pricing */
.product-pricing { border-top: 1px solid var(--gray-100); padding-top: var(--sp-4); }
.product-price-main { margin-bottom: var(--sp-3); }
.product-price { font-size: var(--fs-2xl); font-weight: 800; color: var(--navy); }
.product-price-breakdown {
  background: var(--gray-50);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--gray-600);
}
.price-row.price-total {
  border-top: 1px solid var(--gray-200);
  margin-top: var(--sp-1);
  padding-top: var(--sp-2);
  color: var(--navy);
  font-weight: 700;
}
.free-shipping { color: var(--green); }
.free-shipping i { width: 12px; height: 12px; }

.budget-remaining {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  margin-top: var(--sp-3);
}
.budget-remaining i { width: 14px; height: 14px; }
.budget-remaining.within { background: var(--green-light); color: #0a7a5a; }
.budget-remaining.over   { background: var(--red-light);   color: var(--red); }

/* Specs */
.product-specs {
  border-top: 1px solid var(--gray-100);
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.spec-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.spec-key { color: var(--gray-500); font-weight: 500; }
.spec-val { color: var(--navy); font-weight: 600; text-align: right; }

/* Reason */
.product-reason {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  background: var(--blue-light);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--blue-dark);
}
.product-reason i { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

/* Pros / Cons */
.product-pros-cons { display: flex; flex-direction: column; gap: var(--sp-1); }
.pros-list, .cons-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-1); }
.pros-list li, .cons-list li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-sm); }
.pros-list li i { width: 12px; height: 12px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.cons-list li i { width: 12px; height: 12px; color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* Data note */
.product-data-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
  padding-top: var(--sp-3);
}
.product-data-note i { width: 12px; height: 12px; }

/* Product actions */
.product-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 0; justify-content: center; }

.product-over-budget-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--amber-light);
  color: #92400e;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
}
.product-over-budget-note i { width: 12px; height: 12px; }
.product-top-pro { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--green); }
.product-top-pro i { width: 12px; height: 12px; flex-shrink: 0; margin-top: 3px; }

/* Over-budget section */
.over-budget-section { margin-top: var(--sp-8); }
.over-budget-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: var(--sp-5);
}
.over-budget-title i { width: 20px; height: 20px; color: var(--amber); }

/* ─── SELECTED PRODUCT PANEL ─── */
.selected-product-panel {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: 0 0 0 4px rgba(0,166,126,0.1), var(--shadow-md);
  animation: fadeIn 0.3s var(--ease);
  margin-top: var(--sp-6);
}
.selected-product-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
}
.selected-product-header i { width: 20px; height: 20px; color: var(--green); }
.selected-product-header .btn-ghost { margin-left: auto; }
.selected-product-info {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.selected-product-emoji { font-size: 2rem; }
.selected-product-name { font-size: var(--fs-lg); font-weight: 700; color: var(--navy); }
.selected-product-brand { font-size: var(--fs-sm); color: var(--gray-500); font-weight: 600; text-transform: uppercase; }
.selected-product-merchant { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-xs); color: var(--gray-400); }
.selected-product-merchant i { width: 12px; height: 12px; }

.selected-product-pricing { border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.selected-price-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.selected-price-row:last-of-type { border-bottom: none; }
.selected-price-total { font-size: var(--fs-base); color: var(--navy); border-top: 2px solid var(--gray-200) !important; margin-top: var(--sp-1); padding-top: var(--sp-2) !important; }
.selected-budget-remaining { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; margin-top: var(--sp-3); }
.selected-budget-remaining.within i { color: var(--green); } .selected-budget-remaining.within { color: #0a7a5a; }
.selected-budget-remaining.over   i { color: var(--red); }   .selected-budget-remaining.over   { color: var(--red); }

.selected-product-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--gray-500);
  margin-bottom: var(--sp-3);
}
.selected-product-note i { width: 12px; height: 12px; flex-shrink: 0; margin-top: 2px; }
.sandbox-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--gray-400);
  padding: var(--sp-2) var(--sp-3);
  background: var(--gray-50);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.sandbox-note i { width: 12px; height: 12px; }
.selected-product-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.selected-product-actions .btn-lg { flex: 1; justify-content: center; }

/* ─── CONFIRM MODAL ADDITIONS ─── */
.confirm-sandbox-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--gray-500);
  background: var(--gray-50);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
}
.confirm-sandbox-note i { width: 14px; height: 14px; }

/* ─── ENHANCED TRANSACTION CARDS ─── */
.txn-purpose {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  margin-top: 2px;
}
.txn-id {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  margin-top: 2px;
}
.txn-id code {
  background: var(--gray-100);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.7rem;
  font-family: monospace;
}
.txn-sandbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-full);
  margin-top: 4px;
}
.txn-sandbox-badge i { width: 10px; height: 10px; }
.txn-demo-badge {
  display: inline-block;
  background: var(--amber-light);
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-full);
  margin-top: 2px;
}

/* ─── SESSION NOTICE ─── */
.session-notice {
  background: var(--amber-light);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.session-notice > i { width: 20px; height: 20px; color: var(--amber); }
.session-notice strong { color: #92400e; }
.session-notice p { font-size: var(--fs-sm); color: var(--gray-700); margin: var(--sp-1) 0; }
.session-notice code { background: rgba(0,0,0,0.06); border-radius: 3px; padding: 1px 6px; font-size: var(--fs-sm); }
.session-input-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.session-token-input { flex: 1; min-width: 200px; }

/* ─── SECURITY BLOCK ─── */
.security-block {
  display: flex;
  gap: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-top: var(--sp-10);
  box-shadow: var(--shadow-sm);
}
.security-icon {
  width: 56px; height: 56px;
  background: var(--green-light);
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.security-icon i { width: 28px; height: 28px; color: var(--green); }
.security-content h3 { font-size: var(--fs-xl); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-4); }
.security-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.security-list li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-base); color: var(--gray-700); }
.security-list li i { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ─── BUTTON SIZE ADDITIONS ─── */
.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
}

/* ─── CHECKOUT SUCCESS ADDITIONS ─── */
#checkoutSuccess .btn { display: block; text-align: center; }
#checkoutSuccess .btn + .btn { margin-top: var(--sp-3); }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE: SHOPPING ─── */
@media (max-width: 768px) {
  .shopping-voice-row { flex-direction: column; }
  .shop-mic-btn { width: 100%; height: 44px; border-radius: var(--r-lg); }
  .products-grid { grid-template-columns: 1fr; }
  .hero-cards-stack { display: none; }
  .hero-steps { flex-direction: column; gap: var(--sp-2); }
  .hero-step-arrow { transform: rotate(90deg); }
  .security-block { flex-direction: column; }
  .selected-product-actions { flex-direction: column; }
  .hero-ctas { flex-direction: column; }
}

@media (max-width: 480px) {
  .shopping-input-panel { padding: var(--sp-5); }
  .selected-product-panel { padding: var(--sp-5); }
  .product-card { padding: var(--sp-5); }
  .product-actions { flex-direction: column; }
}
