@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

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

:root {
  --primary: #d4a843;
  --primary-dark: #b8922e;
  --primary-light: #f0d078;
  --primary-glow: rgba(212, 168, 67, 0.5);
  --secondary: #c9b06b;
  --secondary-dark: #a89040;
  --secondary-glow: rgba(201, 176, 107, 0.4);
  --accent: #f0d078;
  --accent-glow: rgba(240, 208, 120, 0.4);
  --neon-blue: #d4a843;
  --neon-purple: #d4a843;
  --neon-pink: #d4a843;
  --success: #4ade80;
  --success-glow: rgba(74, 222, 128, 0.4);
  --danger: #f87171;
  --danger-glow: rgba(248, 113, 113, 0.4);
  --warning: #fbbf24;
  --dark: #0a0a0a;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --dark-4: #222222;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(212, 168, 67, 0.12);
  --glass-hover: rgba(212, 168, 67, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --text: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --card-bg: rgba(17, 17, 17, 0.9);
  --card-border: rgba(212, 168, 67, 0.15);
  --input-bg: rgba(26, 26, 26, 0.9);
  --input-border: rgba(212, 168, 67, 0.25);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(212, 168, 67, 0.1);
  --shadow-neon: 0 0 20px rgba(212, 168, 67, 0.2), 0 0 40px rgba(212, 168, 67, 0.08);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text);
  direction: rtl;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212, 168, 67, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 168, 67, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212, 168, 67, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#root { min-height: 100vh; position: relative; z-index: 1; }

button { cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; border: none; outline: none; }

input, select, textarea { font-family: inherit; -webkit-appearance: none; outline: none; }

a { color: var(--primary-light); text-decoration: none; transition: color 0.3s var(--transition); }

a:hover { color: var(--secondary); }

::selection { background: rgba(129, 140, 248, 0.3); color: white; }

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-sm); border: none;
  font-size: 1rem; font-weight: 700; transition: all 0.3s var(--transition);
  white-space: nowrap; position: relative; overflow: hidden; letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.96); transition: transform 0.1s; }

.btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #d4a843, #b8922e);
  color: #0a0a0a; box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3); font-weight: 700;
}

.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(212, 168, 67, 0.4); }

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  background: linear-gradient(135deg, #c9b06b, #a89040);
  color: #0a0a0a; box-shadow: 0 4px 20px rgba(201, 176, 107, 0.3); font-weight: 700;
}

.btn-secondary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(201, 176, 107, 0.4); }

.btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: white; box-shadow: 0 4px 20px var(--danger-glow);
}

.btn-danger:hover { transform: translateY(-2px) scale(1.02); }

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #d97706);
  color: #0a0a0a;
}

.btn-outline {
  background: transparent; border: 2px solid var(--primary); color: var(--primary-light);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(212,168,67,0.1); color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(212,168,67,0.2); border-color: var(--primary-light);
}

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover { background: var(--glass-hover); color: white; border-color: var(--glass-border); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 10px; }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.15rem; border-radius: var(--radius); }

.btn-block { width: 100%; }

/* ===== FORMS ===== */

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block; margin-bottom: 0.5rem; font-weight: 600;
  color: var(--text-secondary); font-size: 0.85rem; letter-spacing: 0.03em;
}

.form-input {
  width: 100%; padding: 0.9rem 1.1rem; border: 2px solid var(--input-border);
  border-radius: var(--radius-sm); font-size: 1rem; background: var(--input-bg);
  color: var(--text); transition: all 0.3s var(--transition); backdrop-filter: blur(12px);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1), 0 0 30px rgba(129, 140, 248, 0.08);
  background: rgba(20, 30, 51, 0.95);
}

.input {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--glass-border);
  border-radius: 12px; font-size: 0.9rem; background: var(--input-bg);
  color: var(--text); transition: all 0.3s var(--transition); backdrop-filter: blur(12px);
  outline: none;
}

.input::placeholder { color: var(--text-muted); }

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12), 0 0 20px rgba(129, 140, 248, 0.06);
  background: rgba(20, 30, 51, 0.95);
}

.input:disabled { opacity: 0.5; cursor: not-allowed; }

.form-select {
  width: 100%; padding: 0.9rem 1.1rem; border: 2px solid var(--input-border);
  border-radius: var(--radius-sm); font-size: 1rem; background: var(--input-bg);
  color: var(--text); cursor: pointer; transition: all 0.3s var(--transition);
}

.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1); }

.form-select option { background: var(--dark-2); color: var(--text); }

/* ===== CARDS ===== */

.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem;
  backdrop-filter: blur(24px); box-shadow: var(--shadow);
  animation: cardFadeIn 0.5s var(--spring);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--spring);
}

.card:hover {
  border-color: rgba(129,140,248,0.25);
  box-shadow: var(--shadow), var(--shadow-glow);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== BADGES ===== */

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.8rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
}

.badge-success { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.25); }

.badge-danger { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.25); }

.badge-warning { background: rgba(251, 191, 36, 0.12); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.25); }

.badge-info { background: rgba(129, 140, 248, 0.12); color: var(--primary-light); border: 1px solid rgba(129, 140, 248, 0.25); }

/* ===== AVATAR ===== */

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ===== SPINNER ===== */

.spinner {
  width: 44px; height: 44px; border: 4px solid rgba(129, 140, 248, 0.12);
  border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ANIMATIONS ===== */

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

@keyframes slideDown { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

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

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

@keyframes navGlow { 0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.4), 0 0 40px rgba(59,130,246,0.2); } 50% { box-shadow: 0 0 30px rgba(59,130,246,0.6), 0 0 60px rgba(59,130,246,0.3); } }

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

@keyframes distancePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

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

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

@keyframes glow { 0%, 100% { box-shadow: 0 0 20px var(--primary-glow); } 50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(129, 140, 248, 0.1); } }

@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

@keyframes borderGlow {
  0%, 100% { border-color: rgba(212,168,67,0.2); box-shadow: 0 0 15px rgba(212,168,67,0.06); }
  50% { border-color: rgba(212,168,67,0.4); box-shadow: 0 0 30px rgba(212,168,67,0.1); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

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

@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 10px currentColor; }
  50% { text-shadow: 0 0 20px currentColor, 0 0 40px currentColor; }
}

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

@keyframes slideInLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

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

@keyframes dash { to { stroke-dashoffset: -1000; } }

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

@keyframes orbit { from { transform: rotate(0deg) translateX(120px) rotate(0deg); } to { transform: rotate(360deg) translateX(120px) rotate(-360deg); } }

@keyframes morphBg {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.animated-route { animation: routeFlow 1.5s linear infinite; }

.animated-route-glow { animation: routeGlow 2s ease-in-out infinite; }

@keyframes routeFlow { 0% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -20; } }

@keyframes routeGlow { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.6; } }

/* ===== LOGIN BACKGROUND ===== */

.login-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #111111 0%, #0a0a0a 70%);
}

.login-bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212, 168, 67, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(212, 168, 67, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(212, 168, 67, 0.03) 0%, transparent 40%);
  animation: bgMorph 15s ease-in-out infinite;
}

@keyframes bgMorph {
  0%, 100% { opacity: 1; transform: scale(1); }
  33% { opacity: 0.9; transform: scale(1.05) rotate(1deg); }
  66% { opacity: 0.95; transform: scale(0.98) rotate(-1deg); }
}

.floating-buses { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.floating-bus {
  position: absolute; top: -60px; animation: busFloat linear infinite;
  filter: blur(0.3px);
}

@keyframes busFloat {
  0% { transform: translateY(-60px) rotate(-8deg) scale(0.8); opacity: 0; }
  5% { opacity: 0.15; }
  50% { transform: translateY(50vh) rotate(3deg) scale(1); }
  95% { opacity: 0.15; }
  100% { transform: translateY(calc(100vh + 60px)) rotate(8deg) scale(0.8); opacity: 0; }
}

.road-lines { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; overflow: hidden; }

.road-line {
  position: absolute; width: 50px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.3), transparent);
  border-radius: 2px; animation: roadMove 2.5s linear infinite;
}

@keyframes roadMove {
  0% { transform: translateX(-80px); opacity: 0; }
  20% { opacity: 1; } 80% { opacity: 1; }
  100% { transform: translateX(calc(100vw + 80px)); opacity: 0; }
}

.login-bg .particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }

.login-bg .particle {
  position: absolute; width: 3px; height: 3px;
  background: rgba(129, 140, 248, 0.6); border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; } 90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.login-card {
  width: 100%; max-width: 440px;
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(30px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 120px rgba(212, 168, 67, 0.05);
  position: relative; z-index: 10;
  animation: cardFadeIn 0.8s var(--spring), borderGlow 5s ease-in-out infinite;
}

.login-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(212,168,67,0.25), transparent 40%, transparent 60%, rgba(212,168,67,0.15));
  z-index: -1; opacity: 0.6;
}

.login-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: radial-gradient(circle at 30% 20%, rgba(212,168,67,0.06) 0%, transparent 50%);
  z-index: -1;
}

.login-logo {
  font-size: 4rem; margin-bottom: 0.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(129, 140, 248, 0.5));
}

/* ===== CUSTOM LOGO SVG ===== */

.custom-logo {
  width: 80px; height: 80px; margin: 0 auto 0.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(129, 140, 248, 0.4));
}

.custom-logo svg { width: 100%; height: 100%; }

/* ===== FOOTER ===== */

.site-footer {
  background: rgba(12, 20, 37, 0.95); border-top: 1px solid var(--glass-border);
  padding: 2rem 1.5rem; text-align: center; backdrop-filter: blur(30px);
  margin-top: auto;
}

.footer-brand {
  font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.5rem;
}

.footer-team { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 1rem 0; }

.footer-member {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.75rem 1.25rem; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: all 0.3s var(--spring);
}

.footer-member:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(129,140,248,0.15); }

.footer-member-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }

.footer-member-role { font-size: 0.8rem; color: var(--text-muted); }

.footer-socials { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }

.footer-social {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border); font-size: 1.2rem;
  transition: all 0.3s var(--spring); cursor: pointer; text-decoration: none;
}

.footer-social:hover { border-color: var(--primary); background: rgba(129,140,248,0.15); transform: translateY(-3px) scale(1.1); }

.footer-copy { color: var(--text-muted); font-size: 0.8rem; margin-top: 1rem; }

/* ===== ABOUT PAGE ===== */

.about-hero {
  text-align: center; padding: 4rem 2rem 3rem; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(129,140,248,0.06) 0%, transparent 100%);
}

.about-hero-title {
  font-size: 2.2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--neon-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.5rem;
  background-size: 200% 200%; animation: gradientShift 4s ease infinite;
}

.about-hero-sub { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto;
}

.about-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  backdrop-filter: blur(24px); transition: all 0.4s var(--spring); position: relative; overflow: hidden;
}

.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--neon-purple));
  opacity: 0; transition: opacity 0.3s;
}

.about-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-glow); }

.about-card:hover::before { opacity: 1; }

.about-card-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

.about-card-title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }

.about-card-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.about-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; padding: 2rem 1.5rem; max-width: 800px; margin: 0 auto;
}

.about-stat {
  text-align: center; padding: 1.5rem; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(24px); transition: all 0.3s var(--spring);
}

.about-stat:hover { transform: translateY(-3px); border-color: var(--primary); }

.about-stat-value {
  font-size: 2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.about-stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }

.login-title {
  font-size: 1.8rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--neon-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 0.3rem;
  background-size: 200% 200%; animation: gradientShift 4s ease infinite;
}

.login-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.error-msg {
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--danger); padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: 1rem; font-size: 0.9rem; text-align: center;
  animation: slideUp 0.3s var(--spring);
  backdrop-filter: blur(10px);
}

/* ===== DASHBOARD LAYOUT ===== */

.dashboard { min-height: 100vh; background: var(--dark); }

.dashboard-header {
  background: rgba(12, 20, 37, 0.9); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(30px); padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.dashboard-header h1 {
  font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-body { padding: 1.5rem; max-width: 1400px; margin: 0 auto; }

.stat-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.5rem;
  backdrop-filter: blur(24px); transition: all 0.4s var(--spring);
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0; transition: opacity 0.3s;
}

.stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); transform: translateY(-3px); }

.stat-card:hover::before { opacity: 1; }

.stat-card .stat-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}

.stat-card .stat-value { font-size: 1.8rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 0.3rem; }

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

/* ===== MAP ===== */

.map-container { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--card-border); box-shadow: var(--shadow); }

.leaflet-container { transition: all 0.3s ease; z-index: 0 !important; }

.leaflet-pane { z-index: 1 !important; }

.leaflet-top, .leaflet-bottom { z-index: 1 !important; }

/* ===== SCROLLBAR ===== */

::-webkit-scrollbar { width: 6px; }

::-webkit-scrollbar-track { background: var(--dark-2); }

::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 3px; }

::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== UTILITIES ===== */

.text-center { text-align: center; }

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

.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }

.mt-2 { margin-top: 1rem; }

.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }

.mb-2 { margin-bottom: 1rem; }

.mb-4 { margin-bottom: 2rem; }

.p-2 { padding: 1rem; }

.p-4 { padding: 2rem; }

.flex { display: flex; }

.flex-col { flex-direction: column; }

.items-center { align-items: center; }

.justify-center { justify-content: center; }

.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }

.gap-2 { gap: 1rem; }

.gap-4 { gap: 2rem; }

.w-full { width: 100%; }

/* ===== RESPONSIVE ===== */

@media (max-width: 480px) {
  :root { font-size: 14px; }
  .btn { padding: 0.6rem 1rem; font-size: 0.88rem; }
  .btn-sm { padding: 0.35rem 0.65rem; font-size: 0.78rem; }
  .btn-lg { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
  .form-input { padding: 0.65rem 0.8rem; font-size: 0.88rem; }
  .form-select { padding: 0.65rem 0.8rem; font-size: 0.88rem; }
  .login-card { padding: 1.5rem; margin: 0.75rem; border-radius: var(--radius-lg); }
  .login-title { font-size: 1.4rem; }
  .login-subtitle { font-size: 0.85rem; }
  .login-logo { font-size: 3rem; }
  .custom-logo { width: 60px; height: 60px; }
  .dashboard-header { padding: 0.5rem 0.75rem; }
  .dashboard-header h1 { font-size: 0.95rem; }
  .dashboard-body { padding: 0.6rem; }
  .card { padding: 1rem; }
  .about-hero { padding: 2rem 1rem 1.5rem; }
  .about-hero-title { font-size: 1.5rem; }
  .about-hero-sub { font-size: 0.9rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0.75rem; }
  .about-card { padding: 1rem; }
  .about-card-icon { font-size: 2rem; }
  .about-card-title { font-size: 0.95rem; }
  .about-card-desc { font-size: 0.8rem; line-height: 1.6; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0.75rem; }
  .about-stat { padding: 0.6rem 0.4rem; }
  .about-stat-value { font-size: 1.2rem; }
  .about-stat-label { font-size: 0.7rem; }
  .footer-team { gap: 0.5rem; }
  .footer-member { padding: 0.4rem 0.6rem; }
  .footer-member-name { font-size: 0.8rem; }
  .footer-member-role { font-size: 0.7rem; }
  .stat-card { padding: 0.75rem; }
  .stat-card .stat-value { font-size: 1.4rem; }
}

@media (max-width: 768px) {
  .dashboard-header { padding: 0.5rem 0.75rem; gap: 0.4rem; }
  .dashboard-header h1 { font-size: 0.95rem; }
  .dashboard-body { padding: 0.6rem; }
  .card { padding: 0.9rem; }
}

@media (max-width: 360px) {
  .login-card { padding: 1.2rem; margin: 0.5rem; }
  .login-title { font-size: 1.2rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .login-bg { align-items: flex-start; padding-top: 0.5rem; }
  .login-card { padding: 1rem; max-height: 95vh; overflow-y: auto; }
  .about-hero { padding: 1rem; }
}

@supports (padding: env(safe-area-inset-top)) {
  .dashboard-header { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .login-bg { padding-bottom: env(safe-area-inset-bottom); }
}

@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .form-input { min-height: 44px; }
  .form-select { min-height: 44px; }
}

@media (max-width: 768px) { .hide-mobile { display: none !important; } }

@media (min-width: 769px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }

@media (min-width: 1025px) { .hide-desktop { display: none !important; } }

/* ===== INTERACTIVE EFFECTS ===== */

[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].revealed { opacity: 1; transform: translateY(0); }

.btn-magnetic { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }

.glow-hover { position: relative; overflow: hidden; }

.glow-hover::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0; z-index: -1; transition: opacity 0.4s; filter: blur(12px);
}

.glow-hover:hover::after { opacity: 0.4; }

.marquee-wrap { overflow: hidden; white-space: nowrap; width: 100%; }

.marquee-content { display: inline-block; animation: marqueeScroll 20s linear infinite; }

@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.tilt-card { transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); transform-style: preserve-3d; }

.tilt-card:hover { transform: perspective(800px) rotateY(5deg) rotateX(-3deg) translateY(-5px); }

.counter-value { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

.preloader {
  position: fixed; inset: 0; z-index: 99999; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; }

.preloader-logo {
  width: 80px; height: 80px; border-radius: 50%;
  animation: preloaderPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(129, 140, 248, 0.5));
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.preloader-bar {
  width: 200px; height: 3px; background: rgba(129, 140, 248, 0.12);
  border-radius: 2px; margin: 1.5rem auto 0; overflow: hidden;
}

.preloader-bar-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px; transition: width 0.3s;
}

.section-fade {
  opacity: 0; transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-fade.visible { opacity: 1; transform: translateY(0); }

.card-interactive { transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); }

.card-interactive:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.4);
}

.gradient-text-animated {
  background: linear-gradient(135deg, #f0d078, #d4a843, #b8922e, #f0d078);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: gradientTextFlow 4s ease infinite;
}

@keyframes gradientTextFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.stagger-children > * {
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }

.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }

.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }

.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

.count-up { font-variant-numeric: tabular-nums; }

/* ===== RIPPLE EFFECT ===== */

.ripple-effect {
  position: relative; overflow: hidden;
}

.ripple-effect .ripple-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}

/* ===== GLASS PANEL ===== */

.glass-panel {
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== NEON TEXT ===== */

.neon-text {
  animation: neonPulse 2s ease-in-out infinite;
}

/* ===== FLOATING LABEL ===== */

.float-label {
  position: relative;
}

.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.85);
  color: var(--primary-light);
}

/* ===== PAGE TRANSITION ===== */

.page-enter { opacity: 0; transform: translateY(20px); }

.page-enter-active { opacity: 1; transform: translateY(0); transition: all 0.4s var(--spring); }

.page-exit { opacity: 1; transform: translateY(0); }

.page-exit-active { opacity: 0; transform: translateY(-20px); transition: all 0.3s var(--transition); }

/* ===== RIPPLE EFFECT ===== */

.ripple-container { position: relative; overflow: hidden; }

.ripple-container::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.5s, height 0.5s, opacity 0.5s;
}

.ripple-container:active::after {
  width: 300px; height: 300px; opacity: 0;
  transition: 0s;
}

/* ===== TILT CARD HOVER ===== */

.tilt-card {
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--spring);
}

.tilt-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 20px var(--primary-glow);
}

/* ===== STAGGER ANIMATION ===== */

.stagger-children > * {
  animation: fadeIn 0.4s var(--spring) both;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }

.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }

.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }

.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }

.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }

.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* ===== COUNT UP ===== */

.count-up { animation: fadeIn 0.6s var(--spring); font-variant-numeric: tabular-nums; }

/* ===== GLOW HOVER ===== */

.glow-hover { transition: box-shadow 0.3s var(--transition); }

.glow-hover:hover { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(129,140,248,0.1); }

/* ===== MAGNETIC BUTTON ===== */

.btn-magnetic {
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--spring);
}

.btn-magnetic:hover { transform: translateY(-2px) scale(1.03); }

.btn-magnetic:active { transform: scale(0.97); }

/* ===== PULSE DOT ===== */

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  animation: pulse 2s infinite;
}

/* ===== STATUS BADGE ===== */

.status-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600;
}

.status-online { background: rgba(52,211,153,0.15); color: var(--success); border: 1px solid rgba(52,211,153,0.25); }

.status-offline { background: rgba(248,113,113,0.15); color: var(--danger); border: 1px solid rgba(248,113,113,0.25); }

.status-warning { background: rgba(251,191,36,0.15); color: var(--warning); border: 1px solid rgba(251,191,36,0.25); }

/* ===== SAFE AREA ===== */

@supports (padding: env(safe-area-inset-top)) {
  .safe-top { padding-top: env(safe-area-inset-top); }
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* ===== 1. RIPPLE EFFECT ON BUTTONS ===== */

.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: 50%;
  left: 50%;
  transform: scale(0);
  opacity: 1;
  transition: transform 0.5s, opacity 0.5s;
}

.ripple-btn:active::after {
  transform: scale(4);
  opacity: 0;
  transition: 0s;
}

/* ===== 2. SMOOTH TRANSITIONS ===== */

.page-transition {
  animation: pageSlideIn 0.4s var(--spring);
}

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

.fade-slide {
  animation: fadeSlideUp 0.3s var(--spring);
}

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

/* ===== 3. FLOATING PARTICLES BACKGROUND ===== */

.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.15;
  animation: particleFloat linear infinite;
}

/* ===== 4. SKELETON LOADING ===== */

.skeleton {
  background: linear-gradient(90deg, var(--glass) 25%, rgba(255,255,255,0.08) 50%, var(--glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-circle {
  border-radius: 50%;
}

/* ===== 5. NEON GLOW ===== */

.neon-glow {
  box-shadow: 0 0 15px var(--primary-glow), 0 0 45px rgba(99,102,241,0.15);
}

.neon-glow-blue {
  box-shadow: 0 0 15px rgba(59,130,246,0.4), 0 0 45px rgba(59,130,246,0.15);
}

.neon-glow-green {
  box-shadow: 0 0 15px rgba(52,211,153,0.4), 0 0 45px rgba(52,211,153,0.15);
}

.neon-text-glow {
  text-shadow: 0 0 10px var(--primary-glow), 0 0 30px rgba(99,102,241,0.2);
}

.neon-border {
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px rgba(212,168,67,0.2), inset 0 0 10px rgba(212,168,67,0.05);
}

/* ===== 6. ANIMATED GRADIENT BACKGROUND ===== */

.animated-gradient {
  background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #111111, #0d0d0d);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* ===== 7. ENHANCED GLASSMORPHISM ===== */

.glass-ultra {
  background: rgba(17,17,17,0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(212,168,67,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(212,168,67,0.05);
}

.glass-card {
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(212,168,67,0.1);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--spring);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(212,168,67,0.08);
}

/* ===== 8. SHIMMER EFFECT ON CARDS ===== */

.shimmer-hover {
  position: relative;
  overflow: hidden;
}

.shimmer-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.6s;
}

.shimmer-hover:hover::before {
  left: 150%;
}

/* ===== 9. LARGER CARDS ===== */

.bus-card-lg {
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(212,168,67,0.1);
  transition: all 0.3s var(--spring);
}

.bus-card-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212,168,67,0.08);
}

/* ===== 10. MORE SPACING ===== */

.spacing-sm { gap: 0.5rem; }

.spacing-md { gap: 1rem; }

.spacing-lg { gap: 1.5rem; }

.spacing-xl { gap: 2rem; }

.padding-card { padding: 1.25rem; }

/* ===== 11. BIGGER ICONS ===== */

.icon-lg { font-size: 1.8rem; }

.icon-xl { font-size: 2.5rem; }

.icon-glow { filter: drop-shadow(0 0 8px var(--primary-glow)); }

/* ===== 12. BOTTOM NAVIGATION ===== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  background: rgba(5,10,24,0.95);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s var(--spring);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  border: none;
  background: none;
}

.bottom-nav-item.active {
  color: var(--primary-light);
  background: rgba(99,102,241,0.1);
}

.bottom-nav-item:hover {
  color: var(--primary-light);
}

.bottom-nav-icon {
  font-size: 1.3rem;
  transition: transform 0.3s var(--spring);
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.15);
}

/* ===== 13. PROGRESS RING ===== */

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s var(--spring);
  stroke-linecap: round;
}

/* ===== 14. SHIMMER EFFECT (ENHANCED) ===== */

.shimmer-line {
  height: 8px;
  background: linear-gradient(90deg, var(--glass) 25%, rgba(255,255,255,0.05) 50%, var(--glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ===== 15. HAPTIC FEEDBACK (CSS HINT) ===== */

.haptic:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}

/* ===== 16. SMOOTH SCROLL ===== */

html {
  scroll-behavior: smooth;
}

.smooth-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== 20. LEAFLET ATTRIBUTION HIDE & CUSTOM ===== */

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-container::after {
  content: '🚌 Bus Moroco';
  position: absolute;
  bottom: 4px;
  right: 8px;
  z-index: 1000;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  color: rgba(212,168,67,0.5);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(212,168,67,0.15);
  pointer-events: none;
  transition: opacity 0.3s;
  letter-spacing: 0.5px;
}

.leaflet-container:hover::after {
  color: rgba(255,255,255,0.6);
}
