
:root {
  --blue-900: #002740;
  --blue-800: #003d61;
  --blue-700: #00527d;
  --blue-600: #005d93;
  --blue-500: #006aa3;
  --blue-400: #0087c8;
  --blue-300: #4db3e0;
  --cyan: #00d4ff;
  --cyan-soft: #a8edff;
  --white: #ffffff;
  --gray-50: #f8faff;
  --gray-100: #eef2fb;
  --gray-200: #d8e3f5;
  --gray-400: #8fa5c8;
  --gray-600: #4a6080;
  --gray-800: #1e2d44;
  --text-dark: #002740;
  --text-body: #334766;
  --text-muted: #6b83a3;
  --gradient-hero: linear-gradient(135deg, #002740 0%, #00406b 50%, #006aa3 100%);
  --gradient-blue: linear-gradient(135deg, #006aa3 0%, #00a8d4 100%);
  --gradient-soft: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
  --shadow-card: 0 4px 24px rgba(0,106,163,0.08), 0 1px 4px rgba(10,22,40,0.06);
  --shadow-hover: 0 12px 40px rgba(0,106,163,0.16), 0 2px 8px rgba(10,22,40,0.08);
  --shadow-blue: 0 8px 32px rgba(0,106,163,0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --nav-bg: rgba(255,255,255,0.88);
  --nav-bg-scrolled: rgba(255,255,255,0.97);
  --nav-border: rgba(0,106,163,0.08);
  --mobile-menu-bg: #ffffff;
  --float-card-bg: #ffffff;
  --security-node-bg: #ffffff;
  --security-node-border: var(--gray-100);
  --logo-color: var(--blue-700);
}

[data-theme="dark"] {
  --white: #002740;
  --gray-50: #0d1e38;
  --gray-100: #112240;
  --gray-200: #1a3055;
  --gray-400: #4a6080;
  --text-dark: #e8f0ff;
  --text-body: #a8bcd8;
  --text-muted: #5a7498;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 40px rgba(0,106,163,0.25);
  --nav-bg: rgba(10,22,40,0.9);
  --nav-bg-scrolled: rgba(10,22,40,0.98);
  --nav-border: rgba(0,106,163,0.18);
  --mobile-menu-bg: #0d1e38;
  --float-card-bg: #112240;
  --security-node-bg: #112240;
  --security-node-border: #1a3055;
  --logo-color: #a8d4ff;
  --blue-700: #60b4ff;
  --blue-600: #2d9cff;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 2px 20px rgba(0,106,163,0.1);
}

[data-theme="dark"] .navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-svg {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.nav-logo:hover .nav-logo-svg { opacity: 0.8; }

.footer-logo-svg {
  height: 85px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.95;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover { color: var(--blue-500); background: rgba(0,106,163,0.06); }

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

.btn-nav-login {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,106,163,0.2);
  transition: all 0.2s;
}

.btn-nav-login:hover { border-color: var(--blue-500); background: rgba(0,106,163,0.05); }

.btn-nav-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-blue);
  box-shadow: 0 3px 12px rgba(0,106,163,0.3);
  transition: all 0.2s;
}

.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,106,163,0.4); }

.dark-toggle {
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
  font-size: 1rem;
  flex-shrink: 0;
}

.dark-toggle:hover { border-color: var(--blue-400); color: var(--blue-500); }

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem;
  flex-direction: column; gap: 5px;
}

.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #006aa3, transparent 70%);
  top: -150px; right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00d4ff, transparent 70%);
  bottom: -100px; left: -50px;
  animation-delay: 3s;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #60b4ff, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: 5s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-word {
  background: linear-gradient(135deg, #60b4ff 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* ===== APP STORE BADGES ===== */
.app-download-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
  animation: fadeInUp 0.6s ease 0.38s both;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background:#000000;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  color: white;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  cursor: pointer;
  min-width: 148px;
  position: relative;
  overflow: hidden;
}

.app-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.app-badge:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.app-badge:hover::before { opacity: 1; }

.app-badge-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-badge-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-badge-store {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #002740;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-blue);
  transition: all 0.3s ease;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,106,163,0.45); }
.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); transform: translateY(-2px); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeInUp 0.6s ease 0.45s both;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
}

.badge-pill svg { color: var(--cyan); flex-shrink: 0; }

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,106,163,0.15);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.ibox-logo-small {
  font-weight: 800;
  font-size: 1rem;
  color: white;
  letter-spacing: -0.03em;
}

.mockup-tabs {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.mockup-tab {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.mockup-sidebar {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
}

.sidebar-items { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-item.active {
  background: rgba(0,106,163,0.25);
  color: var(--cyan-soft);
}
.sidebar-dot {
  width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.6; flex-shrink: 0;
}

.file-grid { display: flex; flex-direction: column; gap: 0.4rem; }

.file-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  animation: slideIn 0.4s ease both;
}

.file-row:nth-child(1) { animation-delay: 0.5s; }
.file-row:nth-child(2) { animation-delay: 0.65s; }
.file-row:nth-child(3) { animation-delay: 0.8s; }
.file-row:nth-child(4) { animation-delay: 0.95s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.file-icon {
  width: 24px; height: 24px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.file-icon.pdf { background: rgba(255,50,50,0.2); color: #ff6b6b; }
.file-icon.folder { background: rgba(0,106,163,0.25); color: var(--cyan-soft); }
.file-icon.img { background: rgba(0,212,255,0.2); color: var(--cyan); }
.file-icon.video { background: rgba(168,85,247,0.2); color: #c084fc; }

.file-name { flex: 1; }
.file-size { color: rgba(255,255,255,0.3); font-size: 0.68rem; }
.file-share {
  width: 18px; height: 18px; background: rgba(0,106,163,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.hero-float-card {
  position: absolute;
  background: var(--float-card-bg);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 4s ease-in-out infinite;
  transition: background 0.3s;
}

.hero-float-card.card-1 {
  bottom: -20px; left: -30px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  top: -20px; right: -25px;
  animation-delay: 2s;
}

.float-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.float-icon.green { background: #ecfdf5; }
.float-icon.blue { background: #eff6ff; }

[data-theme="dark"] .float-icon.green { background: rgba(16,185,129,0.15); }
[data-theme="dark"] .float-icon.blue { background: rgba(0,106,163,0.15); }

.float-card-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===================== SECTION BASE ===================== */
.section { padding: 6rem 2rem; }
.section-alt { background: var(--gray-50); transition: background 0.3s; }

.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-500);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--gradient-blue);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  transition: color 0.3s;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-label { justify-content: center; }
.section-header .section-subtitle { margin: 0 auto; }

/* ===================== 3D ICON SYSTEM ===================== */
.icon-3d {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(0,106,163,0.12) 0%, rgba(0,212,255,0.08) 100%);
  border: 1px solid rgba(0,106,163,0.15);
  box-shadow:
    0 4px 16px rgba(0,106,163,0.12),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,106,163,0.08);
  transition: all 0.3s ease;
}

.icon-3d::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

.icon-3d svg {
  width: 24px; height: 24px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 3px rgba(0,106,163,0.5));
}

.icon-3d.red {
  background: linear-gradient(145deg, rgba(239,68,68,0.12), rgba(252,165,165,0.06));
  border-color: rgba(239,68,68,0.15);
  box-shadow: 0 4px 16px rgba(239,68,68,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
}
.icon-3d.red svg { filter: drop-shadow(0 1px 3px rgba(239,68,68,0.5)); }

.icon-3d.green {
  background: linear-gradient(145deg, rgba(16,185,129,0.12), rgba(52,211,153,0.06));
  border-color: rgba(16,185,129,0.15);
  box-shadow: 0 4px 16px rgba(16,185,129,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
}
.icon-3d.green svg { filter: drop-shadow(0 1px 3px rgba(16,185,129,0.5)); }

.icon-3d.purple {
  background: linear-gradient(145deg, rgba(139,92,246,0.12), rgba(196,181,253,0.06));
  border-color: rgba(139,92,246,0.15);
  box-shadow: 0 4px 16px rgba(139,92,246,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
}
.icon-3d.purple svg { filter: drop-shadow(0 1px 3px rgba(139,92,246,0.5)); }

.icon-3d.amber {
  background: linear-gradient(145deg, rgba(245,158,11,0.12), rgba(252,211,77,0.06));
  border-color: rgba(245,158,11,0.15);
  box-shadow: 0 4px 16px rgba(245,158,11,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
}
.icon-3d.amber svg { filter: drop-shadow(0 1px 3px rgba(245,158,11,0.5)); }

[data-theme="dark"] .icon-3d {
  background: linear-gradient(145deg, rgba(0,106,163,0.2) 0%, rgba(0,212,255,0.12) 100%);
  border-color: rgba(0,106,163,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ===================== FEATURES ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(0,106,163,0.15);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  background: linear-gradient(145deg, rgba(0,106,163,0.1), rgba(0,212,255,0.06));
  border: 1px solid rgba(0,106,163,0.12);
  box-shadow: 0 4px 16px rgba(0,106,163,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
  border-radius: 13px 13px 0 0;
}

.feature-icon svg {
  width: 24px; height: 24px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 3px rgba(0,106,163,0.5));
}

.feature-card:hover .feature-icon {
  background: linear-gradient(145deg, rgba(0,106,163,0.18), rgba(0,212,255,0.12));
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(0,106,163,0.2);
}

[data-theme="dark"] .feature-icon {
  background: linear-gradient(145deg, rgba(0,106,163,0.2), rgba(0,212,255,0.1));
  border-color: rgba(0,106,163,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  transition: color 0.3s;
}

/* ===================== HOW IT WORKS ===================== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.how-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan));
  opacity: 0.3;
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
  position: relative;
}

.how-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.step-number {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  background: var(--gradient-blue);
  box-shadow: var(--shadow-blue);
  position: relative;
  z-index: 1;
}

.step-icon-wrap {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(0,106,163,0.1), rgba(0,212,255,0.06));
  border: 1px solid rgba(0,106,163,0.12);
  box-shadow: 0 6px 20px rgba(0,106,163,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.step-icon-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
}

.step-icon-wrap svg {
  width: 28px; height: 28px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 1px 4px rgba(0,106,163,0.5));
}

.how-step:hover .step-icon-wrap {
  background: linear-gradient(145deg, rgba(0,106,163,0.18), rgba(0,212,255,0.12));
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,106,163,0.2);
}

[data-theme="dark"] .step-icon-wrap {
  background: linear-gradient(145deg, rgba(0,106,163,0.2), rgba(0,212,255,0.1));
  border-color: rgba(0,106,163,0.25);
}

.how-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}

.how-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  transition: color 0.3s;
}

/* ===================== PRICING ===================== */
.pricing-section { background: var(--gradient-hero); position: relative; overflow: hidden; }

.pricing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.pricing-section .section-title { color: white; }
.pricing-section .section-subtitle { color: rgba(255,255,255,0.6); }
.pricing-section .section-label { color: var(--cyan); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.pricing-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pricing-card.popular {
  background: rgba(0,106,163,0.25);
  border-color: rgba(0,106,163,0.5);
  transform: scale(1.03);
  box-shadow: 0 16px 60px rgba(0,106,163,0.35);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 24px 80px rgba(0,106,163,0.45);
}

.popular-badge {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  background: var(--gradient-blue);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 0 0 8px 8px;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.plan-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.75rem;
}

.plan-price { margin-bottom: 1.75rem; }

.price-ht {
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.3rem;
  opacity: 0.8;
}

.price-period {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.price-ttc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
}

/* ===== FIX RTL: Prices & numbers always LTR ===== */
[dir="rtl"] .plan-price,
[dir="rtl"] .price-ht,
[dir="rtl"] .price-ttc,
[dir="rtl"] .price-period,
[dir="rtl"] .stat-number,
[dir="rtl"] .stat-item,
[dir="rtl"] a[href^="tel"],
[dir="rtl"] a[href^="mailto"] {
  direction: ltr;
  unicode-bidi: embed;
}

.plan-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.5rem 0;
}

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.plan-feature-check {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,106,163,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  font-size: 0.65rem;
  color: var(--cyan);
}

.pricing-card.popular .plan-feature-check {
  background: rgba(0,212,255,0.2);
}

.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.3s;
}

.btn-plan-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: white;
}
.btn-plan-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.btn-plan-solid {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 6px 20px rgba(0,106,163,0.4);
}
.btn-plan-solid:hover { box-shadow: 0 10px 30px rgba(0,106,163,0.55); transform: translateY(-2px); }

/* ===================== SECURITY ===================== */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.security-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-container {
  position: relative;
  width: 300px; height: 300px;
}

.shield-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,106,163,0.08), rgba(0,212,255,0.08));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,106,163,0.15);
  animation: ringPulse 3s ease-in-out infinite;
}

.shield-ring-1 { width: 100%; height: 100%; animation-delay: 0s; }
.shield-ring-2 { width: 80%; height: 80%; animation-delay: 0.5s; }
.shield-ring-3 { width: 60%; height: 60%; animation-delay: 1s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

.shield-icon-main {
  width: 90px; height: 90px;
  background: var(--gradient-blue);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,106,163,0.4);
  position: relative;
  z-index: 2;
  animation: shieldBob 4s ease-in-out infinite;
}

.shield-icon-main svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }

@keyframes shieldBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.security-nodes {
  position: absolute;
  inset: 0;
}

.security-node {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--security-node-bg);
  border: 1.5px solid var(--security-node-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  animation: nodePulse 3s ease-in-out infinite;
  transition: background 0.3s, border-color 0.3s;
}

.security-node svg { width: 20px; height: 20px; }

.security-node:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.security-node:nth-child(2) { top: 5%; right: 10%; animation-delay: 0.6s; }
.security-node:nth-child(3) { bottom: 10%; left: 8%; animation-delay: 1.2s; }
.security-node:nth-child(4) { bottom: 8%; right: 5%; animation-delay: 1.8s; }

@keyframes nodePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.security-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }

.security-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.security-item-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(0,106,163,0.1), rgba(0,212,255,0.06));
  border: 1px solid rgba(0,106,163,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,106,163,0.1), inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.security-item-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
}

.security-item-icon svg {
  width: 20px; height: 20px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0,106,163,0.4));
}

[data-theme="dark"] .security-item-icon {
  background: linear-gradient(145deg, rgba(0,106,163,0.2), rgba(0,212,255,0.1));
  border-color: rgba(0,106,163,0.25);
}

.security-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.security-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.3s;
}

/* ===================== ADVANTAGES ===================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.advantage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.advantage-card:hover::after { opacity: 0.04; }

.advantage-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(0,106,163,0.1), rgba(0,212,255,0.06));
  border: 1px solid rgba(0,106,163,0.12);
  box-shadow: 0 4px 16px rgba(0,106,163,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.advantage-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
}

.advantage-icon svg {
  width: 28px; height: 28px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 1px 3px rgba(0,106,163,0.5));
}

.advantage-card:hover .advantage-icon {
  background: linear-gradient(145deg, rgba(0,106,163,0.18), rgba(0,212,255,0.12));
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(0,106,163,0.2);
}

[data-theme="dark"] .advantage-icon {
  background: linear-gradient(145deg, rgba(0,106,163,0.2), rgba(0,212,255,0.1));
  border-color: rgba(0,106,163,0.25);
}

.advantage-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
  transition: color 0.3s;
}

.advantage-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative; z-index: 1;
  transition: color 0.3s;
}

/* ===================== FAQ ===================== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover { border-color: rgba(0,106,163,0.2); }
.faq-item.open { border-color: rgba(0,106,163,0.25); box-shadow: var(--shadow-card); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s;
}

.faq-item.open .faq-question { color: var(--blue-500); }

.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.3s;
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: rgba(0,106,163,0.08);
  border-color: rgba(0,106,163,0.2);
  color: var(--blue-500);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

/* ===================== FINAL CTA ===================== */
.cta-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,106,163,0.25) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section .section-title { color: white; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto 2.5rem; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.55);
  padding: 4rem 2rem 2rem;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr ;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-text { color: white; font-size: 1.4rem; margin-bottom: 0.75rem; display: block; font-weight: 800; letter-spacing: -0.03em; }
.footer-brand .logo-text span { color: var(--cyan); }

.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.25rem; max-width: 240px; }

/* Footer app badges */
.footer-app-badges {
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgb(0 0 0);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  color: white;
  transition: all 0.2s;
  cursor: pointer;
}

.footer-app-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.footer-app-badge svg { flex-shrink: 0; }

.footer-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-badge-sub { font-size: 0.58rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-badge-name { font-size: 0.78rem; font-weight: 700; }

.social-links { display: flex; gap: 0.6rem; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  text-decoration: none; color: rgba(255,255,255,0.55);
  transition: all 0.2s;
}
.social-link:hover { background: rgba(0,106,163,0.3); border-color: rgba(0,106,163,0.4); color: white; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  text-decoration: none; color: rgba(255,255,255,0.45);
  font-size: 0.875rem; transition: color 0.2s;
}
.footer-col ul a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem;
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}



/* ===================== MOBILE NAV ===================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--mobile-menu-bg);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.3s, border-color 0.3s;
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}
.mobile-menu a:hover { background: var(--gray-50); color: var(--blue-500); }

.mobile-menu-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0.5rem 0;
}

.mobile-dark-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.mobile-dark-toggle:hover { background: var(--gray-50); color: var(--blue-500); }
.mobile-dark-toggle-icon { font-size: 1rem; }

/* ===================== MOBILE LANG SWITCHER ===================== */
.mobile-lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
}

.mobile-lang-switcher .lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.2s;
  width: auto;
}

.mobile-lang-switcher .lang-option.active {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: rgba(0, 106, 163, 0.07);
}

.mobile-lang-switcher .lang-option:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
}

.mobile-lang-switcher .lang-option-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.mobile-lang-switcher .lang-option-flag svg {
  width: 100%;
  height: 100%;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem; }
  .hero-visual { display: none; }
  .security-grid { grid-template-columns: 1fr; }
  .security-visual { display: none; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.popular { transform: scale(1); }
  .pricing-card.popular:hover { transform: translateY(-8px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-container { padding: 3rem 1.5rem; }
  .hero-title { font-size: 2rem; }
  .how-grid { grid-template-columns: 1fr; gap: 1rem; }
  .how-grid::before { display: none; }
  .advantages-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 4rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .app-download-group { gap: 0.6rem; }
}

/* ===================== 3D ALGERIAN FLAG ===================== */
.flag-3d-mini {
  width: 28px; height: 18px;
  perspective: 80px;
  flex-shrink: 0;
}

.flag-3d-inner {
  width: 100%; height: 100%;
  display: flex;
  border-radius: 3px;
  overflow: hidden;
  transform: rotateY(-12deg) rotateX(4deg);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4), -1px -1px 4px rgba(255,255,255,0.1);
  animation: flagWave3d 3s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes flagWave3d {
  0%, 100% { transform: rotateY(-12deg) rotateX(4deg) skewY(0deg); }
  25% { transform: rotateY(-6deg) rotateX(2deg) skewY(-1deg); }
  50% { transform: rotateY(-14deg) rotateX(5deg) skewY(0.5deg); }
  75% { transform: rotateY(-8deg) rotateX(3deg) skewY(-0.5deg); }
}

.flag-stripe {
  flex: 1;
  height: 100%;
}

.flag-green { background: #006233; }
.flag-white {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.flag-crescent {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  width: 12px; height: 14px;
}

.flag-moon {
  width: 8px; height: 8px;
  background: #d21034;
  border-radius: 50%;
  position: relative;
}

.flag-moon::after {
  content: '';
  position: absolute;
  top: -0.5px; left: 2px;
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
}

.flag-star {
  position: absolute;
  font-size: 5px;
  color: #d21034;
  right: 0; top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

/* Large 3D flag for hero stats bar */
.flag-3d-large {
  width: 56px; height: 36px;
  perspective: 140px;
  display: inline-block;
  vertical-align: middle;
}

.flag-3d-large .flag-3d-inner {
  border-radius: 4px;
  animation: flagWaveLarge 4s ease-in-out infinite;
}

@keyframes flagWaveLarge {
  0%, 100% { transform: rotateY(-15deg) rotateX(5deg); box-shadow: 4px 4px 16px rgba(0,0,0,0.5); }
  33% { transform: rotateY(-8deg) rotateX(2deg) skewY(-1deg); box-shadow: 2px 6px 20px rgba(0,0,0,0.4); }
  66% { transform: rotateY(-18deg) rotateX(6deg) skewY(0.5deg); box-shadow: 6px 2px 14px rgba(0,0,0,0.5); }
}

.flag-3d-large .flag-moon {
  width: 16px; height: 16px;
}
.flag-3d-large .flag-moon::after {
  top: -1px; left: 4px;
  width: 14px; height: 14px;
}
.flag-3d-large .flag-crescent {
  width: 22px; height: 26px;
}
.flag-3d-large .flag-star {
  font-size: 9px;
  right: 0;
}

/* ===================== GUIDE D'UTILISATION ===================== */
#guide.section { background: var(--gray-50); }

.guide-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 0;
  position: relative;
}

.guide-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
}

.guide-tab:hover { color: var(--blue-500); background: rgba(0,106,163,0.04); }

.guide-tab.active {
  color: var(--blue-500);
  border-bottom-color: var(--blue-500);
  background: rgba(0,106,163,0.05);
}

.guide-tab-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(0,106,163,0.1), rgba(0,168,212,0.06));
  border: 1px solid rgba(0,106,163,0.12);
  flex-shrink: 0;
}

.guide-tab.active .guide-tab-icon {
  background: linear-gradient(145deg, rgba(0,106,163,0.18), rgba(0,168,212,0.12));
  box-shadow: 0 2px 8px rgba(0,106,163,0.2);
}

.guide-tab-icon svg { width: 14px; height: 14px; }

.guide-panels { }

.guide-panel { display: none; }
.guide-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.guide-steps { display: flex; flex-direction: column; gap: 1.25rem; }

.guide-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.guide-step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient-blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s;
}

.guide-step:hover, .guide-step.active {
  border-color: rgba(0,106,163,0.2);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.guide-step.active::before { transform: scaleY(1); }

.guide-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,106,163,0.1), rgba(0,168,212,0.08));
  border: 1.5px solid rgba(0,106,163,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-500);
  flex-shrink: 0;
  transition: all 0.25s;
}

.guide-step.active .guide-step-num {
  background: var(--gradient-blue);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-blue);
}

.guide-step-content { flex: 1; }
.guide-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.guide-step.active .guide-step-title { color: var(--blue-500); }

.guide-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.3s;
}

.guide-step-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0,106,163,0.08), rgba(0,168,212,0.04));
  border: 1px solid rgba(0,106,163,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s;
}

.guide-step.active .guide-step-icon {
  background: linear-gradient(145deg, rgba(0,106,163,0.15), rgba(0,168,212,0.1));
  box-shadow: 0 3px 10px rgba(0,106,163,0.15);
}

.guide-step-icon svg { width: 18px; height: 18px; }

/* Guide mockup/visual panel */
.guide-visual {
  position: sticky;
  top: 88px;
}

.guide-screen {
  background: #0a1628;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  display: none;
}

.guide-screen.active { display: block; animation: guideScreenIn 0.4s ease; }

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

.guide-screen-header {
  background: rgba(0,106,163,0.3);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.guide-screen-dots { display: flex; gap: 4px; }
.guide-screen-dots span {
  width: 8px; height: 8px; border-radius: 50%;
}
.guide-screen-dots span:nth-child(1) { background: #ff5f57; }
.guide-screen-dots span:nth-child(2) { background: #ffbd2e; }
.guide-screen-dots span:nth-child(3) { background: #28c840; }

.guide-screen-url {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
}

.guide-screen-body {
  padding: 1rem;
  min-height: 280px;
}

/* Specific screen layouts */
.screen-login {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem;
  padding: 1.5rem;
  min-height: 280px;
}

.screen-login-logo {
  font-size: 1.8rem; font-weight: 900;
  color: #006aa3; letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
}

.screen-login-field {
  width: 100%; max-width: 220px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.screen-login-btn {
  width: 100%; max-width: 220px;
  background: var(--gradient-blue);
  border: none; border-radius: 8px;
  padding: 0.6rem;
  font-size: 0.8rem; font-weight: 700;
  color: white; cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,106,163,0.4);
}

.screen-files {
  display: grid; grid-template-columns: 110px 1fr; gap: 0.75rem;
  min-height: 260px;
}

.screen-sidebar {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding-right: 0.75rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}

.screen-sidebar-item {
  padding: 0.35rem 0.5rem;
  border-radius: 5px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  cursor: default;
}

.screen-sidebar-item.active-item {
  background: rgba(0,106,163,0.25);
  color: #a8edff;
}

.screen-file-list { display: flex; flex-direction: column; gap: 0.35rem; }

.screen-file-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
}

.screen-file-type {
  font-size: 0.55rem; font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

.screen-file-type.pdf { background: rgba(239,68,68,0.2); color: #f87171; }
.screen-file-type.folder { background: rgba(0,106,163,0.25); color: #a8edff; }
.screen-file-type.mp4 { background: rgba(139,92,246,0.25); color: #c084fc; }

.screen-actions {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0.5rem;
}

.screen-action-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

.screen-action-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient-blue);
  flex-shrink: 0;
}

.screen-share-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}

.share-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  background: rgba(0,106,163,0.1);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}

.share-option.active { background: rgba(0,106,163,0.25); border: 1px solid rgba(0,106,163,0.3); }

.screen-tag-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.75rem;
}

.screen-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(0,106,163,0.3);
  font-size: 0.7rem;
  color: #a8edff;
  background: rgba(0,106,163,0.15);
}

.screen-tag.active {
  background: rgba(0,106,163,0.35);
  border-color: rgba(0,106,163,0.5);
  box-shadow: 0 0 8px rgba(0,106,163,0.3);
}

.guide-tip {
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(0,106,163,0.08), rgba(0,168,212,0.04));
  border: 1px solid rgba(0,106,163,0.15);
  border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.6;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  transition: background 0.3s, color 0.3s;
}

.guide-tip-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

.guide-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--gradient-blue);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: all 0.25s;
}

.guide-pdf-link:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,106,163,0.4); }

@media (max-width: 900px) {
  .guide-panel.active { grid-template-columns: 1fr; }
  .guide-visual { display: none; }
  .guide-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .guide-tab span { white-space: nowrap; }
}


/* ===================== LANG SWITCHER ===================== */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.2s;
  height: 36px;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-500);
}

.lang-btn-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-btn-arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.lang-switcher.open .lang-btn-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,106,163,0.14), 0 2px 8px rgba(0,0,0,0.08);
  min-width: 160px;
  z-index: 2000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: rgba(0,106,163,0.06);
  color: var(--blue-500);
}

.lang-option.active {
  background: rgba(0,106,163,0.08);
  color: var(--blue-600);
  font-weight: 700;
}

.lang-option-flag {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.lang-option-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-option-check {
  margin-left: auto;
  color: var(--blue-500);
  font-size: 0.75rem;
  opacity: 0;
}

.lang-option.active .lang-option-check { opacity: 1; }

/* RTL support for Arabic */
[data-lang="ar"] {
  direction: rtl;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

[data-lang="ar"] .lang-dropdown { right: auto; left: 0; }
[data-lang="ar"] .lang-option { text-align: right; }
[data-lang="ar"] .lang-option-check { margin-left: 0; margin-right: auto; }

/* Flag SVGs inline */
.flag-dz { background: linear-gradient(to right, #006233 50%, white 50%); position: relative; }
.flag-fr { background: linear-gradient(to right, #002395 33.33%, white 33.33%, white 66.66%, #ED2939 66.66%); }
.flag-gb { background: #012169; position: relative; }


/* FLAG PNG REPLACEMENTS */
.flag-png-mini {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  flex-shrink: 0;
  vertical-align: middle;
}
.flag-png-large {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: block;
  margin: 0 auto;
}

/* ===================== DOCUMENT MODALS (Privacy + CGV) ===================== */
.doc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 10, 25, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.doc-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.doc-modal {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.28), 0 8px 32px rgba(0,106,163,0.14);
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1), opacity 0.3s ease;
  opacity: 0;
}
.doc-modal-overlay.open .doc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
[data-theme="dark"] .doc-modal {
  background: #0d1e38;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}
.doc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(0,106,163,0.1);
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
  flex-shrink: 0;
}
[data-theme="dark"] .doc-modal-header {
  background: linear-gradient(135deg, #112240 0%, #0d1e38 100%);
  border-color: rgba(0,106,163,0.2);
}
.doc-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}
.doc-modal-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #006aa3, #00d4ff);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doc-modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,106,163,0.15);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.doc-modal-close:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
  transform: rotate(90deg);
}
.doc-modal-body {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.doc-modal-body::-webkit-scrollbar { width: 6px; }
.doc-modal-body::-webkit-scrollbar-track { background: transparent; }
.doc-modal-body::-webkit-scrollbar-thumb { background: rgba(0,106,163,0.2); border-radius: 3px; }
.doc-content {
  padding: 2rem 2.5rem 2.5rem;
  max-width: 100%;
}
.doc-content h1 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.doc-content .doc-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,106,163,0.1);
}
.doc-content h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-600);
  margin: 1.75rem 0 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
}
.doc-content h2::before {
  content: '';
  width: 14px; height: 2px;
  margin-top: 0.5em;
  background: var(--gradient-blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.doc-content p, .doc-content li {
  font-size: 0.87rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.doc-content ul, .doc-content ol {
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}
.doc-content li { margin-bottom: 0.2rem; }
.doc-content .doc-contact-box {
  background: linear-gradient(135deg, rgba(0,106,163,0.06), rgba(0,212,255,0.04));
  border: 1px solid rgba(0,106,163,0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}
.doc-content .doc-contact-box p { margin-bottom: 0.2rem; }
[data-theme="dark"] .doc-content h1 { color: var(--text-dark); }
[data-theme="dark"] .doc-content h2 { color: #60b4ff; }
[data-theme="dark"] .doc-content p,
[data-theme="dark"] .doc-content li { color: var(--text-body); }
[data-theme="dark"] .doc-content .doc-contact-box {
  background: rgba(0,106,163,0.1);
  border-color: rgba(0,106,163,0.2);
}
/* RTL for Arabic */
[data-lang="ar"] .doc-modal-header { flex-direction: row-reverse; }
[data-lang="ar"] .doc-modal-title { flex-direction: row-reverse; }
[data-lang="ar"] .doc-content { direction: rtl; text-align: right; }
[data-lang="ar"] .doc-content ul,
[data-lang="ar"] .doc-content ol { padding-left: 0; padding-right: 1.4rem; }
@media (max-width: 600px) {
  .doc-modal { max-height: 96vh; border-radius: 16px; }
  .doc-modal-header { padding: 0.85rem 1rem; }
  .doc-content { padding: 1.25rem 1rem 2rem; }
}


/* ===================== LOGOS LOCAUX ===================== */
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.mockup-logo-img {
  height: 16px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 85px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}
