/* ==========================================================================
   ROAD WARRIOR PRO - Premium Single-Page Application Design System
   ========================================================================== */

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

:root {
  /* HSL Tailored Color Palette */
  --primary-hue: 85; /* Lime Green */
  --secondary-hue: 16;
  
  --primary-color: hsl(var(--primary-hue), 85%, 42%);        /* Lime Green */
  --primary-dark:  hsl(var(--primary-hue), 85%, 32%);
  --primary-glow:  hsla(var(--primary-hue), 85%, 42%, 0.3);
  
  --secondary-color: hsl(var(--secondary-hue), 100%, 60%);   /* Sunset Orange */
  --secondary-glow:  hsla(var(--secondary-hue), 100%, 60%, 0.25);
  
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
  
  --dropdown-bg: #ffffff;
  
  --dark-bg: #ffffff;
  --theme-bg-image: none;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.1);
  
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 1.25rem;
  --border-radius-md: 0.75rem;
  --border-radius-sm: 0.5rem;
}


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

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color, var(--bg-color)) !important;
  color: var(--text-primary) !important;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-theme {
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --card-border: rgba(255, 255, 255, 0.1);
}

/* ==================== FIXED NAV BAR (GLASS) ==================== */
.navbar {
  background: var(--bg-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 2.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  box-sizing: border-box;
}

body {
  padding-top: 80px; /* Offset for fixed navbar */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  cursor: pointer;
}

.rw-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
  transition: var(--transition);
}

.navbar-brand:hover .rw-logo {
  transform: rotate(-10deg) scale(1.08);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.55);
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: #555555;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: #059669;
  background-color: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.2);
  box-shadow: inset 0 0 12px rgba(5, 150, 105, 0.05);
}

.navbar-end {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.lang-select {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  outline: none;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.lang-select:hover,
.lang-select:focus {
  border-color: #059669;
  color: #059669;
}

.lang-select option {
  background-color: #ffffff;
  color: var(--text-primary);
}

/* ==================== BUTTONS (PREMIUM GLOW) ==================== */
.btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow), 0 0 10px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus {
  background-color: #ffffff !important;
  color: var(--text-primary) !important;
  border-color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
}

.navbar .btn-secondary {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

.navbar .btn-secondary:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-back {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-back:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
  border-color: rgba(59, 130, 246, 0.3);
}

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

/* ==================== FORMS (GLASS STYLE) ==================== */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-group:has([required]) > label::after,
#loginPasswordGroup label::after {
  content: " *";
  color: var(--danger-color, #ef4444);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #9ca3af;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  background-color: #f9fafb;
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"] {
  padding-right: 70px !important;
}

input.pin-box {
  width: 3rem !important;
  height: 3rem !important;
  text-align: center !important;
  font-size: 1.5rem !important;
  padding: 0 !important;
}

input[type="email"] {
  padding-right: 40px !important;
}

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

/* Fix browser autofill changing background to white */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  background-color: #ffffff !important;
}

.custom-options li.dropdown-item:hover {
  background-color: #f3f4f6;
  color: var(--text-primary);
}

.custom-options {
  background-color: #ffffff !important;
  color: var(--text-primary);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.25rem !important;
  background-color: #ffffff;
  color: var(--text-primary);
  color-scheme: light !important;
}

select.form-control option {
  background-color: #ffffff !important;
  color: var(--text-primary) !important;
}

.error-message {
  color: var(--danger-color);
  font-size: 0.825rem;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.success-message {
  color: var(--success-color);
  font-size: 0.825rem;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ==================== GLASS CARDS ==================== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0.3;
}

.card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
}

.card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-body {
  margin-bottom: 1.25rem;
}

.card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ==================== CONTAINERS ==================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.container-fluid {
  width: 100%;
  padding: 2.5rem 1.5rem;
}

/* ==================== RESPONSIVE GRID ==================== */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .row.cols-3,
  .row.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .row.cols-3 {
    grid-template-columns: 1fr;
  }
  .row.cols-2,
  .row.cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stat-box {
    padding: 1.25rem 0.5rem;
  }
  .stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }
}

/* ==================== STATS CARDS ==================== */
.stat-box:nth-child(4n+1) { --stat-color: 59, 130, 246; } /* Blue */
.stat-box:nth-child(4n+2) { --stat-color: 16, 185, 129; } /* Green */
.stat-box:nth-child(4n+3) { --stat-color: 245, 158, 11; } /* Orange */
.stat-box:nth-child(4n+4) { --stat-color: 239, 68, 68; } /* Red */

.stat-box {
  background: linear-gradient(135deg, rgba(var(--stat-color, 59, 130, 246), 0.15), rgba(var(--stat-color, 59, 130, 246), 0.05)), rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--stat-color, 59, 130, 246), 0.3);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--stat-color, 59, 130, 246), 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

/* .stat-box:hover::before {
  opacity: 1;
} */

.stat-box:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--stat-color, 59, 130, 246), 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(var(--stat-color, 59, 130, 246), 0.15);
}

.stat-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(var(--stat-color, 59, 130, 246), 1);
  margin-bottom: 0.375rem;
  letter-spacing: -0.5px;
}

.stat-label {
  color: #1f2937;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.stat-change {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

/* ==================== TABLES ==================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  background-color: var(--card-bg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.03);
  border-bottom: 1px solid var(--card-border);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.table td {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 0.925rem;
}

.table tbody tr {
  transition: background-color 0.25s;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.badge-primary {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-color: rgba(59, 130, 246, 0.2);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border-color: rgba(239, 68, 68, 0.2);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border-color: rgba(245, 158, 11, 0.2);
}

.badge-info {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--info-color);
  border-color: rgba(6, 182, 212, 0.2);
}

/* ==================== MODALS ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: #ffffff;
  color: var(--text-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-width: 580px;
  width: 90%;
  border: 1px solid var(--card-border);
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ==================== ALERT BANNERS ==================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: var(--success-color);
  color: #a7f3d0;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: var(--danger-color);
  color: #fca5a5;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.08);
  border-color: var(--warning-color);
  color: #fde68a;
}

.alert-info {
  background-color: rgba(6, 182, 212, 0.08);
  border-color: var(--info-color);
  color: #cffafe;
}

/* ==================== MICRO ANIMATIONS & STATE ==================== */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
}

.pulse {
  animation: pulseGlow 3s infinite;
}

.live-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--success-color);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.live-indicator::after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--success-color);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1.2);
  opacity: 0.8;
  animation: beacon 1.8s infinite ease-out;
}

@keyframes beacon {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.section-view {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.section-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==================== LOADING SPINNER ==================== */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

/* --- Tablet / Small Desktop: ≤ 900px --- */
@media (max-width: 900px) {
  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
  .navbar-brand {
    order: 1;
  }
  .navbar-end {
    order: 2;
    width: auto;
    justify-content: flex-end;
    gap: 0.75rem;
  }
  .navbar-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .navbar-nav::-webkit-scrollbar { display: none; }
}

/* --- Small Tablet: ≤ 768px --- */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }
  .container-fluid {
    padding: 1.5rem 1rem;
  }
  .card {
    padding: 1.5rem 1.25rem;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .stat-value {
    font-size: 1.75rem;
  }
  .stat-box {
    padding: 1.5rem 1rem;
  }
  .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.25rem;
  }
  .table th,
  .table td {
    padding: 0.75rem 0.875rem;
    font-size: 0.85rem;
  }
  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }
  .score-big {
    font-size: 2.75rem;
  }
  .score-lookup-card {
    margin: 1rem auto;
  }
  .referral-code-display {
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 1rem;
  }
  .referral-code-badge {
    font-size: 0.95rem;
    padding: 0.5rem 0.875rem;
  }
  .milestone-track {
    padding: 0.75rem 1rem;
  }
}

/* --- Mobile: ≤ 600px --- */
@media (max-width: 600px) {
  html, body {
    font-size: 15px;
  }

  /* Navbar */
  .navbar {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
  }
  .navbar-nav {
    gap: 0.25rem;
    justify-content: center;
  }
  .rw-logo {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  .brand-text {
    display: none;
  }
  .nav-link {
    padding: 0.4rem 0.4rem;
    font-size: 0.75rem;
    gap: 0.25rem;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
  }
  .nav-link i {
    font-size: 1rem;
  }
  .nav-link span {
    display: inline-block;
    font-size: 0.75rem;
  }
  .navbar-end {
    flex: 1;
    justify-content: space-evenly;
  }
  .lang-select {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
    max-width: 110px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Cards */
  .card {
    padding: 1.25rem 1rem;
    border-radius: var(--border-radius-md);
  }
  .card:hover {
    transform: none; /* disable hover lift on touch */
  }
  .card-title {
    font-size: 1.15rem;
  }

  /* Container */
  .container {
    padding: 1rem 0.875rem;
  }
  .container-fluid {
    padding: 1rem 0.875rem;
  }

  /* Stat boxes */
  .stat-value {
    font-size: 1.5rem;
  }
  .stat-icon {
    font-size: 1.75rem;
  }
  .stat-box {
    padding: 1.25rem 0.875rem;
  }

  /* Forms */
  .form-group {
    margin-bottom: 1.125rem;
  }
  .form-control {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  .radio-group.inline {
    flex-direction: column;
  }
  .radio-item,
  .checkbox-item {
    padding: 0.5rem 0.625rem;
    font-size: 0.825rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.125rem;
    font-size: 0.9rem;
  }

  /* Progress steps */
  .form-progress {
    gap: 0;
    padding: 0;
  }
  .step-label {
    display: none;
  }
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  /* Tables - horizontal scroll */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table th,
  .table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Modals */
  .modal-content {
    width: 96%;
    border-radius: var(--border-radius-md);
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
  .modal-title {
    font-size: 1.1rem;
  }
  .modal-footer {
    flex-direction: column;
    gap: 0.625rem;
  }
  .modal-footer .btn {
    width: 100%;
  }

  /* Score page */
  .score-big {
    font-size: 2.25rem;
  }
  .referral-code-display {
    font-size: 1rem;
    letter-spacing: 1.5px;
    padding: 0.875rem;
  }
  .referral-code-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Success panel */
  .success-panel {
    padding: 1.25rem 1rem;
  }
  .success-panel .success-icon {
    font-size: 3rem;
  }

  /* Admin tabs */
  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  /* QR */
  #qrCodeContainer {
    min-height: 100px;
  }

  /* Milestone */
  .milestone-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .milestone-bar-wrap {
    min-width: 100%;
  }

  /* Tag pills */
  .tag-pill {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
  }

  /* Section title badge */
  .section-title-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
  }

  /* Whatsapp confirm */
  .whatsapp-confirm {
    padding: 0.875rem 1rem;
  }

  /* Links row (flex) adjustments */
  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* --- Extra small phones: ≤ 380px --- */
@media (max-width: 380px) {

  .rw-logo {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }
  .card {
    padding: 1rem 0.875rem;
  }
  .container {
    padding: 0.875rem 0.75rem;
  }
  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
  }
  .stat-value {
    font-size: 1.35rem;
  }
  .score-big {
    font-size: 2rem;
  }
  .referral-code-display {
    font-size: 0.925rem;
    letter-spacing: 1px;
  }
}

/* ==================== UTILITY STYLES ==================== */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary-color); }
.text-success-color { color: var(--success-color); }
.text-danger-color { color: var(--danger-color); }
.text-warning-color { color: var(--warning-color); }

.w-100 { width: 100%; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ==================== FOOTER ==================== */
#site-footer {
  background: #ffffff;
  color: #1f2937;
  padding: 3.5rem 1.5rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 3rem;
}

/* Brand col */
.footer-brand { 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  align-items: flex-end; 
  text-align: right; 
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-logo-icon { font-size: 1.75rem; }
.footer-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}
.footer-logo-text span { color: #4ade80; }

.footer-btn-download {
  background: #25D366;
  color: #111;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.footer-btn-download:hover { background: #1ebe57; transform: scale(1.05); color: #111; }

/* Headings */
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

/* Links List */
.footer-links-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-links-list li a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links-list li a:hover { color: var(--text-primary); text-decoration: underline; }

/* Bottom bar */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-bottom-left { display: flex; align-items: center; gap: 1.5rem; color: #4b5563; font-size: 0.85rem; flex-wrap: wrap; }
.footer-bottom-left a { color: #4b5563; text-decoration: none; }
.footer-bottom-left a:hover { text-decoration: underline; color: var(--text-primary); }

.footer-social { display: flex; gap: 1rem; align-items: center; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-link.twitter { color: #1DA1F2; border-color: rgba(29, 161, 242, 0.5); }
.social-link.twitter:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }

.social-link.youtube { color: #FF0000; border-color: rgba(255, 0, 0, 0.5); }
.social-link.youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; }

.social-link.instagram { color: #E1306C; border-color: rgba(225, 48, 108, 0.5); }
.social-link.instagram:hover { background: #E1306C; color: #fff; border-color: #E1306C; }

.social-link.facebook { color: #1877F2; border-color: rgba(24, 119, 242, 0.5); }
.social-link.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }

.social-link.linkedin { color: #0A66C2; border-color: rgba(10, 102, 194, 0.5); }
.social-link.linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }

.footer-lang-select {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}
.footer-lang-select option { color: #111; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { display: flex; flex-direction: column; align-items: flex-end; text-align: right; grid-column: 1 / -1; margin-bottom: 1rem; order: -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s;
  text-decoration: none;
}

.floating-wa-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
}

/* ==========================================
   HOME PAGE SLIDERS & NEW SECTIONS
   ========================================== */

/* Hero Slider */
.home-hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  transform: translateY(20px);
  transition: transform 1s ease, opacity 1s ease;
  opacity: 0;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
.home-about-section {
  position: relative;
  z-index: 10;
}

/* Top Riders Slider */
.top-riders-slider-container {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(249,115,22,0.1));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-riders-slider {
  position: relative;
  height: 120px;
}

.rider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease-in-out;
  display: flex;
  justify-content: center;
}

.rider-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.rider-slide-content {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  border: 1px solid var(--card-border);
}

.rider-rank {
  font-family: 'Outfit', sans-serif;
height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-link.twitter { color: #1DA1F2; border-color: rgba(29, 161, 242, 0.5); }
.social-link.twitter:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }

.social-link.youtube { color: #FF0000; border-color: rgba(255, 0, 0, 0.5); }
.social-link.youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; }

.social-link.instagram { color: #E1306C; border-color: rgba(225, 48, 108, 0.5); }
.social-link.instagram:hover { background: #E1306C; color: #fff; border-color: #E1306C; }

.social-link.facebook { color: #1877F2; border-color: rgba(24, 119, 242, 0.5); }
.social-link.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }

.social-link.linkedin { color: #0A66C2; border-color: rgba(10, 102, 194, 0.5); }
.social-link.linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }

.footer-lang-select {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}
.footer-lang-select option { color: #111; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { display: flex; flex-direction: column; align-items: flex-end; text-align: right; grid-column: 1 / -1; margin-bottom: 1rem; order: -1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s;
  text-decoration: none;
}

.floating-wa-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
}

/* ==========================================
   HOME PAGE SLIDERS & NEW SECTIONS
   ========================================== */

/* Hero Slider */
.home-hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  transform: translateY(20px);
  transition: transform 1s ease, opacity 1s ease;
  opacity: 0;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-cta .btn {
  flex: 1;
  max-width: 250px;
  justify-content: center;
}

#leadCaptureFAB {
  display: none !important;
}

body.login-route-active:not(.register-page-active) #leadCaptureFAB {
  display: none !important;
}

/* About Section */
.home-about-section {
  position: relative;
  z-index: 10;
}

/* Top Riders Slider */
.top-riders-slider-container {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(249,115,22,0.1));
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-riders-slider {
  position: relative;
  height: 120px;
}

.rider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease-in-out;
  display: flex;
  justify-content: center;
}

.rider-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.rider-slide-content {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  border: 1px solid var(--card-border);
}

.rider-rank {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.rider-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.rider-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-secondary);
}

/* Full Page Top Riders Slider Additions */
.home-top-riders-section.full-page-slider {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-color);
  padding: 4rem 2rem;
}

.top-riders-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 3rem;
}

.top-riders-slider-container.full-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  border: none;
}

.top-riders-slider.full-page-height {
  height: 400px;
  width: 100%;
  max-width: none;
}

.full-page-height .rider-slide-content.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 3rem 4rem;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
}

.rider-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: -10px;
}

.full-page-height .rider-rank {
  font-size: 6rem;
  color: #7ED321 !important;
  font-weight: 900;
  margin-bottom: 0;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.full-page-height .rider-name {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  margin-bottom: 2rem;
  word-break: break-word;
}

.full-page-height .rider-details {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  font-size: 1.6rem;
  color: var(--text-secondary) !important;
  font-weight: 500;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .full-page-height .rider-slide-content.glass-card {
    padding: 2rem 1.5rem;
  }
  .full-page-height .rider-name {
    font-size: 2.5rem;
  }
  .full-page-height .rider-rank {
    font-size: 4rem;
  }
  .full-page-height .rider-details {
    font-size: 1.2rem;
    gap: 1rem;
  }
}

/* Hide header and footer when registration form is active */
body.register-page-active .navbar,
body.register-page-active #site-footer {
    display: none !important;
}

body.login-route-active:not(.register-page-active) .floating-wa {
    display: none !important;
}

body.login-route-active:not(.register-page-active) #login-view {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 1rem;
}

body.login-route-active:not(.register-page-active) #authLayout {
    margin-top: 0 !important;
    width: 100%;
}

body.register-page-active {
    padding-top: 0 !important; /* Remove 80px offset since navbar is hidden */
}

/* Make registration theme light blue instead of green */
body.register-page-active {
    --primary-color: var(--info-color);
    --primary-dark: #0891b2;
    --primary-glow: rgba(6, 182, 212, 0.3);
}

/* Analytics Metric Boxes */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-metric-box {
    background-color: rgba(169, 210, 255, 0.4);
    border: 1px solid rgba(130, 150, 255, 0.2);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, background-color 0.2s;
}

.analytics-metric-box:hover {
    background-color: rgba(169, 210, 255, 0.6);
}

.analytics-metric-box .metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #213590;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.analytics-metric-box .metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6a7c92;
    text-transform: uppercase;
    letter-spacing: 1px;
}
