/* ============================================================
   VIPT CRM — Dark Luxury Editorial
   Bespoke CSS Framework. No Tabler. No Bootstrap look.
   ============================================================ */

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

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding-left: 1.5rem; }
img, svg { vertical-align: middle; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font: inherit; }
table { border-collapse: collapse; }

/* ── Variables ───────────────────────────────────────────── */
:root {
  --v-gold:        #c9a84c;
  --v-gold-light:  #e8d5a3;
  --v-gold-dim:    #8a7030;
  --v-dark:        #000000;
  --v-dark-2:      #050505;
  --v-surface:     #0a0a0a;
  --v-surface-2:   #111111;
  --v-surface-3:   #1a1a1a;
  --v-border:      rgba(255,255,255,0.03);
  --v-border-hover:rgba(255,255,255,0.07);
  --v-text:        #f0f0f0;
  --v-text-2:      #888888;
  --v-text-3:      #444444;
  --v-success:     #4ade80;
  --v-danger:      #f87171;
  --v-warning:     #fbbf24;
  --v-info:        #60a5fa;
  --v-glass:       rgba(10,10,10,0.8);
  --v-glass-border:rgba(255,255,255,0.04);
  --v-shadow:      none;
  --v-shadow-sm:   none;
  --v-radius:      6px;
  --v-radius-sm:   4px;
  --v-radius-xs:   4px;

  /* Backward compatibility */
  --vip-gold:       var(--v-gold);
  --vip-gold-light: var(--v-gold-light);
  --vip-dark:       var(--v-dark);
  --vip-surface:    var(--v-surface);
  --vip-surface-2:  var(--v-surface-2);
  --vip-border:     var(--v-border);
  --vip-text:       var(--v-text);
  --vip-muted:      var(--v-text-3);
  --vip-success:    var(--v-success);
  --vip-danger:     var(--v-danger);
  --vip-warning:    var(--v-warning);
  --vip-info:       var(--v-info);

  /* Component tokens */
  --body-bg:    var(--v-dark);
  --body-color: var(--v-text);
  --card-bg:    var(--v-surface);
  --card-border:var(--v-border);
  --input-bg:   transparent;
  --input-border:var(--v-border);
  --input-color:var(--v-text);
  --btn-radius: var(--v-radius-xs);
  --badge-radius: 100px;
}

body {
  background: var(--body-bg);
  color: var(--body-color);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Barlow', sans-serif; font-weight: 500; letter-spacing: -0.01em; }
h4, h5, h6 { font-family: 'Barlow', sans-serif; font-weight: 600; }
.small { font-size: 0.8125rem; }
.fs-5 { font-size: 1.15rem; }
.fw-bold { font-weight: 600; }
.text-decoration-none { text-decoration: none; }
.text-decoration-underline { text-decoration: underline; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-start { text-align: left; }

/* ── Colors ──────────────────────────────────────────────── */
.text-white { color: #fff; }
.text-muted { color: var(--v-text-3); }
.text-success { color: var(--v-success); }
.text-danger { color: var(--v-danger); }
.text-warning { color: var(--v-warning); }
.text-info { color: var(--v-info); }
.text-dark { color: var(--v-dark); }

.bg-success { background: var(--v-success) !important; }
.bg-danger { background: var(--v-danger) !important; }
.bg-warning { background: var(--v-warning) !important; }
.bg-info { background: var(--v-info) !important; }
.bg-dark { background: var(--v-dark) !important; }
.bg-transparent { background: transparent !important; }

.bg-success-lt { background: rgba(74,222,128,0.15) !important; color: var(--v-success) !important; }
.bg-danger-lt  { background: rgba(248,113,113,0.15) !important; color: var(--v-danger) !important; }
.bg-warning-lt { background: rgba(251,191,36,0.15) !important; color: var(--v-warning) !important; }
.bg-info-lt    { background: rgba(96,165,250,0.15) !important; color: var(--v-info) !important; }
.bg-primary-lt { background: rgba(100,149,237,0.15) !important; color: #7ba3ff !important; }
.bg-secondary-lt { background: rgba(136,136,136,0.15) !important; color: var(--v-text-2) !important; }
.bg-gold-lt    { background: rgba(201,168,76,0.15) !important; color: var(--v-gold) !important; }
.bg-dark-lt    { background: rgba(255,255,255,0.08) !important; color: var(--v-text-2) !important; }

/* ── Grid ────────────────────────────────────────────────── */
.container, .container-fluid, .container-xl, .container-tight {
  width: 100%; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem;
}
.container { max-width: 1200px; }
.container-xl { max-width: 1400px; }
.container-tight { max-width: 480px; }

.row {
  display: flex; flex-wrap: wrap;
  margin-left: -0.75rem; margin-right: -0.75rem;
}
.row > * {
  flex-shrink: 0; width: 100%; max-width: 100%;
  padding-left: 0.75rem; padding-right: 0.75rem;
}

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1  { flex: 0 0 auto; width: 8.33333333%; }
.col-2  { flex: 0 0 auto; width: 16.66666667%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.33333333%; }
.col-5  { flex: 0 0 auto; width: 41.66666667%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.33333333%; }
.col-8  { flex: 0 0 auto; width: 66.66666667%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

.g-0 { --gutter-x: 0; --gutter-y: 0; }
.g-1 { --gutter-x: 0.25rem; --gutter-y: 0.25rem; }
.g-2 { --gutter-x: 0.5rem; --gutter-y: 0.5rem; }
.g-3 { --gutter-x: 1rem; --gutter-y: 1rem; }
.g-4 { --gutter-x: 1.5rem; --gutter-y: 1.5rem; }
.g-0, .g-1, .g-2, .g-3, .g-4 { margin-left: calc(var(--gutter-x) * -1); margin-right: calc(var(--gutter-x) * -1); }
.g-0 > *, .g-1 > *, .g-2 > *, .g-3 > *, .g-4 > * { padding-left: var(--gutter-x); padding-right: var(--gutter-x); padding-bottom: var(--gutter-y); }

@media (min-width: 576px) {
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
}
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
}
@media (min-width: 992px) {
  .col-lg { flex: 1 0 0%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }
}
@media (min-width: 1200px) {
  .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
}

/* ── Display ─────────────────────────────────────────────── */
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-none { display: none !important; }
.d-md-inline-flex { display: inline-flex !important; }
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-inline-flex { display: inline-flex !important; }
}
@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
}
@media print {
  .d-print-none { display: none !important; }
}

/* ── Flexbox ─────────────────────────────────────────────── */
.flex-column { flex-direction: column !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-start { align-items: flex-start !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

/* ── Spacing ─────────────────────────────────────────────── */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-auto { margin-top: auto !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.ps-3 { padding-left: 1rem !important; }

@media (min-width: 992px) {
  .ms-lg-2 { margin-left: 0.5rem !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .pt-lg-3 { padding-top: 1rem !important; }
}

/* ── Sizing & Position ───────────────────────────────────── */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.position-relative { position: relative !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.cursor-pointer { cursor: pointer; }
.float-end { float: right !important; }

/* ── Borders ─────────────────────────────────────────────── */
.border-0 { border: 0 !important; }
.border-bottom { border-bottom: 1px solid var(--v-border) !important; }
.rounded-3 { border-radius: var(--v-radius-sm) !important; }

/* ── Visibility ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ── Transitions ─────────────────────────────────────────── */
.fade { transition: opacity 0.15s linear; }
.fade:not(.show) { opacity: 0; }
.collapse:not(.show) { display: none; }
.collapse.show { display: block; }

/* ── States ──────────────────────────────────────────────── */
.active { }
.disabled { pointer-events: none; opacity: 0.5; }

/* ── Antialiased ─────────────────────────────────────────── */
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--v-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--v-text-3); }
::selection { background: rgba(201,168,76,0.2); color: var(--v-text); }


/* ============================================================
   COMPONENTS — Dark Luxury Editorial
   ============================================================ */

/* ── Layout ──────────────────────────────────────────────── */
.wrapper {
  display: flex; min-height: 100vh;
}
.page-wrapper {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; margin-left: 220px;
}
.page-header {
  padding: 2rem 0 1rem; border-bottom: 1px solid var(--v-border);
}
.page-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.75rem; font-weight: 500; margin: 0; letter-spacing: 0;
  color: var(--v-text);
}
.page-body {
  flex: 1; padding: 1.5rem 0;
}
.footer {
  padding: 2rem 0; border-top: 1px solid var(--v-border);
  color: var(--v-text-3); font-size: 0.75rem; letter-spacing: 0.05em;
}
.footer-transparent { background: transparent; border-top-color: transparent; }

/* ── Navbar / Sidebar ────────────────────────────────────── */
.navbar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; padding: 0.5rem 1rem;
  position: relative;
}
.navbar-vertical {
  flex-direction: column; align-items: stretch;
  width: 220px; min-height: 100vh;
  background: var(--v-dark);
  border-right: 1px solid var(--v-border);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1040;
  overflow-y: auto; overflow-x: hidden;
}
.navbar-vertical .container-fluid {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.25rem 0;
}
.navbar-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0 1.25rem 1.25rem; margin: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 1.35rem; font-weight: 600; white-space: nowrap;
  color: var(--v-gold); letter-spacing: 0.04em;
}
h1.navbar-brand { margin: 0; }
.navbar-brand-autodark { filter: none; }
.navbar-toggler {
  padding: 0.25rem; font-size: 1.1rem; line-height: 1;
  background: transparent; border: none;
  color: var(--v-text-2);
  display: none;
}
.navbar-toggler-icon {
  display: inline-block; width: 1.25em; height: 1.25em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28136,136,136,0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: center; background-size: 100%;
}
.navbar-nav {
  display: flex; flex-direction: column; padding-left: 0; margin: 0; list-style: none;
}
.nav-item { list-style: none; }
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem; margin: 0.15rem 0;
  color: var(--v-text-3); font-size: 0.85rem; font-weight: 400;
  border-left: 2px solid transparent;
  border-radius: 0 var(--v-radius-xs) var(--v-radius-xs) 0;
  transition: all 0.15s ease;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--v-text);
  background: var(--v-surface-2);
}
.nav-link.active {
  color: var(--v-gold);
  border-left-color: var(--v-gold);
  background: var(--v-surface-2);
}
.nav-link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: inherit; opacity: 0.6;
}
.nav-link.active .nav-link-icon { opacity: 1; }
.nav-link-title { flex: 1; font-size: 0.85rem; }

/* Hide sidebar section labels (Dispatch, Management, Settings) */
.nav-item > span.nav-link-title { display: none; }
.nav-item.mt-2 { display: none; }

/* Visual spacing between nav groups */
.nav-item.mt-2 + .nav-item { margin-top: 1.25rem; }

.nav-section { flex: 1; }

.badge-nav {
  margin-left: auto;
  background: var(--v-danger);
  color: #000;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--v-border);
  margin-top: auto;
}
.nav-logout { color: var(--v-text-2); }
.nav-logout:hover { color: var(--v-text); }

/* Navbar collapse */
.navbar-collapse {
  flex-basis: 100%; flex-grow: 1; align-items: center;
}
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important; flex-basis: auto;
  }
}
@media (max-width: 991.98px) {
  .navbar-vertical {
    transform: translateX(-100%);
  }
  .navbar-vertical.show {
    transform: translateX(0);
  }
  .navbar-vertical.show .navbar-collapse {
    display: flex !important;
  }
  .page-wrapper {
    margin-left: 0 !important;
  }
  .navbar-toggler { display: block; }
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--v-radius);
  box-shadow: none;
  display: flex; flex-direction: column;
}
.card-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: none;
  background: transparent;
  display: flex; align-items: center;
}
.card-body { flex: 1 1 auto; padding: 0.75rem 1.5rem 1.25rem; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--v-border);
  background: transparent;
}
.card-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 500; font-size: 1.15rem; margin: 0; color: var(--v-text);
}
.card-subtitle { font-size: 0.8125rem; color: var(--v-text-3); margin-top: 0.25rem; }
.card-options { margin-left: auto; display: flex; gap: 0.5rem; }
.card-table { margin: 0; }
.card-table > .table { margin-bottom: 0; }
.card-img-top {
  width: 100%; border-top-left-radius: var(--v-radius); border-top-right-radius: var(--v-radius);
}

/* ── Tables ──────────────────────────────────────────────── */
.table {
  width: 100%; color: var(--v-text); vertical-align: middle;
  margin-bottom: 0; font-size: 0.875rem;
}
.table > :not(caption) > * > * {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--v-border);
  background: transparent;
}
.table > thead > * > * {
  font-family: 'Barlow', sans-serif;
  font-weight: 500; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--v-text-3);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--v-border);
}
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-vcenter > tbody > tr > * { vertical-align: middle; }
.table-striped > tbody > tr:nth-child(odd) > * { background: rgba(255,255,255,0.01); }
.table-sm > :not(caption) > * > * { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }

/* ── Forms ───────────────────────────────────────────────── */
.form-label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--v-text-3);
}
.form-control, .form-select {
  display: block; width: 100%;
  padding: 0.6rem 0.85rem; font-size: 0.875rem; line-height: 1.5;
  color: var(--input-color); background: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: var(--btn-radius);
  appearance: none; transition: border-color 0.15s;
}
.form-control:focus, .form-select:focus {
  outline: none; border-color: var(--v-gold-dim);
  box-shadow: none;
}
.form-control::placeholder { color: var(--v-text-3); opacity: 0.5; }
.form-control-lg { padding: 0.75rem 1rem; font-size: 1rem; }
.form-control-sm, .form-select-sm { padding: 0.4rem 0.6rem; font-size: 0.8125rem; }
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23444444' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 14px 10px;
  padding-right: 2.5rem;
}
.form-check {
  display: flex; align-items: center; gap: 0.5rem;
  min-height: 1.5rem; padding-left: 1.75rem; margin-bottom: 0.5rem;
}
.form-check-input {
  width: 1rem; height: 1rem;
  background: transparent; border: 1px solid var(--input-border);
  border-radius: 0.2rem; appearance: none; cursor: pointer;
  margin-left: -1.75rem; flex-shrink: 0;
}
.form-check-input:checked {
  background: var(--v-gold); border-color: var(--v-gold);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-size: 75%; background-position: center; background-repeat: no-repeat;
}
.form-check-label { font-size: 0.875rem; color: var(--v-text-2); cursor: pointer; }
.form-switch .form-check-input {
  width: 2rem; height: 1.1rem; border-radius: 2rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23444444'/%3e%3c/svg%3e");
  background-size: contain; background-position: left center;
  transition: background-position 0.15s;
}
.form-switch .form-check-input:checked {
  background-position: right center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23000'/%3e%3c/svg%3e");
}
.form-hint { font-size: 0.75rem; color: var(--v-text-3); margin-top: 0.35rem; }
.form-footer { margin-top: 1.5rem; }
.input-group {
  display: flex; align-items: stretch; width: 100%;
}
.input-group > .form-control, .input-group > .form-select {
  position: relative; flex: 1 1 auto; width: 1%; min-width: 0;
}
.input-group > :not(:first-child) {
  border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px;
}
.input-group > :not(:last-child) {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 500; line-height: 1.5;
  text-align: center; white-space: nowrap; vertical-align: middle;
  border: 1px solid transparent; border-radius: var(--btn-radius);
  background: transparent; color: var(--v-text);
  transition: all 0.15s ease; cursor: pointer; text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover { opacity: 0.85; }
.btn:disabled, .btn.disabled { opacity: 0.4; pointer-events: none; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.75rem; }
.btn-group { display: inline-flex; vertical-align: middle; }
.btn-group > .btn { position: relative; flex: 1 1 auto; }
.btn-group > .btn:not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.btn-primary { background: var(--v-gold); border-color: var(--v-gold); color: #000; }
.btn-primary:hover { opacity: 1; background: var(--v-gold-light); border-color: var(--v-gold-light); }
.btn-success { background: var(--v-success); border-color: var(--v-success); color: #000; }
.btn-danger { background: var(--v-danger); border-color: var(--v-danger); color: #000; }
.btn-warning { background: var(--v-warning); border-color: var(--v-warning); color: #000; }
.btn-info { background: var(--v-info); border-color: var(--v-info); color: #000; }
.btn-secondary { background: var(--v-surface-2); border-color: var(--v-border); color: var(--v-text); }
.btn-secondary:hover { background: var(--v-surface-3); border-color: var(--v-border-hover); color: var(--v-text); }

.btn-outline-secondary { background: transparent; border-color: var(--v-text-3); color: var(--v-text-2); }
.btn-outline-secondary:hover { background: var(--v-surface-2); color: var(--v-text); opacity: 1; }
.btn-outline-success { background: transparent; border-color: var(--v-success); color: var(--v-success); }
.btn-outline-success:hover { background: var(--v-success); color: #000; opacity: 1; }
.btn-outline-warning { background: transparent; border-color: var(--v-warning); color: var(--v-warning); }
.btn-outline-warning:hover { background: var(--v-warning); color: #000; opacity: 1; }

.btn-ghost-secondary { background: transparent; border-color: var(--v-border); color: var(--v-text-2); }
.btn-ghost-secondary:hover { background: transparent; border-color: var(--v-border-hover); color: var(--v-text); opacity: 1; }
.btn-ghost-danger { background: transparent; border-color: rgba(248,113,113,0.2); color: var(--v-danger); }
.btn-ghost-danger:hover { background: rgba(248,113,113,0.08); opacity: 1; }
.btn-ghost-gold { background: transparent; border-color: rgba(201,168,76,0.2); color: var(--v-gold); }
.btn-ghost-gold:hover { background: rgba(201,168,76,0.08); opacity: 1; }
.btn-ghost-warning { background: transparent; border-color: rgba(251,191,36,0.2); color: var(--v-warning); }
.btn-ghost-warning:hover { background: rgba(251,191,36,0.08); opacity: 1; }

.btn-vip {
  background: var(--v-gold); border-color: var(--v-gold); color: #000; font-weight: 600;
}
.btn-vip:hover { background: var(--v-gold-light); border-color: var(--v-gold-light); opacity: 1; }
.btn-outline-vip { background: transparent; border-color: var(--v-gold-dim); color: var(--v-gold); }
.btn-outline-vip:hover { background: rgba(201,168,76,0.1); opacity: 1; }

.btn-close {
  width: 1.25rem; height: 1.25rem; padding: 0.2rem;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23444444'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0; border-radius: 0.25rem; opacity: 0.6; cursor: pointer;
}
.btn-close:hover { opacity: 1; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.25em 0.6em; font-size: 0.7rem; font-weight: 500;
  line-height: 1.4; text-align: center; white-space: nowrap;
  border-radius: var(--badge-radius); vertical-align: middle;
  letter-spacing: 0.02em;
}
.bg-warning.text-dark { color: #000 !important; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
  border-left: 2px solid transparent;
  background: transparent;
  font-size: 0.875rem;
}
.alert-success { border-left-color: var(--v-success); color: var(--v-success); background: rgba(74,222,128,0.04); }
.alert-danger { border-left-color: var(--v-danger); color: var(--v-danger); background: rgba(248,113,113,0.04); }
.alert-warning { border-left-color: var(--v-warning); color: var(--v-warning); background: rgba(251,191,36,0.04); }
.alert-link { font-weight: 500; text-decoration: underline; color: inherit; }

/* ── Modals ──────────────────────────────────────────────── */
.modal {
  position: fixed; top: 0; left: 0; z-index: 1060;
  display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto;
  outline: 0; background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center;
}
.modal.show { display: flex; }
.modal-dialog {
  position: relative; width: auto; margin: 0.5rem;
  max-width: 520px; pointer-events: none;
}
.modal-dialog-scrollable { max-height: calc(100% - 1rem); display: flex; flex-direction: column; }
.modal-dialog-scrollable .modal-content { max-height: calc(100vh - 1rem); overflow: hidden; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }
.modal-content {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--v-surface); border: 1px solid var(--v-border);
  border-radius: var(--v-radius); pointer-events: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--v-border);
}
.modal-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.25rem; font-weight: 500; margin: 0;
}
.modal-body { padding: 1.25rem 1.5rem; flex: 1 1 auto; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--v-border);
}
@media (min-width: 576px) {
  .modal-dialog { margin: 1.75rem auto; }
  .modal-dialog-scrollable { max-height: calc(100% - 3.5rem); }
}

/* ── Dropdowns ───────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
  position: absolute; z-index: 1000; display: none;
  min-width: 10rem; padding: 0.5rem 0; margin: 0;
  font-size: 0.875rem; color: var(--v-text); text-align: left;
  list-style: none; background: var(--v-surface-2);
  border: 1px solid var(--v-border); border-radius: var(--v-radius-xs);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; }
.dropdown-item {
  display: block; width: 100%; padding: 0.4rem 1rem;
  clear: both; font-weight: 400; color: var(--v-text);
  text-align: inherit; text-decoration: none; white-space: nowrap;
  background: transparent; border: 0; cursor: pointer;
  font-size: 0.8125rem;
}
.dropdown-item:hover { background: rgba(255,255,255,0.03); }
.dropdown-divider { height: 0; margin: 0.5rem 0; border-top: 1px solid var(--v-border); }

/* ── Lists ───────────────────────────────────────────────── */
.list-group {
  display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0;
  border-radius: var(--v-radius-xs);
}
.list-group-item {
  position: relative; display: block; padding: 0.875rem 1.25rem;
  color: var(--v-text); background: transparent;
  border: none; border-bottom: 1px solid var(--v-border);
  text-decoration: none; font-size: 0.875rem;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list-group-item:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.list-group-item-action { cursor: pointer; }
.list-group-item-action:hover { background: rgba(255,255,255,0.015); }
.list-group-flush > .list-group-item { border-width: 0 0 1px; border-radius: 0; }
.list-group-flush > .list-group-item:last-child { border-bottom-width: 0; }

.list-inline { padding-left: 0; list-style: none; }
.list-inline-item { display: inline-block; }
.list-inline-item:not(:last-child) { margin-right: 0.5rem; }
.list-inline-dots > .list-inline-item:not(:last-child)::after {
  content: "\00b7"; margin-left: 0.5rem; color: var(--v-text-3);
}
.list-unstyled { padding-left: 0; list-style: none; }

/* ── Section ─────────────────────────────────────────────── */
.section { margin-bottom: 2.5rem; }
.section-title {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--v-text-3); margin-bottom: 1rem; font-weight: 500;
}


/* ============================================================
   VIPT-SPECIFIC STYLES — Dark Luxury Editorial
   ============================================================ */

/* ── Logo ────────────────────────────────────────────────── */
.vip-logo-text {
  font-family: 'Barlow', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--v-gold);
}

/* ── Sidebar extra ───────────────────────────────────────── */
.vip-sidebar .nav-link {
  color: var(--v-text-3);
  border-left: 2px solid transparent;
  padding: 0.5rem 1.25rem;
  margin: 0;
}
.vip-sidebar .nav-link:hover {
  color: var(--v-text);
  background: transparent;
}
.vip-sidebar .nav-link.active {
  color: var(--v-gold);
  border-left-color: var(--v-gold);
  background: transparent;
}

/* ── Mobile Header ───────────────────────────────────────── */
.mobile-header {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--v-border);
  background: var(--v-dark);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.mobile-header .navbar-toggler {
  display: none;
  padding: 0.25rem;
  background: transparent;
  border: none;
  color: var(--v-text-2);
}
@media (max-width: 991.98px) {
  .mobile-header {
    display: flex;
  }
  .mobile-header .navbar-toggler {
    display: block;
  }
  .navbar-vertical .navbar-toggler {
    display: none;
  }
}

/* ── Sidebar User Section ────────────────────────────────── */
.vip-sidebar-user {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--v-border);
}
.vip-sidebar-user .vip-avatar {
  width: 28px; height: 28px;
  font-size: 0.75rem;
}
.vip-sidebar-user-name {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--v-text);
}
.vip-sidebar-user-role {
  font-size: 0.7rem; color: var(--v-text-3);
  text-transform: capitalize; letter-spacing: 0.02em;
}
.vip-sidebar-logout {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0;
  color: var(--v-danger);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.vip-sidebar-logout:hover { opacity: 0.8; }

/* ── Status Badges ───────────────────────────────────────── */
.status-badge, .payment-badge, .priority-badge, .driver-status-badge, .vip-job-type-badge {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em;
}

/* ── Welcome Banner ──────────────────────────────────────── */
.vip-welcome-banner {
  background: var(--v-surface);
  border: none;
  border-radius: var(--v-radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.vip-welcome-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.vip-welcome-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--v-gold); color: #000;
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vip-welcome-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.2rem; font-weight: 500;
}
.vip-welcome-sub { font-size: 0.8125rem; color: var(--v-text-3); margin-top: 2px; }

/* ── Stat Cards ──────────────────────────────────────────── */
.vip-revenue-card { border-left: 1px solid var(--v-gold-dim); }
.stat-label {
  font-size: 0.6rem; color: var(--v-text-3);
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500;
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem; font-weight: 500; line-height: 1.2; margin-top: 6px;
  letter-spacing: -0.02em;
}

/* ── Job Cards ───────────────────────────────────────────── */
.vip-job-card {
  border-left: 1px solid var(--v-border);
  transition: background 0.15s ease;
}
.vip-job-card:hover {
  background: #0d0d0d;
  border-left-color: var(--v-border-hover);
}
.vip-job-urgent { border-left-color: var(--v-danger) !important; }
.vip-job-card .job-route { font-size: 0.875rem; color: var(--v-text-2); line-height: 1.5; }
.vip-job-card .job-meta { font-size: 0.75rem; color: var(--v-text-3); }
.vip-job-card .vip-job-note {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--v-radius-xs);
  color: var(--v-text-2);
  font-size: 0.8125rem;
}

/* ── Phone Link ──────────────────────────────────────────── */
.vip-phone-link { color: var(--v-gold); text-decoration: none; font-size: 0.8125rem; }
.vip-phone-link:hover { opacity: 0.8; color: var(--v-gold-light); }

/* ── Row urgency ─────────────────────────────────────────── */
.vip-row-urgent { border-left: 2px solid var(--v-danger) !important; }

/* ── Autocomplete ────────────────────────────────────────── */
.vip-autocomplete-drop {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1050;
  background: var(--v-surface-2); border: 1px solid var(--v-border);
  border-radius: var(--v-radius-xs);
  max-height: 220px; overflow-y: auto;
}

/* ── Toast Notifications ─────────────────────────────────── */
.vip-toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.vip-toast {
  background: var(--v-surface-2); border: 1px solid var(--v-border);
  border-left: 2px solid var(--v-gold); border-radius: var(--v-radius-xs);
  padding: 0.875rem 1.25rem; color: var(--v-text); font-size: 0.875rem;
  pointer-events: auto;
  animation: toastIn 0.25s ease;
}
.vip-toast.is-success { border-left-color: var(--v-success); }
.vip-toast.is-error   { border-left-color: var(--v-danger); }
.vip-toast.is-warning { border-left-color: var(--v-warning); }
.vip-toast.is-info    { border-left-color: var(--v-info); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Notifications ───────────────────────────────────────── */
.vip-notif-drop {
  display: none; position: absolute; top: 48px; right: 0; width: 320px;
  background: var(--v-surface-2); border: 1px solid var(--v-border);
  border-radius: var(--v-radius-sm);
  z-index: 1100; overflow: hidden;
}
.vip-notif-drop.is-open { display: block; }
.vip-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--v-border);
  font-size: 0.8125rem; font-weight: 500;
}
.vip-notif-mark-read {
  background: none; border: none; color: var(--v-gold); font-size: 0.7rem;
  cursor: pointer; padding: 0; letter-spacing: 0.05em;
}
.vip-notif-mark-read:hover { text-decoration: underline; }
.vip-notif-list { max-height: 320px; overflow-y: auto; padding: 0.25rem 0; }
.vip-notif-empty { padding: 1.5rem; text-align: center; color: var(--v-text-3); font-size: 0.8125rem; }
.vip-notif-item {
  display: flex; gap: 0.75rem; padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--v-border); font-size: 0.8125rem;
  color: var(--v-text-2); transition: background 0.1s; cursor: pointer;
}
.vip-notif-item:last-child { border-bottom: none; }
.vip-notif-item:hover { background: rgba(255,255,255,0.015); }
.vip-notif-item.is-new { color: var(--v-text); }
.vip-notif-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--v-gold);
  flex-shrink: 0; margin-top: 5px;
}
.vip-notif-note { font-size: 0.8125rem; line-height: 1.4; }
.vip-notif-meta { font-size: 0.7rem; color: var(--v-text-3); margin-top: 2px; }

/* ── Topbar ──────────────────────────────────────────────── */
.vip-topbar {
  background: var(--v-dark);
  border-bottom: 1px solid var(--v-border);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.vip-topbar-search { position: relative; flex: 1; max-width: 320px; }
.vip-topbar-search-input {
  background: transparent; border: 1px solid var(--v-border);
  border-radius: var(--v-radius-xs); padding: 0.4rem 0.8rem 0.4rem 2rem;
  color: var(--v-text); width: 100%; font-size: 0.8125rem;
}
.vip-topbar-search-input:focus {
  outline: none; border-color: var(--v-border-hover);
}
.vip-topbar-search-icon {
  position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%);
  color: var(--v-text-3); font-size: 0.8rem;
}
.vip-bell-btn {
  background: transparent; border: 1px solid var(--v-border);
  border-radius: var(--v-radius-xs); color: var(--v-text-3);
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all 0.15s; position: relative;
}
.vip-bell-btn:hover { border-color: var(--v-border-hover); color: var(--v-text); }
.vip-bell-badge {
  position: absolute; top: -3px; right: -3px; background: var(--v-danger);
  color: #000; font-size: 0.55rem; font-weight: 600;
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Calendar ────────────────────────────────────────────── */
.vip-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--v-border); border: 1px solid var(--v-border); }
.vip-cal-dayname { text-align: center; font-size: 0.65rem; color: var(--v-text-3); padding: 0.5rem 0; text-transform: uppercase; letter-spacing: 0.1em; background: var(--v-surface-2); }
.vip-cal-cell { min-height: 90px; background: var(--v-surface); padding: 6px; cursor: pointer; transition: background 0.15s; }
.vip-cal-cell:hover { background: var(--v-surface-2); }
.vip-cal-empty { min-height: 90px; background: var(--v-surface); opacity: 0.5; }
.vip-cal-daynum { font-size: 0.8rem; font-weight: 500; font-family: 'JetBrains Mono', monospace; color: var(--v-text-2); margin-bottom: 4px; }
.vip-cal-today { background: rgba(201,168,76,0.08) !important; }
.vip-cal-today .vip-cal-daynum { color: var(--v-gold); font-weight: 600; }

/* Job entry row inside calendar cell */
.vip-cal-dot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--v-text);
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 0 var(--v-radius-xs) var(--v-radius-xs) 0;
  border-left: 3px solid;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-cal-dot-time { font-size: 0.65rem; color: var(--v-text-3); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.vip-cal-more { font-size: 0.65rem; color: var(--v-text-3); padding-left: 4px; margin-top: 2px; }

/* ── Bottom Navigation (Mobile Driver) ───────────────────── */
.vip-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
  background: var(--v-dark); border-top: 1px solid var(--v-border);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}
.vip-bottom-nav .nav-item {
  flex: 1; text-align: center; color: var(--v-text-3); text-decoration: none;
  padding: 0.35rem 0; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.05em;
  transition: color 0.15s; border: none; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-transform: uppercase;
}
.vip-bottom-nav .nav-item i { font-size: 1.2rem; }
.vip-bottom-nav .nav-item.active { color: var(--v-gold); }
.vip-bottom-nav .nav-item:active { opacity: 0.7; }

/* ── Floating Action Button ──────────────────────────────── */
.vip-fab {
  position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom)); right: 1rem;
  z-index: 1030; width: 52px; height: 52px; border-radius: 50%;
  background: var(--v-gold); color: #000; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer; transition: opacity 0.15s;
}
.vip-fab:hover { opacity: 0.85; }

/* ── Skeleton Loading ────────────────────────────────────── */
.vip-skeleton {
  background: linear-gradient(90deg, var(--v-surface-2) 25%, var(--v-surface-3) 50%, var(--v-surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--v-radius-xs);
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.35s ease both; }

/* ── Avatar & Activity ───────────────────────────────────── */
.vip-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--v-gold); color: #000;
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.vip-activity-list { list-style: none; padding: 0; margin: 0; }
.vip-activity-item {
  display: flex; gap: 12px; padding: 0.75rem 0;
  border-bottom: 1px solid var(--v-border); align-items: flex-start;
}
.vip-activity-item:last-child { border-bottom: none; }
.vip-activity-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--v-gold);
  flex-shrink: 0; margin-top: 7px;
}

.vip-profile-stat {
  text-align: center; padding: 1rem 0.5rem;
  border-right: 1px solid var(--v-border);
}
.vip-profile-stat:last-child { border-right: none; }

.vip-revenue-icon {
  width: 40px; height: 40px; border-radius: var(--v-radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.vip-revenue-label { font-size: 0.6rem; color: var(--v-text-3); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.vip-revenue-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem; font-weight: 500; color: var(--v-text); line-height: 1.2; margin-top: 4px;
}

.vip-driver-card {
  transition: background 0.15s;
}
.vip-driver-card:hover { background: #0d0d0d; }

.vip-modal-job { transition: background 0.1s; cursor: pointer; }
.vip-modal-job:hover { background: rgba(201,168,76,0.04); }

.vip-chart-wrap { position: relative; height: 280px; }

.vip-topbar-actions { display: flex; align-items: center; gap: 0.75rem; position: relative; }

/* ── Print Styles ────────────────────────────────────────── */
.print-header { margin-bottom: 1.5rem; }
.print-wrap { max-width: 800px; margin: 0 auto; background: #fff; color: #000; padding: 2rem; }
.no-print { }

/* ── Route & Address ─────────────────────────────────────── */
.route-box { display: flex; align-items: flex-start; gap: 0.5rem; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.dot-pickup { background: var(--v-success); }
.dot-dropoff { background: var(--v-danger); }
.route-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.addr-row { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.5rem; }
.remove-addr { color: var(--v-danger); cursor: pointer; font-size: 0.75rem; }
.add-addr { color: var(--v-gold); cursor: pointer; font-size: 0.8125rem; }

/* ── Party / Fields ──────────────────────────────────────── */
.party { margin-bottom: 1rem; padding: 0.75rem; border: 1px solid var(--v-border); border-radius: var(--v-radius-xs); }
.party-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--v-text-3); margin-bottom: 0.25rem; font-weight: 500; }
.party-name { font-weight: 500; }
.party-detail { font-size: 0.8125rem; color: var(--v-text-2); }
.field-label { font-size: 0.65rem; color: var(--v-text-3); margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.1em; }
.field-value { font-weight: 500; }
.field-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--v-border); }
.time-field { font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; }

/* ── Job Actions & Meta ──────────────────────────────────── */
.job-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.job-meta { font-size: 0.75rem; color: var(--v-text-3); }
.job-route { font-size: 0.875rem; color: var(--v-text-2); line-height: 1.5; }
.job-id { font-size: 0.7rem; color: var(--v-text-3); font-family: 'JetBrains Mono', monospace; }

/* ── Invoice ─────────────────────────────────────────────── */
.inv-header { margin-bottom: 2rem; }
.inv-num { font-family: 'Barlow', sans-serif; font-size: 1.5rem; font-weight: 600; }
.inv-date { font-size: 0.8125rem; color: var(--v-text-3); }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.grand-total { font-family: 'JetBrains Mono', monospace; font-size: 1.15rem; font-weight: 500; text-align: right; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--v-border); }
.signature-line { border-top: 1px solid var(--v-text-3); margin-top: 3rem; padding-top: 0.5rem; font-size: 0.75rem; color: var(--v-text-3); width: 250px; }

/* ── Acceptance Bar ──────────────────────────────────────── */
.acceptance-bar { width: 100%; height: 3px; background: var(--v-surface-3); border-radius: 2px; overflow: hidden; margin-top: 0.5rem; }
.acceptance-bar-fill { height: 100%; background: var(--v-gold); border-radius: 2px; transition: width 0.3s ease; }

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 1.25rem; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--v-border); }

/* ── Notes Box ───────────────────────────────────────────── */
.notes-box { background: rgba(201,168,76,0.03); border: 1px solid rgba(201,168,76,0.08); border-radius: var(--v-radius-xs); padding: 0.75rem; font-size: 0.8125rem; color: var(--v-text-2); }

/* ── Wrap ────────────────────────────────────────────────── */
.wrap { word-break: break-word; }

/* ── Line Items ──────────────────────────────────────────── */
.line-items { width: 100%; }

/* ── Footer Print ────────────────────────────────────────── */
.footer-line { border-top: 1px solid var(--v-border); margin-top: 2rem; padding-top: 1rem; }
.footer-note { font-size: 0.75rem; color: var(--v-text-3); letter-spacing: 0.05em; }

/* ── Company Sub ─────────────────────────────────────────── */
.company-sub { font-size: 0.7rem; color: var(--v-text-3); letter-spacing: 0.05em; }

/* ── Decline / Cancel ────────────────────────────────────── */
.decline-reason-wrap, .cancel-reason-wrap { margin-top: 0.75rem; }
.cancel-reason-select, .decline-reason-select { width: 100%; }
.btn-cancel-wrap { margin-top: 0.75rem; }
.btn-decline { background: transparent; border: 1px solid var(--v-danger); color: var(--v-danger); }

/* ── Assign Driver ───────────────────────────────────────── */
.assign-driver-select { width: 100%; }

/* ── Availability ────────────────────────────────────────── */
.avail-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--v-border); }
.avail-toggle { display: flex; align-items: center; gap: 0.5rem; }

/* ── Row Check ───────────────────────────────────────────── */
.row-check { width: 16px; height: 16px; cursor: pointer; }

/* ── Payment Cycle ───────────────────────────────────────── */
.payment-cycle-btn { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ── Client Portal ───────────────────────────────────────── */
.client-navbar { background: var(--v-dark); border-bottom: 1px solid var(--v-border); position: sticky; top: 0; z-index: 1030; }
.client-navbar .navbar-brand { color: var(--v-gold); font-family: 'Barlow', sans-serif; font-weight: 600; letter-spacing: .08em; font-size: 1.1rem; }
.client-navbar .nav-link { color: var(--v-text-3); font-size: 0.8125rem; font-weight: 400; padding: 0.5rem 0.75rem; border-radius: var(--v-radius-xs); transition: all 0.15s; }
.client-navbar .nav-link:hover, .client-navbar .nav-link.active { color: var(--v-gold); background: rgba(201,168,76,0.05); }
.client-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--v-gold); color: #000; font-weight: 600; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }

/* ── Booking ─────────────────────────────────────────────── */
.booking-brand { font-family: 'Barlow', sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.08em; color: var(--v-gold); }
.booking-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.booking-card { width: 100%; max-width: 480px; }

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  body { font-size: 14px; }
}

@media (max-width: 768px) {
  .vip-bottom-nav { display: flex; }
  .driver-page .page-body { padding-bottom: 80px !important; }
  .card-body { padding: 1rem; }
  .card-header { padding: 1rem 1rem 0.5rem; }
  .vip-job-card .job-actions .btn,
  .vip-job-card .job-actions a.btn { min-height: 48px; }
  .vip-job-card .decline-reason-wrap textarea { font-size: 1rem; }
  .table-responsive { font-size: 0.8125rem; }
  .table td { padding: 0.65rem 0.75rem; }
  .vip-topbar { padding: 0.6rem 1rem; }
  .vip-topbar-search { max-width: 100%; }
  .vip-welcome-title { font-size: 1.1rem; }
  .vip-welcome-sub { font-size: 0.78rem; }
  .vip-cal-cell { min-height: 55px; padding: 4px; }
  .vip-cal-dot-time { display: none; }
  .vip-notif-drop { width: 280px; }
  .form-control, .form-select { min-height: 44px; }
  .modal-dialog { margin: 0.5rem; }
  .page-wrapper { margin-left: 0 !important; }
  .page-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .vip-job-card .job-actions .d-flex.gap-2 { flex-wrap: wrap; }
  .vip-job-card .job-actions .d-flex.gap-2 > .btn,
  .vip-job-card .job-actions .d-flex.gap-2 > a.btn { flex: 1 1 45%; min-width: 120px; }
}

/* ============================================================
   Notifications Dropdown
   ============================================================ */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: 92vw;
  background: var(--v-surface-2);
  border: 1px solid var(--v-border-hover);
  border-radius: var(--v-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
}

.notif-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--v-border);
  background: var(--v-surface-3);
}

.notif-header strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--v-text);
}

.notif-mark-read {
  background: none;
  border: none;
  color: var(--v-gold);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.notif-mark-read:hover {
  color: var(--v-gold-light);
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--v-text-2);
  font-size: 0.85rem;
}

.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--v-border);
  transition: background 0.2s ease;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255,255,255,0.03);
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v-text-3);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.notif-new .notif-dot {
  background: var(--v-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-note {
  color: var(--v-text);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.notif-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--v-text-2);
  font-size: 0.75rem;
}

.notif-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 0.5rem;
  color: var(--v-text-3);
}

.icon-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--v-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.icon-badge.has-unread {
  opacity: 1;
}

.icon-btn {
  position: relative;
}
