/* ============================================================
   BusXpress — White & Blue Professional Theme
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

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

/* ---- Design Tokens ---- */
:root {
  /* Brand */
  --blue-950: #0C1A40;
  --blue-900: #0F2458;
  --blue-800: #1E3A8A;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-300: #93C5FD;
  --blue-200: #BFDBFE;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  --primary:       #1E3A8A;
  --primary-mid:   #2563EB;
  --primary-light: #3B82F6;
  --primary-glow:  rgba(37,99,235,.14);
  --accent:        #1D4ED8;

  /* Neutrals */
  --white:      #FFFFFF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1E293B;
  --gray-900:   #0F172A;

  /* Semantic */
  --success:  #16A34A;
  --success-bg: #F0FDF4;
  --success-border: #BBF7D0;
  --warning:  #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --danger:   #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --info:     #0EA5E9;
  --info-bg:  #F0F9FF;
  --info-border: #BAE6FD;

  /* Layout */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-xs:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm:  0 2px 8px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.06);
  --shadow:     0 4px 16px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.07);
  --shadow-md:  0 8px 24px rgba(15,23,42,.12), 0 4px 10px rgba(15,23,42,.08);
  --shadow-lg:  0 16px 40px rgba(15,23,42,.14), 0 8px 16px rgba(15,23,42,.08);

  --transition: all .22s cubic-bezier(.4,0,.2,1);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Body */
  --bg-page:    #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-raised:  #FFFFFF;
  --text-base:  #1E293B;
  --text-muted: #64748B;
  --text-dim:   #94A3B8;
  --border-default: #E2E8F0;
  --border-hover:   #CBD5E1;

  /* Sidebar (admin) */
  --sidebar-bg:     #0F172A;
  --sidebar-hover:  rgba(255,255,255,.05);
  --sidebar-active: rgba(37,99,235,.18);
  --sidebar-text:   rgba(255,255,255,.65);
  --sidebar-active-text: #93C5FD;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--primary-mid); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

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

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-base);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  height: 66px;
  padding: 0 2rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-base);
  text-decoration: none;
}
.navbar-brand .logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.navbar-brand .logo-icon svg { width: 20px; height: 20px; }
.navbar-brand span { color: var(--primary-mid); }
.navbar-nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.navbar-nav a {
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
}
.navbar-nav a:hover { color: var(--text-base); background: var(--gray-100); }
.navbar-nav a.active { color: var(--primary); background: var(--blue-50); font-weight: 600; }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-nav-login {
  border: 1px solid var(--gray-300);
  color: var(--text-base);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .85rem;
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav-login:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--text-base); }
.btn-nav-book {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .85rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav-book:hover { background: var(--primary-mid); box-shadow: 0 4px 12px var(--primary-glow); color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 80px 2rem 70px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--blue-200);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  width: fit-content;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--blue-300); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 36px; max-width: 460px; }
.hero-feats { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-feat {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.hero-feat svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   SEARCH CARD
   ============================================================ */
.search-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.search-tabs {
  display: flex; gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  width: fit-content;
}
.search-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  font-family: var(--font-body);
}
.search-tab.active { background: var(--primary); color: var(--white); font-weight: 600; }
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.form-control, .form-select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--text-base);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-family: var(--font-body);
  transition: var(--transition);
  -webkit-appearance: none;
  outline: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--white);
}
.form-control::placeholder { color: var(--gray-400); }
.form-select option { background: var(--white); color: var(--text-base); }
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 42px; }
.input-icon .icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400);
  width: 16px; height: 16px;
  pointer-events: none;
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-hint { font-size: .75rem; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-mid); box-shadow: 0 4px 14px var(--primary-glow); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--text-base); border: 1px solid var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--text-base); }
.btn-outline { background: transparent; border: 1px solid var(--gray-300); color: var(--text-muted); }
.btn-outline:hover { background: var(--gray-50); color: var(--text-base); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #15803d; color: var(--white); }
.btn-danger  { background: var(--danger);  color: var(--white); }
.btn-danger:hover  { background: #b91c1c; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-info    { background: var(--info);    color: var(--white); }
.btn-ghost   { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--text-base); }
.btn-sm  { padding: 7px 14px; font-size: .8rem; }
.btn-lg  { padding: 13px 30px; font-size: .95rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none !important; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-50);
}
.card-title { font-size: .92rem; font-weight: 600; color: var(--text-base); font-family: var(--font-body); }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border-default); background: var(--gray-50); }

/* ============================================================
   BUS RESULT CARD
   ============================================================ */
.bus-card {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.bus-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.bus-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.bus-card:hover::before { transform: scaleY(1); }
.bus-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.bus-name { font-size: 1.05rem; font-weight: 700; color: var(--text-base); font-family: var(--font-display); }
.bus-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge-ac    { background: var(--blue-50);  color: var(--primary);  border: 1px solid var(--blue-200); }
.badge-nonac { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.bus-route-display { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.route-time { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text-base); }
.route-line { flex: 1; display: flex; align-items: center; gap: 6px; }
.route-line-bar { flex: 1; height: 1.5px; background: var(--gray-300); position: relative; }
.route-line-bar::after {
  content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid var(--gray-400);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}
.route-duration { font-size: .75rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.route-city { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.bus-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.bus-amenities { display: flex; gap: 6px; flex-wrap: wrap; }
.amenity-tag {
  background: var(--gray-100); color: var(--gray-600);
  padding: 3px 9px; border-radius: var(--radius-xs);
  font-size: .72rem; font-weight: 500; border: 1px solid var(--gray-200);
}
.bus-fare-info { text-align: right; }
.fare-from { font-size: .75rem; color: var(--text-muted); margin-bottom: 2px; }
.fare-amount { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.seats-left { font-size: .72rem; color: var(--success); font-weight: 600; margin-top: 2px; }

/* ============================================================
   SEAT MAP
   ============================================================ */
.seat-map-container { background: var(--gray-50); border-radius: var(--radius); padding: 22px; border: 1px solid var(--border-default); }
.seat-map-legend { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--text-muted); }
.seat-box {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.seat-available { background: var(--white); border-color: var(--gray-300); color: var(--gray-500); }
.seat-available:hover { background: var(--blue-50); border-color: var(--primary-mid); color: var(--primary); transform: scale(1.08); }
.seat-selected { background: var(--primary); border-color: var(--primary); color: var(--white); transform: scale(1.05); }
.seat-booked { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-300); cursor: not-allowed; }
.seat-deck-label {
  font-size: .72rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1.5px solid var(--blue-100);
}

/* ============================================================
   STATS & METRICS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--text-base); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; margin-top: 5px; }
.stat-sub { font-size: .72rem; color: var(--gray-400); margin-top: 3px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-default); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead tr { background: var(--gray-50); border-bottom: 1px solid var(--border-default); }
thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  font-family: var(--font-body);
}
tbody tr { border-bottom: 1px solid var(--border-default); transition: background .12s; }
tbody tr:hover { background: var(--gray-50); }
tbody td { padding: 12px 16px; font-size: .88rem; color: var(--text-base); vertical-align: middle; }
tbody tr:last-child { border-bottom: none; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--font-body);
}
.badge-success { background: var(--success-bg); color: #15803d; border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-bg); color: #b45309; border: 1px solid var(--warning-border); }
.badge-danger  { background: var(--danger-bg);  color: #b91c1c; border: 1px solid var(--danger-border); }
.badge-info    { background: var(--info-bg);    color: #0369a1; border: 1px solid var(--info-border); }
.badge-muted   { background: var(--gray-100);   color: var(--gray-600); border: 1px solid var(--gray-200); }
.badge-primary { background: var(--blue-50);    color: var(--primary);  border: 1px solid var(--blue-200); }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 256px;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .25s ease;
}
.sidebar-header {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.sidebar-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--primary-mid);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo .logo-icon svg { width: 18px; height: 18px; }
.sidebar-logo em { color: var(--blue-400); font-style: normal; }
.sidebar-menu { flex: 1; padding: 14px 10px; overflow-y: auto; }
.sidebar-section-label {
  font-size: .65rem; font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .12em;
  padding: 12px 8px 5px;
  font-family: var(--font-body);
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: .86rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 1px;
  text-decoration: none;
  font-family: var(--font-body);
}
.sidebar-item:hover { background: var(--sidebar-hover); color: var(--white); }
.sidebar-item.active { background: var(--sidebar-active); color: var(--sidebar-active-text); font-weight: 600; }
.sidebar-item .icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; }
.sidebar-item.active .icon { opacity: 1; }
.sidebar-item svg { width: 16px; height: 16px; }

.admin-main { flex: 1; margin-left: 256px; min-height: 100vh; background: var(--bg-page); }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-default);
  padding: 0 28px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs);
}
.admin-content { padding: 28px; max-width: 1400px; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 1.4rem; margin-bottom: 3px; }
.page-header p { color: var(--text-muted); font-size: .88rem; }

/* ============================================================
   ALERT
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
  border: 1px solid;
  line-height: 1.5;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: #15803d; border-color: var(--success-border); }
.alert-danger  { background: var(--danger-bg);  color: #b91c1c; border-color: var(--danger-border); }
.alert-warning { background: var(--warning-bg); color: #b45309; border-color: var(--warning-border); }
.alert-info    { background: var(--info-bg);    color: #0369a1; border-color: var(--info-border); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 600px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .2s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes modalIn { from { opacity:0; transform:scale(.97) translateY(8px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-50);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-header h4 { font-size: 1rem; font-weight: 700; color: var(--text-base); font-family: var(--font-display); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-default); display: flex; gap: 10px; justify-content: flex-end; background: var(--gray-50); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }

/* ============================================================
   TICKET CARD
   ============================================================ */
.ticket-card { background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.ticket-header { background: var(--primary); padding: 20px 26px; display: flex; justify-content: space-between; align-items: center; }
.ticket-ref { font-size: .76rem; color: rgba(255,255,255,.75); }
.ticket-ref strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); display: block; margin-top: 2px; }
.ticket-body { padding: 26px; }
.ticket-city { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--text-base); }
.ticket-arrow { font-size: 1.5rem; color: var(--primary-mid); }
.ticket-divider { border: none; border-top: 2px dashed var(--border-default); margin: 20px 0; }
.ticket-details-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ticket-detail-item label { font-size: .7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ticket-detail-item p { font-weight: 600; margin-top: 3px; color: var(--text-base); }

/* ============================================================
   PROGRESS / MISC
   ============================================================ */
.progress-bar { height: 6px; background: var(--gray-200); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary-mid); border-radius: 100px; transition: width .4s ease; }
.divider { height: 1px; background: var(--border-default); margin: 18px 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
  font-family: var(--font-body);
}
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state .icon { margin-bottom: 14px; color: var(--gray-300); }
.empty-state svg { width: 48px; height: 48px; }
.empty-state h4 { font-size: 1rem; margin-bottom: 5px; color: var(--text-base); }
.empty-state p { font-size: .87rem; }
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--gray-200);
  border-top-color: var(--primary-mid);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PARCEL / TRACKING
   ============================================================ */
.parcel-section { background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 14px; }
.parcel-section h4 { margin-bottom: 16px; font-size: .92rem; color: var(--primary); display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; }
.tracking-steps { display: flex; gap: 0; margin: 20px 0; }
.tracking-step { flex: 1; text-align: center; position: relative; }
.tracking-step::before { content: ''; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: var(--border-default); z-index: 0; }
.tracking-step:last-child::before { display: none; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-100); border: 2px solid var(--border-default); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1; font-size: .82rem; color: var(--text-muted); }
.step-dot.done { background: var(--success); border-color: var(--success); color: var(--white); }
.step-dot.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.step-label { font-size: .73rem; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gray-900); color: rgba(255,255,255,.75); padding: 56px 2rem 28px; margin-top: 80px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .85rem; line-height: 1.75; margin: 12px 0 20px; max-width: 280px; color: rgba(255,255,255,.55); }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); }
.footer-brand .brand-name em { font-style: normal; color: var(--blue-400); }
.footer-col h5 { font-size: .82rem; font-weight: 700; margin-bottom: 14px; color: var(--white); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .06em; }
.footer-col a { display: block; color: rgba(255,255,255,.5); font-size: .84rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--blue-300); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .8rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 60px 0; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-white  { color: var(--white); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:20px}.mt-4{margin-top:28px}
.mb-1{margin-bottom:6px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:20px}.mb-4{margin-bottom:28px}
.gap-1{gap:8px}.gap-2{gap:16px}.gap-3{gap:24px}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.d-none{display:none}.w-full{width:100%}
.bg-blue-50  { background: var(--blue-50); }
.bg-white    { background: var(--white); }
.border-blue { border-color: var(--blue-200); }
.rounded-full { border-radius: 100px; }
code { background: var(--gray-100); color: var(--primary); padding: 2px 7px; border-radius: var(--radius-xs); font-size: .82rem; font-family: 'Courier New', monospace; border: 1px solid var(--gray-200); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse  { 0%,100%{opacity:1} 50%{opacity:.5} }
.animate-fade { animation: fadeIn .35s ease both; }
.loading      { animation: pulse 1.5s ease infinite; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar,.footer,.btn,.sidebar,.admin-topbar,.page-header { display: none !important; }
  body { background: white; color: #000; }
  .ticket-header { background: #1E3A8A !important; -webkit-print-color-adjust: exact; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .search-card { margin-top: 0; }
}
@media (max-width: 768px) {
  .navbar-inner { padding: 0 1rem; }
  .navbar-nav { display: none; }
  .search-grid { grid-template-columns: 1fr; }
  .admin-main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .form-row { grid-template-columns: 1fr; }
  .ticket-details-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 1.5rem 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .container   { padding: 0 1rem; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--white); border: 1px solid var(--border-default);
  color: var(--text-base); padding: 12px 16px;
  border-radius: var(--radius); font-size: .86rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-width: 280px; max-width: 380px;
  opacity: 0; transform: translateX(20px);
  transition: all .25s ease; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast button { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: .85rem; }
.toast-success { border-left: 3px solid var(--success); }
.toast-danger  { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--primary-mid); }
