/* ============================================================
   DyeTour — Main Stylesheet
   Digital Youth Empowerment Tour
   ============================================================ */

/* --- CSS Custom Properties / Theme System --- */
:root {
  /* Primary Brand Colors */
  --primary: #00C896;
  --primary-dark: #009E78;
  --primary-light: #E0FBF4;
  --secondary: #1A1A2E;
  --secondary-light: #16213E;
  --accent: #F4C542;
  --accent-dark: #D4A800;
  --danger: #E74C3C;
  --warning: #F39C12;
  --success: #27AE60;
  --info: #2980B9;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Typography */
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-glow: 0 0 40px rgba(0,200,150,0.20);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;

  /* Background */
  --bg: #F9FAFB;
  --card-bg: #FFFFFF;
  --nav-bg: rgba(26,26,46,0.97);

  /* Text */
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-on-dark: #FFFFFF;
  --text-on-primary: #FFFFFF;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg: #0F0F1A;
  --card-bg: #1A1A2E;
  --text-primary: #F9FAFB;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --gray-100: #1A1A2E;
  --gray-200: #252540;
  --shadow: 0 4px 16px rgba(0,0,0,0.40);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.50);
}

/* --- Festival Themes (applied via JS) --- */
[data-theme="christmas"] {
  --primary: #C0392B;
  --primary-dark: #922B21;
  --primary-light: #FDECEA;
  --accent: #27AE60;
  --secondary: #1A3C2E;
}
[data-theme="halloween"] {
  --primary: #E67E22;
  --primary-dark: #CA6F1E;
  --primary-light: #FEF5EC;
  --accent: #8E44AD;
  --secondary: #1A0A2E;
}
[data-theme="new-year"] {
  --primary: #F4C542;
  --primary-dark: #D4A800;
  --primary-light: #FFFBEA;
  --accent: #C0392B;
  --secondary: #1A1A2E;
}
[data-theme="ramadan"] {
  --primary: #1A7F5A;
  --primary-dark: #145C41;
  --primary-light: #E0F5ED;
  --accent: #F4C542;
  --secondary: #0A2018;
}
[data-theme="independence"] {
  --primary: #008751;
  --primary-dark: #006B40;
  --primary-light: #E0F5EB;
  --accent: #FFFFFF;
  --secondary: #003321;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -1px;
  font-family: var(--font-heading);
}
.navbar-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.5px;
}
.navbar-brand-text span { color: var(--primary); }
.navbar-brand-sub {
  font-size: 0.65rem;
  color: var(--gray-400);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-decoration: none;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-link.active { color: var(--primary); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 6px;
}

/* Currency Switcher in Nav */
.currency-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--gray-300);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.currency-switcher:hover { background: rgba(255,255,255,0.14); }
.currency-flag { font-size: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,200,150,0.30);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 28px rgba(0,200,150,0.42); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.btn-dark {
  background: var(--secondary);
  color: var(--white);
}
.btn-dark:hover { background: var(--secondary-light); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #C0392B; }

.btn-warning {
  background: var(--warning);
  color: var(--white);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 20px 48px; font-size: 1.15rem; border-radius: var(--radius-lg); letter-spacing: 0.3px; }
.btn-full { width: 100%; }

.btn-cta {
  background: var(--primary);
  color: var(--white);
  padding: 18px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 40px rgba(0,200,150,0.38);
  letter-spacing: 0.3px;
}
.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 50px rgba(0,200,150,0.50);
}

/* Spinner in button */
.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-sm { padding: 20px 24px; border-radius: var(--radius); }
.card-flat { box-shadow: none; border: 1px solid var(--gray-200); }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--card-bg);
  transition: var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 5px; display: none; }
.form-input.error { border-color: var(--danger); }
.form-input.error + .form-error { display: block; }

/* Input with prefix */
.input-group {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-fast);
  background: var(--card-bg);
}
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,200,150,0.15); }
.input-prefix, .input-suffix {
  padding: 13px 16px;
  background: var(--gray-100);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: none;
}
.input-group .form-input {
  border: none;
  box-shadow: none;
  flex: 1;
  border-radius: 0;
}
.input-group .form-input:focus { box-shadow: none; }

/* Choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.choice-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  background: var(--card-bg);
}
.choice-card:hover { border-color: var(--primary); background: var(--primary-light); }
.choice-card.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.choice-card input[type="radio"], .choice-card input[type="checkbox"] { display: none; }
.choice-icon { font-size: 2rem; margin-bottom: 8px; }
.choice-label { font-weight: 600; font-size: 0.9rem; }

/* Slider */
.form-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
  margin: 12px 0;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,200,150,0.4);
}

/* Checkbox / Radio styled */
.checkbox-wrap, .radio-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 6px 0;
}
.checkbox-wrap input, .radio-wrap input {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ============================================================
   PROGRESS BAR (for form steps)
   ============================================================ */
.progress-bar-wrap {
  background: var(--gray-200);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.step-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: var(--transition-fast);
}
.step-dot.active { background: var(--primary); transform: scale(1.3); }
.step-dot.done { background: var(--success); }

/* ============================================================
   ALERTS / BANNERS
   ============================================================ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #E6F9F1; border: 1px solid #B7EEDD; color: #1D6B4B; }
.alert-warning { background: #FEF9EC; border: 1px solid #FDE9A2; color: #7D5500; }
.alert-danger  { background: #FDECEA; border: 1px solid #F5B7B1; color: #7B241C; }
.alert-info    { background: #EBF5FB; border: 1px solid #AED6F1; color: #1A5276; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-success { background: #E6F9F1; color: #1D6B4B; }
.badge-warning { background: #FEF9EC; color: #7D5500; }
.badge-danger  { background: #FDECEA; color: #7B241C; }
.badge-info    { background: #EBF5FB; color: #1A5276; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-dark    { background: var(--secondary); color: var(--white); }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-primary);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1100px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 1.3rem; font-weight: 700; }
.modal-close {
  background: var(--gray-100);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--gray-200); color: var(--text-primary); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: 100%;
}
.toast {
  background: var(--secondary);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
  border-left: 4px solid var(--primary);
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error   { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-msg { flex: 1; }
.toast-close { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 1rem; padding: 0 4px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 560px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--white) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }

.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

.pt-nav { padding-top: 72px; }

.divider { height: 1px; background: var(--gray-200); margin: 32px 0; }

/* ============================================================
   PLAN CONTENT STYLING
   ============================================================ */
.plan-content { line-height: 1.8; }
.plan-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}
.plan-content h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--secondary); }
.plan-content p { margin-bottom: 12px; }
.plan-content ul, .plan-content ol {
  margin: 12px 0 12px 20px;
  list-style: disc;
}
.plan-content ol { list-style: decimal; }
.plan-content li { margin-bottom: 6px; }
.plan-content table { margin: 16px 0; }
.plan-content strong { color: var(--text-primary); }
.plan-content .disclaimer-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 32px;
}

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}
.sidebar {
  background: var(--secondary);
  color: var(--white);
  padding: 24px 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-radius: 0;
  text-decoration: none;
}
.sidebar-nav-item:hover { color: var(--white); background: rgba(255,255,255,0.06); text-decoration: none; }
.sidebar-nav-item.active {
  color: var(--primary);
  background: rgba(0,200,150,0.12);
  border-right: 3px solid var(--primary);
}
.sidebar-nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  padding: 16px 24px 6px;
}
.sidebar-brand {
  padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.sidebar-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}
.sidebar-brand-text span { color: var(--primary); }

.main-content {
  padding: 32px;
  background: var(--bg);
  overflow-y: auto;
}

/* ============================================================
   DASHBOARD STAT CARDS
   ============================================================ */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1;
}
.stat-change {
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 6px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.stat-icon.green { background: #E6F9F1; }
.stat-icon.blue  { background: #EBF5FB; }
.stat-icon.yellow { background: #FEF9EC; }
.stat-icon.red   { background: #FDECEA; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--secondary);
  color: var(--gray-300);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand-text span { color: var(--primary); }
.footer-tagline { font-size: 0.9rem; margin-bottom: 20px; line-height: 1.7; }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  color: var(--gray-400);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-link:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.85rem; color: var(--gray-500); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.85rem; color: var(--gray-500); text-decoration: none; }
.footer-legal a:hover { color: var(--gray-300); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(30px); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in { animation: fadeIn 0.5s ease; }
.animate-pulse { animation: pulse 2s infinite; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sidebar-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-actions .currency-switcher, .navbar-actions .btn-outline { display: none; }
  .navbar-menu-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-lg { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; z-index: 800; width: 280px; height: 100vh; top: 0; }
  .sidebar.open { display: flex; flex-direction: column; }
  .main-content { padding: 24px 16px; }
  #toast-container { bottom: 16px; right: 16px; left: 16px; max-width: none; }
  .modal { padding: 24px; }
  .btn-cta { padding: 16px 32px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 20px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}

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