/* ============================================================
   Face-Crypt-Cloud | Landing Page Stylesheet
   Theme: Dark Cyberpunk / Glassmorphism / Biometric UI
   ============================================================ */

/* --- Google Fonts imported in HTML --- */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --navy-900: #020812;
  --navy-800: #050A18;
  --navy-700: #081428;
  --navy-600: #0C1F3E;
  --navy-500: #102A54;
  --cyan-400: #00D4FF;
  --cyan-300: #33DDFF;
  --cyan-200: #66E8FF;
  --blue-500: #0080FF;
  --blue-400: #2D9CFF;
  --blue-300: #5AB4FF;
  --gold-400: #FFD700;
  --gold-300: #FFE44D;
  --white: #FFFFFF;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-05: rgba(255, 255, 255, 0.05);
  --cyan-glow: rgba(0, 212, 255, 0.4);
  --cyan-glow-sm: rgba(0, 212, 255, 0.15);
  --blue-glow: rgba(0, 128, 255, 0.4);
  --glass-bg: rgba(8, 20, 40, 0.7);
  --glass-border: rgba(0, 212, 255, 0.2);
  --glass-border-hover: rgba(0, 212, 255, 0.5);
  --border-radius-xl: 24px;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --font-arabic: 'Cairo', 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--font-arabic);
  background-color: var(--navy-900);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  position: relative;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Radial glow centers */
.bg-layer::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(ellipse at center,
    rgba(0, 128, 255, 0.12) 0%,
    rgba(0, 212, 255, 0.06) 40%,
    transparent 70%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

.bg-layer::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
    rgba(0, 212, 255, 0.08) 0%,
    transparent 60%);
  animation: bgPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes bgPulse {
  from { opacity: 0.6; transform: translateX(-50%) scale(1); }
  to   { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

/* Grid lines overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* Floating Particles */
.particles-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--cyan-400);
  opacity: 0;
  animation: floatParticle var(--dur, 8s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes floatParticle {
  0%   { opacity: 0;    transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0;    transform: translateY(-20vh) scale(1); }
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   TOP NAV BAR
   ============================================================ */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(5, 10, 24, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
  transition: var(--transition-smooth);
}

.nav-logo img:hover {
  filter: drop-shadow(0 0 16px var(--cyan-400));
  transform: scale(1.05);
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--white-70);
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 16px;
}

.nav-badge .status-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22C55E; }
  50%       { opacity: 0.4; box-shadow: 0 0 4px #22C55E; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  text-align: center;
  flex: 1;
}

/* Project Title Badge */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,128,255,0.08));
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 8px 22px;
  font-size: 0.82rem;
  color: var(--cyan-300);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.7s ease both;
}

.project-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--cyan-400);
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Main Headline */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInDown 0.8s 0.1s ease both;
}

.hero-title .brand-name {
  display: block;
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan-300) 50%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--white-70);
  margin-bottom: 12px;
  font-weight: 400;
  animation: fadeInDown 0.8s 0.2s ease both;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--white-50);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.8;
  animation: fadeInDown 0.8s 0.3s ease both;
}

/* ============================================================
   HERO GRAPHIC (Biometric Visual)
   ============================================================ */
.hero-graphic-container {
  position: relative;
  width: min(360px, 85vw);
  margin: 0 auto 48px;
  animation: fadeInUp 0.9s 0.2s ease both;
}

.hero-graphic-wrap {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(8,20,40,0.8), rgba(5,10,24,0.9));
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.1),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(0,212,255,0.15);
  transition: var(--transition-smooth);
}

.hero-graphic-wrap:hover {
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.3),
    0 30px 80px rgba(0,0,0,0.6),
    0 0 40px rgba(0,212,255,0.12),
    inset 0 1px 0 rgba(0,212,255,0.2);
  transform: translateY(-4px);
}

.hero-graphic-wrap img {
  width: 100%;
  display: block;
  border-radius: var(--border-radius-xl);
}

/* Scan Line Animation over the hero image */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--cyan-glow-sm) 20%,
    var(--cyan-400) 50%,
    var(--cyan-glow-sm) 80%,
    transparent 100%);
  box-shadow: 0 0 12px var(--cyan-400), 0 0 24px var(--cyan-glow);
  animation: scanDown 3.5s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes scanDown {
  0%   { top: 5%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 95%; opacity: 0; }
}

/* Corner Brackets */
.bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 4;
  pointer-events: none;
}
.bracket::before, .bracket::after {
  content: '';
  position: absolute;
  background: var(--cyan-400);
  box-shadow: 0 0 8px var(--cyan-400);
}
.bracket-tl { top: 12px; right: 12px; }
.bracket-tl::before { top: 0; right: 0; width: 100%; height: 3px; }
.bracket-tl::after  { top: 0; right: 0; width: 3px; height: 100%; }

.bracket-tr { top: 12px; left: 12px; }
.bracket-tr::before { top: 0; left: 0; width: 100%; height: 3px; }
.bracket-tr::after  { top: 0; left: 0; width: 3px; height: 100%; }

.bracket-bl { bottom: 12px; right: 12px; }
.bracket-bl::before { bottom: 0; right: 0; width: 100%; height: 3px; }
.bracket-bl::after  { bottom: 0; right: 0; width: 3px; height: 100%; }

.bracket-br { bottom: 12px; left: 12px; }
.bracket-br::before { bottom: 0; left: 0; width: 100%; height: 3px; }
.bracket-br::after  { bottom: 0; left: 0; width: 3px; height: 100%; }

/* Pulse ring around graphic */
.graphic-ring {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--border-radius-xl) + 20px);
  border: 1px solid rgba(0,212,255,0.2);
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.graphic-ring-2 {
  inset: -36px;
  animation-delay: 1s;
  border-color: rgba(0,128,255,0.15);
}

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

/* Status chip on hero */
.hero-chip {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(8,20,40,0.95), rgba(5,10,24,0.98));
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: #86EFAC;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(34,197,94,0.15);
  backdrop-filter: blur(12px);
  z-index: 5;
}

.hero-chip .dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 10px #22C55E;
  animation: dotBlink 1.5s ease-in-out infinite;
}

/* ============================================================
   FEATURE PILLS / STATS ROW
   ============================================================ */
.features-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s 0.4s ease both;
  padding: 0 16px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white-05);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--white-80);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  cursor: default;
}

.feature-pill:hover {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.4);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.12);
}

.feature-pill .pill-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ============================================================
   MAIN AUTH CARD
   ============================================================ */
.auth-card {
  width: min(480px, 92vw);
  margin: 0 auto 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xl);
  padding: 36px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(0,212,255,0.06);
  animation: fadeInUp 0.9s 0.5s ease both;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--blue-500) 30%,
    var(--cyan-400) 50%,
    var(--blue-500) 70%,
    transparent 100%);
}

.auth-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--white-10);
}

.auth-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0,128,255,0.3), rgba(0,212,255,0.15));
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.auth-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white-90);
  margin: 0;
}

.auth-card-sub {
  font-size: 0.8rem;
  color: var(--white-50);
  margin: 3px 0 0;
}

/* Camera / Video Container */
#cameraContainer {
  text-align: center;
}

#cameraStream,
#preview {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

#cameraStream {
  border: 2px solid rgba(0,212,255,0.5);
  box-shadow: 0 0 20px rgba(0,212,255,0.2), 0 10px 30px rgba(0,0,0,0.3);
}

#preview {
  border: 2px solid rgba(34,197,94,0.5);
  box-shadow: 0 0 20px rgba(34,197,94,0.2), 0 10px 30px rgba(0,0,0,0.3);
}

/* ============================================================
   CTA BUTTON — PRIMARY (Start Authentication)
   ============================================================ */
.btn-cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 28px;
  background: linear-gradient(135deg, var(--blue-500) 0%, #005ACC 40%, var(--cyan-400) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.3),
    0 8px 32px rgba(0,128,255,0.35),
    0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.3px;
}

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

.btn-cta-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.6),
    0 16px 48px rgba(0,128,255,0.5),
    0 0 40px rgba(0,212,255,0.2);
}

.btn-cta-primary:hover::before {
  opacity: 1;
}

.btn-cta-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,128,255,0.3);
}

.btn-cta-primary:active::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
  transition: transform 0s, opacity 0.4s ease;
}

.btn-cta-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-cta-primary:hover .btn-cta-icon {
  transform: scale(1.1) rotate(-8deg);
}

.btn-cta-text {
  text-align: right;
}

.btn-cta-text .main-text {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
}

.btn-cta-text .sub-text {
  display: block;
  font-size: 0.78rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Pulsing glow ring on CTA */
.btn-cta-primary-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.btn-cta-primary-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--border-radius-lg) + 3px);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  opacity: 0;
  z-index: -1;
  animation: ctaGlow 2.5s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}

/* ============================================================
   SECONDARY CAMERA CONTROL BUTTONS
   ============================================================ */
.camera-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.btn-cam {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-cam-capture {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: var(--white);
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 4px 16px rgba(245,158,11,0.25);
}

.btn-cam-capture:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.4);
  filter: brightness(1.1);
}

.btn-cam-stop {
  background: var(--white-05);
  color: var(--white-70);
  border-color: var(--white-20);
}

.btn-cam-stop:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.4);
  color: #FCA5A5;
  transform: translateY(-2px);
}

/* Submit / Retake row */
.submit-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.btn-submit {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #15803D, #22C55E);
  color: var(--white);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: var(--border-radius-md);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(34,197,94,0.25);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,197,94,0.4);
}

.btn-retake {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 16px;
  background: transparent;
  color: #FCA5A5;
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: var(--border-radius-md);
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-retake:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.6);
  transform: translateY(-2px);
}

.btn-cancel {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--white-50);
  border: 1px solid var(--white-10);
  border-radius: var(--border-radius-md);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.btn-cancel:hover {
  background: var(--white-05);
  color: var(--white-70);
  border-color: var(--white-20);
}

/* ============================================================
   RESULT DISPLAY
   ============================================================ */
#result {
  margin-top: 18px;
}

/* ============================================================
   CUSTOM ALERTS (Global)
   ============================================================ */
.custom-alert {
  background-color: #1E2029;
  color: #F3F4F6;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  direction: rtl;
  text-align: right;
  padding: 14px 18px;
  border: none;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 15px;
  display: block;
}

.custom-alert-danger {
  border-right: 4px solid #EF4444;
}

.custom-alert-success {
  border-right: 4px solid #10B981;
}

.custom-alert-warning {
  border-right: 4px solid #F59E0B;
}

.custom-alert-info {
  border-right: 4px solid #3B82F6;
}

/* ============================================================
   SECURITY POLICY CARD
   ============================================================ */
.security-card {
  background: rgba(255,193,7,0.04);
  border: 1px solid rgba(255,193,7,0.18);
  border-radius: var(--border-radius-lg);
  padding: 18px 20px;
  margin-top: 20px;
}

.security-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 14px;
}

.security-card-title svg {
  width: 18px;
  height: 18px;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.5;
}

.sec-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.sec-badge-warn {
  background: rgba(245,158,11,0.2);
  color: #FCD34D;
  border: 1px solid rgba(245,158,11,0.3);
}

.sec-badge-danger {
  background: rgba(239,68,68,0.2);
  color: #FCA5A5;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid var(--white-10);
  color: var(--white-50);
  font-size: 0.8rem;
  background: rgba(5,10,24,0.5);
  backdrop-filter: blur(10px);
}

.site-footer a {
  color: var(--cyan-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.site-footer a:hover {
  color: var(--cyan-300);
  text-shadow: 0 0 8px var(--cyan-glow);
}

/* ============================================================
   ANIMATIONS (Entry)
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ============================================================
   SCANNING ANIMATION (Active State)
   ============================================================ */
.scanning-active {
  animation: scanPulse 1.5s ease-in-out infinite;
}

@keyframes scanPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.2), 0 10px 30px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 40px rgba(0,212,255,0.5), 0 10px 30px rgba(0,0,0,0.3); }
}

/* ============================================================
   SWEETALERT2 CUSTOM THEME
   ============================================================ */
.swal-dark-popup {
  background: var(--navy-700) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius-xl) !important;
  font-family: var(--font-arabic) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

.swal-dark-popup .swal2-title {
  color: var(--white) !important;
  font-family: var(--font-arabic) !important;
}

.swal-dark-popup .swal2-html-container {
  color: var(--white-70) !important;
  font-family: var(--font-arabic) !important;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 900px) {
  .top-nav {
    padding: 16px 24px;
  }

  .hero-section {
    padding: 50px 20px 35px;
  }

  .hero-graphic-container {
    width: min(320px, 85vw);
    margin-bottom: 40px;
  }

  .features-row {
    gap: 10px;
    margin-bottom: 40px;
  }

  .feature-pill {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .auth-card {
    width: min(440px, 94vw);
    padding: 30px 22px;
  }
}
@media (max-width: 520px) {
  .top-nav {
    padding: 14px 20px;
  }

  .nav-badge {
    display: none;
  }

  .hero-section {
    padding: 40px 16px 30px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .camera-controls {
    flex-direction: column;
  }

  .submit-row {
    flex-direction: column;
  }

  .btn-retake {
    flex: unset;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.d-none { display: none !important; }
.text-cyan { color: var(--cyan-400); }
.text-gold { color: var(--gold-400); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* ============================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Shorten large entry animations */
  .project-badge,
  .hero-title,
  .hero-subtitle,
  .hero-desc,
  .hero-graphic-container,
  .features-row,
  .auth-card {
    animation-duration: 0.01ms !important;
  }

  /* Stop continuous/looping animations */
  .bg-layer::before,
  .bg-layer::after,
  .grid-overlay,
  .particle,
  .scan-line,
  .graphic-ring,
  .graphic-ring-2,
  .project-badge svg,
  .nav-badge .status-dot,
  .hero-chip .dot,
  .btn-cta-primary-wrapper::before,
  .scanning-active {
    animation: none !important;
  }

  /* Hide elements that are purely decorative and rely on motion */
  .particle,
  .scan-line {
    display: none !important;
  }

  /* Disable smooth scrolling */
  html {
    scroll-behavior: auto !important;
  }
}
