/* ============================================
   EALISON MAROC - Design System v2.0
   Premium Cybersecurity Platform
   ============================================ */

:root {
  --navy-900: #0A0E1A;
  --navy-800: #0F1629;
  --navy-700: #151D37;
  --navy-600: #1B2545;
  --navy-500: #243054;
  --blue-500: #0A84FF;
  --blue-400: #3D9EFF;
  --blue-300: #6DB8FF;
  --blue-600: #0066CC;
  --blue-glow: rgba(10, 132, 255, 0.15);
  --blue-glow-strong: rgba(10, 132, 255, 0.3);
  --red-500: #E63946;
  --red-400: #EF5563;
  --red-600: #C62B38;
  --red-glow: rgba(230, 57, 70, 0.15);
  --gold-500: #D4A84B;
  --gold-400: #E4BE6A;
  --white: #FFFFFF;
  --gray-100: #F0F2F5;
  --gray-200: #D8DCE4;
  --gray-300: #B0B8C8;
  --gray-400: #8892A6;
  --gray-500: #6B7280;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Reem Kufi', 'Cairo Play', 'Tajawal', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --section-padding: 100px 0;
  --container-width: 1200px;
  --nav-height: 72px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-blue: 0 4px 30px rgba(10, 132, 255, 0.25);
  --shadow-red: 0 4px 30px rgba(230, 57, 70, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-primary); background: var(--navy-900); color: var(--gray-200); line-height: 1.7; overflow-x: hidden; }
[dir="rtl"] body { font-family: var(--font-arabic); }
[dir="rtl"] { direction: rtl; text-align: right; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
a { color: var(--blue-400); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--blue-300); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--white); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
.text-gradient { background: linear-gradient(135deg, var(--blue-400), var(--blue-300)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-red { background: linear-gradient(135deg, var(--red-500), var(--red-400)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-blue { color: var(--blue-400); }
.text-red { color: var(--red-500); }
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--gray-400); }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--blue-400); margin-bottom: 16px; }
.section-label::before { content: ''; width: 32px; height: 2px; background: var(--blue-500); }
[dir="rtl"] .section-label::before { display: none; }
[dir="rtl"] .section-label::after { content: ''; width: 32px; height: 2px; background: var(--blue-500); }
.bg-grid { background-image: linear-gradient(rgba(10,132,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(10,132,255,0.03) 1px, transparent 1px); background-size: 60px 60px; }
.bg-radial { background: radial-gradient(ellipse at 50% 0%, rgba(10,132,255,0.15) 0%, transparent 60%); }
.bg-radial-red { background: radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.15) 0%, transparent 60%); }

/* === NAVIGATION === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 132, 255, 0.08);
  transition: var(--transition-medium);
}
.navbar.scrolled { background: rgba(10, 14, 26, 0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg.logo-icon { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .brand { font-size: 1.2rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; line-height: 1.2; }
.nav-logo-text .brand span { color: var(--blue-400); }
.nav-logo-text .tagline { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray-500); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--gray-300); border-radius: var(--radius-sm); transition: var(--transition-fast); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--blue-500); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: var(--navy-700); border-radius: var(--radius-full); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.lang-switch a { padding: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--gray-400); transition: var(--transition-fast); }
.lang-switch a.active { background: var(--blue-500); color: var(--white); }
.btn-urgence { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--red-500); color: var(--white); font-weight: 600; font-size: 0.85rem; border-radius: var(--radius-full); border: none; cursor: pointer; transition: var(--transition-fast); animation: pulse-red 2s infinite; white-space: nowrap; text-decoration: none; }
.btn-urgence:hover { background: var(--red-600); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-red); }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); } 50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); } }

/* Mobile menu */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition-fast); border-radius: 2px; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; font-family: var(--font-primary); font-size: 0.95rem; font-weight: 600; border: none; border-radius: var(--radius-full); cursor: pointer; transition: var(--transition-fast); text-decoration: none; line-height: 1; }
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-400); background: rgba(10,132,255,0.05); }
.btn-red { background: var(--red-500); color: var(--white); }
.btn-red:hover { background: var(--red-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--gray-200); border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; }

/* === CARDS === */
.card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: rgba(10,132,255,0.2); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(10,132,255,0.3), transparent); opacity: 0; transition: var(--transition-medium); }
.card:hover::before { opacity: 1; }
.card-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 1.5rem; }
.card-icon.blue { background: rgba(10,132,255,0.1); color: var(--blue-400); }
.card-icon.red { background: rgba(230,57,70,0.1); color: var(--red-400); }
.card-icon.gold { background: rgba(212,168,75,0.1); color: var(--gold-400); }
.card-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--gray-400); font-size: 0.95rem; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10,132,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(10,132,255,0.08);
  border: 1px solid rgba(10,132,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 28px;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--blue-400); }
.hero h1 .accent-red { color: var(--red-500); }
.hero-text { font-size: 1.15rem; color: var(--gray-300); margin-bottom: 40px; max-width: 560px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.hero-stat .number { font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat .number span { color: var(--blue-400); }
.hero-stat .label { font-size: 0.85rem; color: var(--gray-400); margin-top: 4px; }

/* === SECTIONS === */
section { padding: var(--section-padding); position: relative; }
.section-header { max-width: 640px; margin-bottom: 60px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header p { color: var(--gray-400); font-size: 1.05rem; margin-top: 16px; }

/* === AUDIENCE GRID === */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.audience-card { text-align: center; padding: 40px 24px; }
.audience-card .emoji { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.audience-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.audience-card .desc { font-size: 0.9rem; color: var(--gray-400); }

/* === TOOLS PREVIEW === */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { padding: 28px; }
.tool-card .tool-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tool-card .tool-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 1.2rem; }
.tool-card .tool-name { font-size: 1rem; font-weight: 600; color: var(--white); }
.tool-card .tool-desc { font-size: 0.9rem; color: var(--gray-400); margin-bottom: 16px; }
.tool-card .tool-cta { font-size: 0.85rem; font-weight: 600; color: var(--blue-400); display: inline-flex; align-items: center; gap: 6px; }
.tool-card:hover .tool-cta { gap: 10px; }

/* === PROCESS / METHOD === */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: step; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--blue-500), var(--red-500)); opacity: 0.3; }
[dir="rtl"] .process-steps::before { left: 12.5%; right: 12.5%; }
.process-step { text-align: center; position: relative; counter-increment: step; }
.process-step .step-num {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy-700);
  border: 2px solid var(--blue-500);
  font-size: 1.5rem; font-weight: 800;
  color: var(--blue-400);
  margin: 0 auto 20px;
  position: relative; z-index: 2;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; color: var(--gray-400); }

/* === TRUST BAR === */
.trust-bar {
  padding: 40px 0;
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.trust-items { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--gray-400); font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.trust-item svg, .trust-item img { width: 24px; height: 24px; opacity: 0.6; }
.trust-item strong { color: var(--gray-200); }

/* === AUTHORITIES === */
.authorities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.authority-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px; text-align: center;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.authority-card:hover { border-color: rgba(10,132,255,0.2); background: var(--navy-700); }
.authority-card img { width: 48px; height: 48px; object-fit: contain; }
.authority-card .name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.authority-card .role { font-size: 0.75rem; color: var(--gray-400); }

/* === CTA SECTION === */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(10,132,255,0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-content { text-align: center; position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cta-content h2 { margin-bottom: 16px; }
.cta-content p { color: var(--gray-300); margin-bottom: 32px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
.footer {
  padding: 64px 0 32px;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo svg { width: 36px; height: 36px; }
.footer-brand .logo .name { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.footer-brand .logo .name span { color: var(--blue-400); }
.footer-brand .desc { font-size: 0.9rem; color: var(--gray-400); margin-bottom: 20px; line-height: 1.7; }
.footer-brand .certif { display: flex; gap: 12px; align-items: center; }
.footer-brand .certif-badge { padding: 6px 14px; background: var(--navy-700); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); font-size: 0.75rem; color: var(--gray-400); }
.footer-col h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--gray-400); transition: var(--transition-fast); }
.footer-col a:hover { color: var(--blue-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom p { font-size: 0.8rem; color: var(--gray-500); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-700); color: var(--gray-400); transition: var(--transition-fast); font-size: 0.9rem; }
.footer-social a:hover { background: var(--blue-500); color: var(--white); }

/* === DIAGNOSTIC WIZARD === */
.wizard-container { max-width: 700px; margin: 0 auto; }
.wizard-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 48px; }
.wizard-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy-600); border: 2px solid var(--navy-500); transition: var(--transition-fast); }
.wizard-dot.active { background: var(--blue-500); border-color: var(--blue-500); box-shadow: 0 0 12px rgba(10,132,255,0.4); }
.wizard-dot.done { background: var(--success); border-color: var(--success); }
.wizard-line { width: 40px; height: 2px; background: var(--navy-600); }
.wizard-line.done { background: var(--success); }
.wizard-step { display: none; animation: fadeUp 0.4s ease; }
.wizard-step.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.wizard-question { text-align: center; margin-bottom: 32px; }
.wizard-question h3 { margin-bottom: 12px; }
.wizard-question p { color: var(--gray-400); }
.wizard-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wizard-option {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: var(--navy-700);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}
.wizard-option:hover { border-color: var(--blue-500); background: rgba(10,132,255,0.05); }
.wizard-option.selected { border-color: var(--blue-500); background: rgba(10,132,255,0.08); }
.wizard-option .opt-icon { font-size: 1.8rem; }
.wizard-option .opt-text .opt-title { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.wizard-option .opt-text .opt-desc { font-size: 0.8rem; color: var(--gray-400); margin-top: 2px; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; }

/* === TOOL WIDGETS === */
.tool-widget {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
}
.tool-widget h3 { margin-bottom: 8px; }
.tool-widget .tool-desc { color: var(--gray-400); margin-bottom: 24px; }
.tool-input-group { display: flex; gap: 12px; margin-bottom: 20px; }
.tool-input-group input {
  flex: 1;
  padding: 14px 20px;
  background: var(--navy-700);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.tool-input-group input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(10,132,255,0.1); }
.tool-input-group input::placeholder { color: var(--gray-500); }
.tool-result { padding: 20px; border-radius: var(--radius-md); }
.tool-result.safe { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.tool-result.danger { background: rgba(230,57,70,0.08); border: 1px solid rgba(230,57,70,0.2); }
.tool-result.warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.tool-result.info { background: rgba(10,132,255,0.08); border: 1px solid rgba(10,132,255,0.2); }
.tool-result h4 { margin-bottom: 8px; }
.tool-result p { font-size: 0.9rem; }

/* Password meter */
.password-meter { height: 6px; background: var(--navy-600); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.password-meter .bar { height: 100%; border-radius: 3px; transition: var(--transition-medium); }
.password-meter .bar.weak { width: 25%; background: var(--danger); }
.password-meter .bar.fair { width: 50%; background: var(--warning); }
.password-meter .bar.good { width: 75%; background: var(--blue-500); }
.password-meter .bar.strong { width: 100%; background: var(--success); }

/* === UBER-STYLE EXPERT REQUEST === */
.expert-request {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(10,132,255,0.15);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.expert-request::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(10,132,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.expert-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.expert-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--white); }
.expert-info .expert-name { font-weight: 700; color: var(--white); }
.expert-info .expert-role { font-size: 0.85rem; color: var(--gray-400); }
.expert-info .expert-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--success); margin-top: 4px; }
.expert-info .expert-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s infinite; }
.expert-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.expert-option {
  padding: 24px;
  background: var(--navy-800);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}
.expert-option:hover { border-color: var(--blue-500); }
.expert-option.selected { border-color: var(--blue-500); background: rgba(10,132,255,0.05); }
.expert-option .price { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.expert-option .price-unit { font-size: 0.8rem; color: var(--gray-400); font-weight: 400; }
.expert-option .option-label { font-weight: 600; color: var(--white); margin: 8px 0 4px; }
.expert-option .option-desc { font-size: 0.8rem; color: var(--gray-400); }
.expert-eta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgba(16,185,129,0.05); border-radius: var(--radius-md); margin-bottom: 24px; font-size: 0.9rem; color: var(--success); }

/* === SERVICES PAGE === */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.service-card { padding: 40px; }
.service-card .card-icon { width: 64px; height: 64px; font-size: 1.8rem; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-card p { margin-bottom: 20px; }
.service-card ul { list-style: none; margin-bottom: 24px; }
.service-card li { padding: 6px 0; font-size: 0.9rem; color: var(--gray-300); display: flex; align-items: center; gap: 10px; }
.service-card li::before { content: '\2713'; color: var(--blue-400); font-weight: 700; }
[dir="rtl"] .service-card li { flex-direction: row-reverse; }

/* === ABOUT / EXPERTISE === */
.timeline { position: relative; padding-left: 40px; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 40px; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--blue-500), var(--red-500)); }
[dir="rtl"] .timeline::before { left: auto; right: 16px; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-500); border: 3px solid var(--navy-900); }
[dir="rtl"] .timeline-item::before { left: auto; right: -32px; }
.timeline-item h4 { margin-bottom: 4px; }
.timeline-item .date { font-size: 0.8rem; color: var(--blue-400); font-weight: 600; margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; color: var(--gray-400); }

/* Founder card */
.founder-card {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(10,132,255,0.15);
  border-radius: var(--radius-xl);
}
.founder-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--white);
  flex-shrink: 0;
}
.founder-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.founder-info .title { color: var(--blue-400); font-weight: 600; margin-bottom: 16px; }
.founder-info p { color: var(--gray-300); margin-bottom: 12px; }
.founder-credentials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.founder-credentials .cred { padding: 6px 16px; background: var(--navy-800); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-full); font-size: 0.8rem; color: var(--gray-300); }

/* === FORMS (JotForm Override) === */
.jotform-container { max-width: 700px; margin: 0 auto; }
.jotform-container iframe { border: none; border-radius: var(--radius-lg); width: 100%; min-height: 600px; }

/* === FLOATING ELEMENTS === */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: var(--transition-fast);
  font-size: 1.5rem; color: var(--white);
}
[dir="rtl"] .float-whatsapp { right: auto; left: 24px; }
.float-whatsapp:hover { transform: translateY(-3px) scale(1.05); color: var(--white); }
.float-urgence {
  position: fixed; bottom: 90px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  background: var(--red-500);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.85rem;
  box-shadow: var(--shadow-red);
  transition: var(--transition-fast);
  animation: pulse-red 2s infinite;
}
[dir="rtl"] .float-urgence { right: auto; left: 24px; }
.float-urgence:hover { background: var(--red-600); color: var(--white); transform: translateY(-2px); }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.5s ease, transform 0.5s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .authorities-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-card { flex-direction: column; text-align: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px 0; --nav-height: 64px; }
  
  .nav-links { 
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    flex-direction: column; 
    background: var(--navy-900); 
    padding: 24px;
    transform: translateX(-100%);
    transition: var(--transition-medium);
    gap: 4px;
  }
  .nav-links.open { transform: translateX(0); }
  [dir="rtl"] .nav-links { transform: translateX(100%); }
  [dir="rtl"] .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 20px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .btn-urgence { display: none; }
  
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-stat .number { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  
  .audience-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .authorities-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-options { grid-template-columns: 1fr; }
  .wizard-options { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .card { padding: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .authorities-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 24px; }
}

/* === UTILITY CLASSES === */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: var(--transition-medium);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { color: var(--gray-300); max-width: 600px; }
.cookie-banner .btn { white-space: nowrap; }

/* === PAGE HEADER === */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}
.page-header h1 { margin-bottom: 16px; }
.page-header .breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.85rem; color: var(--gray-400); margin-bottom: 16px;
}
.page-header .breadcrumb a { color: var(--gray-400); }
.page-header .breadcrumb a:hover { color: var(--blue-400); }
.page-header p { color: var(--gray-300); max-width: 560px; margin: 0 auto; }

/* === TABS === */
.tabs-nav { display: flex; gap: 4px; background: var(--navy-800); padding: 4px; border-radius: var(--radius-md); margin-bottom: 32px; overflow-x: auto; }
.tabs-nav button {
  flex: 1; padding: 12px 20px; background: transparent;
  border: none; border-radius: var(--radius-sm);
  color: var(--gray-400); font-family: var(--font-primary);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: var(--transition-fast);
  white-space: nowrap;
}
.tabs-nav button:hover { color: var(--white); background: rgba(255,255,255,0.03); }
.tabs-nav button.active { color: var(--white); background: var(--blue-500); }
.tab-panel { display: none; animation: fadeUp 0.3s ease; }
.tab-panel.active { display: block; }

/* === ACCORDION === */
.accordion-item {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}
.accordion-header:hover { background: rgba(255,255,255,0.02); }
.accordion-header h4 { font-size: 1rem; }
.accordion-header .icon { transition: var(--transition-fast); color: var(--gray-400); }
.accordion-item.open .accordion-header .icon { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-body-inner { padding: 0 24px 20px; font-size: 0.95rem; color: var(--gray-300); }

/* === LOADING / SPINNER === */
.spinner { width: 24px; height: 24px; border: 3px solid var(--navy-600); border-top-color: var(--blue-500); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--navy-900);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  transition: opacity 0.5s ease;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loading-logo { font-size: 2rem; font-weight: 800; color: var(--white); }
.loading-logo span { color: var(--blue-400); }
.loading-bar { width: 200px; height: 3px; background: var(--navy-700); border-radius: 3px; overflow: hidden; }
.loading-bar .fill { height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--red-500)); animation: loading-fill 1.5s ease forwards; }
@keyframes loading-fill { from { width: 0; } to { width: 100%; } }


/* ===================== */
/* MENTIONS LEGALES      */
/* ===================== */

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content {
    padding-bottom: 4rem;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-icon {
    font-size: 1.3rem;
}

.legal-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.legal-card p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card strong {
    color: rgba(255,255,255,0.95);
}

.legal-card a {
    color: #0A84FF;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-card a:hover {
    color: #3da0ff;
    text-decoration: underline;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.legal-list li {
    color: rgba(255,255,255,0.75);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.65;
    font-size: 0.95rem;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0A84FF;
}

.legal-list li strong {
    color: rgba(255,255,255,0.95);
}


/* ===================== */
/* THREAT MONITOR WIDGET */
/* ===================== */
.threat-monitor {
  background: var(--navy-800);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.threat-monitor::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-500), var(--blue-500), var(--red-500));
  background-size: 200% 100%;
  animation: threat-scan 3s linear infinite;
}
@keyframes threat-scan {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.threat-monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.threat-monitor-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.threat-monitor-title h3 {
  font-size: 1.1rem;
  margin: 0;
}
.threat-pulse-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  animation: threat-icon-pulse 2s ease-in-out infinite;
}
@keyframes threat-icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}
.threat-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.threat-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  animation: pulse-dot 1.5s infinite;
}
.threat-last-update {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.threat-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.threat-stat-item {
  padding: 16px;
  background: var(--navy-700);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
}
.threat-stat-item .t-number {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.threat-stat-item .t-label {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.threat-stat-item.critical .t-number { color: var(--red-400); }
.threat-stat-item.high .t-number { color: var(--warning); }
.threat-stat-item.medium .t-number { color: var(--blue-400); }
.threat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.threat-list::-webkit-scrollbar { width: 4px; }
.threat-list::-webkit-scrollbar-track { background: var(--navy-900); }
.threat-list::-webkit-scrollbar-thumb { background: rgba(10,132,255,0.3); border-radius: 2px; }
.threat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--navy-700);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
  cursor: default;
}
.threat-item:hover { background: rgba(255,255,255,0.03); }
.threat-item.severity-critical { border-left-color: var(--red-500); }
.threat-item.severity-high { border-left-color: var(--warning); }
.threat-item.severity-medium { border-left-color: var(--blue-500); }
.threat-item.severity-low { border-left-color: var(--success); }
.threat-severity-badge {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.severity-critical .threat-severity-badge { background: rgba(230,57,70,0.15); color: var(--red-400); }
.severity-high .threat-severity-badge { background: rgba(245,158,11,0.15); color: var(--warning); }
.severity-medium .threat-severity-badge { background: rgba(10,132,255,0.15); color: var(--blue-400); }
.severity-low .threat-severity-badge { background: rgba(16,185,129,0.15); color: var(--success); }
.threat-info { flex: 1; min-width: 0; }
.threat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.threat-detail {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.threat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.threat-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-300);
  font-family: var(--font-mono);
}
.threat-time {
  font-size: 0.65rem;
  color: var(--gray-500);
}
.threat-country-flag { font-size: 1rem; }
.threat-monitor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
  gap: 8px;
}
.threat-footer-info {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.threat-footer-info a {
  color: var(--blue-400);
  font-size: 0.75rem;
}
.threat-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  color: var(--gray-400);
  font-size: 0.9rem;
}
.threat-error {
  padding: 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.threat-map-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.threat-country-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--navy-700);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--gray-300);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.05);
}
.threat-scan-line {
  position: relative;
  height: 2px;
  background: var(--navy-700);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 16px;
}
.threat-scan-line::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--red-500), transparent);
  animation: scan-move 2.5s ease-in-out infinite;
}
@keyframes scan-move {
  0% { left: -30%; }
  100% { left: 130%; }
}
@media (max-width: 768px) {
  .threat-stats-bar { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .threat-stat-item .t-number { font-size: 1.3rem; }
}


/* ============================================ */
/* HERO 2-COLUMN LAYOUT + MOROCCO THREAT MAP    */
/* ============================================ */

/* Hero layout 2 columns */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 80vh;
  padding: 20px 0;
  overflow: hidden;
}

/* Morocco map panel */
.hero-map-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

.hero-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hero-map-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-200);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.map-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.3);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--red-400);
  letter-spacing: 0.1em;
}

.map-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-400);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.map-update-time {
  font-size: 0.7rem;
  color: var(--gray-500);
}

/* Map wrapper */
.morocco-map-wrap {
  position: relative;
  background: linear-gradient(135deg, rgba(15,22,41,0.95), rgba(21,29,55,0.9));
  border: 1px solid rgba(10,132,255,0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.morocco-map-wrap::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(10,132,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.morocco-map-svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Morocco fill */
.morocco-fill {
  fill: rgba(10,132,255,0.06);
  stroke: rgba(10,132,255,0.4);
  stroke-width: 1.5;
  transition: fill 0.3s ease;
}

/* Grid lines */
.map-grid-lines line {
  opacity: 0.12;
}

/* City pulse animations */
@keyframes cityPulse1 {
  0%, 100% { r: 22px; opacity: 0.5; }
  50% { r: 30px; opacity: 0; }
}
@keyframes cityPulse2 {
  0%, 100% { r: 16px; opacity: 0.4; }
  50% { r: 22px; opacity: 0; }
}
@keyframes cityPulse3 {
  0%, 100% { r: 14px; opacity: 0.3; }
  50% { r: 20px; opacity: 0; }
}

.city-pulse-1 { animation: cityPulse1 2.5s ease-in-out infinite; }
.city-pulse-2 { animation: cityPulse2 3s ease-in-out infinite 0.5s; }
.city-pulse-3 { animation: cityPulse3 3.5s ease-in-out infinite 1s; }

/* City labels */
.map-city-label {
  font-size: 9px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.map-city-critical { fill: #EF5563; }
.map-city-high { fill: #F59E0B; }
.map-city-medium { fill: #6DB8FF; }

/* City marker hover */
.city-marker { cursor: pointer; }
.city-marker:hover .morocco-fill { fill: rgba(10,132,255,0.12); }

/* Map stats row */
.map-stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  flex: 1;
  min-width: 0;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.06);
}

.map-stat-pill.critical { border-color: rgba(230,57,70,0.25); }
.map-stat-pill.high { border-color: rgba(245,158,11,0.25); }
.map-stat-pill.info { border-color: rgba(10,132,255,0.25); }

.map-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-stat-pill.critical .map-stat-dot { background: var(--red-400); }
.map-stat-pill.high .map-stat-dot { background: var(--warning); }
.map-stat-pill.info .map-stat-dot { background: var(--blue-400); }

.map-stat-num {
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--white);
}

.map-stat-label {
  color: var(--gray-400);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  background: var(--navy-700);
  border: 1px solid rgba(10,132,255,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  min-width: 160px;
}

.map-tt-city {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.map-tt-threats { color: var(--red-400); margin-bottom: 2px; }
.map-tt-ports { color: var(--gray-400); font-family: var(--font-mono); font-size: 0.75rem; }

/* Alert ticker */
.map-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(230,57,70,0.06);
  border: 1px solid rgba(230,57,70,0.15);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  overflow: hidden;
  height: 30px;
}

.map-ticker-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--red-400);
  letter-spacing: 0.15em;
  white-space: nowrap;
  padding: 2px 6px;
  background: rgba(230,57,70,0.15);
  border-radius: 2px;
  flex-shrink: 0;
}

.map-ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.map-ticker-inner {
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--gray-300);
  animation: tickerScroll 30s linear infinite;
  display: inline-block;
  font-family: var(--font-mono);
}

@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.map-disclaimer {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-align: right;
}

/* Responsive hero layout */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-map-panel {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-map-panel { display: none; }
}
