/* =============================================
   Mbukoni Services — Main Stylesheet
   Theme: Regal Navy + Light Green (ins-theme)
   ============================================= */

:root {
  /* ---- Ins Theme Base ---- */
  --ins-blue: #153A7B;
  --ins-indigo: #6b5eae;
  --ins-pink: #ff679b;
  --ins-red: #ed5565;
  --ins-orange: #ffa500;
  --ins-yellow: #DED390;
  --ins-green: #85DF83;
  --ins-teal: #A0E7A0;
  --ins-cyan: #23c6c8;
  --ins-black: #000;
  --ins-white: #fff;
  --ins-gray: #8a969c;
  --ins-gray-dark: #343a40;

  --ins-gray-100: #f6f7fb;
  --ins-gray-200: #eef2f7;
  --ins-gray-300: #e7e9eb;
  --ins-gray-400: #ced4da;
  --ins-gray-500: #a1a9b1;
  --ins-gray-600: #8a969c;
  --ins-gray-700: #6c757d;
  --ins-gray-800: #343a40;
  --ins-gray-900: #313a46;

  --ins-primary: #ffa500;
  --ins-secondary: #85DF83;
  --ins-success: #85DF83;
  --ins-info: #23c6c8;
  --ins-warning: #ffa500;
  --ins-danger: #ed5565;
  --ins-purple: #7b70ef;
  --ins-light: #eef2f7;
  --ins-dark: #313a46;

  --ins-primary-rgb: 255, 165, 0;
  --ins-secondary-rgb: 133, 223, 131;
  --ins-success-rgb: 133, 223, 131;
  --ins-info-rgb: 35, 198, 200;
  --ins-warning-rgb: 254, 164, 0;
  --ins-danger-rgb: 237, 85, 101;
  --ins-purple-rgb: 123, 112, 239;
  --ins-light-rgb: 238, 242, 247;
  --ins-dark-rgb: 49, 58, 70;
  --ins-white-rgb: 255, 255, 255;
  --ins-black-rgb: 0, 0, 0;

  --ins-body-color: #4c4c5c;
  --ins-body-color-rgb: 76, 76, 92;
  --ins-body-bg: #f5f9ff;
  --ins-body-bg-rgb: 245, 249, 255;
  --ins-secondary-color: #9ba6b7;
  --ins-secondary-bg: #fff;
  --ins-tertiary-bg: #f6f7fb;

  --ins-heading-color: #1a1a2e;
  --ins-link-color: #cc8400;
  --ins-link-hover-color: #a36800;

  --ins-border-color: #e7e9eb;
  --ins-border-radius: 0.3rem;
  --ins-border-radius-sm: 0.25rem;
  --ins-border-radius-lg: 0.4rem;
  --ins-border-radius-xl: 1rem;
  --ins-border-radius-xxl: 2rem;

  --ins-box-shadow: 0px 1px 4px 0px rgba(130, 143, 163, 0.15);
  --ins-box-shadow-sm: 0 0.0625rem 0.125rem rgba(76, 76, 92, 0.15);
  --ins-box-shadow-lg: 0 0.25rem 1rem rgba(76, 76, 92, 0.2);

  --ins-primary-bg-subtle: #fff0d1;
  --ins-primary-border-subtle: #ffd07a;
  --ins-secondary-bg-subtle: #e8f7e8;
  --ins-warning-bg-subtle: #fff0d1;
  --ins-success-bg-subtle: #e8f7e8;
  --ins-danger-bg-subtle: #fce6e8;
  --ins-info-bg-subtle: #def6f7;

  --ins-gradient-primary: linear-gradient(135deg, #ffa500, #FFB733);
  --ins-gradient-success: linear-gradient(135deg, #85DF83, #A0E7A0);
  --ins-gradient-warning: linear-gradient(135deg, #ffa500, #FFB733);

  /* ---- App Aliases (used throughout) ---- */
  --primary:       #ffa500;
  --primary-dark:  #cc8400;
  --primary-light: #FFB733;
  --secondary:     #153A7B;
  --secondary-dark:#0f2a57;
  --accent-green:  #85DF83;
  --accent-teal:   #A0E7A0;
  --bg:            #f5f9ff;
  --bg-card:       #ffffff;
  --text-primary:  #1a1a2e;
  --text-secondary:#4c4c5c;
  --text-muted:    #8a969c;
  --border:        #e7e9eb;
  --shadow-sm:     0px 1px 4px rgba(130,143,163,0.15);
  --shadow-md:     0 4px 16px rgba(255,165,0,0.12);
  --shadow-lg:     0 8px 32px rgba(255,165,0,0.18);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     24px;
  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* Dark mode */
[data-bs-theme=dark] {
  --primary:       #e6940a;
  --primary-dark:  #b37300;
  --primary-light: #FFB733;
  --secondary:     #1e4a9a;
  --accent-green:  #6fb46e;
  --bg:            #17181e;
  --bg-card:       #1e1f27;
  --text-primary:  #aab8c5;
  --text-secondary:#8391a2;
  --text-muted:    #6c757d;
  --border:        #293036;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; font-size: 14px; }
body {
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; color: var(--text-primary); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* =============================================
   ICON SYSTEM
   ============================================= */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { display: block; }
.icon-xs  svg { width: 14px; height: 14px; }
.icon-sm  svg { width: 16px; height: 16px; }
.icon-md  svg { width: 20px; height: 20px; }
.icon-lg  svg { width: 24px; height: 24px; }
.icon-xl  svg { width: 32px; height: 32px; }
.icon-2xl svg { width: 48px; height: 48px; }
.icon-3xl svg { width: 64px; height: 64px; }

/* Icon containers */
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.icon-box-sm  { width: 32px; height: 32px; border-radius: 8px; }
.icon-box-md  { width: 42px; height: 42px; border-radius: 12px; }
.icon-box-lg  { width: 52px; height: 52px; border-radius: 14px; }
.icon-box-xl  { width: 64px; height: 64px; border-radius: 18px; }
.icon-box-circle { border-radius: 50%; }

.icon-box-primary   { background: rgba(255,165,0,0.12);  color: var(--primary); }
.icon-box-secondary { background: rgba(255,165,0,0.1);  color: var(--secondary); }
.icon-box-success   { background: rgba(133,223,131,0.12); color: #3a7d39; }
.icon-box-info      { background: rgba(35,198,200,0.1); color: #23c6c8; }
.icon-box-danger    { background: rgba(237,85,101,0.1); color: #ed5565; }
.icon-box-purple    { background: rgba(123,112,239,0.1);color: #7b70ef; }
.icon-box-white     { background: rgba(255,255,255,0.15); color: #fff; }
.icon-box-dark      { background: rgba(49,58,70,0.08);  color: var(--text-primary); }

/* Color utilities for icons */
.icon-primary   { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-success   { color: #3a7d39; }
.icon-info      { color: #23c6c8; }
.icon-danger    { color: #ed5565; }
.icon-purple    { color: #7b70ef; }
.icon-muted     { color: var(--text-muted); }
.icon-white     { color: #fff; }

/* =============================================
   TOP NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(231,233,235,0.9);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand .brand-logo {
  width: 38px; height: 38px; background: var(--ins-gradient-primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white;
}
.navbar-brand span { font-size: 1.05rem; font-weight: 800; color: var(--primary); letter-spacing: -0.3px; }
.navbar-links { display: none; gap: 2px; align-items: center; }
.navbar-links a {
  padding: 7px 13px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition);
}
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); background: rgba(255,165,0,0.08); }
.navbar-actions { display: flex; gap: 8px; align-items: center; }
.btn-nav-login {
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid var(--primary); color: var(--primary);
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); background: transparent; display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav-login:hover { background: var(--primary); color: white; }
.btn-nav-register {
  padding: 7px 16px; border-radius: 8px;
  background: var(--ins-gradient-primary); color: white;
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); border: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav-register:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,165,0,0.35); }
.hamburger {
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px;
}
.hamburger span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-inner {
  background: white; width: 80%; max-width: 300px; height: 100%;
  transform: translateX(-100%); transition: var(--transition); padding: 20px; overflow-y: auto;
}
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }
.mobile-menu-inner a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; color: var(--text-secondary);
  transition: var(--transition); margin-bottom: 2px;
}
.mobile-menu-inner a:hover, .mobile-menu-inner a.active { color: var(--primary); background: rgba(255,165,0,0.08); }
.mobile-menu-inner a .icon svg { width: 18px; height: 18px; }

/* =============================================
   BOTTOM NAV
   ============================================= */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: white; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  height: calc(62px + max(0px, env(safe-area-inset-bottom)));
  box-shadow: 0 -4px 20px rgba(255,165,0,0.08);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 14px; border-radius: 10px; cursor: pointer;
  transition: var(--transition); min-width: 56px;
  background: none; border: none; color: var(--text-muted);
  text-decoration: none;
}
.bottom-nav-item .icon svg { width: 22px; height: 22px; }
.bottom-nav-item span { font-size: 0.6rem; font-weight: 600; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-fab {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ins-gradient-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,165,0,0.4);
  margin-top: -18px; border: 3px solid white;
  transition: var(--transition); cursor: pointer; text-decoration: none;
}
.bottom-nav-fab:hover { transform: scale(1.08); }
.bottom-nav-fab .icon svg { width: 24px; height: 24px; }

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-content {
  padding-top: 64px;
  padding-bottom: calc(62px + max(0px, env(safe-area-inset-bottom)));
  min-height: 100vh;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background:
    linear-gradient(135deg, rgba(255,165,0,0.88) 0%, rgba(255,183,51,0.82) 100%),
    url('../images/auth-bg.jpg') center / cover no-repeat;
  position: relative; overflow: hidden;
  padding: 48px 20px 80px; color: white;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 18px;
  color: rgba(255,255,255,0.95);
}
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; color: white; }
.hero p { font-size: 0.9rem; opacity: 0.82; margin-bottom: 28px; max-width: 360px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 12px 22px; border-radius: 10px;
  background: var(--secondary); color: white;
  font-weight: 700; font-size: 0.88rem;
  border: none; cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(21,58,123,0.3);
}
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline-white {
  padding: 12px 22px; border-radius: 10px;
  background: transparent; color: white;
  font-weight: 600; font-size: 0.88rem;
  border: 1.5px solid rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* Hero search */
.hero-search {
  background: white; border-radius: var(--radius-lg);
  padding: 20px; margin-top: 28px;
  box-shadow: 0 8px 40px rgba(255,165,0,0.22);
  position: relative; z-index: 2;
}
.search-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.search-tab {
  flex: 1; padding: 8px 10px; border-radius: 9px;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  border: none; background: var(--bg); color: var(--text-secondary);
  transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.search-tab .icon svg { width: 14px; height: 14px; }
.search-tab.active { background: var(--primary); color: white; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-field {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 10px; padding: 11px 13px;
  border: 1.5px solid transparent; transition: var(--transition);
}
.search-field:focus-within { border-color: var(--primary); background: white; }
.search-field .icon svg { width: 16px; height: 16px; color: var(--text-muted); }
.search-field input {
  border: none; background: transparent; outline: none;
  font-size: 0.85rem; color: var(--text-primary); width: 100%;
  font-family: inherit;
}
.search-field input::placeholder { color: var(--text-muted); }
.search-swap {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: var(--transition);
}
.search-swap:hover { transform: rotate(180deg); background: var(--primary-dark); }
.search-swap .icon svg { width: 16px; height: 16px; }
.btn-search {
  width: 100%; padding: 13px; border-radius: 10px;
  background: var(--primary); color: white;
  font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer;
  transition: var(--transition); margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
}
.btn-search:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,165,0,0.35); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 44px 20px; }
.section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.section-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.btn-link { color: var(--primary); font-size: 0.8rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; padding-top: 4px; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card {
  background: white; border-radius: var(--radius);
  padding: 18px 12px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer; text-decoration: none; display: block;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--ins-primary-border-subtle); }
.service-card h3 { font-size: 0.78rem; font-weight: 700; margin: 10px 0 4px; color: var(--text-primary); }
.service-card p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.4; }

/* Route cards */
.routes-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.routes-scroll::-webkit-scrollbar { display: none; }
.route-card {
  min-width: 200px; background: white; border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer; flex-shrink: 0;
}
.route-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.route-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ins-primary-bg-subtle); color: var(--primary);
  border-radius: 100px; padding: 3px 10px; font-size: 0.68rem; font-weight: 700; margin-bottom: 10px;
}
.route-badge .icon svg { width: 12px; height: 12px; }
.route-path { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.route-city { font-size: 0.9rem; font-weight: 800; color: var(--text-primary); }
.route-arrow .icon svg { width: 14px; height: 14px; color: var(--text-muted); }
.route-meta { display: flex; justify-content: space-between; align-items: center; }
.route-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.route-time { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.route-time .icon svg { width: 12px; height: 12px; }
.route-book {
  width: 100%; margin-top: 12px; padding: 9px;
  background: var(--primary); color: white; border: none;
  border-radius: 9px; font-weight: 700; font-size: 0.8rem;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.route-book:hover { background: var(--primary-dark); }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stat-card.primary { background: var(--ins-gradient-primary); color: white; border-color: transparent; }
.stat-card.secondary { background: var(--ins-gradient-warning); color: white; border-color: transparent; }
.stat-card.success { background: var(--ins-gradient-success); color: #1a3a19; border-color: transparent; }
.stat-label { font-size: 0.72rem; font-weight: 600; opacity: 0.75; margin-bottom: 5px; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-sub { font-size: 0.68rem; opacity: 0.65; margin-top: 4px; }
.stat-icon { margin-bottom: 8px; }
.stat-icon .icon svg { width: 26px; height: 26px; }

/* Reward cards */
.rewards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reward-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.reward-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.reward-img {
  height: 80px; display: flex; align-items: center; justify-content: center;
}
.reward-img .icon svg { width: 40px; height: 40px; }
.reward-body { padding: 12px; }
.reward-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 3px; color: var(--text-primary); }
.reward-pts { font-size: 0.72rem; color: var(--primary); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.reward-pts .icon svg { width: 12px; height: 12px; }
.btn-redeem {
  width: 100%; margin-top: 8px; padding: 7px;
  background: transparent; border: 1.5px solid var(--primary);
  color: var(--primary); border-radius: 8px; font-weight: 700; font-size: 0.75rem;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-redeem:hover { background: var(--primary); color: white; }

/* Testimonials */
.testimonial-card {
  background: white; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); min-width: 260px; flex-shrink: 0;
}
.testimonial-stars { color: var(--primary); font-size: 0.85rem; margin-bottom: 10px; display: flex; gap: 2px; }
.testimonial-stars .icon svg { width: 14px; height: 14px; }
.testimonial-text { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 14px; font-style: italic; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.9rem; font-weight: 800; flex-shrink: 0;
}
.testimonial-name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.testimonial-route { font-size: 0.68rem; color: var(--text-muted); }

/* =============================================
   MEMBERSHIP LEVELS
   ============================================= */
.level-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 700;
}
.level-badge .icon svg { width: 12px; height: 12px; }
.level-bronze  { background: rgba(205,127,50,0.12); color: #b8722c; }
.level-silver  { background: rgba(150,150,150,0.12); color: #6c757d; }
.level-gold    { background: rgba(255,165,0,0.12);  color: #cc8400; }
.level-platinum{ background: rgba(123,112,239,0.12);color: #6b5eae; }

.progress-bar-wrap { background: var(--ins-gray-200); border-radius: 100px; height: 7px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.progress-bar.gold    { background: linear-gradient(90deg, #ffa500, #FFB733); }
.progress-bar.silver  { background: linear-gradient(90deg, #8a969c, #c0c7cc); }
.progress-bar.platinum{ background: linear-gradient(90deg, #7b70ef, #a89cf5); }

/* =============================================
   FORMS
   ============================================= */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.form-input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  font-size: 0.85rem; color: var(--text-primary);
  outline: none; transition: var(--transition); font-family: inherit;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,165,0,0.12); }
.form-input.error { border-color: #ed5565; }
.form-input-icon { position: relative; }
.form-input-icon .form-input { padding-left: 40px; }
.form-input-icon .icon-left { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.form-input-icon .icon-right { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); cursor: pointer; }
.form-error { font-size: 0.72rem; color: #ed5565; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.form-select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  font-size: 0.85rem; color: var(--text-primary);
  outline: none; transition: var(--transition);
  -webkit-appearance: none; appearance: none; cursor: pointer; font-family: inherit;
}
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,165,0,0.12); }
.btn-full {
  width: 100%; padding: 13px; border-radius: 10px;
  background: var(--ins-gradient-primary); color: white;
  font-weight: 700; font-size: 0.9rem; border: none;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
}
.btn-full:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,165,0,0.35); }
.btn-full:active { transform: translateY(0); }
.btn-secondary-full {
  width: 100%; padding: 13px; border-radius: 10px;
  background: transparent; color: var(--primary);
  font-weight: 700; font-size: 0.9rem;
  border: 1.5px solid var(--primary); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
}
.btn-secondary-full:hover { background: rgba(255,165,0,0.08); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: 16px; height: 16px; border-radius: 4px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.checkbox-label span { font-size: 0.82rem; color: var(--text-secondary); }

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  background:
    linear-gradient(135deg, rgba(255,165,0,0.92) 0%, rgba(204,132,0,0.88) 100%),
    url('../images/auth-bg.jpg') center / cover no-repeat;
  padding: 24px 20px 36px; color: white; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.06);
}
.page-header-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.8); font-size: 0.82rem; margin-bottom: 14px;
  cursor: pointer; text-decoration: none; font-weight: 600;
}
.page-header-back:hover { color: white; }
.page-header-back .icon svg { width: 16px; height: 16px; }
.page-header h1 { font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 4px; }
.page-header p { font-size: 0.82rem; opacity: 0.8; }

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-header {
  background:
    linear-gradient(135deg, rgba(255,165,0,0.92) 0%, rgba(255,183,51,0.88) 100%),
    url('../images/auth-bg.jpg') center / cover no-repeat;
  padding: 18px 20px 56px; color: white; position: relative; overflow: hidden;
}
.dashboard-header::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.06);
}
.dashboard-header::after {
  content: ''; position: absolute; bottom: -80px; left: -30px;
  width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.welcome-text { font-size: 0.8rem; opacity: 0.8; }
.welcome-name { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.points-card {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.points-label { font-size: 0.72rem; opacity: 0.8; margin-bottom: 4px; }
.points-value { font-size: 1.8rem; font-weight: 800; }
.points-unit { font-size: 0.8rem; opacity: 0.8; }
.dashboard-body { margin-top: -30px; padding: 0 14px; position: relative; z-index: 10; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.quick-action {
  background: white; border-radius: 13px; padding: 13px 6px;
  text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); cursor: pointer; transition: var(--transition);
  text-decoration: none; color: var(--text-secondary);
}
.quick-action:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-action-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 7px;
}
.quick-action-icon .icon svg { width: 20px; height: 20px; }
.quick-action span { font-size: 0.62rem; font-weight: 700; color: var(--text-secondary); }

/* Trip items */
.trip-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px; background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  margin-bottom: 8px; transition: var(--transition); cursor: pointer;
}
.trip-item:hover { box-shadow: var(--shadow-md); }
.trip-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.trip-icon .icon svg { width: 20px; height: 20px; }
.trip-info { flex: 1; }
.trip-route { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.trip-date { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.trip-right { text-align: right; }
.trip-amount { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.trip-pts { font-size: 0.68rem; color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.trip-pts .icon svg { width: 10px; height: 10px; }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed; top: 74px; right: 14px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; max-width: 300px;
}
.toast {
  background: white; border-radius: 13px;
  padding: 12px 14px; box-shadow: 0 8px 32px rgba(255,165,0,0.18);
  display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); opacity: 0;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  border-left: 4px solid var(--primary); min-width: 220px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left-color: #3a7d39; }
.toast.error   { border-left-color: #ed5565; }
.toast.warning { border-left-color: var(--primary); }
.toast.info    { border-left-color: var(--primary); }
.toast-icon .icon svg { width: 18px; height: 18px; }
.toast-content { flex: 1; }
.toast-title { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.toast-msg { font-size: 0.72rem; color: var(--text-secondary); margin-top: 1px; }
.toast-close { color: var(--text-muted); cursor: pointer; flex-shrink: 0; }
.toast-close .icon svg { width: 14px; height: 14px; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: 22px 22px 0 0;
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; padding: 0;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { width: 38px; height: 4px; background: var(--border); border-radius: 2px; margin: 10px auto 0; }
.modal-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 0.95rem; font-weight: 800; }
.modal-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.modal-close .icon svg { width: 14px; height: 14px; }
.modal-body { padding: 18px; }

/* =============================================
   SKELETON / SHIMMER
   ============================================= */
.skeleton {
  background: linear-gradient(90deg, #eef2f7 25%, #e7e9eb 50%, #eef2f7 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 110px; border-radius: var(--radius); margin-bottom: 10px; }
.skeleton-text { height: 13px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }

/* =============================================
   QR SCANNER
   ============================================= */
.scanner-wrap { position: relative; width: 100%; max-width: 280px; margin: 0 auto; border-radius: 18px; overflow: hidden; }
.scanner-frame { width: 100%; aspect-ratio: 1; background: #111; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.scanner-line {
  position: absolute; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 2s linear infinite;
}
@keyframes scan { 0%,100% { top: 10%; } 50% { top: 85%; } }

/* =============================================
   DIGITAL TICKET
   ============================================= */
.ticket { background: white; border-radius: 20px; box-shadow: 0 8px 40px rgba(255,165,0,0.18); overflow: hidden; max-width: 360px; margin: 0 auto; }
.ticket-header { background: var(--ins-gradient-primary); padding: 18px; color: white; }
.ticket-body { padding: 18px; }
.ticket-divider { display: flex; align-items: center; margin: 0 -18px; position: relative; }
.ticket-circle { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); flex-shrink: 0; }
.ticket-row { display: flex; justify-content: space-between; margin-bottom: 11px; }
.ticket-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 2px; }
.ticket-val { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.ticket-qr { text-align: center; padding: 14px 0; border-top: 2px dashed var(--border); margin-top: 4px; }
.ticket-qr img, .ticket-qr canvas { width: 110px; height: 110px; }
.ticket-number { font-size: 0.7rem; color: var(--text-muted); margin-top: 5px; letter-spacing: 2px; }

/* =============================================
   CONTACT
   ============================================= */
.contact-card {
  background: white; border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
  transition: var(--transition); cursor: pointer; text-decoration: none;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.contact-info h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; color: var(--text-primary); }
.contact-info p { font-size: 0.75rem; color: var(--text-muted); }
.map-placeholder {
  width: 100%; height: 180px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ins-gray-200), var(--ins-gray-100));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-muted); font-size: 0.85rem;
  border: 2px dashed var(--border);
}
.map-placeholder .icon svg { width: 32px; height: 32px; color: var(--primary); }

/* =============================================
   PROFILE
   ============================================= */
.profile-avatar-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 20px 20px; background: var(--ins-gradient-primary); position: relative;
}
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: 3px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: white; margin-bottom: 10px;
  position: relative; cursor: pointer;
}
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0; width: 22px; height: 22px;
  background: var(--secondary); border-radius: 50%; border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-edit .icon svg { width: 10px; height: 10px; color: white; }
.profile-name { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 2px; }
.profile-phone { font-size: 0.82rem; color: rgba(255,255,255,0.78); }
.profile-menu-section { padding: 10px 18px 4px; font-size: 0.68rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; background: var(--bg); }
.profile-menu-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 18px; background: white; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.profile-menu-item:hover { background: var(--bg); }
.profile-menu-text { flex: 1; }
.profile-menu-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.profile-menu-sub { font-size: 0.72rem; color: var(--text-muted); }
.profile-menu-arrow .icon svg { width: 16px; height: 16px; color: var(--text-muted); }

/* =============================================
   ABOUT / FLEET / TIMELINE
   ============================================= */
.fleet-card { background: white; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 10px; }
.fleet-img { width: 100%; height: 120px; border-radius: 11px; background: var(--ins-primary-bg-subtle); display: flex; align-items: center; justify-content: center; margin-bottom: 11px; }
.fleet-img .icon svg { width: 56px; height: 56px; color: var(--primary); opacity: 0.6; }
.timeline-item { display: flex; gap: 14px; margin-bottom: 18px; }
.timeline-line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); margin: 0; }
.timeline-connector { width: 2px; flex: 1; background: var(--border); min-height: 22px; }
.timeline-content { padding-bottom: 6px; }
.timeline-year { font-size: 0.7rem; font-weight: 800; color: var(--primary); margin-bottom: 3px; }
.timeline-text { font-size: 0.82rem; color: var(--text-secondary); }

/* =============================================
   PARCEL / LUGGAGE
   ============================================= */
.step-card { display: flex; gap: 13px; padding: 14px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 9px; }
.step-num {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ins-gradient-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.step-content h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 3px; color: var(--text-primary); }
.step-content p { font-size: 0.78rem; color: var(--text-secondary); }
.pricing-table { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px; }
.pricing-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pricing-row:last-child { border-bottom: none; }
.pricing-row:nth-child(even) { background: var(--bg); }
.pricing-type { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.pricing-rate { font-size: 0.82rem; color: var(--primary); font-weight: 700; }
.faq-item { background: white; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 7px; overflow: hidden; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary); transition: var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-arrow { transition: var(--transition); }
.faq-arrow .icon svg { width: 16px; height: 16px; color: var(--text-muted); }
.faq-arrow.open { transform: rotate(180deg); }
.faq-answer { padding: 0 14px 13px; font-size: 0.82rem; color: var(--text-secondary); display: none; line-height: 1.65; }
.faq-answer.open { display: block; }

/* =============================================
   PAYMENT
   ============================================= */
.payment-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 20px; }
.payment-step { display: flex; align-items: center; gap: 0; }
.payment-step-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; transition: var(--transition); flex-shrink: 0;
}
.payment-step-circle.active { background: var(--primary); color: white; }
.payment-step-circle.done { background: var(--accent-green); color: #1a3a19; }
.payment-step-circle.done .icon svg { width: 14px; height: 14px; }
.payment-step-line { width: 38px; height: 2px; background: var(--border); }
.payment-step-line.done { background: var(--accent-green); }
.payment-summary-row {
  display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 0.82rem;
}
.payment-summary-row:last-child { border-bottom: none; }
.payment-summary-row.total { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.payment-method {
  display: flex; align-items: center; gap: 12px; padding: 13px;
  border: 1.5px solid var(--border); border-radius: 11px;
  cursor: pointer; transition: var(--transition); margin-bottom: 8px;
}
.payment-method.selected { border-color: var(--primary); background: rgba(255,165,0,0.05); }
.payment-method-icon .icon svg { width: 26px; height: 26px; }
.payment-method-info { flex: 1; }
.payment-method-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.payment-method-sub { font-size: 0.72rem; color: var(--text-muted); }
.payment-method-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); transition: var(--transition); flex-shrink: 0;
}
.payment-method.selected .payment-method-radio { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px white; }

/* =============================================
   NOTIFICATIONS
   ============================================= */
.notif-item {
  display: flex; gap: 11px; padding: 13px 18px;
  background: white; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: rgba(255,165,0,0.04); }
.notif-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon .icon svg { width: 20px; height: 20px; }
.notif-icon.success { background: var(--ins-success-bg-subtle); color: #3a7d39; }
.notif-icon.reward  { background: var(--ins-warning-bg-subtle);  color: var(--secondary-dark); }
.notif-icon.info    { background: var(--ins-primary-bg-subtle);  color: var(--primary); }
.notif-content { flex: 1; }
.notif-title { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.notif-msg { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.45; }
.notif-time { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; padding-top: 2px; }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 5px; }

/* =============================================
   INSTALL BANNER
   ============================================= */
.install-banner {
  background: var(--ins-gradient-primary);
  border-radius: var(--radius); padding: 18px;
  display: flex; align-items: center; gap: 13px; color: white;
  box-shadow: 0 4px 20px rgba(255,165,0,0.3); margin: 0 16px;
}
.install-banner .icon svg { width: 32px; height: 32px; flex-shrink: 0; }
.install-text h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.install-text p { font-size: 0.75rem; opacity: 0.84; }
.btn-install {
  padding: 7px 14px; border-radius: 9px;
  background: white; color: var(--primary);
  font-weight: 700; font-size: 0.78rem; border: none; cursor: pointer;
  flex-shrink: 0; transition: var(--transition); font-family: inherit;
}
.btn-install:hover { transform: scale(1.04); }

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,165,0,0.9) 0%, rgba(204,132,0,0.85) 100%),
    url('../images/auth-bg.jpg') center / cover no-repeat fixed;
}
.auth-header { padding: 28px 24px 20px; display: flex; flex-direction: column; align-items: center; color: white; }
.auth-back-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 16px; text-decoration: none; transition: color 0.2s;
}
.auth-back-btn:hover { color: white; }
.auth-logo {
  width: 80px; height: 80px; background: rgba(255,255,255,0.18);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; backdrop-filter: blur(12px); border: 1.5px solid rgba(255,255,255,0.3);
  padding: 8px;
}
.auth-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.auth-logo .icon svg { width: 40px; height: 40px; color: white; }
.auth-title { font-size: 1.5rem; font-weight: 800; color: white; text-align: center; }
.auth-sub { font-size: 0.85rem; color: rgba(255,255,255,0.72); text-align: center; margin-top: 4px; }
.auth-card { background: white; flex: 1; border-radius: 26px 26px 0 0; padding: 26px 22px 40px; margin-top: 20px; }
.auth-link { color: var(--primary); font-weight: 700; }
.phone-prefix {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; color: var(--text-secondary); font-weight: 700;
}
.phone-input { padding-left: 68px !important; }

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state { text-align: center; padding: 44px 22px; }
.empty-state .icon svg { width: 56px; height: 56px; color: var(--text-muted); opacity: 0.5; margin-bottom: 14px; }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 7px; }
.empty-state p { font-size: 0.82rem; color: var(--text-muted); max-width: 220px; margin: 0 auto; }

/* =============================================
   BADGES / PILLS
   ============================================= */
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 2px 8px; border-radius: 100px; font-size: 0.66rem; font-weight: 700;
}
.badge .icon svg { width: 10px; height: 10px; }
.badge-primary { background: var(--ins-primary-bg-subtle);  color: var(--primary); }
.badge-secondary{ background: var(--ins-warning-bg-subtle); color: var(--secondary-dark); }
.badge-success  { background: var(--ins-success-bg-subtle); color: #2d6a2c; }
.badge-danger   { background: var(--ins-danger-bg-subtle);  color: #c94856; }
.badge-info     { background: var(--ins-info-bg-subtle);    color: #1ea8aa; }
.badge-purple   { background: rgba(123,112,239,0.1);        color: #6b5eae; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ins-primary-bg-subtle); color: var(--primary);
  border-radius: 100px; padding: 3px 11px; font-size: 0.68rem; font-weight: 800;
  margin-bottom: 7px; border: 1px solid var(--ins-primary-border-subtle);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* =============================================
   TOGGLE SWITCH
   ============================================= */
.toggle-switch { position: relative; display: inline-block; width: 42px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); transition: 0.3s; border-radius: 22px; }
.toggle-slider::before { position: absolute; content: ''; height: 16px; width: 16px; left: 3px; bottom: 3px; background: white; transition: 0.3s; border-radius: 50%; }
input:checked + .toggle-slider { background: var(--primary); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #0f1a2e; color: rgba(255,255,255,0.65); padding: 36px 20px 120px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-logo { width: 38px; height: 38px; background: var(--ins-gradient-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-brand .brand-logo .icon svg { width: 22px; height: 22px; color: white; }
.footer-brand span { font-size: 1rem; font-weight: 800; color: white; }
.footer-tagline { font-size: 0.8rem; margin-bottom: 22px; }
.footer-links h4 { color: white; font-size: 0.82rem; margin-bottom: 11px; }
.footer-links a { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 7px; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: var(--transition); text-decoration: none;
}
.social-btn:hover { background: var(--primary); color: white; }
.social-btn .icon svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 28px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.73rem; color: rgba(255,255,255,0.4); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse    { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pointsPop {
  0% { transform: scale(0.5) translateY(20px); opacity: 0; }
  60% { transform: scale(1.1) translateY(-8px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes ripple { 0% { transform: scale(0); opacity: 0.5; } 100% { transform: scale(4); opacity: 0; } }
@keyframes scan   { 0%,100% { top: 10%; } 50% { top: 85%; } }

.animate-fade-up   { animation: fadeInUp 0.5s ease forwards; }
.animate-fade      { animation: fadeIn 0.4s ease forwards; }
.page-enter        { animation: fadeIn 0.3s ease; }
.points-pop        { animation: pointsPop 0.5s cubic-bezier(0.4,0,0.2,1) forwards; }

.stagger > * { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.3); width: 10px; height: 10px; top: 50%; left: 50%; transform: scale(0) translate(-50%,-50%); }
.ripple-btn:active::after { animation: ripple 0.4s ease; }

.animate-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .rewards-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
}
@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .hamburger { display: none; }
  .bottom-nav { display: none; }
  .page-content { padding-bottom: 0; }
  .section { padding: 60px 40px; }
  .hero { padding: 70px 40px 96px; }
  .hero h1 { font-size: 2.8rem; }
  .services-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1024px) {
  .section { padding: 76px 80px; max-width: 1200px; margin: 0 auto; }
  .hero { padding: 76px; }
  .hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .navbar { padding: 0 80px; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-white     { color: white !important; }
.text-success   { color: #2d6a2c !important; }
.text-danger    { color: #ed5565 !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* Routes List View */
.routes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Routes List View */
.routes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.route-list-item:hover {
  background: var(--bg);
  border-color: var(--primary-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.route-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-list-path {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.route-list-from,
.route-list-to {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.route-list-arrow {
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
  font-size: 14px;
}

.route-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.route-list-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.route-list-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-bg-subtle);
  padding: 4px 10px;
  border-radius: 20px;
}

.route-list-trend i,
.route-list-trend svg {
  color: var(--primary);
}

.route-list-action {
  display: flex;
  align-items: center;
  margin-left: 12px;
  opacity: 0.4;
  transition: var(--transition);
}

.route-list-item:hover .route-list-action {
  opacity: 1;
  transform: translateX(2px);
}

/* Mobile optimization */
@media (max-width: 640px) {
  .routes-list {
    gap: 10px;
  }

  .route-list-item {
    padding: 14px;
  }

  .route-list-from,
  .route-list-to {
    font-size: 0.875rem;
    font-weight: 500;
  }

  .route-list-meta {
    gap: 8px;
  }

  .route-list-price {
    font-size: 0.9375rem;
  }

  .route-list-trend {
    padding: 3px 8px;
    font-size: 0.65rem;
  }
}

/* Skeleton loading styles */
.skeleton-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-path {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skeleton-from,
.skeleton-to {
  height: 20px;
  width: 80px;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-arrow {
  width: 16px;
  height: 16px;
  background: var(--border);
  border-radius: 2px;
}

.skeleton-meta {
  display: flex;
  gap: 12px;
}

.skeleton-price {
  height: 18px;
  width: 70px;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-badge {
  height: 22px;
  width: 80px;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 20px;
}

.skeleton-action {
  width: 20px;
  height: 20px;
  background: var(--border);
  border-radius: 4px;
}

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

/* Dark mode specific overrides */
[data-bs-theme=dark] .route-list-item {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-bs-theme=dark] .route-list-item:hover {
  background: var(--bg);
  border-color: var(--primary);
}

[data-bs-theme=dark] .route-list-trend {
  background: rgba(255, 165, 0, 0.15);
}

[data-bs-theme=dark] .skeleton-from,
[data-bs-theme=dark] .skeleton-to,
[data-bs-theme=dark] .skeleton-price,
[data-bs-theme=dark] .skeleton-badge {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
}
/* Hidden by default (mobile & tablet) */
.nav-auth-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}

/* Show on large screens (992px and above) */
@media (min-width: 992px) {
  .nav-auth-desktop {
    display: flex;
  }
}