:root {
  --brand: #0b4f6c;
  --brand-dark: #07374d;
  --accent: #f0a202;
  --accent-2: #06d6a0;
  --surface: #f6f8fb;
  --text: #1a2b3c;
  --muted: #5c6b7a;
  --card: #ffffff;
  --border: #e2e8f0;
  --danger: #c1121f;
  --success: #0f766e;
  --shadow: 0 18px 45px rgba(11, 79, 108, 0.12);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
}

.hero-gradient {
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 45%, #145c7e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(240, 162, 2, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(6, 214, 160, 0.2), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.btn-brand {
  background: var(--accent);
  border: none;
  color: #1a1204;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
}

.btn-brand:hover {
  filter: brightness(1.05);
  color: #1a1204;
}

.btn-outline-light-custom {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-light-custom:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.card-elevated {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 79, 108, 0.1);
  color: var(--brand);
  font-size: 1.25rem;
}

.footer-dark {
  background: #0b1f2a;
  color: #cbd5e1;
}

.footer-dark a {
  color: #e2e8f0;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 0.5rem;
  max-width: 520px;
}

.seat-btn {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.45rem;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
}

.seat-btn.selected {
  border-color: var(--accent);
  background: rgba(240, 162, 2, 0.15);
  font-weight: 700;
}

.seat-btn.booked {
  background: #fee2e2;
  color: #991b1b;
  cursor: not-allowed;
  border-color: #fecaca;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  background: #f1f5f9;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  color: #e2e8f0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar a {
  color: #cbd5e1;
  display: block;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  margin: 0.15rem 0.75rem;
  text-decoration: none;
  font-size: 0.92rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

.admin-brand {
  padding: 1.25rem 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-content {
  flex: 1;
  padding: 1.5rem 1.75rem 2.5rem;
}

.stat-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.stat-card h6 {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card .value {
  font-size: 1.65rem;
  font-weight: 700;
}

.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ticket-print {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px dashed #94a3b8;
  padding: 1.5rem;
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .ticket-print {
    border: none;
  }
}

/* —— User portal (public) —— */
.user-portal-body {
  background: linear-gradient(180deg, #eef2f7 0%, var(--surface) 320px);
  min-height: 100vh;
}

.portal-topbar {
  background: #0a1628;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-topbar-label {
  opacity: 0.65;
  margin-right: 0.35rem;
}

.portal-navbar {
  background: linear-gradient(90deg, #0b4f6c 0%, #0a3d56 55%, #0b4f6c 100%);
  box-shadow: 0 8px 32px rgba(11, 79, 108, 0.25);
}

.portal-navbar .nav-link {
  font-weight: 500;
}

.portal-navbar .dropdown-menu {
  border-radius: 12px;
  min-width: 220px;
}

.portal-logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 162, 2, 0.35);
}

.breadcrumb-portal {
  --bs-breadcrumb-divider: "›";
  font-size: 0.9rem;
}

.page-hero-inline {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.user-account-nav-head {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.user-account-nav-item.active {
  background: rgba(11, 79, 108, 0.08) !important;
  border-left: 3px solid var(--brand);
  color: var(--brand-dark) !important;
}

.user-account-nav-item.active .user-account-nav-desc {
  color: var(--muted) !important;
}

.user-account-nav-item:hover:not(.active) {
  background: #f8fafc;
}

.search-panel {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.search-result-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: var(--radius);
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(11, 79, 108, 0.14);
}

.bus-detail-dl dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.bus-detail-dl dd {
  margin-bottom: 1rem;
  font-weight: 500;
}

.booking-meta-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: #fafbfc;
  height: 100%;
}

.filter-pill-nav .nav-link {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-pill-nav .nav-link.active {
  background: var(--brand) !important;
  color: #fff !important;
}

.seat-summary-sticky {
  position: sticky;
  top: 5.5rem;
}

.trust-strip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* —— Admin console (professional) —— */
.admin-pro-body {
  background: #e8edf3;
}

.admin-pro-shell.admin-shell {
  min-height: 100vh;
  background: #e8edf3;
}

.admin-pro-sidebar.admin-sidebar {
  width: 268px;
  background: linear-gradient(195deg, #0f172a 0%, #0b1224 45%, #111827 100%);
  box-shadow: 8px 0 40px rgba(15, 23, 42, 0.35);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-pro-brand-icon {
  width: 40px;
  height: 40px;
  background: rgba(240, 162, 2, 0.2);
  color: var(--accent);
  font-size: 1.15rem;
}

.admin-pro-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  margin: 0.1rem 0.65rem;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-pro-nav a i {
  font-size: 1.05rem;
  opacity: 0.85;
}

.admin-pro-nav a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

.admin-pro-nav a.active {
  background: linear-gradient(90deg, rgba(240, 162, 2, 0.22), rgba(240, 162, 2, 0.06));
  color: #fff;
  border: 1px solid rgba(240, 162, 2, 0.35);
}

.admin-pro-content.admin-content {
  background: transparent;
  padding: 0;
}

.admin-pro-topbar {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.admin-pro-breadcrumb {
  --bs-breadcrumb-divider: "›";
  font-size: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.35rem 0.75rem !important;
}

.admin-pro-main {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.admin-stat-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--stat-accent, var(--brand));
}

.admin-stat-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}

.admin-stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-detail-dl dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-detail-dl dd {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.table-admin thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom-width: 1px;
  background: #f8fafc;
}

.admin-pro-login {
  background: linear-gradient(145deg, #0f172a 0%, #0b4f6c 50%, #111827 100%);
}

.admin-pro-login-icon {
  width: 56px;
  height: 56px;
  background: rgba(240, 162, 2, 0.25);
  border: 1px solid rgba(240, 162, 2, 0.45);
}

/* —— Guest portal (professional polish) —— */
.guest-pro-main .container {
  max-width: 1140px;
}

.guest-page-hero {
  padding: 0.35rem 0 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, transparent 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.guest-breadcrumb-nav .breadcrumb {
  padding: 0.5rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.guest-pro-footer {
  background: linear-gradient(180deg, #0a1624 0%, #061018 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guest-footer-logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 162, 2, 0.3);
}

.guest-footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guest-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.guest-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.home-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 79, 108, 0.1);
  color: var(--brand);
  font-size: 1.35rem;
}

.how-step-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.35rem 1.25rem 1.25rem;
  height: 100%;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.how-step-num {
  position: absolute;
  top: -0.65rem;
  left: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1204;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(240, 162, 2, 0.35);
}

.popular-route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.popular-route-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 79, 108, 0.12);
  color: inherit;
}

.home-testimonial {
  border-left: 4px solid var(--brand);
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
}

.table-guest thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  background: #f8fafc;
  border-bottom-width: 1px;
}

.table-guest tbody td {
  vertical-align: middle;
}

.guest-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.guest-empty-state .guest-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(11, 79, 108, 0.08);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.guest-kpi-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  padding: 1rem 1.15rem;
  height: 100%;
}

.guest-kpi-tile .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}

.guest-kpi-tile .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.2;
}

.trip-timeline {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}

.trip-timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, rgba(11, 79, 108, 0.15) 100%);
  border-radius: 2px;
}

.trip-timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.trip-timeline-item:last-child {
  padding-bottom: 0;
}

.trip-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.12rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 162, 2, 0.25);
}

.amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  color: var(--text);
}

.guest-auth-shell {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.guest-auth-aside {
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 50%, #0a3d56 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  position: relative;
}

.guest-auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(240, 162, 2, 0.2), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(6, 214, 160, 0.15), transparent 40%);
  pointer-events: none;
}

.guest-auth-aside-inner {
  position: relative;
  z-index: 1;
}

.guest-auth-body {
  background: #fff;
  padding: 2rem 2rem 2.5rem;
}

@media (min-width: 992px) {
  .guest-auth-body {
    padding: 2.5rem 3rem;
  }
}

.seat-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.seat-legend-available {
  background: #fff;
  border: 1px solid var(--border);
}

.seat-legend-selected {
  background: rgba(240, 162, 2, 0.25);
  border: 1px solid var(--accent);
}

.seat-legend-booked {
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.guest-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(11, 79, 108, 0.1);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
