/* ============================================================
   NaQL — نقل  |  Iraq National Logistics Platform
   Shared Stylesheet  |  Version 1.0
   Iraqi Ministry of Transportation
   ============================================================ */

/* ── 1. Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── 2. CSS Variables ────────────────────────────────────── */
:root {
  /* Brand */
  --navy:         #0d1f3c;
  --navy-dark:    #081629;
  --navy-light:   #1a3a6b;
  --navy-mid:     #132d56;
  --navy-glass:   rgba(13,31,60,0.92);
  --gold:         #c9a227;
  --gold-light:   #e0b83a;
  --gold-pale:    #fdf6df;
  --gold-border:  rgba(201,162,39,0.35);

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --gray-50:      #f1f5f9;
  --gray-100:     #e2e8f0;
  --gray-200:     #cbd5e1;
  --gray-400:     #94a3b8;
  --gray-500:     #64748b;
  --gray-600:     #475569;
  --gray-700:     #334155;
  --gray-800:     #1e293b;

  /* Status */
  --success:      #16a34a;
  --success-bg:   #f0fdf4;
  --warning:      #d97706;
  --warning-bg:   #fffbeb;
  --danger:       #dc2626;
  --danger-bg:    #fef2f2;
  --info:         #2563eb;
  --info-bg:      #eff6ff;

  /* Typography */
  --font-ar:      'Cairo', 'Noto Sans Arabic', sans-serif;
  --font-en:      'Inter', 'Segoe UI', sans-serif;
  --font-active:  var(--font-ar);

  /* Layout */
  --nav-h:        72px;
  --max-w:        1200px;
  --px:           clamp(1rem, 5vw, 3rem);

  /* Radius */
  --r-sm:         6px;
  --r:            10px;
  --r-lg:         16px;
  --r-xl:         24px;
  --r-full:       9999px;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.14);
  --shadow-gold:  0 4px 24px rgba(201,162,39,0.28);
  --shadow-navy:  0 4px 24px rgba(13,31,60,0.30);

  /* Transitions */
  --t:            0.22s ease;
  --t-slow:       0.4s ease;
}

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

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

body {
  font-family: var(--font-ar);
  background: var(--off-white);
  color: var(--gray-800);
  direction: rtl;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── 4. Utility Classes ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--gray-500); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.gap-3       { gap: 1.5rem; }
.gap-4       { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-gold    { background: var(--gold-pale); color: var(--gold); border: 1px solid var(--gold-border); }
.badge-navy    { background: var(--navy); color: var(--white); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }

/* ── 5. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,0.38);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}
.btn-ghost:hover {
  background: var(--gray-50);
  color: var(--navy);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn-icon { padding: 0.6rem; width: 2.4rem; height: 2.4rem; border-radius: var(--r); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── 6. Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-h);
  background: var(--navy-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  transition: background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name { font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.nav-logo-ar   { font-size: 0.75rem; color: var(--gold); font-weight: 600; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  transition: all var(--t);
  letter-spacing: 0.02em;
}
.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lang-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  background: transparent;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}

/* Mobile Nav Drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  background: var(--navy);
  padding: 1rem var(--px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── 7. Hero Section ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

/* Decorative background patterns */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 70% 50%, rgba(201,162,39,0.07) 0%, transparent 70%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.012) 60px,
      rgba(255,255,255,0.012) 61px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--off-white));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding-bottom: 4rem;
}

.hero-content { max-width: 600px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,162,39,0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  margin-bottom: 2.2rem;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}
.hero-trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Hero Illustration */
.hero-visual {
  flex-shrink: 0;
}
.hero-visual-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  width: 300px;
}
.hero-visual-card .hvc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}
.hvc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
.hvc-stat {
  background: rgba(255,255,255,0.06);
  border-radius: var(--r);
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}
.hvc-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-bottom: 0.25rem; }
.hvc-stat-value { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.hvc-stat-value span { font-size: 0.8rem; color: var(--gold); margin-inline-start: 0.3rem; }
.hvc-route {
  margin-top: 0.8rem;
  padding: 0.7rem;
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--gold-border);
  border-radius: var(--r);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
}
.hvc-route-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
}
.hvc-route-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── 8. Stats Bar ─────────────────────────────────────────── */
.stats-bar {
  background: var(--gold);
  padding: 1.8rem 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(13,31,60,0.75);
}

/* ── 9. Section Common ───────────────────────────────────── */
.section {
  padding: 5rem 0;
}
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.9;
}

/* ── 10. Feature Cards ───────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--t);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--gold);
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.85;
}

/* ── 11. How It Works ────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.2rem;
  inset-inline-start: calc(16% + 2rem);
  inset-inline-end: calc(16% + 2rem);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy-light));
  opacity: 0.3;
}

.step-card { text-align: center; }
.step-number {
  width: 4.4rem;
  height: 4.4rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-navy);
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.85;
}

/* ── 12. User Type Cards ─────────────────────────────────── */
.user-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.user-type-card {
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t);
}
.user-type-card::before {
  content: '';
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201,162,39,0.12);
}
.user-type-card:hover { transform: translateY(-4px); }

.utc-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,162,39,0.15);
  border: 2px solid var(--gold-border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--gold);
}
.utc-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.utc-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.utc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap var(--t);
}
.utc-link:hover { gap: 0.7rem; }

/* ── 13. Ministry Trust Banner ───────────────────────────── */
.trust-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 3.5rem 0;
  text-align: center;
  color: var(--white);
}
.trust-banner h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.trust-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}
.trust-badge svg { color: var(--gold); width: 14px; height: 14px; }

/* ── 14. CTA Section ─────────────────────────────────────── */
.cta-section {
  background: var(--gold);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(13,31,60,0.7);
  margin-bottom: 1.8rem;
}
.cta-section .flex-center { gap: 1rem; flex-wrap: wrap; }

/* ── 15. Footer ──────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  margin-top: 0.75rem;
  max-width: 280px;
}
.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--t);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}
.footer-contact-item svg { color: var(--gold); width: 14px; height: 14px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 1.2rem; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  transition: color var(--t);
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ── 16. Auth Pages Layout ───────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%);
  display: flex;
  flex-direction: column;
}
.auth-page .navbar {
  background: rgba(8,22,41,0.95);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--px) 3rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.auth-card-wide { max-width: 700px; }

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo-icon {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.3rem;
}
.auth-subtitle {
  font-size: 0.88rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 1.8rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

.auth-switch {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--gray-500);
}
.auth-switch a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── 17. Role Selector ───────────────────────────────────── */
.role-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.4rem;
  border-radius: var(--r);
  border: 2px solid var(--gray-100);
  background: var(--gray-50);
  cursor: pointer;
  transition: all var(--t);
  text-align: center;
}
.role-card:hover {
  border-color: var(--navy);
  background: var(--white);
}
.role-card.active {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: var(--shadow-gold);
}

.role-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all var(--t);
}
.role-card.active .role-card-icon {
  background: var(--navy);
  color: var(--gold);
}
.role-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
  line-height: 1.3;
}
.role-card.active .role-card-name { color: var(--navy); }

/* ── 18. Form Components ─────────────────────────────────── */
.form-group {
  margin-bottom: 1.2rem;
}
.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.form-label .required {
  color: var(--danger);
  margin-inline-start: 0.2rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-400); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,31,60,0.08);
}
.form-input.error,
.form-select.error { border-color: var(--danger); }

.form-hint {
  font-size: 0.77rem;
  color: var(--gray-400);
  margin-top: 0.3rem;
}
.form-error {
  font-size: 0.77rem;
  color: var(--danger);
  margin-top: 0.3rem;
  display: none;
}
.form-group.has-error .form-error { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 0.5rem;
  margin: 1.8rem 0 1.2rem;
}
.form-section-title:first-of-type { margin-top: 0; }

/* Password input wrapper */
.input-wrapper {
  position: relative;
}
.input-eye {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 0.8rem;
  color: var(--gray-400);
  width: 18px;
  cursor: pointer;
}

/* Document Upload */
.doc-upload {
  border: 2px dashed var(--gray-200);
  border-radius: var(--r);
  padding: 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  background: var(--gray-50);
  position: relative;
}
.doc-upload:hover {
  border-color: var(--navy);
  background: var(--off-white);
}
.doc-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.doc-upload-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  color: var(--gray-400);
}
.doc-upload-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.doc-upload-hint { font-size: 0.75rem; color: var(--gray-400); }
.doc-upload.uploaded {
  border-color: var(--success);
  background: var(--success-bg);
}
.doc-upload.uploaded .doc-upload-icon {
  background: var(--success-bg);
  color: var(--success);
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-item-label {
  font-size: 0.83rem;
  color: var(--gray-700);
}

/* ── 19. Progress Steps ──────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  flex: 1;
}
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.progress-step.done:not(:last-child)::after { background: var(--gold); }

.progress-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-400);
  position: relative;
  z-index: 1;
  transition: all var(--t);
}
.progress-step.active .progress-step-circle {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.progress-step.done .progress-step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.progress-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-align: center;
  white-space: nowrap;
}
.progress-step.active .progress-step-label,
.progress-step.done .progress-step-label { color: var(--navy); }

/* ── 20. Alert / Notice ──────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r);
  font-size: 0.85rem;
  line-height: 1.7;
}
.alert svg { flex-shrink: 0; margin-top: 0.1rem; }
.alert-info    { background: var(--info-bg); color: var(--info); border: 1px solid rgba(37,99,235,0.15); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(22,163,74,0.15); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(217,119,6,0.15); }
.alert-gold    { background: var(--gold-pale); color: var(--navy); border: 1px solid var(--gold-border); }

/* ── 21. Animations ──────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── 22. Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .hero-visual        { display: none; }
  .hero-inner         { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links          { display: none; }
  .nav-hamburger      { display: flex; }
  .nav-actions .btn   { display: none; }
  .nav-actions .btn:last-child { display: inline-flex; }

  .hero h1            { font-size: 1.9rem; }
  .hero-cta           { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn      { width: 100%; max-width: 280px; }

  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .features-grid      { grid-template-columns: 1fr; }
  .steps-grid         { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .user-types-grid    { grid-template-columns: 1fr; }

  .role-selector      { grid-template-columns: repeat(3, 1fr); }
  .form-row           { grid-template-columns: 1fr; }
  .checkbox-grid      { grid-template-columns: 1fr; }

  .footer-grid        { grid-template-columns: 1fr; }
  .footer-bottom      { flex-direction: column; gap: 0.75rem; text-align: center; }

  .auth-card          { padding: 1.8rem 1.4rem; border-radius: var(--r-lg); }
}

@media (max-width: 480px) {
  .role-selector      { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}

/* ── 23. RTL / LTR Overrides ─────────────────────────────── */
/* Most layout uses logical CSS properties (inset-inline, margin-inline)
   which flip automatically. These are manual overrides where needed. */

[dir="ltr"] .hero-content    { order: 1; }
[dir="ltr"] .hero-visual     { order: 2; }
[dir="rtl"] .hero-content    { order: 2; }
[dir="rtl"] .hero-visual     { order: 1; }

[dir="ltr"] .steps-grid::before {
  inset-inline-start: calc(16% + 2rem);
  inset-inline-end:   calc(16% + 2rem);
}

/* Fix select arrows for RTL */
[dir="rtl"] .form-select {
  padding-right: 1rem;
  padding-left: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.9rem center;
}

/* Scrollbar styling */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--gray-50); }
::-webkit-scrollbar-thumb  { background: var(--gray-200); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
