/* ==========================================================================
   LTAB AI (ltabai.in) - Digital Marketing Client Discovery Landing Page
   High-Contrast Dark Mode & Clean White Light Mode Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Exact ltabai.in Brand Tokens */
  --font-heading: "Manrope", "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Brand Colors from ltabai.in */
  --brand-yellow: #FFD400;    /* Primary Brand Yellow Accent */
  --brand-blue: #0EA5E9;      /* Electric Sky Blue Accent */
  --brand-ink: #0F172A;       /* Deep Slate Navy */
  --brand-white: #FFFFFF;
  --brand-muted: #64748B;
  --brand-border: #E2E8F0;
  --brand-success: #10B981;
  --brand-whatsapp: #25D366;   /* Official WhatsApp Green */

  /* Light Theme (DEFAULT) */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-input: #FFFFFF;
  --bg-input-focus: #F8FAFC;

  --border-color: #E2E8F0;
  --border-highlight: rgba(14, 165, 233, 0.4);
  --border-focus: #0EA5E9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --accent-primary: #FFD400;
  --accent-primary-hover: #E6BF00;
  --accent-secondary: #0EA5E9;
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-danger: #EF4444;
  
  --accent-gradient: linear-gradient(135deg, #0F172A 0%, #0EA5E9 100%);
  --accent-glow: 0 4px 20px rgba(14, 165, 233, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ultra High-Contrast Dark Theme System */
[data-theme="dark"] {
  --bg-primary: #0B132B;
  --bg-secondary: #1C2541;
  --bg-card: #1C2541;
  --bg-card-hover: #2A365C;
  --bg-input: #0B132B;
  --bg-input-focus: #1C2541;

  --border-color: #2E3C64;
  --border-highlight: rgba(255, 212, 0, 0.5);
  --border-focus: #FFD400;

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --accent-gradient: linear-gradient(135deg, #FFD400 0%, #38BDF8 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* Base Resets & Anti-Crop Protection */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(14, 165, 233, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(255, 212, 0, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Visibility Utilities */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex !important;
}

.print-only {
  display: none;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  word-break: break-word;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar {
  background: rgba(11, 19, 43, 0.96);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

/* BRAND LOGO IMAGE STYLING */
.brand-logo-img {
  height: 42px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-yellow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 2px 10px rgba(255, 212, 0, 0.4);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  line-height: 1.1;
}

.sub-brand {
  font-size: 0.68rem;
  font-weight: 600;
  display: block;
  color: var(--brand-blue);
  margin-top: 1px;
  white-space: nowrap;
}

[data-theme="dark"] .sub-brand {
  color: #38BDF8;
}

.progress-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.progress-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.progress-bar-container {
  width: 110px;
  height: 7px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .progress-bar-container {
  background: #2E3C64;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  min-height: 36px;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--brand-yellow);
  color: var(--brand-ink);
  box-shadow: 0 4px 14px rgba(255, 212, 0, 0.4);
}

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

.btn-whatsapp {
  background: var(--brand-whatsapp);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: #20BA5A;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--brand-blue);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.76rem;
  min-height: 34px;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero-section {
  padding: 28px 0 18px;
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--brand-blue);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 100%;
}

[data-theme="dark"] .hero-badge {
  background: rgba(255, 212, 0, 0.15);
  border-color: rgba(255, 212, 0, 0.4);
  color: #FFD400;
}

.hero-title {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  max-width: 100%;
  padding: 0 4px;
  line-height: 1.25;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 20px;
  padding: 0 8px;
  line-height: 1.5;
}

/* Easy 3-Step Guide Card */
.how-it-works-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  max-width: 1000px;
  margin: 0 auto 20px;
  text-align: left;
  box-sizing: border-box;
  box-shadow: var(--shadow-md);
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-yellow);
  color: var(--brand-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.step-content span {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  display: block;
}

/* Service Scope Pill Selector */
.service-filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px;
  max-width: 1000px;
  margin: 0 auto 24px;
  box-sizing: border-box;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.service-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.service-filter-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  max-width: 100%;
  transition: all var(--transition-fast);
}

.service-pill.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

[data-theme="dark"] .service-pill.active {
  background: rgba(255, 212, 0, 0.18);
  border-color: #FFD400;
  color: #FFD400;
}

.service-pill input {
  display: none;
}

/* Main Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 70px;
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar Navigation Drawer */
.sidebar-nav {
  position: sticky;
  top: 65px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 14px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  box-shadow: var(--shadow-md);
}

.sidebar-search {
  position: relative;
  width: 100%;
}

.sidebar-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 7px 10px 7px 30px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  outline: none;
  box-sizing: border-box;
}

.sidebar-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.module-header {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-blue);
  margin: 8px 0 4px 4px;
}

[data-theme="dark"] .module-header {
  color: #38BDF8;
}

.section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 2px;
  width: 100%;
  box-sizing: border-box;
}

.section-link span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.section-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.section-link.active {
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-blue);
  font-weight: 700;
  border-left: 3px solid var(--brand-blue);
}

[data-theme="dark"] .section-link.active {
  background: rgba(255, 212, 0, 0.18);
  color: #FFD400;
  border-left: 3px solid #FFD400;
}

.section-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  color: var(--text-muted);
  flex-shrink: 0;
}

.section-link.active .section-badge {
  background: var(--brand-blue);
  color: #FFFFFF;
}

[data-theme="dark"] .section-link.active .section-badge {
  background: #FFD400;
  color: #0F172A;
}

.section-badge.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
}

/* Main Content Panel */
.content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px;
  min-height: 460px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-md);
}

/* CENTER ALIGNED ELEGANT SECTION BANNER */
.section-banner {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.part-tag {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

[data-theme="dark"] .part-tag {
  color: #38BDF8;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: center;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  text-align: center;
  max-width: 600px;
}

.section-quick-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--brand-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .section-badge-pill {
  background: rgba(255, 212, 0, 0.15);
  border-color: rgba(255, 212, 0, 0.35);
  color: #FFD400;
}

/* Section Benefit Card */
.section-benefit-card {
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

[data-theme="dark"] .section-benefit-card {
  background: rgba(255, 212, 0, 0.08);
  border-color: rgba(255, 212, 0, 0.3);
  border-left-color: #FFD400;
}

.benefit-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-header-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

[data-theme="dark"] .benefit-header-title {
  color: #FFD400;
}

.benefit-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Question Cards */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.question-card.answered {
  border-left: 4px solid var(--accent-success);
}

.question-card.skipped {
  opacity: 0.7;
  border-left: 4px solid var(--text-muted);
}

.question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.question-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: #FEF08A;
  color: #854D0E;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid #FDE047;
  flex-shrink: 0;
}

[data-theme="dark"] .question-num {
  background: rgba(255, 212, 0, 0.2);
  color: #FFD400;
  border-color: rgba(255, 212, 0, 0.4);
}

.question-text {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.4;
  padding-right: 4px;
}

.skip-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.skip-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

textarea.form-control {
  width: 100%;
  min-height: 75px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

textarea.form-control:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] textarea.form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.2);
}

/* Section Navigation Footer */
.section-footer-nav {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* MODAL OVERLAY & CRISP CLOSE BUTTON FIX */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(11, 19, 43, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  box-sizing: border-box;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  outline: none;
}

.modal-close:hover {
  background: var(--accent-danger);
  color: #FFFFFF;
  border-color: var(--accent-danger);
  transform: scale(1.08);
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  max-width: 420px;
  margin-left: auto;
}

/* Executive Print Stylesheet */
@media print {
  body * {
    visibility: hidden !important;
  }
  .print-only, .print-only * {
    visibility: visible !important;
    display: block !important;
  }
  .print-only {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}

/* STACKED CENTER-ALIGNED MOBILE NAVBAR ARCHITECTURE (< 768px) */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
  }

  .container {
    padding: 0 10px;
  }

  .navbar {
    padding: 10px 0;
  }

  /* Stacked Center Aligned Mobile Nav Wrapper */
  .nav-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 6px;
    width: 100%;
    text-align: center;
  }

  /* Top Centered Brand Logo Block */
  .brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    width: 100%;
  }

  .brand-logo-img {
    height: 38px;
    max-width: 140px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
  }

  .brand-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
  }

  .sub-brand {
    display: block !important;
    font-size: 0.7rem;
    color: var(--brand-blue);
    text-align: center;
    white-space: nowrap;
    margin-top: 2px;
  }

  /* Bottom Centered Action Bar */
  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    min-height: 34px;
    gap: 4px;
    border-radius: var(--radius-md);
  }

  .btn-sm {
    padding: 5px 10px;
    font-size: 0.75rem;
    min-height: 32px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .hero-section {
    padding: 16px 0 10px;
  }

  .hero-title {
    font-size: 1.3rem;
    padding: 0;
  }

  .hero-desc {
    font-size: 0.82rem;
    padding: 0;
    margin-bottom: 14px;
  }

  .how-it-works-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .service-filter-card {
    padding: 10px;
  }

  .service-pills {
    justify-content: flex-start;
    gap: 4px;
  }

  .service-pill {
    font-size: 0.72rem;
    padding: 3px 7px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    padding-bottom: 65px;
    gap: 10px;
  }

  .sidebar-nav {
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    max-height: none;
    border-radius: 0;
    background: var(--bg-card);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    padding: 12px;
  }

  .sidebar-nav.mobile-active {
    transform: translateY(0);
  }

  .content-panel {
    padding: 14px 10px;
    border-radius: var(--radius-lg);
  }

  .section-banner {
    align-items: center;
    text-align: center;
  }

  .section-title {
    font-size: 1.1rem;
    text-align: center;
  }

  .question-card {
    padding: 12px 10px;
  }

  .question-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .question-text {
    width: 100%;
    padding-right: 0;
    font-size: 0.86rem;
  }

  .skip-btn {
    align-self: flex-end;
    margin-top: -20px;
  }

  .modal-card {
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-footer {
    flex-direction: column;
    width: 100%;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .mobile-sticky-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  }

  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 55px;
  }
}
