/* ===== BusGo Design System ===== */

:root {
  --primary: #e53e3e;
  --primary-dark: #c53030;
  --primary-light: #fff5f5;
  --accent: #1a202c;
  --success: #38a169;
  --danger: #e53e3e;
  --warning: #d69e2e;
  --info: #3182ce;
  --text: #1a202c;
  --text-muted: #718096;
  --border: #e2e8f0;
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --nav-bg: #1a202c;
  --nav-text: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.env-banner {
  text-align: center;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 500;
}
.env-banner-sandbox {
  background: #fef3c7;
  color: #92400e;
  border-bottom: 1px solid #fcd34d;
}

nav.site-nav,
nav {
  background: var(--nav-bg);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 200;
}

nav .brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

nav .brand span { color: var(--primary); }

.brand-icon { display: inline-block; vertical-align: middle; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
  opacity: 0;
  transition: opacity .2s;
}
.nav-overlay.visible { display: block; opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

nav a {
  color: rgba(226,232,240,.8);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}

nav a:hover { color: #fff; background: rgba(255,255,255,.1); }

.nav-book-btn {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  margin-left: 4px !important;
}
.nav-book-btn:hover { background: var(--primary-dark) !important; transform: none; }

.nav-spacer { margin-left: auto; }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropbtn {
  background: transparent !important;
  color: rgba(226,232,240,.8) !important;
  padding: 6px 12px !important;
  font-size: .85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all .15s;
}
.dropbtn:hover { color: #fff !important; background: rgba(255,255,255,.1) !important; }
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  border-radius: 10px;
  padding: 6px;
  top: calc(100% + 6px);
  left: 0;
  border: 1px solid var(--border);
}
.dropdown-content a {
  color: var(--text) !important;
  display: block;
  padding: 8px 12px !important;
  border-radius: 6px;
  font-size: .87rem;
}
.dropdown-content a:hover { background: var(--bg) !important; color: var(--primary) !important; }
.dropdown:hover .dropdown-content { display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 28px 20px 56px; flex: 1; width: 100%; }

/* ===== FLASH MESSAGES ===== */
.flash {
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: .92rem;
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash.success { background: #f0fff4; border-color: var(--success); color: #276749; }
.flash.error   { background: #fff5f5; border-color: var(--danger);  color: #9b2c2c; }
.flash.info    { background: #ebf8ff; border-color: var(--info);    color: #2c5282; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(226,232,240,.6);
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  border-top: 3px solid var(--border);
  border: 1px solid rgba(226,232,240,.6);
}
.stat-card.highlight { border-top: 3px solid var(--primary); }
.stat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.stat-sub { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: .87rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  transition: all .18s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(229,62,62,.35); }
.btn:active { transform: scale(.98); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #c53030; }
.btn.secondary { background: #4a5568; color: #fff; }
.btn.secondary:hover { background: #2d3748; box-shadow: none; }
.btn.outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn.outline:hover { background: var(--primary); color: #fff; }
.btn.sm { padding: 5px 12px; font-size: .78rem; border-radius: 6px; }
.btn.lg { padding: 13px 28px; font-size: .97rem; border-radius: 10px; }
.btn.active, .btn-group .btn.active { background: var(--primary-dark); }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== FORMS ===== */
label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 5px;
  letter-spacing: .01em;
}

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], select, textarea, .form-control, .form-select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .92rem;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}
textarea { min-height: 80px; resize: vertical; }

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
th {
  background: #f7fafc;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
  font-size: .9rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #e2e8f0;
  color: #4a5568;
}
.badge.confirmed, .badge.collected, .badge.approved { background: #c6f6d5; color: #276749; }
.badge.cancelled, .badge.rejected  { background: #fed7d7; color: #9b2c2c; }
.badge.dispatched, .badge.in_transit { background: #bee3f8; color: #2a4365; }
.badge.booked, .badge.pending     { background: #fefcbf; color: #744210; }
.badge.received   { background: #e9d8fd; color: #553c9a; }
.badge.loaded     { background: #bee3f8; color: #2a4365; }
.badge.credit     { background: #c6f6d5; color: #276749; }
.badge.debit      { background: #fed7d7; color: #9b2c2c; }

/* ===== SEAT MAP ===== */
.seat-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, 48px);
  gap: 8px;
  margin: 14px 0 18px;
}
.seat {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: 2px solid var(--border);
  background: #fff;
  transition: all .15s;
  user-select: none;
}
.seat:hover:not(.taken) { background: var(--primary-light); border-color: var(--primary); transform: scale(1.08); }
.seat.selected { background: var(--primary); color: #fff; border-color: var(--primary-dark); box-shadow: 0 2px 8px rgba(229,62,62,.4); }
.seat.taken { background: #fed7d7; border-color: #fc8181; color: #c53030; cursor: not-allowed; }
.seat-legend { display: flex; gap: 18px; margin-bottom: 14px; font-size: .82rem; align-items: center; }
.seat-legend span { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 500; }
.legend-dot { width: 16px; height: 16px; border-radius: 4px; border: 2px solid; }
.legend-dot.available { background: #fff; border-color: var(--border); }
.legend-dot.selected  { background: var(--primary); border-color: var(--primary-dark); }
.legend-dot.taken     { background: #fed7d7; border-color: #fc8181; }

/* ===== UTILITY ===== */
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.text-muted { color: var(--text-muted); font-size: .87rem; }
.text-danger { color: var(--danger); }
h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
h3 { font-size: 1.05rem; font-weight: 700; margin: 16px 0 10px; color: #2d3748; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 60%, #c53030 100%);
  color: #fff;
  border-radius: 16px;
  padding: 52px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(229,62,62,.15);
  border-radius: 50%;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.hero p  { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: 1rem; }
.hero-search {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-search label { color: rgba(255,255,255,.7); font-size: .75rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .08em; }
.hero-search .form-control {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  border-radius: 8px;
}
.hero-search .form-control::placeholder { color: rgba(255,255,255,.5); }
.hero-search .form-control option { background: #1a202c; color: #fff; }
.hero-search-btn {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .18s;
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

/* ===== TRIP CARDS ===== */
.trip-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: all .18s;
}
.trip-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-left-color: var(--primary-dark); }
.trip-route { font-weight: 800; font-size: 1.08rem; color: var(--text); }
.trip-meta { font-size: .82rem; color: var(--text-muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.trip-meta span { display: flex; align-items: center; gap: 4px; }
.trip-price { font-size: 1.35rem; font-weight: 800; color: var(--primary); }

/* ===== STEP BAR ===== */
.step-bar { display: flex; gap: 0; margin-bottom: 28px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.step {
  flex: 1;
  padding: 12px 14px;
  background: #edf2f7;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  letter-spacing: .02em;
}
.step:last-child { border-right: none; }
.step.active { background: var(--primary); color: #fff; }
.step.done   { background: #fff5f5; color: var(--primary-dark); }

/* ===== PASSENGER BLOCK ===== */
.passenger-block {
  background: #fafbfc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
}
.passenger-block h4 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== FORM SECTIONS ===== */
.form-section {
  background: #fafbfc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
}
.section-heading { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }

/* ===== PAYMENT OPTIONS ===== */
.payment-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 10px; margin-bottom: 14px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
}
.payment-option:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.payment-option-label { font-weight: 600; font-size: .88rem; }

/* ===== REPORTS ===== */
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.report-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  padding: 22px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all .18s;
}
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.report-card strong { font-size: 1.05rem; margin-bottom: 10px; font-weight: 700; }
.report-card span { color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.5; }
.report-card.sales { background: linear-gradient(135deg, #f6ad55, #ed8936); }
.report-card.bank { background: linear-gradient(135deg, #4299e1, #3182ce); }
.report-card.parcel { background: linear-gradient(135deg, #9f7aea, #805ad5); }
.report-card.vehicle { background: linear-gradient(135deg, #68d391, #48bb78); }
.report-card.ticket { background: linear-gradient(135deg, #fc8181, #e53e3e); }
.report-card.trip { background: linear-gradient(135deg, #f687b3, #ed64a6); }
.report-card.dispatch { background: linear-gradient(135deg, #76e4f7, #0bc5ea); }
.report-card.inspection { background: linear-gradient(135deg, #a0aec0, #718096); }

/* ===== PARCEL FORM ===== */
.parcel-booking-form .form-section { background: #fafbfc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.parcel-booking-form .section-heading { font-size: 1.08rem; margin-bottom: 16px; color: var(--text); font-weight: 700; }
.parcel-booking-form .summary-box { background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 18px; }
.parcel-booking-form .summary-label { display: block; font-size: .76rem; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; font-weight: 600; }
.parcel-booking-form .summary-value { font-size: 1.3rem; font-weight: 800; }

/* ===== LOADER ===== */
#site-loader {
  position: fixed; inset: 0;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .4s;
}
#site-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { width: 60px; height: 60px; animation: pulse 1.2s ease-in-out infinite; }
.loader-text { color: #fff; font-size: 1.3rem; font-weight: 800; margin-top: 14px; letter-spacing: -.3px; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.95)} }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-search, .grid2, .grid3 { grid-template-columns: 1fr; }
  .site-nav, nav { padding: 0 14px; height: 56px; flex-wrap: nowrap; overflow: visible; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 72px 16px 24px;
    gap: 4px;
    z-index: 160;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .dropbtn {
    padding: 12px 14px !important;
    font-size: .95rem !important;
    border-radius: 10px !important;
  }
  .nav-spacer { display: none; }
  .nav-book-btn { margin: 8px 0 0 !important; text-align: center; }
  .dropdown-content {
    position: static;
    display: block;
    background: rgba(255,255,255,.06);
    box-shadow: none;
    border: none;
    margin: 4px 0 8px 8px;
    padding: 4px;
  }
  .dropdown-content a { color: rgba(226,232,240,.9) !important; }
  body.nav-open { overflow: hidden; }
  .trip-card { flex-direction: column; align-items: flex-start; }
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 1.6rem; }
  .payment-options { grid-template-columns: 1fr 1fr; }
  .step { font-size: .68rem; padding: 8px 6px; }
  .trip-result-card { flex-direction: column; align-items: stretch; }
  .trip-result-price { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .auth-container { margin: 32px auto; padding: 28px 22px; }
}

/* ===== TRIP RESULTS (modern card layout) ===== */
.trips-grid { display: flex; flex-direction: column; gap: 14px; }
.trip-result-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all .18s;
  box-shadow: var(--shadow);
}
.trip-result-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.trip-result-main { flex: 1; }
.trip-result-route { font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.trip-result-arrow { color: var(--primary); }
.trip-result-details { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.trip-result-detail { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.trip-result-price { text-align: right; }
.trip-result-price .amount { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.trip-result-price .seats { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.trip-result-price .btn { margin-top: 10px; }

/* ===== SUMMARY BOX ===== */
.summary-info {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1.5px solid #fed7d7;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.summary-info strong { color: var(--primary); }

/* ===== AUTH PAGES ===== */
.auth-container {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-logo { text-align: center; margin-bottom: 28px; font-size: 2rem; font-weight: 800; }
.auth-logo span { color: var(--primary); }

/* ===== MISC ===== */
details summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 8px 0; }
details[open] summary { margin-bottom: 10px; }
code { background: #f7fafc; padding: 2px 6px; border-radius: 4px; font-size: .87em; color: #c53030; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--accent);
  color: rgba(226,232,240,.85);
  margin-top: auto;
  padding: 36px 20px 20px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin-top: 8px; font-size: .88rem; color: rgba(226,232,240,.7); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(226,232,240,.85); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: .88rem; margin-bottom: 6px; }
.footer-contact a { color: rgba(226,232,240,.85); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  max-width: 1140px;
  margin: 16px auto 0;
  font-size: .78rem;
  color: rgba(226,232,240,.5);
  text-align: center;
}

/* ===== TOASTS ===== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-warning { border-left-color: var(--warning); }
.toast-error { border-left-color: var(--danger); }
.toast-success { border-left-color: var(--success); }

/* ===== ERROR PAGES ===== */
.error-page {
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 520px;
  margin: 0 auto;
}
.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h1 { font-size: 1.6rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Disabled feature badge */
.feature-disabled {
  opacity: .55;
  cursor: not-allowed;
  position: relative;
}
.feature-disabled-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== EMPTY STATES ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px dashed var(--border);
  margin-top: 20px;
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; font-size: 1.2rem; }
.empty-state p { color: var(--text-muted); max-width: 420px; margin: 0 auto 20px; font-size: .92rem; }
