:root {
  --bg: #081120;
  --bg-soft: #0d1729;
  --panel: rgba(255,255,255,0.88);
  --panel-strong: rgba(255,255,255,0.96);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148,163,184,.22);
  --primary: #2563eb;
  --primary-2: #7c3aed;
  --success: #16a34a;
  --shadow-lg: 0 20px 60px rgba(2, 8, 23, .20);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, .12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(124,58,237,.14), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 52%, #edf2f7 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-orb {
  position: absolute; border-radius: 999px; filter: blur(10px); opacity: .55;
}
.orb-1 { width: 420px; height: 420px; background: rgba(37,99,235,.16); top: -110px; left: -120px; }
.orb-2 { width: 360px; height: 360px; background: rgba(124,58,237,.14); right: -120px; top: 120px; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.45), transparent 72%);
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,17,32,.76) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(2,8,23,.18);
}
.brand-mark {
  width: 50px; height: 50px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
}
.brand-logo { height: 34px; width: auto; object-fit: contain; }
.brand-title { display: block; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand-subtitle { display: block; color: rgba(255,255,255,.62); font-size: .77rem; }
.custom-toggler { border-color: rgba(255,255,255,.2); }
.custom-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.12); }
.nav-pills-shell .nav-link {
  color: rgba(255,255,255,.82);
  border-radius: 999px;
  padding: .62rem .95rem;
  font-weight: 600;
}
.nav-pills-shell .nav-link:hover,
.nav-pills-shell .nav-link:focus,
.nav-pills-shell .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.10);
}
.nav-link-accent {
  background: linear-gradient(135deg, rgba(37,99,235,.85), rgba(124,58,237,.85));
  color: #fff !important;
}
.user-pill {
  background: rgba(255,255,255,.08);
  color: #fff !important;
  padding-right: 1rem !important;
}
.app-shell { position: relative; z-index: 1; }

.hero-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8,17,32,.97), rgba(15,23,42,.92) 60%, rgba(37,99,235,.82));
  color: #fff;
  border-radius: 34px;
  padding: 34px;
  box-shadow: 0 28px 70px rgba(15,23,42,.22);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-box::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.hero-logo { max-width: 100%; width: 320px; filter: drop-shadow(0 18px 32px rgba(0,0,0,.2)); }
.login-logo { max-width: 100%; width: 260px; filter: drop-shadow(0 18px 32px rgba(0,0,0,.2)); }

.card-soft, .dispatch-card, .kpi-card, .accordion-item, .table-shell {
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255,255,255,.88));
  backdrop-filter: blur(10px);
}
.card-soft .card-body,
.dispatch-card,
.kpi-card { padding: 1.35rem; }
.kpi-card {
  height: 100%;
  position: relative;
  overflow: hidden;
}
.kpi-card::after {
  content: "";
  position: absolute;
  right: -30px; bottom: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.10), transparent 70%);
}
.dispatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 20px; }
.dispatch-card {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dispatch-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(15,23,42,.16); }
.dispatch-card h3 { font-size: 1.1rem; margin-bottom: 0; font-weight: 800; }

.info-chip {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(124,58,237,.10));
  color: #334155;
  border: 1px solid rgba(99,102,241,.14);
  border-radius: 999px;
  padding: .38rem .75rem;
  font-size: .76rem;
  font-weight: 700;
  margin: 3px 6px 0 0;
}
.driver-meta p { margin-bottom: .3rem; color: #334155; }
.route-map, .mini-map {
  width: 100%; border: 0; border-radius: 22px; min-height: 210px;
  background: linear-gradient(180deg, #dbeafe, #eff6ff);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.22);
}
.mini-map { min-height: 210px; }
.notification-list { padding-left: 1.1rem; }
.profile-avatar {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  border: 8px solid rgba(255,255,255,.92); box-shadow: 0 18px 40px rgba(15,23,42,.16);
}
.profile-avatar-sm { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.nav-avatar, .table-avatar {
  width: 38px; height: 38px; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  box-shadow: 0 6px 16px rgba(15,23,42,.16);
}
.table-avatar { width: 48px; height: 48px; }
.tracking-map { width: 100%; min-height: 460px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md); }

h1, h2, h3, h4, h5, h6 { letter-spacing: -.02em; }
.text-muted { color: var(--muted) !important; }
.form-label { font-weight: 700; color: #334155; margin-bottom: .45rem; }
.form-control, .form-select {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.28);
  min-height: 48px;
  background: rgba(255,255,255,.88);
  box-shadow: none;
}
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus {
  border-color: rgba(37,99,235,.48);
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
  background: #fff;
}

.btn {
  border-radius: 16px;
  font-weight: 700;
  padding: .72rem 1rem;
}
.btn-sm { border-radius: 13px; }
.btn-primary, .btn-dark {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 26px rgba(37,99,235,.18);
}
.btn-primary:hover, .btn-dark:hover { filter: brightness(1.03); }
.btn-outline-dark, .btn-outline-secondary, .btn-outline-primary {
  background: rgba(255,255,255,.75);
  border-width: 1px;
}
.btn-modern {
  border-radius: 999px;
  padding: .68rem 1rem;
  font-weight: 700;
}
.btn-modern-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.btn-modern-outline:hover { color: #fff; background: rgba(255,255,255,.12); }
.alert {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(248,250,252,.8);
  --bs-table-hover-bg: rgba(239,246,255,.8);
}
.table > :not(caption) > * > * { padding: .95rem .9rem; border-color: rgba(148,163,184,.16); }
.accordion-item { overflow: hidden; }
.accordion-button {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
  font-weight: 700;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  color: #0f172a;
  background: linear-gradient(180deg, rgba(239,246,255,.98), rgba(255,255,255,.96));
}
.accordion-button:focus { box-shadow: none; }
.dropdown-menu { padding: .5rem; }
.dropdown-item { border-radius: 12px; padding: .7rem .85rem; font-weight: 600; }
.dropdown-item:hover { background: rgba(37,99,235,.08); }
.badge {
  border-radius: 999px;
  padding: .55em .82em;
  font-weight: 700;
}

.site-footer { position: relative; z-index: 1; padding-bottom: 2rem; }
.footer-panel {
  border-radius: 26px;
  background: rgba(8,17,32,.9);
  color: rgba(255,255,255,.88);
  box-shadow: 0 18px 50px rgba(2,8,23,.18);
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 800; font-size: 1.05rem; color: #fff; }
.footer-copy { color: rgba(255,255,255,.62); max-width: 640px; }
.footer-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.footer-meta span {
  display: inline-flex;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.84);
  border-radius: 999px;
  padding: .42rem .78rem;
  font-size: .82rem;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

@media (max-width: 991px) {
  .site-navbar .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(8,17,32,.92);
    border: 1px solid rgba(255,255,255,.08);
  }
}
@media (max-width: 767px) {
  .hero-box { padding: 24px; border-radius: 26px; }
  .profile-avatar { width: 160px; height: 160px; }
  .dispatch-grid { grid-template-columns: 1fr; }
  .footer-panel { padding: 1.2rem; }
  .brand-subtitle { display: none; }
}


/* ===== v10 professional dispatch layout ===== */
.layout-auth {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(124,58,237,.12), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, #edf3fb 100%);
}
.sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  z-index: 1035;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(7,14,27,.98), rgba(12,22,39,.96));
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 20px 0 60px rgba(2,8,23,.18);
  backdrop-filter: blur(20px);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 10px 10px 18px;
}
.sidebar-section-label {
  color: rgba(255,255,255,.45);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 10px 12px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 18px;
  padding: .9rem 1rem;
  color: rgba(255,255,255,.8);
  font-weight: 700;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  transition: all .18s ease;
}
.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
}
.sidebar-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37,99,235,.88), rgba(124,58,237,.88));
  box-shadow: 0 16px 30px rgba(37,99,235,.24);
}
.sidebar-user-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
}
.main-panel {
  min-height: 100vh;
}
.content-container {
  width: min(100%, 1380px);
  margin-left: auto;
  margin-right: auto;
}
.page-toolbar, .page-header-card {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.82));
  box-shadow: var(--shadow-md);
}
.page-title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
}
.page-subtitle {
  color: #64748b;
  margin: .25rem 0 0;
}
.table-shell {
  padding: 12px;
}
.card-soft, .dispatch-card, .kpi-card, .accordion-item, .table-shell {
  border-color: rgba(226,232,240,.85) !important;
}
.hero-box {
  border-radius: 36px;
}
.kpi-card .display-6 { font-size: 2rem; }
.badge.bg-success, .badge.text-bg-success { background: rgba(22,163,74,.12) !important; color: #166534 !important; }
.badge.bg-warning, .badge.text-bg-warning { background: rgba(245,158,11,.15) !important; color: #92400e !important; }
.badge.bg-danger, .badge.text-bg-danger { background: rgba(239,68,68,.12) !important; color: #991b1b !important; }
.badge.bg-primary, .badge.text-bg-primary { background: rgba(37,99,235,.12) !important; color: #1d4ed8 !important; }
.badge.bg-secondary, .badge.text-bg-secondary { background: rgba(100,116,139,.14) !important; color: #334155 !important; }

@media (min-width: 992px) {
  .layout-auth .main-panel,
  .layout-auth .site-footer {
    margin-left: 290px;
  }
  .layout-auth .mobile-topbar {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .sidebar-panel { display: none !important; }
  .content-container { width: 100%; }
}

.main-panel { margin-left: 290px; }
.content-container { max-width: 1480px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
  color: #94a3b8;
}
.hero-copy { max-width: 780px; color: rgba(255,255,255,.82); }
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.hero-stat {
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.hero-stat span {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.72);
  margin-bottom: .35rem;
}
.hero-stat strong {
  font-size: 1.75rem;
  color: #fff;
  line-height: 1;
}
.kpi-card-accent {
  position: relative;
  overflow: hidden;
}
.kpi-card-accent::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.kpi-label { color: var(--muted); font-weight: 700; margin-bottom: .55rem; }
.kpi-value { font-size: clamp(1.9rem, 4vw, 2.65rem); font-weight: 800; line-height: 1; }
.kpi-foot { margin-top: .65rem; color: #475569; font-weight: 600; font-size: .92rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  flex-wrap: wrap;
}
.ops-stack, .timeline-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ops-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem;
  background: rgba(248,250,252,.9);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 18px;
}
.ops-count {
  min-width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: rgba(248,250,252,.9);
  border: 1px solid rgba(148,163,184,.16);
}
.timeline-dot {
  width: 12px; height: 12px; margin-top: .35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px rgba(37,99,235,.08);
  flex: 0 0 auto;
}
.compact-dispatch-grid { grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); }
.trip-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.trip-rail > div {
  padding: .9rem 1rem;
  border-radius: 18px;
  background: rgba(248,250,252,.84);
  border: 1px solid rgba(148,163,184,.16);
}
.trip-rail span {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: .25rem;
}
.trip-rail strong { display: block; color: #0f172a; }
.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .42rem .78rem;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid transparent;
}
.priority-low { background: rgba(226,232,240,.9); color: #334155; border-color: rgba(148,163,184,.28); }
.priority-medium { background: rgba(253,224,71,.18); color: #854d0e; border-color: rgba(234,179,8,.32); }
.priority-high { background: rgba(251,146,60,.18); color: #9a3412; border-color: rgba(249,115,22,.28); }
.priority-critical { background: rgba(248,113,113,.16); color: #991b1b; border-color: rgba(239,68,68,.3); }
.priority-card {
  border-top: 5px solid transparent;
}
.priority-card.priority-low { border-top-color: #94a3b8; }
.priority-card.priority-medium { border-top-color: #eab308; }
.priority-card.priority-high { border-top-color: #f97316; }
.priority-card.priority-critical { border-top-color: #ef4444; }
.status-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.status-filter-chip {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  text-decoration: none;
  color: #334155;
  background: rgba(248,250,252,.92);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 999px;
  padding: .7rem 1rem;
  font-weight: 700;
}
.status-filter-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
}
.status-filter-chip.active {
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
  border-color: rgba(99,102,241,.28);
  color: #0f172a;
}
.dispatch-table thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}
.dispatch-row.priority-low td:first-child { box-shadow: inset 4px 0 0 #94a3b8; }
.dispatch-row.priority-medium td:first-child { box-shadow: inset 4px 0 0 #eab308; }
.dispatch-row.priority-high td:first-child { box-shadow: inset 4px 0 0 #f97316; }
.dispatch-row.priority-critical td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
.map-command-card .tracking-map { min-height: 560px; }
.page-title { font-weight: 800; margin-bottom: .2rem; }
.page-subtitle { color: var(--muted); margin-bottom: 0; }
.sidebar-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 290px;
  padding: 1.25rem 1rem;
  background: rgba(8,17,32,.92);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255,255,255,.08);
  z-index: 1100;
  flex-direction: column;
}
.sidebar-brand-wrap { padding: .4rem .4rem 1rem; }
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}
.sidebar-section-label {
  color: rgba(255,255,255,.48);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  padding: 0 .8rem .8rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: .4rem; }
.sidebar-link {
  text-decoration: none;
  color: rgba(255,255,255,.82);
  padding: .9rem 1rem;
  border-radius: 18px;
  font-weight: 700;
}
.sidebar-link:hover, .sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.sidebar-user-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 1199.98px) {
  .main-panel { margin-left: 0; }
}
@media (max-width: 991.98px) {
  .hero-box { padding: 26px; border-radius: 28px; }
  .map-command-card .tracking-map { min-height: 400px; }
}
@media (max-width: 767.98px) {
  .hero-metrics-grid, .trip-rail { grid-template-columns: 1fr; }
  .content-container { max-width: 100%; }
}

.trip-actions-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

.trip-actions-stack form {
    margin: 0;
}



/* ===== v14 sidebar hover reveal ===== */
:root {
  --sidebar-width: 290px;
  --sidebar-peek-width: 18px;
}

.layout-auth { overflow-x: hidden; }

.sidebar-panel {
  width: var(--sidebar-width) !important;
  padding: 1.2rem 1rem !important;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1100;
  transform: translateX(calc(-100% + var(--sidebar-peek-width)));
  transition: transform .24s ease, box-shadow .24s ease;
  overflow: hidden;
}

.sidebar-panel:hover,
body.sidebar-peek .sidebar-panel {
  transform: translateX(0);
  box-shadow: 0 24px 60px rgba(2,8,23,.28);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 62px;
  border-radius: 22px;
  padding: .55rem;
  transition: background .2s ease;
}

.sidebar-brand:hover {
  background: rgba(255,255,255,.05);
}

.sidebar-link-text,
.sidebar-brand-copy,
.sidebar-section-label,
.sidebar-user-copy,
.sidebar-user-actions {
  transition: opacity .18s ease, transform .18s ease;
}

.sidebar-link-text,
.sidebar-brand-copy,
.sidebar-user-copy {
  min-width: 0;
}

.sidebar-link-text {
  display: block;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-link,
.sidebar-user-summary {
  display: flex;
  align-items: center;
}

.sidebar-link {
  justify-content: flex-start;
  gap: .8rem;
  min-height: 56px;
  padding: .7rem .95rem;
}

.sidebar-user-summary {
  gap: .8rem;
  min-height: 52px;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.sidebar-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
  background: rgba(255,255,255,.14);
}

.layout-auth .main-panel,
.layout-auth .site-footer {
  margin-left: var(--sidebar-peek-width) !important;
  transition: margin-left .24s ease;
}

body.sidebar-peek .main-panel,
body.sidebar-peek .site-footer {
  margin-left: var(--sidebar-width) !important;
}

.sidebar-mobile-overlay {
  display: none;
}

@media (max-width: 991.98px) {
  .sidebar-panel {
    display: none !important;
  }

  .layout-auth .main-panel,
  .layout-auth .site-footer,
  body.sidebar-peek .main-panel,
  body.sidebar-peek .site-footer {
    margin-left: 0 !important;
  }

  .mobile-topbar .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(7,14,27,.96);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px rgba(2,8,23,.28);
  }

  .mobile-topbar .nav-link,
  .mobile-topbar .btn {
    min-height: 48px;
  }

  .sidebar-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1025;
    background: rgba(2,8,23,.45);
    backdrop-filter: blur(3px);
  }

  .sidebar-mobile-overlay.show {
    display: block;
  }
}


.home-shell {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: flex-start;
}
.home-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.home-left-stack {
  display: grid;
  gap: 22px;
}
.home-panel {
  border-radius: 26px;
}
.home-login-panel {
  margin-top: 64px;
}
.home-register-panel {
  margin-top: 96px;
}
.page-home.layout-guest .app-shell > .container {
  max-width: 1280px;
}
.page-home .site-footer {
  margin-top: 2.5rem !important;
}
.page-home .footer-brand {
  font-weight: 700;
}
.page-home .site-footer .container {
  max-width: 1280px;
}
.page-home .site-footer footer {
  border-radius: 0;
}
@media (max-width: 1199.98px) {
  .home-grid {
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
    gap: 20px;
  }
  .home-login-panel,
  .home-register-panel {
    margin-top: 0;
  }
}
@media (max-width: 991.98px) {
  .home-shell {
    min-height: auto;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-register-panel {
    order: 2;
  }
  .home-left-stack {
    order: 1;
  }
}
