/* ==========================================================================
   BE | BELKAR BUSINESS ENGINEERING — DIGITAL STEEL DESIGN SYSTEM
   Applies to: SAAS-02 Forensic Lean Audit & Waste Benchmark Engine
   CSS Variables, Light/Dark Theme Tokens, RTL/LTR Layout, Stepper & PDF Rules
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR TOKENS & TYPOGRAPHY VARIABLES (DARK DEFAULT)
   -------------------------------------------------------------------------- */
:root, [data-theme="dark"] {
  /* Core Backgrounds (Dark Theme Default) */
  --color-bg-base: #0F0F10;        /* Deep Charcoal - Page Background */
  --color-bg-surface: #1A1A1B;     /* Card Surface - Cards & Panels */
  --color-bg-elevated: #242425;    /* Surface Mid - Inputs & Hover States */
  --color-bg-slate: #2E3B4E;       /* Slate Surface - Table Headers & Nav */
  
  /* Brand Accent */
  --color-accent: #e67e22;         /* Copper Accent - Primary CTAs & Highlights */
  --color-accent-light: #F5A05A;   /* Copper Light - Hover states */
  --color-accent-hover: #F5A05A;   /* Hover state alias */
  --color-accent-dark: #7A4010;    /* Copper Dark - Active pressed states */
  --color-accent-tint: rgba(230, 126, 34, 0.12); /* Copper Tint container bg */
  --color-info: #6fa3c8;           /* Steel Blue Light - Tags & Badges */

  /* Text Hierarchy */
  --color-text-primary: #FFFFFF;   /* Tech White - Main Headings & Primary Text */
  --color-text-secondary: #E5E7E9; /* Off White - Body Text */
  --color-text-muted: rgba(255, 255, 255, 0.55); /* Muted White - Captions & Helper Text */

  /* Status & Severity Colors */
  --color-success: #4CAF78;        /* Success Green - Grade A / Low Waste */
  --color-success-bg: #152A1D;     /* Success Banner Background */
  --color-warning: #D4A017;        /* Warning Amber - Grade C / Moderate Waste */
  --color-warning-bg: #2A2208;     /* Warning Banner Background */
  --color-danger: #E05A4A;         /* Danger Light - Grade D / High Waste */
  --color-danger-dark: #C0392B;    /* Danger Red - Grade F / Critical Waste */
  --color-danger-bg: #2D1614;      /* Danger Banner Background */

  /* Typography Stacks (Bilingual) */
  --font-header-en: 'IBM Plex Serif', Georgia, serif;
  --font-header-he: 'Noto Serif Hebrew', 'David Libre', serif;
  --font-body-en: 'Space Grotesk', system-ui, sans-serif;
  --font-body-he: 'Heebo', 'Arial Hebrew', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Legacy Font Aliases */
  --font-display: var(--font-header-en);
  --font-body: var(--font-body-en);

  /* Spacing Base Scale (Multiples of 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Borders & Shadows */
  --border-radius: 4px;            /* Precise, minimal rounded corners */
  --border-color: #2A2A2B;
  --border-focus: var(--color-accent);
  --grid-line-color: rgba(255, 255, 255, 0.03);
}

/* --------------------------------------------------------------------------
   LIGHT THEME OVERRIDES
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --color-bg-base: #F4F2EE;        /* Warm Off-White Page Background */
  --color-bg-surface: #FFFFFF;     /* White Card Surface */
  --color-bg-elevated: #E8E8E1;    /* Light Elevated Surface */
  --color-bg-slate: #2E3B4E;       /* Slate Surface - Anchored across themes */
  
  --color-accent: #A85500;         /* Darkened Copper (WCAG 4.74:1 AA compliant) */
  --color-accent-light: #C86600;   /* Hover state */
  --color-accent-hover: #C86600;   /* Hover state alias */
  --color-accent-dark: #7A4010;    /* Pressed state */
  --color-accent-tint: #FDF0E6;    /* Warm Copper Tint container bg */
  --color-info: #2b6cb0;           /* Deep Steel Blue */

  --color-text-primary: #1A1A1B;   /* Dark Charcoal */
  --color-text-secondary: #2E3B4E; /* Dark Slate */
  --color-text-muted: #4A5C72;     /* Muted Grey Blue */

  --color-success: #155724;
  --color-success-bg: #D4EDDA;
  --color-warning: #856404;
  --color-warning-bg: #FFF3CD;
  --color-danger: #721C24;
  --color-danger-dark: #721C24;
  --color-danger-bg: #F8D7DA;

  --border-color: #D8D5CE;
  --grid-line-color: rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-body-he);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[lang="en"] body {
  font-family: var(--font-body-en);
}

/* Bilingual Heading Rules (H1 & H2 use Serif, H3 uses Sans) */
h1, h2, .page-title, .section-title {
  font-family: var(--font-header-he);
  font-weight: 700;
  line-height: 1.15;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] .page-title,
html[lang="en"] .section-title {
  font-family: var(--font-header-en);
}

h3, .step-title, .card-title {
  font-family: var(--font-body-he);
  font-weight: 600;
  line-height: 1.35;
}

html[lang="en"] h3,
html[lang="en"] .step-title,
html[lang="en"] .card-title {
  font-family: var(--font-body-en);
}

/* Industrial Background Grid Lines */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   3. APP HEADER & TOGGLE CONTROLS
   -------------------------------------------------------------------------- */
.app-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--color-bg-surface); /* #121212 in dark theme, #FFFFFF in light theme */
  backdrop-filter: blur(8px);
  padding: var(--space-4) 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  direction: ltr; /* Always LTR layout: Logo on left, text next to it */
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  border-radius: var(--border-radius);
  padding: 4px 6px;
  transition: opacity 0.2s ease, outline 0.2s ease;
}

.brand-logo-link:hover {
  opacity: 0.88;
}

.brand-logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.brand-company-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.brand-copper {
  color: var(--color-accent);
  font-weight: 800;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Toggle Buttons (Lang & Theme) */
.toggle-btn {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.theme-icon-btn {
  font-size: 16px;
  padding: 6px 10px;
}

.lang-btn {
  min-width: 48px;
}

.app-footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: var(--space-6) 0;
  font-size: 13px;
  color: var(--color-text-muted);
  background-color: var(--color-bg-surface);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-brand-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-brand-link:hover {
  color: var(--color-accent);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 2px 4px;
  border-radius: var(--border-radius);
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   4. LAYOUT & VIEW SECTIONS
   -------------------------------------------------------------------------- */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.view-section.active {
  display: block;
}

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

/* Card Elevated Container */
.card-elevated {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-info);
  background: rgba(111, 163, 200, 0.1);
  border: 1px solid rgba(111, 163, 200, 0.3);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   5. LANDING & CONTACT FORM STYLES
   -------------------------------------------------------------------------- */
.hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 750px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 650px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.req {
  color: var(--color-accent);
}

.input-field {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background-color 0.3s;
}

.input-field:focus {
  border-color: var(--border-focus);
}

.input-field::placeholder {
  color: var(--color-text-muted);
}

.field-error {
  font-size: 12px;
  color: var(--color-danger);
  display: none;
}

.field-error.visible {
  display: block;
}

.form-consent {
  margin-bottom: var(--space-8);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

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

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--color-bg-elevated);
  border-radius: 2px;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
}

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

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.checkbox-text {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-accent {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

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

.btn-secondary {
  background-color: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--border-color);
}

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

.btn-large {
  font-size: 18px;
  padding: 16px 36px;
}

.w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. QUIZ STEPPER UI
   -------------------------------------------------------------------------- */
.stepper-header {
  padding: var(--space-4) var(--space-6);
}

.stepper-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.domain-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-accent);
}

.step-indicator {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}

.progress-bar-track {
  height: 6px;
  background-color: var(--color-bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

/* Quiz Question Group */
.domain-group-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.domain-group-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-4);
}

.question-item {
  margin-bottom: var(--space-8);
}

.question-item:last-child {
  margin-bottom: 0;
}

.question-header {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.question-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  background: rgba(230, 126, 34, 0.1);
  padding: 2px 8px;
  border-radius: 2px;
  align-self: flex-start;
}

.question-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* Answer Option Controls */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.option-card {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all 0.15s ease;
  user-select: none;
}

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

.option-card.selected {
  border-color: var(--color-accent);
  background-color: rgba(230, 126, 34, 0.15);
}

.radio-dot, .checkbox-square {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.checkbox-square {
  border-radius: 2px;
}

.option-card.selected .radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.option-card.selected .checkbox-square::after {
  content: '✓';
  color: var(--color-accent);
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.option-label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Slider Controls */
.slider-container {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-4);
}

.slider-val-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.val-badge {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
}

.range-input {
  width: 100%;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. CALCULATING ANIMATION SCREEN
   -------------------------------------------------------------------------- */
.calculating-card {
  padding: var(--space-12) var(--space-8);
}

.spinner-copper {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-bg-elevated);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-6) auto;
}

.spinner-copper-sm {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-bg-elevated);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

.calc-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.calc-subtitle {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: var(--space-8);
}

.calc-progress-steps {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.calc-step {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-inline-start: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.calc-step.active {
  color: var(--color-accent);
  border-inline-start-color: var(--color-accent);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. FREE PREVIEW SCREEN & RESULTS
   -------------------------------------------------------------------------- */
.preview-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.score-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 700px) {
  .score-display-grid {
    grid-template-columns: 1fr;
  }
}

.score-gauge-panel, .teaser-waste-panel {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.score-gauge-panel {
  text-align: center;
}

.gauge-label, .teaser-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.score-number {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.score-number.danger { color: var(--color-danger); }
.score-number.warning { color: var(--color-warning); }
.score-number.success { color: var(--color-success); }

.grade-badge {
  display: inline-block;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: var(--space-3);
}

.grade-badge.danger {
  background: rgba(224, 90, 74, 0.15);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.grade-badge.warning {
  background: rgba(212, 160, 23, 0.15);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.grade-badge.success {
  background: rgba(76, 175, 120, 0.15);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.gauge-desc {
  font-size: 12px;
  color: var(--color-text-muted);
}

.data-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.waste-subtext {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-3);
}

.top-wastes-box .box-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.top-wastes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.top-wastes-list li {
  font-size: 14px;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.top-wastes-list li::before {
  content: '•';
  color: var(--color-accent);
  font-size: 18px;
}

/* Payment Gate Card */
.payment-gate-box {
  border: 2px solid var(--color-accent);
  background: linear-gradient(180deg, rgba(230, 126, 34, 0.08) 0%, var(--color-bg-surface) 100%);
  border-radius: var(--border-radius);
  padding: var(--space-6);
}

.gate-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.gate-header p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.gate-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.price-tag {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
}

.price-vat {
  font-size: 12px;
  color: var(--color-text-muted);
}

.gate-trust-footer {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   9. REPORT UNLOCKED & PDF RENDER CONTAINER STYLES
   -------------------------------------------------------------------------- */
.report-unlocked-card {
  padding: var(--space-12) var(--space-6);
}

.success-badge-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(76, 175, 120, 0.15);
  color: var(--color-success);
  border: 2px solid var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto var(--space-4) auto;
}

.pdf-action-box {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.pdf-generating-spinner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--color-accent);
}

/* Hidden PDF Render Container */
.pdf-render-container {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 794px;
  background-color: #121212;
  color: #FFFFFF;
}

.pdf-page {
  width: 794px;
  height: 1123px;
  padding: 44px 48px 36px 48px;
  background-color: #121212;
  border-bottom: 4px solid var(--color-accent);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2A2A2B;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.pdf-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-header-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.pdf-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

html[dir="ltr"] .pdf-header-titles {
  text-align: left;
}

.pdf-header-company {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1.2;
}

.pdf-header-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  color: #8A8A8A;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pdf-header-meta {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[dir="ltr"] .pdf-header-meta {
  text-align: right;
}

.pdf-header-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.pdf-header-client {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: #FFFFFF;
}

.pdf-header-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #8a8a8a;
}

.pdf-footer {
  border-top: 1px solid #2A2A2B;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #8a8a8a;
}

.pdf-footer-contact {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #A0A0A0;
  direction: ltr;
}

.pdf-footer-contact span.sep {
  color: #444444;
}

.pdf-footer-page {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8A8A8A;
}

/* --------------------------------------------------------------------------
   10. ACCESSIBILITY (A11Y) COMPLIANCE RULES (SI 5568 / WCAG 2.1 AA)
   -------------------------------------------------------------------------- */

/* Screen Reader Only Utility */
.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;
}

/* Skip to Main Content Link */
.skip-link {
  position: absolute;
  top: -70px;
  left: var(--space-4);
  background-color: var(--color-bg-surface);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  z-index: 10000;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: top 0.2s ease-in-out;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: var(--space-4);
}

.skip-link:focus-visible {
  top: var(--space-3);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Visible Keyboard Focus Rings */
:focus-visible {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px !important;
}

:focus:not(:focus-visible) {
  outline: none;
}

.option-card:focus-visible {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 2px var(--color-accent-tint), 0 0 0 4px var(--color-accent) !important;
}

/* Accessibility Statement Modal Dialog */
.a11y-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.a11y-modal-backdrop.open {
  display: flex;
}

.a11y-modal {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.a11y-modal-title {
  font-size: 18px;
  color: var(--color-text-primary);
  margin: 0;
}

.a11y-modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.a11y-modal-body h3 {
  font-size: 16px;
  color: var(--color-text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.a11y-modal-body ul {
  padding-right: var(--space-4);
  padding-left: 0;
  margin-bottom: var(--space-3);
}

html[dir="ltr"] .a11y-modal-body ul {
  padding-left: var(--space-4);
  padding-right: 0;
}

.a11y-modal-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.a11y-close-btn {
  background: var(--color-bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--color-text-primary);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.a11y-close-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

