/* =============================================================
   VISUALQUOTE PREMIUM GLASSMORPHIC DESIGN SYSTEM
   Clean, modern, readable, and highly interactive.
   Supports Light & Dark modes natively.
   ============================================================= */

/* Design Tokens & Variables */
:root {
  /* Common */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  
  /* Light Mode Colors (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-alt: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-color: #6366f1; /* Dynamic */
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.12);
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --success-color: #10b981;
  --success-bg: #ecfdf5;
  --pending-color: #f59e0b;
  --pending-bg: #fffbeb;

  /* Scrollbars */
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-track: #f1f5f9;
  
  color-scheme: light dark;
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-alt: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --accent-color: #818cf8;
    --accent-hover: #6366f1;
    --accent-glow: rgba(129, 140, 248, 0.2);
    --border-color: #374151;
    --card-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(17, 24, 39, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --success-color: #34d399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --pending-color: #fbbf24;
    --pending-bg: rgba(251, 191, 36, 0.1);
    --scrollbar-thumb: #4b5563;
    --scrollbar-track: #111827;
  }
}

/* Explicit Toggle Themes (via JS) */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-alt: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --success-color: #10b981;
  --success-bg: #ecfdf5;
  --pending-color: #f59e0b;
  --pending-bg: #fffbeb;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-track: #f1f5f9;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-alt: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --card-shadow: 0 10px 40px -15px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.05);
  --success-color: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --pending-color: #fbbf24;
  --pending-bg: rgba(251, 191, 36, 0.1);
  --scrollbar-thumb: #4b5563;
  --scrollbar-track: #111827;
  color-scheme: dark;
}

/* =============================================================
   NICHE MOOD VARIANTS
   Each niche is more than a re-skin: proportions, weight and
   surface treatment shift to match how that industry actually
   presents itself, not just the accent color.
   ============================================================= */

/* Technical (Web/Dev) — default modern look, no overrides needed */

/* Editorial (Photography) — spacious, quiet surfaces, let the work lead */
[data-mood="editorial"] .hero-title {
  font-weight: 600;
  letter-spacing: -1px;
}
[data-mood="editorial"] .step-card,
[data-mood="editorial"] .objective-item,
[data-mood="editorial"] .pricing-card,
[data-mood="editorial"] .pricing-options-box,
[data-mood="editorial"] .hero-info-card,
[data-mood="editorial"] .signature-panel {
  box-shadow: none;
  border: 1px solid var(--border-color);
}

/* Formal (Legal) — sharp corners, muted depth, no glow */
[data-mood="formal"] {
  --border-radius-lg: 4px;
  --border-radius-md: 3px;
  --border-radius-sm: 2px;
}
[data-mood="formal"] .hero-title {
  letter-spacing: -0.25px;
}
[data-mood="formal"] .step-card,
[data-mood="formal"] .objective-item,
[data-mood="formal"] .pricing-card,
[data-mood="formal"] .pricing-options-box,
[data-mood="formal"] .hero-info-card,
[data-mood="formal"] .signature-panel {
  box-shadow: none;
  border: 1px solid var(--border-color);
}

/* Bold (Coaching/Fitness) — bigger, rounder, higher energy */
[data-mood="bold"] {
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 10px;
}
[data-mood="bold"] .hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -1px;
}

/* Refined (Architecture) — minimal, monochrome-leaning, wide tracking */
[data-mood="refined"] {
  --border-radius-lg: 2px;
  --border-radius-md: 2px;
  --border-radius-sm: 2px;
}
[data-mood="refined"] .hero-title {
  letter-spacing: 0.5px;
}
[data-mood="refined"] .step-card,
[data-mood="refined"] .objective-item,
[data-mood="refined"] .pricing-card,
[data-mood="refined"] .pricing-options-box,
[data-mood="refined"] .hero-info-card,
[data-mood="refined"] .signature-panel {
  box-shadow: none;
  border: 1px solid var(--border-color);
}

/* Friendly (Copywriting) — soft, rounded, warm */
[data-mood="friendly"] {
  --border-radius-lg: 20px;
  --border-radius-md: 14px;
  --border-radius-sm: 10px;
}
[data-mood="friendly"] .hero-title {
  font-family: var(--font-serif);
}

/* Basic Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Custom Scrollbar Webkit Fallback */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 120px; /* Space for selector banner (48px) + header (72px) */
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

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

/* =============================================================
   DEMO WORKBENCH BANNER
   ============================================================= */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
  z-index: 1100;
  display: flex;
  align-items: center;
  color: #f8fafc;
}

.demo-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-badge {
  background-color: #818cf8;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.demo-banner-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
}

.demo-selector-pills {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.demo-selector-pills::-webkit-scrollbar {
  display: none;
}

.demo-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.demo-pill:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.demo-pill.active {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.pill-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Freelancer Analytics Trigger + Modal (value-prop demo) */
.analytics-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.analytics-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.analytics-trigger:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.analytics-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.analytics-modal {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--card-shadow);
}

.analytics-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.analytics-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.analytics-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background-color: var(--bg-alt);
  border-radius: var(--border-radius-md);
}

.analytics-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.analytics-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.analytics-sections ul {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analytics-sections li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.analytics-sections li.seen {
  color: var(--text-primary);
  font-weight: 600;
}

.analytics-sections .analytics-dot {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.analytics-sections li.seen .analytics-dot {
  color: var(--success-color);
}

.analytics-sections li.unseen .analytics-dot {
  color: var(--text-muted);
}

/* =============================================================
   GLASS HEADER & NAVIGATION
   ============================================================= */
.app-header {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: var(--transition-smooth);
}

.logo-text b {
  font-weight: 800;
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-sections {
  display: flex;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: var(--border-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Proposal Badges */
.proposal-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.badge-pending {
  color: var(--pending-color);
  background-color: var(--pending-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-signed {
  color: var(--success-color);
  background-color: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background-color: var(--bg-alt);
  color: var(--text-primary);
}

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

/* Light Theme shows Moon, Dark Theme shows Sun */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

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

/* =============================================================
   HERO SECTION
   ============================================================= */
.hero-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-gradient {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 340px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(70px);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Sober niches (legal, architecture, photography) skip the glow —
   it reads as generic SaaS-template and undercuts a restrained brand */
[data-mood="formal"] .hero-bg-gradient,
[data-mood="refined"] .hero-bg-gradient,
[data-mood="editorial"] .hero-bg-gradient {
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-meta {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 48px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.hero-info-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-countdown {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* =============================================================
   CLIENT TESTIMONIAL (social proof, per example)
   ============================================================= */
.testimonial-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-color);
}

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px;
  border-left: 3px solid var(--accent-color);
  background-color: var(--bg-alt);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.testimonial-card p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.testimonial-card footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =============================================================
   PORTFOLIO GALLERY (niches with visual proof, e.g. photography)
   ============================================================= */
.gallery-section {
  padding-top: 0;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-color);
}

.gallery-header {
  margin-bottom: 24px;
}

.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  text-transform: uppercase;
}

.gallery-eyebrow .icon {
  width: 16px;
  height: 16px;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================
   SECTIONS LAYOUT & OBJECTIVES
   ============================================================= */
.section-content {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.bg-alt {
  background-color: var(--bg-alt);
}

.grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color);
  background-color: var(--accent-glow);
  padding: 5px 12px;
  border-radius: 20px;
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.sidebar-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 24px;
}

.section-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.objectives-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.objective-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.obj-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background-color: var(--accent-glow);
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

.obj-icon .icon {
  width: 20px;
  height: 20px;
}

.obj-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.obj-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* =============================================================
   TIMELINE PROCESS CARDS
   ============================================================= */
.step-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--accent-color);
}

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

.step-badge {
  background-color: var(--accent-glow);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.step-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

/* =============================================================
   PRICING SIMULATOR
   ============================================================= */
.pricing-card-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Base recommended card */
.pricing-card {
  background-color: var(--bg-secondary);
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.card-banner {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 0;
  transition: var(--transition-smooth);
}

.card-details {
  padding: 40px;
}

.card-details h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.price-value {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 16px;
  letter-spacing: -1px;
  transition: var(--transition-smooth);
}

.price-value .currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.plan-includes h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.plan-includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.plan-includes ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-includes ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-glow);
  box-shadow: inset 0 0 0 1px var(--accent-color);
}

.plan-includes ul li::after {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 1px;
  font-size: 0.6rem;
  font-weight: 900;
  color: var(--accent-color);
}

/* Options Selector Box */
.pricing-options-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.pricing-options-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.options-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.option-item:hover {
  background-color: var(--bg-alt);
  border-color: var(--text-muted);
}

.option-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  margin-top: 2px;
}

.option-checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  background-color: var(--bg-secondary);
  transition: var(--transition-smooth);
}

.option-item:has(input[type="checkbox"]:checked) {
  border-color: var(--accent-color);
  background-color: var(--accent-glow);
}

.option-item input[type="checkbox"]:checked + .custom-checkbox {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.option-item input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}

.option-info {
  display: flex;
  flex-direction: column;
}

.option-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.option-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.option-price {
  font-weight: 700;
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

.option-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Live Calculation Summary Box */
.calculation-box {
  margin-top: 32px;
  padding: 24px;
  background-color: var(--bg-alt);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--border-color);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.calc-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.total-row {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.total-row span:last-child {
  color: var(--accent-color);
  transition: var(--transition-smooth);
}

.deposit-row {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.deposit-row span:last-child {
  color: var(--text-primary);
}

/* =============================================================
   TERMS & AGREEMENT CLOSING FLOW
   ============================================================= */
.terms-text-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.terms-text-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.terms-text-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* Signature Panel */
.signature-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.signature-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.panel-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.signature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.canvas-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#signature-canvas {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 150px;
  border: 2px dashed var(--border-color);
  background-color: var(--bg-alt);
  border-radius: var(--border-radius-md);
  cursor: crosshair;
  transition: var(--transition-smooth);
}

#signature-canvas:hover {
  border-color: var(--text-muted);
}

.signature-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-group input {
  padding: 12px;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Stark Primary Buttons */
.btn-primary {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-glow {
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-text:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.btn-secondary {
  padding: 10px 20px;
  background-color: var(--border-color);
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--text-muted);
  color: var(--bg-primary);
}

/* =============================================================
   SUCCESS PANELS & PAYMENT GATEWAY SCREEN
   ============================================================= */
.success-panel {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.success-panel h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-message {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.receipt-box {
  background-color: var(--bg-alt);
  border-radius: var(--border-radius-md);
  padding: 20px;
  max-width: 480px;
  margin: 0 auto 32px auto;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.receipt-row strong {
  color: var(--text-primary);
}

.payment-selection h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.btn-payment {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-payment:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.payment-brand {
  font-size: 1.1rem;
  font-weight: 500;
}

.font-webpay {
  color: #0f172a;
}
[data-theme="dark"] .font-webpay {
  color: #ffffff;
}
.font-webpay b {
  color: #e11d48;
}

.font-flow {
  color: #0284c7;
  font-weight: 800;
}

.payment-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Gateway Loading Modal Overlay */
.gateway-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-modal {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.gateway-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gateway-secure-badge {
  color: var(--success-color);
  font-weight: 600;
}

.gateway-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gateway-body p {
  color: var(--text-primary);
  font-weight: 600;
}

.gateway-subtext {
  font-size: 0.8rem;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

/* Spinner Animation */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Paid Confirmation Screen */
.paid-success-screen {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

.paid-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success-color);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.paid-success-screen h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.paid-success-screen p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.paid-redirect {
  font-weight: 500;
}

/* Footer styling */
.app-footer {
  margin-top: auto;
  padding: 40px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.app-footer p {
  margin-bottom: 8px;
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Page swap animations */
.animate-fade {
  animation: fadeSwap 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fadeSwap {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================================
   RESPONSIVE DESIGN
   ============================================================= */
@media (max-width: 992px) {
  body {
    padding-top: 136px;
  }

  .demo-banner {
    position: fixed;
    height: auto;
    padding: 10px 0;
  }
  
  .demo-banner-container {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }

  .demo-selector-pills {
    margin-left: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
  }

  .app-header {
    top: 68px;
  }

  .grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-sidebar {
    text-align: left;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .analytics-trigger-label {
    display: none;
  }

  .analytics-trigger {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 136px;
  }

  .app-header {
    top: 68px;
  }

  .nav-sections {
    display: none;
  }
  
  .hero-cards {
    grid-template-columns: 1fr;
  }
  
  .plan-includes ul {
    grid-template-columns: 1fr;
  }
  
  .signature-row {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}
