/* ==========================================================================
   QUICKPROOF — STREAMLINED SILICON VALLEY DESIGN SYSTEM
   100% Mobile & Local • Zero-Cloud • Fast, Intuitive, Ultra-Impactful
   ========================================================================== */

:root {
  /* High-Impact Color Tokens */
  --bg-primary: #030712;
  --bg-secondary: #080e22;
  --bg-card: #0c1430;
  --bg-card-dark: #070c1e;

  --accent-green: #00ffaa;
  --accent-green-dark: #00b87a;
  --accent-cyan: #00f0ff;
  --accent-green-glow: rgba(0, 255, 170, 0.4);
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-purple: #8b5cf6;
  --accent-crimson: #ff0055;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(12, 20, 48, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 255, 170, 0.45);
  --glass-glow: 0 16px 40px rgba(0, 0, 0, 0.55);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 170, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: #f1f5f9;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: #e2e8f0;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utility Colors */
.text-emerald { color: var(--accent-green) !important; }
.text-cyan { color: var(--accent-cyan) !important; }
.text-purple { color: var(--accent-purple) !important; }

/* Dynamic Ambient Gradients */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 255, 170, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(10, 15, 35, 1) 0%, var(--bg-primary) 100%);
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement-bar {
  background: linear-gradient(90deg, #0b1536 0%, #064e3b 50%, #0b1536 100%);
  border-bottom: 1px solid rgba(0, 255, 170, 0.3);
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  position: relative;
  z-index: 1001;
  text-align: center;
}

.announcement-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: #e2e8f0;
}

.pulse-fire {
  font-size: 0.95rem;
  animation: pulseGlow 1.5s infinite;
}

.spots-pill {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.announcement-link {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.announcement-link:hover {
  text-decoration: underline;
  color: #fff;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.85rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px var(--accent-green-glow);
  border: 1px solid rgba(0, 255, 170, 0.5);
  transition: var(--transition-smooth);
}

.nav-brand:hover .brand-logo-img {
  transform: rotate(6deg) scale(1.08);
}

.brand-text-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
}

.brand-text-logo span {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #94a3b8;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sound-toggle-btn:hover, .sound-toggle-btn.active {
  color: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 15px var(--accent-green-glow);
}

/* Language Selector Dropdown */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(0, 255, 170, 0.4);
}

.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.lang-chevron {
  font-size: 0.65rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #090e1a;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 14px;
  padding: 0.35rem;
  min-width: 155px;
  max-height: 290px;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(52, 211, 153, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2500;
}

.lang-dropdown-menu::-webkit-scrollbar {
  width: 4px;
}
.lang-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.lang-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.4);
  border-radius: 4px;
}

.lang-dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.lang-option-item .flag {
  font-size: 1rem;
}

.lang-option-item small {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #475569;
}

.lang-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lang-option-item.active {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  font-weight: 800;
}

.lang-option-item.active small {
  color: #34d399;
}

/* ==========================================================================
   RTL MODE FOR ARABIC (العربية)
   ========================================================================== */
body.rtl-mode {
  direction: rtl;
  text-align: right;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body.rtl-mode .nav-actions {
  margin-right: auto;
  margin-left: 0;
}

body.rtl-mode .lang-dropdown-menu {
  right: auto;
  left: 0;
}

body.rtl-mode .lang-option-item {
  text-align: right;
}

body.rtl-mode .lang-option-item small {
  margin-left: 0;
  margin-right: auto;
}

body.rtl-mode .hero-text-block,
body.rtl-mode .section-header {
  text-align: right;
}

body.rtl-mode .step-back-btn i,
body.rtl-mode .history-back-pill i,
body.rtl-mode .popup-back-action-btn i {
  transform: rotate(180deg);
}

body.rtl-mode #btnGoToSign i,
body.rtl-mode #btnGoToHistoryFromPdf i {
  transform: rotate(180deg);
}

body.rtl-mode .mock-status-bar,
body.rtl-mode .cert-meta-row,
body.rtl-mode .live-photo-stamp,
body.rtl-mode .mock-gps-header,
body.rtl-mode .history-segmented-switch {
  direction: ltr;
}

body.rtl-mode .split-slider-container {
  direction: ltr;
}

body.rtl-mode .split-layer {
  direction: rtl;
  text-align: right;
}

body.rtl-mode .split-badge {
  align-self: flex-start;
}

body.rtl-mode .split-point-item {
  text-align: right;
}

body.rtl-mode .calc-slider-header,
body.rtl-mode .impact-contrast-row {
  direction: rtl;
}

body.rtl-mode .faq-question {
  text-align: right;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: #040711;
  box-shadow: 0 0 25px var(--accent-green-glow);
  transition: var(--transition-smooth);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--accent-green);
  color: #000;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-green);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 94vh;
  padding: 9.5rem 2rem 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#webgl-globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid rgba(0, 255, 170, 0.35);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.gradient-text-green {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-green) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 2.2rem;
  max-width: 580px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* 3D Hologram Card */
.hero-hologram-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.hologram-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-hover);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px var(--accent-green-glow);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.hologram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.holo-live-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 255, 170, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.holo-screen-preview {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 170, 0.4);
  margin-bottom: 1.2rem;
  background: #02040a;
}

.holo-screen-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.laser-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-green), #ffffff, var(--accent-green), transparent);
  box-shadow: 0 0 15px var(--accent-green), 0 0 25px #ffffff;
  animation: laserScan 2.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 5%; }
  100% { top: 92%; }
}

.holo-metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
}

.holo-meta-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.holo-meta-box label {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.holo-meta-box span {
  color: #fff;
  font-weight: 600;
}

.hologram-floating-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.95), rgba(0, 200, 255, 0.95));
  color: #040711;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px var(--accent-green-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateZ(30px);
}

/* Section Scroll Margin (Prevents navbar overlap on any viewport) */
html {
  scroll-behavior: smooth;
}

section[id],
#hero,
#demo,
#avantages,
#comparateur,
#calculateur,
#faq,
.quick-demo-section,
.bento-section,
.before-after-section,
.calculator-section,
.faq-section,
.final-cta-section {
  scroll-margin-top: 130px;
}

/* ==========================================================================
   DÉMO INTERACTIVE EN 3 CLICS (SIMPLE, MAGIQUE & SANS JARGON)
   ========================================================================== */
.quick-demo-section {
  padding: 3.5rem 1.5rem 5rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.live-studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.live-radar-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-green);
  animation: pulseGlow 1.5s infinite;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle-tag {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.section-description {
  font-size: 1.1rem;
  color: #94a3b8;
}

/* Demo Trade Toolbar */
.demo-trade-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.toolbar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trade-pills-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trade-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #cbd5e1;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.trade-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 255, 170, 0.4);
  transform: translateY(-1px);
}

.trade-pill-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.25), rgba(0, 240, 255, 0.25));
  border-color: var(--accent-green);
  color: #00ffaa;
  font-weight: 800;
  box-shadow: 0 0 15px var(--accent-green-glow);
}

.offline-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.quick-demo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 1.5rem 1rem;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* ==========================================================================
   SMARTPHONE 3D FRAME
   ========================================================================== */
.demo-phone-column {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.titanium-phone-frame {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: #020617;
  border: 9px solid #1e293b;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-green-glow);
  overflow: hidden;
  user-select: none;
}

.phone-dynamic-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #000000;
  border-radius: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7px;
}

.island-camera-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d1527;
}

.phone-screen-content {
  background: #040817;
  min-height: 480px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.8rem 0.8rem 0.8rem 0.8rem;
  color: #f8fafc;
}

.phone-screen-content::-webkit-scrollbar {
  display: none;
}

.phone-app-toast {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0, 255, 170, 0.95);
  color: #040711;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.phone-app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.mock-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

/* Phone In-App Navigation Tabs */
.phone-app-navbar {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 0.65rem;
}

.phone-nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.phone-nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.phone-nav-tab.active {
  background: var(--accent-green);
  color: #040711;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--accent-green-glow);
}

.studio-phone-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-step-view {
  display: none;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease;
}

.phone-step-view.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Photo View */
.phone-viewfinder-live {
  position: relative;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 170, 0.5);
  cursor: pointer;
}

.phone-viewfinder-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-photo-stamp {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(0, 255, 170, 0.5);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #fff;
  line-height: 1.2;
}

.live-photo-stamp div:first-child {
  color: var(--accent-green);
  font-weight: 800;
}

.shutter-lens-ring {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: #040711;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px var(--accent-green-glow);
}

.phone-viewfinder-live:active .shutter-lens-ring {
  transform: translateX(-50%) scale(0.9);
}

.mock-gps-strip {
  background: rgba(0, 255, 170, 0.08);
  border: 1px solid rgba(0, 255, 170, 0.3);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mock-gps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--accent-green);
  font-weight: 800;
}

.camera-flash-fx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.1s ease;
}

.camera-flash-fx.flashing {
  opacity: 0.95;
  transition: opacity 0.3s ease-out;
}

/* Signature Pad View */
.interactive-signature-pad-box {
  border: 1px dashed rgba(0, 255, 170, 0.5);
  border-radius: 10px;
  padding: 0.45rem;
  background: #ffffff;
  position: relative;
}

#phoneSignCanvas {
  width: 100%;
  height: 85px;
  display: block;
  cursor: crosshair;
  background: #fff;
  border-radius: 6px;
  touch-action: none;
}

.clear-sign-btn {
  background: rgba(15, 23, 42, 0.1);
  border: none;
  font-size: 0.6rem;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.clear-sign-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Field Note on Terrain Card (Phone View 2) */
.field-note-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 255, 170, 0.35);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  backdrop-filter: blur(10px);
}

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

.note-header-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #fff;
}

.voice-dictate-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid var(--accent-green);
  color: #00ffaa;
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  overflow: hidden;
}

.voice-dictate-btn:hover {
  background: var(--accent-green);
  color: #040711;
  box-shadow: 0 0 15px var(--accent-green-glow);
}

.voice-dictate-btn.recording {
  background: #ef4444;
  border-color: #f87171;
  color: #fff;
  animation: pulseRecording 1s infinite alternate;
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
  100% { box-shadow: 0 0 20px rgba(239, 68, 68, 1); }
}

.mic-wave-pulse {
  display: none;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: waveDot 0.8s infinite alternate;
}

.voice-dictate-btn.recording .mic-wave-pulse {
  display: inline-block;
}

@keyframes waveDot {
  from { transform: scale(0.6); opacity: 0.4; }
  to { transform: scale(1.4); opacity: 1; }
}

.note-quick-tags {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.note-quick-tags::-webkit-scrollbar {
  display: none;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 0.58rem;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tag-chip:hover, .tag-chip.active {
  background: rgba(0, 255, 170, 0.2);
  border-color: #00ffaa;
  color: #00ffaa;
  font-weight: 700;
}

.field-note-textarea {
  width: 100%;
  background: rgba(4, 8, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f8fafc;
  font-family: var(--font-main);
  font-size: 0.68rem;
  line-height: 1.35;
  padding: 0.45rem;
  resize: none;
  transition: border-color 0.2s ease;
}

.field-note-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}

.note-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.52rem;
}

.note-seal-pill {
  color: #00ffaa;
  font-family: var(--font-mono);
  font-weight: 700;
}

.voice-status-text {
  color: #64748b;
  font-style: italic;
}

.mock-ui-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem;
}

/* Certified PDF Report in Phone */
.mock-pdf-certificate {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 0.55rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-main);
}

.cert-header {
  background: linear-gradient(90deg, #040711, #0f172a);
  color: #fff;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-company-badge {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.44rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cert-company-badge strong {
  color: #0f172a;
}

/* Preuves Visuelles Statiques : Photo + Carte Statique OpenStreetMap (OSM) */
.cert-static-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.cert-proof-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-card-label {
  font-size: 0.46rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.proof-img-frame {
  position: relative;
  width: 100%;
  height: 75px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #040817;
}

.proof-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proof-badge-stamp {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(3, 7, 18, 0.95) 45%);
  padding: 0.15rem 0.3rem;
  color: #fff;
  font-size: 0.46rem;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.badge-hud {
  background: #00ffaa;
  color: #040711;
  font-weight: 800;
  font-size: 0.4rem;
  padding: 1px 3px;
  border-radius: 2px;
}

.badge-hud.osm-ok {
  background: #00f0ff;
  color: #040711;
}

.pdf-osm-static-canvas {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  pointer-events: none; /* Locked static feel */
  user-select: none;
}

/* Precision Crosshair Pin Marker */
.osm-precision-pin-wrapper {
  background: none;
  border: none;
}

.precision-crosshair {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  color: #ef4444;
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.crosshair-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 1.5px dashed #ef4444;
  border-radius: 50%;
  animation: radarRotate 6s linear infinite;
}

@keyframes radarRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.crosshair-label {
  position: absolute;
  top: -12px;
  background: #040711;
  color: #00ffaa;
  font-family: var(--font-mono);
  font-size: 0.42rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #00ffaa;
  white-space: nowrap;
}

.badge-hud {
  background: #00ffaa;
  color: #040711;
  font-weight: 800;
  font-size: 0.45rem;
  padding: 1px 4px;
  border-radius: 2px;
}

/* OpenStreetMap Box */
.pdf-osm-map-container {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  z-index: 1;
}

.osm-hud-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(3, 7, 18, 0.9);
  padding: 0.2rem 0.4rem;
  color: #fff;
  font-size: 0.48rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 10;
  border-top: 1px solid rgba(0, 255, 170, 0.3);
}

/* Leaflet Custom Pin Marker */
.osm-custom-pin-wrapper {
  background: none;
  border: none;
}

.osm-radar-pin {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0055;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.osm-pin-pulse {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(0, 255, 170, 0.6);
  border: 1px solid #00ffaa;
  border-radius: 50%;
  bottom: -2px;
  left: 5px;
  z-index: -1;
  animation: radarPing 1.5s infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.cert-meta-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.55rem;
}

.cert-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-title {
  color: #64748b;
  font-weight: 600;
}

.meta-value {
  color: #0f172a;
  text-align: right;
}

.cert-sign-seal-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 0.25rem;
  border-top: 1px dashed #cbd5e1;
  gap: 0.5rem;
}

.cert-client-sign-box {
  flex: 1;
}

.pdf-sig-preview-frame {
  width: 100%;
  max-width: 120px;
  height: 30px;
  border-bottom: 1px solid #0f172a;
  background: rgba(241, 245, 249, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pdfSignatureImg {
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
  display: none;
}

.sig-placeholder-text {
  font-size: 0.5rem;
  color: #94a3b8;
  font-style: italic;
}

.cert-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.cert-qr-box img {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}

.qr-label {
  font-size: 0.42rem;
  color: #059669;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-top: 1px;
}

.phone-step-bullets {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.step-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
}

.step-bullet.active {
  width: 16px;
  border-radius: 10px;
  background: var(--accent-green);
}

/* ==========================================================================
   AUTHENTIC MOBILE APP HISTORY SCREEN (SCREEN 4)
   ========================================================================== */
.history-app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.history-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0;
}

.history-count {
  font-size: 0.62rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.history-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.history-filter-icon-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-filter-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.history-segmented-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: #34d399;
  color: #040711;
  font-weight: 800;
  box-shadow: 0 1px 6px rgba(52, 211, 153, 0.4);
}

.history-search-container {
  position: relative;
  margin-bottom: 0.65rem;
}

.history-search-container .search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.65rem;
  pointer-events: none;
}

.history-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 0.4rem 0.65rem 0.4rem 1.8rem;
  font-size: 0.62rem;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease;
}

.history-search-input:focus {
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

.history-search-input::placeholder {
  color: #475569;
}

.history-chips-row {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  margin-bottom: 0.4rem;
  scrollbar-width: none;
}

.history-chips-row::-webkit-scrollbar {
  display: none;
}

.history-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.history-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.history-chip.active {
  background: rgba(52, 211, 153, 0.15);
  border-color: #34d399;
  color: #34d399;
  font-weight: 800;
}

.history-cards-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.history-cards-scroll-list::-webkit-scrollbar {
  display: none;
}

.history-report-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.history-report-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.report-thumb-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.85rem;
}

.report-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-ref-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.report-qp-code {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.report-badge-signed {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  font-size: 0.42rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}

.report-address-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-date-row {
  font-size: 0.52rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.report-chevron {
  color: #64748b;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.history-report-card:hover .report-chevron {
  color: #34d399;
  transform: translateX(2px);
}

/* History Map View Container */
.history-map-view {
  display: flex;
  flex-direction: column;
  height: 290px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: #0f172a;
}

.history-osm-map-canvas {
  width: 100%;
  height: 100%;
  flex: 1;
  background: #1e293b;
}

.history-map-footer-hud {
  background: rgba(2, 6, 23, 0.92);
  border-top: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.3rem 0.5rem;
  font-size: 0.52rem;
  color: #34d399;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  z-index: 10;
}

.hud-status-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulseGlow 1.5s infinite;
}

/* Authentic Bottom App Navigation Bar */
.phone-bottom-nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.5rem;
  margin: 0.4rem -0.8rem -0.8rem -0.8rem;
  border-radius: 0 0 36px 36px;
  z-index: 50;
}

.phone-bottom-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.55rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.phone-bottom-tab i {
  font-size: 0.85rem;
}

.phone-bottom-tab:hover {
  color: #cbd5e1;
}

.phone-bottom-tab.active {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
  font-weight: 800;
}

/* In-App Step Sub-Navigation Bar */
.step-nav-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
  margin-bottom: 0.45rem;
}

.step-back-btn, .step-forward-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.step-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.step-forward-btn {
  background: rgba(0, 255, 170, 0.12);
  border-color: rgba(0, 255, 170, 0.35);
  color: #00ffaa;
}

.step-forward-btn:hover {
  background: #00ffaa;
  color: #040711;
}

.step-subbar-title {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.step-subbar-counter {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--accent-green);
  font-weight: 700;
}

.history-title-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.history-back-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-back-pill:hover {
  background: var(--accent-green);
  color: #040711;
  border-color: var(--accent-green);
}

.history-map-back-floating-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #34d399;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.history-map-back-floating-btn:hover {
  background: #34d399;
  color: #040711;
  transform: translateY(-1px);
}

/* ==========================================================================
   IN-PHONE REPORT POPUP MODAL (BOTTOM-SHEET OVERLAY)
   ========================================================================== */
.phone-report-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.5rem;
  box-sizing: border-box;
}

.phone-report-popup-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.phone-report-popup-card {
  width: 100%;
  background: #0b1120;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95), 0 0 25px rgba(52, 211, 153, 0.25);
  position: relative;
  transform: translateY(40px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.phone-report-popup-backdrop.show .phone-report-popup-card {
  transform: translateY(0);
}

.popup-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.35rem;
  margin-bottom: 0.1rem;
}

.popup-back-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.popup-back-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.popup-bar-title {
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}

.popup-close-x {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #94a3b8;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-close-x:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.popup-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1.5rem;
}

.popup-ref-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #34d399;
}

.popup-media-preview {
  position: relative;
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #020617;
}

.popup-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-media-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.95));
  padding: 0.25rem 0.4rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.46rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
}

.popup-info-details {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.55rem;
}

.popup-info-item {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
}

.popup-info-label {
  color: #64748b;
  font-weight: 600;
}

.popup-info-val {
  color: #f1f5f9;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-info-item.notes-box {
  flex-direction: column;
  gap: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.25rem;
  margin-top: 0.1rem;
}

.popup-info-val.note-val {
  text-align: left;
  white-space: normal;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.3;
}

.popup-actions-grid {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.btn-popup-open-pdf {
  flex: 2;
  background: linear-gradient(135deg, #00ffaa, #00c8ff);
  color: #040711;
  border: none;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.btn-popup-open-pdf:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 255, 170, 0.4);
}

.btn-popup-whatsapp {
  flex: 1;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25D366;
  color: #25D366;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.btn-popup-whatsapp:hover {
  background: #25D366;
  color: #040711;
}

/* Custom Interactive Leaflet Popups on History Map */
.leaflet-popup-content-wrapper {
  background: #0f172a !important;
  color: #fff !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(52, 211, 153, 0.3) !important;
  padding: 2px !important;
}

.leaflet-popup-tip {
  background: #0f172a !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
}

.map-custom-popup-box {
  padding: 0.35rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 140px;
}

.map-popup-ref {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: #34d399;
  font-weight: 800;
}

.map-popup-addr {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.map-popup-btn {
  background: #34d399;
  color: #040711;
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  font-size: 0.52rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.map-popup-btn:hover {
  background: #10b981;
  transform: translateY(-1px);
}

.history-map-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  cursor: pointer;
}

.history-map-pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(52, 211, 153, 0.6);
  border-radius: 50%;
  bottom: -2px;
  z-index: -1;
  animation: radarPing 1.6s infinite;
}

/* ==========================================================================
   BENTO SECTIONS & POURQUOI QUICKPROOF
   ========================================================================== */
.bento-section {
  padding: 5rem 2rem;
  max-width: 1250px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.8rem;
}

.bento-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px var(--accent-green-glow);
}

.bento-col-4 { grid-column: span 4; }
.bento-col-3 { grid-column: span 3; }

.bento-icon-glow {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}

.icon-green { background: rgba(0, 255, 170, 0.12); color: var(--accent-green); box-shadow: 0 0 20px var(--accent-green-glow); }
.icon-cyan { background: rgba(0, 240, 255, 0.12); color: var(--accent-cyan); box-shadow: 0 0 20px var(--accent-cyan-glow); }
.icon-purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.bento-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   BEFORE / AFTER SLIDER & COMPARATEUR PERSUASIF
   ========================================================================== */
.before-after-section {
  padding: 4rem 1.5rem 5rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

.split-slider-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 460px;
  margin: 2rem auto 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-green-glow);
  user-select: none;
  touch-action: none;
}

.split-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split-layer.before {
  background: radial-gradient(circle at top left, #2f0815 0%, #15050b 80%);
  color: #cbd5e1;
}

.split-layer.after {
  background: radial-gradient(circle at top right, #062b24 0%, #031414 80%);
  color: #fff;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.split-layer-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.before-title {
  color: #ff3366;
}

.after-title {
  color: #00ffaa;
}

.split-points-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.split-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.split-point-item i {
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.before-item i {
  color: #ff3366;
}

.before-item strong {
  color: #f87171;
  display: inline;
}

.after-item i {
  color: #00ffaa;
  filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.5));
}

.after-item strong {
  color: #fff;
  display: inline;
}

.split-bottom-tag {
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-top: 1rem;
}

.before-tag {
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid rgba(255, 0, 85, 0.3);
  color: #fca5a5;
}

.after-tag {
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.4);
  color: #86efac;
}

.split-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.badge-before { background: rgba(255, 0, 85, 0.25); color: #ff3366; border: 1px solid rgba(255, 0, 85, 0.5); }
.badge-after { background: rgba(0, 255, 170, 0.25); color: #00ffaa; border: 1px solid rgba(0, 255, 170, 0.5); }

.split-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #00ffaa, #00f0ff, #00ffaa);
  box-shadow: 0 0 20px #00ffaa, 0 0 35px rgba(0, 255, 170, 0.8);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 20;
}

.split-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #040711;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--accent-green-glow);
  font-size: 1rem;
  cursor: grab;
  transition: transform 0.15s ease;
}

.split-handle-btn:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.1);
}

/* 3 Impact Comparison Pillars */
.compare-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 2.2rem auto 0 auto;
}

.compare-impact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.compare-impact-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.compare-impact-card.highlight-card {
  border-color: rgba(0, 255, 170, 0.4);
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.08), rgba(0, 240, 255, 0.05));
  box-shadow: 0 10px 30px rgba(0, 255, 170, 0.15);
}

.impact-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.compare-impact-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.impact-contrast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0.4rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.impact-old {
  color: #f87171;
  text-decoration: line-through;
  opacity: 0.8;
}

.impact-arrow {
  color: #64748b;
  font-size: 0.7rem;
}

.impact-new {
  color: #00ffaa;
  font-weight: 800;
}

.compare-impact-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .compare-impact-grid {
    grid-template-columns: 1fr;
  }
  .split-slider-container {
    height: 520px;
  }
  .split-layer {
    padding: 1.8rem 1.5rem;
  }
}

/* ==========================================================================
   CALCULATEUR DE GAINS
   ========================================================================== */
.calculator-section {
  padding: 5rem 2rem;
  max-width: 1050px;
  margin: 0 auto;
}

.calc-glass-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-slider-group {
  margin-bottom: 1.8rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.calc-slider-header label {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.calc-slider-header span {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.custom-range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-green);
  cursor: pointer;
  box-shadow: 0 0 15px var(--accent-green);
}

.calc-results-card {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.08), rgba(0, 240, 255, 0.08));
  border: 1px solid rgba(0, 255, 170, 0.35);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

.calc-result-stat {
  margin-bottom: 1.2rem;
}

.calc-result-stat:last-child {
  margin-bottom: 0;
}

.calc-result-stat strong {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.calc-result-stat p {
  font-size: 0.85rem;
  color: #94a3b8;
}



/* ==========================================================================
   FAQ SECTION (RÉASSURANCE PROS DU TERRAIN)
   ========================================================================== */
.faq-section {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(0, 255, 170, 0.35);
}

.faq-item.active {
  border-color: var(--accent-green);
  box-shadow: 0 0 25px rgba(0, 255, 170, 0.12);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.faq-chevron {
  font-size: 0.85rem;
  color: var(--accent-green);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.4rem 1.5rem;
}

.faq-answer strong {
  color: #f8fafc;
}

/* ==========================================================================
   FINAL CTA & MODAL
   ========================================================================== */
.final-cta-section {
  padding: 6rem 2rem;
  text-align: center;
}

.cta-banner-glass {
  max-width: 1050px;
  margin: 0 auto;
  background: radial-gradient(circle at center, rgba(0, 255, 170, 0.15) 0%, rgba(8, 13, 31, 0.95) 70%);
  border: 1px solid var(--accent-green);
  border-radius: 32px;
  padding: 4rem 2.5rem;
  box-shadow: 0 0 50px var(--accent-green-glow);
}

.cta-banner-glass h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.cta-banner-glass p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2.2rem auto;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 11, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-green);
  border-radius: 24px;
  padding: 2.2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 0 50px var(--accent-green-glow);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-trust-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
  flex-wrap: wrap;
}

.modal-trust-row span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-group-modal {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group-modal label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.form-input-modal {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
}

.form-input-modal:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green-glow);
}

select.form-input-modal option {
  background-color: var(--bg-card-dark);
  color: #ffffff;
}

/* WhatsApp Interactive Simulation Modal */
.whatsapp-modal-window {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  background: #0b141a;
  border: 1px solid #25D366;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(37, 211, 102, 0.35);
}

.wa-chat-header {
  background: #202c33;
  padding: 0.85rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-chat-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #374151;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.wa-chat-user-info strong {
  display: block;
  color: #e9edef;
  font-size: 0.9rem;
}

.wa-chat-user-info span {
  font-size: 0.7rem;
  color: #00a884;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.wa-security-tag {
  font-size: 0.65rem;
  color: #8696a0;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 6px;
}

.wa-chat-body {
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 16px 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 250px;
}

.wa-chat-bubble {
  max-width: 88%;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  position: relative;
}

.wa-chat-bubble.outgoing {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-bottom-right-radius: 2px;
}

.wa-chat-bubble.incoming {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-bottom-left-radius: 2px;
}

.wa-pdf-attachment {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-pdf-icon {
  font-size: 1.6rem;
  color: #ef4444;
}

.wa-pdf-meta strong {
  display: block;
  font-size: 0.78rem;
  color: #fff;
  word-break: break-all;
}

.wa-pdf-meta span {
  font-size: 0.65rem;
  color: #8696a0;
  font-family: var(--font-mono);
}

.wa-message-text {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: #e9edef;
}

.wa-bubble-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: #8696a0;
}

.wa-modal-actions {
  padding: 1rem 1.2rem;
  background: #111b21;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer-showcase {
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 2rem 2rem 2rem;
  background: rgba(4, 7, 17, 0.95);
}

.footer-container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  max-width: 300px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  max-width: 1250px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.8rem;
}



/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM — ULTRA FLUID & MOBILE OPTIMIZED
   Compatible with all screen sizes from 320px to 4K displays
   ========================================================================== */

/* Tablet & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-subtitle {
    margin: 0 auto 2.2rem auto;
    max-width: 680px;
  }
  .hero-cta-group, .hero-trust-badges {
    justify-content: center;
  }
  .hero-hologram-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
  .quick-demo-container {
    grid-template-columns: 1fr;
    padding: 2.2rem;
    gap: 2.5rem;
  }
  .demo-guide-column {
    order: 2;
  }
  .demo-phone-column {
    order: 1;
    display: flex;
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento-col-4, .bento-col-3 {
    grid-column: span 6;
  }
  .bento-col-6 {
    grid-column: span 6;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .calc-glass-box {
    grid-template-columns: 1fr;
    padding: 2.2rem;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  /* Top announcement bar */
  .top-announcement-bar {
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
  }
  .top-announcement-bar .announcement-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
  }

  /* Navbar */
  .header-nav {
    padding: 0.6rem 0.8rem;
  }
  .navbar {
    padding: 0.5rem 0.8rem;
    gap: 0.5rem;
  }
  .nav-links {
    display: none;
  }
  .brand-text-logo {
    font-size: 1.15rem;
  }
  .brand-text-logo small {
    display: none;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .lang-dropdown-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  .sound-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .nav-actions .btn-glow {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
  .nav-actions .btn-glow i {
    display: none;
  }

  /* Hero Section */
  .hero-section {
    padding: 6.5rem 1rem 3rem 1rem;
    min-height: auto;
  }
  .hero-tag {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1.2rem;
  }
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.7rem);
    line-height: 1.18;
    margin-bottom: 1.2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 2rem auto;
    gap: 0.8rem;
  }
  .hero-cta-group .btn-glow,
  .hero-cta-group .btn-glass {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
  }
  .hero-trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .trust-badge-item {
    font-size: 0.82rem;
  }

  /* 3D Hologram Card */
  .hero-hologram-wrapper {
    width: 100%;
    max-width: 380px;
  }
  .hologram-card {
    padding: 1.2rem;
    border-radius: 18px;
  }
  .holo-screen-preview {
    height: 160px;
  }
  .holo-metadata-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .holo-meta-box {
    padding: 0.5rem 0.7rem;
  }

  /* Demo Section & Trade Selector */
  .quick-demo-section {
    padding: 4rem 1rem 3rem 1rem;
  }
  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  }
  .section-description {
    font-size: 0.9rem;
  }
  .demo-trade-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }
  .toolbar-label {
    text-align: center;
    font-size: 0.85rem;
  }
  .trade-pills-row {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .trade-pills-row::-webkit-scrollbar {
    display: none;
  }
  .trade-pill-btn {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .offline-guarantee-pill {
    text-align: center;
    font-size: 0.78rem;
    justify-content: center;
  }

  /* Smartphone Frame Responsive */
  .quick-demo-container {
    padding: 1.2rem 0.6rem;
    border-radius: 20px;
    background: transparent;
    border: none;
  }
  .titanium-phone-frame {
    width: 100%;
    max-width: 360px;
    height: 660px;
    border-radius: 40px;
    border-width: 7px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 255, 170, 0.15);
  }
  .phone-screen-content {
    border-radius: 32px;
  }
  .phone-app-navbar {
    padding: 0.35rem;
    gap: 0.25rem;
  }
  .phone-nav-tab {
    padding: 0.4rem 0.2rem;
    font-size: 0.68rem;
  }
  .phone-nav-tab i {
    font-size: 0.78rem;
  }
  .phone-viewfinder-live {
    height: 220px;
  }

  /* Before / After Comparison */
  .split-slider-container {
    height: 400px;
    border-radius: 16px;
  }
  .split-layer {
    padding: 1.2rem 1rem;
  }
  .split-layer h4 {
    font-size: 1.1rem;
  }
  .split-item {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  /* ROI Calculator */
  .calc-glass-box {
    padding: 1.5rem 1rem;
    border-radius: 18px;
    gap: 1.8rem;
  }
  .calc-result-card {
    padding: 1.5rem 1rem;
    text-align: center;
  }
  .calc-metric-highlight .number {
    font-size: 2.2rem;
  }

  /* Footer */
  .footer-section {
    padding: 3.5rem 1rem 1.5rem 1rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-col ul {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  /* Modals on Mobile (Bottom Sheet / Full View) */
  .modal-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .modal-glass-container {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 12px 12px;
    padding: 1.6rem 1.2rem;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-glass-container .modal-header h3 {
    font-size: 1.25rem;
  }
  .modal-form-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* Small Smartphone Devices (<= 480px - iPhone 12/13/14/15/16/SE, Android) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .navbar {
    padding: 0.45rem 0.6rem;
  }
  .brand-text-logo {
    font-size: 1.05rem;
  }
  .lang-dropdown-btn {
    padding: 0.35rem 0.5rem;
  }
  .lang-dropdown-btn .lang-code {
    display: none;
  }
  .nav-actions .btn-glow {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }

  .hero-section {
    padding: 5.8rem 0.8rem 2.5rem 0.8rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.88rem;
  }

  .titanium-phone-frame {
    height: 610px;
    border-width: 6px;
    border-radius: 34px;
  }
  .phone-screen-content {
    border-radius: 26px;
  }
  .phone-viewfinder-live {
    height: 190px;
  }
  .signature-canvas-container {
    height: 140px;
  }
  .phone-pdf-mock-page {
    padding: 0.6rem;
    font-size: 0.68rem;
  }
  #mockupInteractiveMap {
    height: 170px !important;
  }

  .bento-card {
    padding: 1.3rem 1rem;
  }
  .bento-card h3 {
    font-size: 1.15rem;
  }
  
  .faq-accordion-item {
    border-radius: 12px;
  }
  .faq-accordion-header {
    padding: 1rem 0.9rem;
    font-size: 0.92rem;
  }
}

/* Micro Devices (<= 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .titanium-phone-frame {
    height: 560px;
  }
  .phone-nav-tab span {
    font-size: 0.6rem;
  }
}

