/* ═══════════════════════════════════════════════════════════════════════════
   TRIPDESK DESIGN SYSTEM
   "Run your transport business smarter"
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
    /* Brand — TripDesk Identity */
    --c-brand: #2563EB; /* TripDesk Blue */
    --c-brand-hover: #1D4ED8; /* Deeper Blue */
    --c-brand-light: #EFF6FF; /* Ice Blue tint */
    --c-brand-mid: #BFDBFE; /* Soft Blue */
    --c-brand-dark: #0D1B2A; /* TripDesk Navy */
    /* Accent — The Road */
    --c-accent: #FF8A00; /* TripDesk Orange */
    --c-accent-hover: #E67D00; /* Burnt Orange */
    --c-accent-light: #FFF7ED; /* Cream Orange */
    --c-accent-mid: #FED7AA; /* Soft Orange */
    /* Neutrals */
    --c-bg: #F8FAFC;
    --c-surface: #FFFFFF;
    --c-surface-2: #F1F5F9;
    --c-surface-3: #F2F4F7; /* From brand swatch */
    --c-border: #E2E8F0;
    --c-border-dark: #CBD5E1;
    /* Text */
    --c-text: #0F172A; /* Navy Black */
    --c-text-2: #475569; /* Slate */
    --c-text-3: #94A3B8; /* Muted */
    --c-text-inverse: #FFFFFF;
    /* Status */
    --c-success: #16A34A;
    --c-success-bg: #F0FDF4;
    --c-success-mid: #BBF7D0;
    --c-warning: #D97706;
    --c-warning-bg: #FFF7ED; /* Harmonized with orange */
    --c-warning-mid: #FED7AA; /* Harmonized with orange */
    --c-danger: #DC2626;
    --c-danger-bg: #FEF2F2;
    --c-danger-mid: #FECACA;
    --c-info: #0284C7;
    --c-info-bg: #F0F9FF;
    --c-info-mid: #BAE6FD;
    --c-purple: #7C3AED;
    --c-purple-bg: #F3E8FF;
    --c-purple-mid: #E9D5FF;
    /* Sidebar — TripDesk Dark Mode */
    --sidebar-w: 260px;
    --sidebar-bg: #0D1B2A; /* TripDesk Navy */
    --sidebar-bg-hover: #162536; /* Slightly lifted */
    --sidebar-text: #94A3B8;
    --sidebar-active: #FFFFFF;
    --sidebar-accent: #2563EB; /* Blue glow */
    --sidebar-accent-line: #FF8A00; /* Orange road line */
    /* Spacing */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 9999px;
    /* Shadows — Softer, more premium */
    --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 1px 3px rgba(13, 27, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(13, 27, 42, 0.08), 0 2px 4px -2px rgba(13, 27, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(13, 27, 42, 0.10), 0 4px 6px -4px rgba(13, 27, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(13, 27, 42, 0.12), 0 8px 10px -6px rgba(13, 27, 42, 0.04);
    --shadow-brand: 0 4px 14px rgba(37, 99, 235, 0.25); /* Blue glow */
    --shadow-accent: 0 4px 14px rgba(255, 138, 0, 0.25); /* Orange glow */
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 120ms var(--ease);
    --t-mid: 220ms var(--ease);
    --t-slow: 350ms var(--ease);
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

a {
    color: var(--c-brand);
    text-decoration: none;
    transition: color var(--t-fast);
}

    a:hover {
        color: var(--c-brand-hover);
        text-decoration: none;
    }

button {
    cursor: pointer;
    font: inherit;
    border: none;
    background: none;
    transition: all var(--t-fast);
}

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--c-text);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--c-border-dark);
    border-radius: var(--r-full);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--c-text-3);
    }

/* ── SELECTION ───────────────────────────────────────────────────────────── */
::selection {
    background: var(--c-brand-mid);
    color: var(--c-brand-dark);
}

/* ── FOCUS RING ─────────────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* ── UTILITY CLASSES ─────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--c-bg);
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    transition: transform var(--t-mid);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand__logo {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: var(--shadow-brand);
}

.sidebar-brand__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text-inverse);
    letter-spacing: -0.03em;
}

    .sidebar-brand__text span {
        color: var(--c-brand);
    }

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav__group {
    margin-bottom: 1.5rem;
}

.sidebar-nav__label {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.6);
}

.sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--r-md);
    color: var(--sidebar-text);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    transition: all var(--t-fast);
}

    .sidebar-nav__link:hover {
        background: var(--sidebar-bg-hover);
        color: rgba(255, 255, 255, 0.9);
    }

.sidebar-nav__link--active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--sidebar-active);
}

    .sidebar-nav__link--active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: var(--c-accent); /* Orange road line */
        border-radius: 0 3px 3px 0;
    }

.sidebar-nav__icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    flex-shrink: 0;
}

.sidebar-nav__link--active .sidebar-nav__icon {
    opacity: 1;
    color: var(--c-brand);
}

/* ── MAIN CONTENT ────────────────────────────────────────────────────────── */
.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── TOP HEADER ───────────────────────────────────────────────────────────── */
.topbar {
    height: 64px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
}

.topbar__search {
    position: relative;
    width: 320px;
}

    .topbar__search input {
        width: 100%;
        padding: 0.5rem 0.75rem 0.5rem 2.25rem;
        border: 1px solid var(--c-border);
        border-radius: var(--r-md);
        background: var(--c-surface-2);
        font-size: 0.9375rem;
        color: var(--c-text);
        transition: all var(--t-fast);
    }

        .topbar__search input:focus {
            outline: none;
            border-color: var(--c-brand-mid);
            background: var(--c-surface);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .topbar__search input::placeholder {
            color: var(--c-text-3);
        }

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--t-fast);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--c-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

    .btn--primary:hover {
        background: var(--c-brand-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }

.btn--accent {
    background: var(--c-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

    .btn--accent:hover {
        background: var(--c-accent-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255, 138, 0, 0.35);
    }

.btn--secondary {
    background: var(--c-surface-2);
    color: var(--c-text);
    border: 1px solid var(--c-border);
}

    .btn--secondary:hover {
        background: var(--c-surface-3);
        border-color: var(--c-border-dark);
    }

.btn--ghost {
    background: transparent;
    color: var(--c-text-2);
}

    .btn--ghost:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

.btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--r-sm);
}

.btn--lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

.btn--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--r-md);
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */


    .card:hover {
        box-shadow: var(--shadow-md);
    }

.card--interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
}

.card__body {
    padding: 1.5rem;
}

/* ── STATS / KPI ─────────────────────────────────────────────────────────── */
.stat-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-2);
    margin-bottom: 0.5rem;
}

.stat-card__value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-card__change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-card__change--up {
    color: var(--c-success);
}

.stat-card__change--down {
    color: var(--c-danger);
}

.stat-card__icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.stat-card__icon--blue {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

.stat-card__icon--orange {
    background: var(--c-accent-light);
    color: var(--c-accent);
}

.stat-card__icon--green {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.stat-card__icon--red {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

/* ── BADGES ──────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge--blue {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

.badge--orange {
    background: var(--c-accent-light);
    color: var(--c-accent-hover);
}

.badge--green {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.badge--red {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

.badge--gray {
    background: var(--c-surface-2);
    color: var(--c-text-2);
}

/* ── TABLES ───────────────────────────────────────────────────────────────── */


table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

thead th {
    background: var(--c-surface-2);
    color: var(--c-text-2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
    white-space: nowrap;
}

tbody td {
    padding: 1rem;
    border-top: 1px solid var(--c-border);
    color: var(--c-text);
    vertical-align: middle;
}

tbody tr {
    transition: background var(--t-fast);
}

    tbody tr:hover {
        background: var(--c-surface-2);
    }

/* ── FORMS ───────────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}


.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.9375rem;
    transition: all var(--t-fast);
}

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--c-brand-mid);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-textarea::placeholder {
        color: var(--c-text-3);
    }
    .form-input::placeholder {
        color: var(--c-text-3);
    }

.form-input--error {
    border-color: var(--c-danger-mid);
}

    .form-input--error:focus {
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }

.form-hint {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

.form-hint--error {
    color: var(--c-danger);
}

/* ── ALERTS ──────────────────────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-lg);
    font-size: 0.9375rem;
    border: 1px solid transparent;
}

.alert--info {
    background: var(--c-info-bg);
    color: var(--c-info);
    border-color: var(--c-info-mid);
}

.alert--success {
    background: var(--c-success-bg);
    color: var(--c-success);
    border-color: var(--c-success-mid);
}

.alert--warning {
    background: var(--c-warning-bg);
    color: var(--c-warning);
    border-color: var(--c-warning-mid);
}

.alert--danger {
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border-color: var(--c-danger-mid);
}

/* ── EMPTY STATE ─────────────────────────────────────────────────────────── */

.empty-state__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

.empty-state__desc {
    font-size: 0.9375rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ── DIVIDER ─────────────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--c-border);
    margin: 1.5rem 0;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.35s var(--ease-out) forwards;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot--live::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.is-open {
            transform: translateX(0);
        }

    .main {
        margin-left: 0;
    }

    .topbar__search {
        width: 240px;
    }
}

@media (max-width: 640px) {
    .topbar__search {
        display: none;
    }

    .stat-card__value {
        font-size: 1.5rem;
    }
}


/* ── LAYOUT SHELL ─────────────────────────────────────────────────────────── */
.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--c-bg);
}

/* ── SIDEBAR BACKDROP (mobile) ────────────────────────────────────────────── */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 45;
    animation: fadeIn 0.2s ease;
}

/* ── MAIN CONTENT ─────────────────────────────────────────────────────────── */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-w);
    transition: margin-left var(--t-mid);
}

.sidebar-collapsed .main {
    margin-left: 72px;
}

/* ── TOPBAR ───────────────────────────────────────────────────────────────── */
.topbar {
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 40;
    gap: 1rem;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Toggle button */
.topbar__toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    color: var(--c-text-2);
    background: transparent;
    transition: all var(--t-fast);
}

    .topbar__toggle:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

.toggle-icon {
    width: 18px;
    height: 18px;
}

    .toggle-icon path.hidden {
        display: none;
    }

/* Breadcrumb */
.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--c-text-3);
    font-weight: 500;
    transition: color var(--t-fast);
}

    .breadcrumb a:hover {
        color: var(--c-brand);
    }

.breadcrumb-separator {
    color: var(--c-border-dark);
    font-weight: 400;
}

.breadcrumb-current {
    color: var(--c-text);
    font-weight: 600;
}

/* Search */
.topbar-search {
    position: relative;
    width: 280px;
}

    .topbar-search input {
        width: 100%;
        padding: 0.5rem 0.75rem 0.5rem 2.25rem;
        border: 1px solid var(--c-border);
        border-radius: var(--r-md);
        background: var(--c-surface-2);
        font-size: 0.875rem;
        color: var(--c-text);
        transition: all var(--t-fast);
    }

        .topbar-search input:focus {
            outline: none;
            border-color: var(--c-brand-mid);
            background: var(--c-surface);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

.search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    pointer-events: none;
}

.search-shortcut {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.125rem 0.375rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 0.6875rem;
    font-family: inherit;
    color: var(--c-text-3);
    pointer-events: none;
}

/* Topbar buttons */
.topbar-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    color: var(--c-text-2);
    background: transparent;
    transition: all var(--t-fast);
}

    .topbar-btn:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

.topbar-btn__icon svg {
    width: 18px;
    height: 18px;
}

.topbar-btn__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--c-accent);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--r-full);
    display: grid;
    place-items: center;
    border: 2px solid white;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: var(--r-lg);
    background: transparent;
    transition: background var(--t-fast);
}

    .user-menu__trigger:hover {
        background: var(--c-surface-2);
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-avatar--lg {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}

.user-avatar svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
}

.user-role {
    font-size: 0.75rem;
    color: var(--c-text-3);
    font-weight: 500;
}

.user-chevron {
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    transition: transform var(--t-fast);
}

    .user-chevron.open {
        transform: rotate(180deg);
    }

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 260px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    z-index: 100;
    animation: slideDown 0.2s var(--ease-out);
}

.user-dropdown__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem;
}

.user-dropdown__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
}

.user-dropdown__email {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

.user-dropdown__divider {
    height: 1px;
    background: var(--c-border);
    margin: 0.5rem 0;
}

.user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--r-md);
    color: var(--c-text-2);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--t-fast);
    width: 100%;
}

    .user-dropdown__item:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

    .user-dropdown__item svg {
        width: 18px;
        height: 18px;
        opacity: 0.7;
    }

.user-dropdown__item--danger {
    color: var(--c-danger);
}

    .user-dropdown__item--danger:hover {
        background: var(--c-danger-bg);
        color: var(--c-danger);
    }

.user-dropdown__form {
    margin: 0;
    padding: 0;
}

/* ── PAGE CONTENT ─────────────────────────────────────────────────────────── */
.page-content {
    flex: 1;
    padding: 1.5rem;
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    animation: fadeIn 0.35s var(--ease-out);
}

/* ── SKELETON LOADING ─────────────────────────────────────────────────────── */
.page-skeleton {
    max-width: 1440px;
    margin: 0 auto;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-header {
    height: 32px;
    width: 240px;
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    margin-bottom: 1.5rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.skeleton-card {
    height: 120px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.skeleton-table {
    height: 400px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

/* ── SEARCH OVERLAY ───────────────────────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: grid;
    place-items: start center;
    padding-top: 15vh;
    animation: fadeIn 0.2s ease;
}

.search-modal {
    width: 100%;
    max-width: 560px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideDown 0.25s var(--ease-spring);
}

.search-modal__input {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
}

    .search-modal__input svg {
        width: 20px;
        height: 20px;
        color: var(--c-text-3);
        flex-shrink: 0;
    }

    .search-modal__input input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: var(--c-text);
        outline: none;
    }

        .search-modal__input input::placeholder {
            color: var(--c-text-3);
        }

    .search-modal__input kbd {
        padding: 0.25rem 0.5rem;
        background: var(--c-surface-2);
        border: 1px solid var(--c-border);
        border-radius: var(--r-sm);
        font-size: 0.75rem;
        color: var(--c-text-3);
    }

.search-modal__results {
    padding: 2rem;
    text-align: center;
}

.search-hint {
    color: var(--c-text-3);
    font-size: 0.9375rem;
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .main {
        margin-left: 0 !important;
    }

    .breadcrumb {
        display: none;
    }

    .topbar-search {
        display: none;
    }

    .user-info {
        display: none;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 0 1rem;
    }

    .page-content {
        padding: 1rem;
    }
}


/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    transition: width var(--t-mid);
    overflow: hidden;
}

.sidebar--collapsed {
    width: 72px;
}

/* ── BRAND ─────────────────────────────────────────────────────────────────── */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem;
    height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-brand__mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}

    .sidebar-brand__mark svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.sidebar-brand__text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--t-fast);
}

.sidebar--collapsed .sidebar-brand__text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.brand-trip {
    color: #ffffff;
}

.brand-desk {
    color: var(--c-brand);
}

/* ── NAVIGATION ──────────────────────────────────────────────────────────── */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Scrollbar for sidebar */
    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.2);
        border-radius: var(--r-full);
    }

/* Section labels */
.sidebar-nav__label {
    padding: 0.75rem 0.75rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.5);
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--t-fast), height var(--t-fast);
}

.sidebar--collapsed .sidebar-nav__label {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Nav links */
.sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.25rem;
    border-radius: var(--r-md);
    color: var(--sidebar-text);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    transition: all var(--t-fast);
    white-space: nowrap;
}

    .sidebar-nav__link:hover {
        background: var(--sidebar-bg-hover);
        color: rgba(255, 255, 255, 0.9);
    }

    /* Active state — orange road line */
    .sidebar-nav__link.active,
    .sidebar-nav__link--active {
        background: rgba(37, 99, 235, 0.12);
        color: var(--sidebar-active);
    }

        .sidebar-nav__link.active::before,
        .sidebar-nav__link--active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 20px;
            background: var(--c-accent); /* Orange road line */
            border-radius: 0 3px 3px 0;
        }

/* Icons */
.sidebar-nav__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity var(--t-fast);
}

.sidebar-nav__link:hover .sidebar-nav__icon,
.sidebar-nav__link.active .sidebar-nav__icon {
    opacity: 1;
}

.sidebar-nav__link.active .sidebar-nav__icon {
    color: var(--c-brand);
}

/* Link text */
.sidebar-nav__link span {
    opacity: 1;
    transition: opacity var(--t-fast);
}

.sidebar--collapsed .sidebar-nav__link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.04);
    transition: all var(--t-fast);
    cursor: default;
}

    .user-pill:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.user-pill__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

    .user-pill__avatar svg {
        width: 18px;
        height: 18px;
        opacity: 0.9;
    }

.user-pill__info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
    flex: 1;
    opacity: 1;
    transition: opacity var(--t-fast);
}

.sidebar--collapsed .user-pill__info {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.user-pill__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pill__role {
    font-size: 0.75rem;
    color: var(--sidebar-text);
    font-weight: 500;
}

.user-pill__logout {
    width: 28px;
    height: 28px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    color: var(--sidebar-text);
    background: transparent;
    flex-shrink: 0;
    opacity: 1;
    transition: all var(--t-fast);
}

    .user-pill__logout:hover {
        background: rgba(220, 38, 38, 0.15);
        color: #f87171;
    }

    .user-pill__logout svg {
        width: 16px;
        height: 16px;
    }

.sidebar--collapsed .user-pill__logout {
    display: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

        .sidebar:not(.sidebar--collapsed) {
            transform: translateX(0);
        }

    /* When open on mobile, force full width */
    .mobile .sidebar:not(.sidebar--collapsed) {
        width: var(--sidebar-w) !important;
    }
}


/* ── UTILITIES ─────────────────────────────────────────────────────────── */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── NAV ───────────────────────────────────────────────────────────────── */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}

.lp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.lp-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none !important;
}

.lp-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}

    .lp-logo-mark svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.lp-logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.lp-logo-trip {
    color: var(--c-brand-dark);
}

.lp-logo-desk {
    color: var(--c-brand);
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

    .lp-nav-links a {
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--c-text-2);
        text-decoration: none;
        transition: color 0.2s;
    }

        .lp-nav-links a:hover {
            color: var(--c-brand);
        }

.lp-nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lp-mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: transparent;
    border: none;
    color: var(--c-text);
    cursor: pointer;
}

    .lp-mobile-toggle svg {
        width: 20px;
        height: 20px;
    }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.lp-btn-primary, .lp-btn-ghost, .lp-btn-hero, .lp-btn-hero-ghost,
.lp-btn-cta, .lp-btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: none;
}

.lp-btn-primary {
    background: var(--c-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

    .lp-btn-primary:hover {
        background: var(--c-brand-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,235,0.35);
    }

.lp-btn-ghost {
    background: transparent;
    color: var(--c-text-2);
}

    .lp-btn-ghost:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

.lp-btn-hero {
    background: var(--c-brand);
    color: white;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    box-shadow: var(--shadow-brand);
}

    .lp-btn-hero:hover {
        background: var(--c-brand-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    }

.lp-btn-hero-ghost {
    background: transparent;
    color: var(--c-text-2);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border: 1.5px solid var(--c-border);
}

    .lp-btn-hero-ghost:hover {
        border-color: var(--c-brand-mid);
        color: var(--c-brand);
        background: var(--c-brand-light);
    }

.lp-btn-cta {
    background: var(--c-accent);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    box-shadow: 0 4px 14px rgba(255,138,0,0.3);
}

    .lp-btn-cta:hover {
        background: var(--c-accent-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(255,138,0,0.35);
    }

.lp-btn-cta-ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border: 1.5px solid rgba(255,255,255,0.2);
}

    .lp-btn-cta-ghost:hover {
        border-color: rgba(255,255,255,0.4);
        color: white;
        background: rgba(255,255,255,0.05);
    }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.lp-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
    position: relative;
    overflow: hidden;
}

    .lp-hero::before {
        content: '';
        position: absolute;
        top: -200px;
        right: -200px;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
        pointer-events: none;
    }

.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-brand);
    margin-bottom: 1.25rem;
}

.lp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-success);
    position: relative;
}

    .lp-live-dot::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid var(--c-success);
        animation: pulse-ring 1.5s cubic-bezier(0.215,0.61,0.355,1) infinite;
    }

.lp-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--c-text);
    margin-bottom: 1.25rem;
}

    .lp-hero-title span {
        background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.lp-hero-sub {
    font-size: 1.125rem;
    color: var(--c-text-2);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.lp-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lp-trust {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--c-text-3);
}

.lp-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success);
}

/* ── HERO MOCKUP ───────────────────────────────────────────────────────── */
.lp-hero-visual {
    position: relative;
}

.lp-mock-wrap {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

    .lp-mock-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-accent) 100%);
    }

.lp-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.lp-mock-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-text);
}

.lp-mock-live {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-success);
    background: var(--c-success-bg);
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
}

.lp-live-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success);
    position: relative;
}

    .lp-live-pulse::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        border: 1.5px solid var(--c-success);
        animation: pulse-ring 1.5s infinite;
    }

.lp-mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lp-mock-stat {
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    padding: 1rem;
    text-align: center;
}

.lp-msv {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
}

.lp-msl {
    font-size: 0.75rem;
    color: var(--c-text-3);
    margin-top: 0.25rem;
    font-weight: 500;
}

.lp-mock-list-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-3);
    margin-bottom: 0.75rem;
}

.lp-mock-trips {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.lp-mock-trip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    transition: all 0.2s;
}

    .lp-mock-trip:hover {
        border-color: var(--c-brand-mid);
        box-shadow: var(--shadow-sm);
    }

.lp-mt-route {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
}

.lp-mt-meta {
    font-size: 0.75rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

.lp-occ-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.lp-occ-track {
    width: 80px;
    height: 4px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    overflow: hidden;
}

.lp-occ-fill {
    height: 100%;
    border-radius: var(--r-full);
    transition: width 1s ease;
}

.lp-occ-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-success);
}

.lp-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
    white-space: nowrap;
}

.lp-badge-boarding {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

.lp-badge-transit {
    background: #F0FDF4;
    color: var(--c-success);
}

.lp-badge-sched {
    background: #FFF7ED;
    color: var(--c-accent-hover);
}

/* ── LOGO BAR ───────────────────────────────────────────────────────────── */
.lp-logo-bar {
    padding: 2.5rem 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.lp-logo-bar-label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text-3);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lp-logo-bar-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lp-logo-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text-2);
    border: 1px solid var(--c-border);
}

.lp-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ── SECTION HEADERS ───────────────────────────────────────────────────── */
.lp-section-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.lp-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: 1rem;
}

.lp-section-sub {
    font-size: 1.0625rem;
    color: var(--c-text-2);
    max-width: 560px;
    line-height: 1.7;
}

/* ── FEATURES ───────────────────────────────────────────────────────────── */
.lp-features {
    padding: 100px 0;
    background: var(--c-bg);
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.lp-feature-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    transition: all 0.3s var(--ease);
}

    .lp-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--c-brand-mid);
    }

.lp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-lg);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
}

    .lp-feature-icon svg {
        width: 24px;
        height: 24px;
    }

.lp-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 0.5rem;
}

.lp-feature-desc {
    font-size: 0.9375rem;
    color: var(--c-text-2);
    line-height: 1.6;
}

/* ── HOW IT WORKS ──────────────────────────────────────────────────────── */
.lp-how {
    padding: 100px 0;
    background: var(--c-surface);
}

.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

    .lp-steps::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-accent) 100%);
        opacity: 0.2;
    }

.lp-step {
    position: relative;
    z-index: 1;
}

.lp-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-brand);
}

.lp-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 0.5rem;
}

.lp-step-desc {
    font-size: 0.9375rem;
    color: var(--c-text-2);
    line-height: 1.6;
}

/* ── METRICS ───────────────────────────────────────────────────────────── */
.lp-metrics {
    padding: 80px 0;
    background: var(--c-brand-dark);
}

.lp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.lp-metric {
    text-align: center;
}

.lp-metric-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
}

    .lp-metric-val span {
        background: linear-gradient(135deg, #fff 0%, var(--c-brand-mid) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.lp-metric-label {
    font-size: 0.9375rem;
    color: var(--c-text-3);
    margin-top: 0.75rem;
    font-weight: 500;
}

/* ── SEAT DEMO ─────────────────────────────────────────────────────────── */
.lp-seatdemo {
    padding: 100px 0;
    background: var(--c-bg);
}

.lp-seatdemo-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lp-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

    .lp-check-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 0.9375rem;
        color: var(--c-text-2);
        line-height: 1.6;
    }

        .lp-check-list li::before {
            content: '✓';
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            background: var(--c-success-bg);
            color: var(--c-success);
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-size: 0.75rem;
            font-weight: 700;
            margin-top: 0.125rem;
        }

.lp-seat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.lp-seat-front {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-3);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lp-seat-rows {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.lp-seat-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.lp-row-num {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--c-text-3);
    width: 16px;
    text-align: center;
}

.lp-seat {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.lp-seat-avail {
    background: #F0FDF4;
    color: var(--c-success);
    border: 1.5px solid #BBF7D0;
}

.lp-seat-taken {
    background: #FEF2F2;
    color: var(--c-danger);
    border: 1.5px solid #FECACA;
}

.lp-seat-selected {
    background: var(--c-brand);
    color: white;
    border: 1.5px solid var(--c-brand);
    box-shadow: var(--shadow-brand);
}

.lp-seat-aisle {
    width: 20px;
}

.lp-seat-legend {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.lp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-text-2);
}

.lp-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: var(--r-sm);
}

.lp-seat-summary {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--c-text-3);
    font-weight: 500;
}

/* ── PRICING ───────────────────────────────────────────────────────────── */
.lp-pricing {
    padding: 100px 0;
    background: var(--c-surface);
}

.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.lp-plan {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 2rem;
    position: relative;
    transition: all 0.3s var(--ease);
}

    .lp-plan:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.lp-plan-featured {
    border-color: var(--c-brand);
    border-width: 2px;
    box-shadow: var(--shadow-brand);
    transform: scale(1.02);
}

.lp-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 1rem;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-brand);
}

.lp-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 0.5rem;
}

.lp-plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

    .lp-plan-price sub {
        font-size: 1rem;
        font-weight: 500;
        color: var(--c-text-3);
        vertical-align: baseline;
    }

.lp-plan-period {
    font-size: 0.875rem;
    color: var(--c-text-3);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.lp-plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

    .lp-plan-features li {
        display: flex;
        align-items: flex-start;
        gap: 0.625rem;
        padding: 0.5rem 0;
        font-size: 0.9375rem;
        color: var(--c-text-2);
        border-bottom: 1px solid var(--c-border);
    }

        .lp-plan-features li:last-child {
            border-bottom: none;
        }

        .lp-plan-features li svg {
            color: var(--c-success);
            margin-top: 0.125rem;
        }

.lp-plan-cta {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.lp-plan-cta-solid {
    background: var(--c-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

    .lp-plan-cta-solid:hover {
        background: var(--c-brand-hover);
        transform: translateY(-1px);
    }

.lp-plan-cta-outline {
    background: transparent;
    color: var(--c-text);
    border: 1.5px solid var(--c-border);
}

    .lp-plan-cta-outline:hover {
        border-color: var(--c-brand);
        color: var(--c-brand);
        background: var(--c-brand-light);
    }

.lp-pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--c-text-3);
}

/* ── TESTIMONIALS ──────────────────────────────────────────────────────── */
.lp-testi {
    padding: 100px 0;
    background: var(--c-bg);
}

.lp-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.lp-testi-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 1.75rem;
    transition: all 0.3s;
}

    .lp-testi-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

.lp-testi-stars {
    color: var(--c-accent);
    font-size: 1rem;
    letter-spacing: 0.125em;
    margin-bottom: 1rem;
}

.lp-testi-quote {
    font-size: 0.9375rem;
    color: var(--c-text-2);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.lp-testi-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.lp-testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.lp-testi-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text);
}

.lp-testi-role {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── CTA ───────────────────────────────────────────────────────────────── */
.lp-cta {
    padding: 100px 0;
    background: var(--c-brand-dark);
    position: relative;
    overflow: hidden;
}

    .lp-cta::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    }

.lp-cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

    .lp-cta-title span {
        background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.lp-cta-sub {
    font-size: 1.0625rem;
    color: var(--c-text-3);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.lp-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.lp-cta-note {
    font-size: 0.875rem;
    color: var(--c-text-3);
    position: relative;
    z-index: 1;
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.lp-footer {
    padding: 60px 0 0;
    background: #0B1522;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.lp-footer-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

    .lp-footer-mark svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.lp-footer-brand {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-footer-desc {
    font-size: 0.9375rem;
    color: #64748B;
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.6;
}

.lp-footer-made {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #475569;
}

    .lp-footer-made span {
        color: #EF4444;
    }

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.lp-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-footer-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.lp-footer-col a {
    font-size: 0.9375rem;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

    .lp-footer-col a:hover {
        color: white;
    }

.lp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.875rem;
    color: #475569;
}

.lp-footer-links {
    display: flex;
    gap: 1.5rem;
}

    .lp-footer-links a {
        color: #64748B;
        text-decoration: none;
        transition: color 0.2s;
    }

        .lp-footer-links a:hover {
            color: white;
        }

/* ── ANIMATIONS ────────────────────────────────────────────────────────── */




@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lp-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.lp-delay-1 {
    animation-delay: 0.15s;
}

.lp-delay-2 {
    animation-delay: 0.3s;
}

.lp-delay-3 {
    animation-delay: 0.45s;
}

/* ── SCROLL REVEAL (handled by JS) ─────────────────────────────────────── */
.lp-scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

    .lp-scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .lp-hero-title {
        font-size: 2.75rem;
    }

    .lp-steps {
        grid-template-columns: repeat(2, 1fr);
    }

        .lp-steps::before {
            display: none;
        }

    .lp-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .lp-seatdemo-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .lp-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 3rem auto 0;
    }

    .lp-testi-grid {
        grid-template-columns: 1fr;
    }

    .lp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .lp-nav-links {
        display: none;
    }

    .lp-mobile-toggle {
        display: grid;
        place-items: center;
    }
}

@media (max-width: 640px) {
    .lp-hero {
        padding: 100px 0 60px;
    }

    .lp-hero-title {
        font-size: 2.25rem;
    }

    .lp-hero-actions {
        flex-direction: column;
    }

    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-metrics-grid {
        grid-template-columns: 1fr;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    .lp-footer-grid {
        grid-template-columns: 1fr;
    }

    .lp-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .lp-cta-title {
        font-size: 2rem;
    }

    .lp-cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIPDESK LOGIN PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.login-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--c-bg);
}

/* ── LEFT HERO PANEL ─────────────────────────────────────────────────────── */
.login-hero {
    background: linear-gradient(160deg, var(--c-brand-dark) 0%, #162536 50%, #0D1B2A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-hero__content {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.login-hero__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.login-hero__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

    .login-hero__logo svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.login-hero__name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-trip {
    color: #ffffff;
}

.brand-desk {
    color: var(--c-brand);
}

.login-hero__title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.login-hero__desc {
    font-size: 1.0625rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.login-hero__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-hero__feature {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
    color: #CBD5E1;
    font-weight: 500;
}

.login-hero__feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .login-hero__feature-icon svg {
        width: 18px;
        height: 18px;
    }

/* Decorative orbs */
.login-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.login-hero__orb--1 {
    width: 400px;
    height: 400px;
    background: var(--c-brand);
    top: -100px;
    right: -100px;
}

.login-hero__orb--2 {
    width: 300px;
    height: 300px;
    background: var(--c-accent);
    bottom: -50px;
    left: -50px;
    opacity: 0.1;
}

/* ── RIGHT FORM PANEL ────────────────────────────────────────────────────── */
.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--c-bg);
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s var(--ease-out);
}

.login-box__header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.login-box__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.login-box__sub {
    font-size: 0.9375rem;
    color: var(--c-text-3);
}

/* ── ALERT ───────────────────────────────────────────────────────────────── */
.login-alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    animation: shake 0.4s ease;
}

.login-alert--error {
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border: 1px solid var(--c-danger-mid);
}

.login-alert__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── FORM ────────────────────────────────────────────────────────────────── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.form-group--checkbox {
    flex-direction: row;
    align-items: center;
}



.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input__icon {
    position: absolute;
    left: 0.875rem;
    width: 18px;
    height: 18px;
    color: var(--c-text-3);
    pointer-events: none;
    z-index: 2;
}



.form-input__toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-3);
    cursor: pointer;
    transition: all 0.2s;
}

    .form-input__toggle:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

    .form-input__toggle svg {
        width: 18px;
        height: 18px;
    }

.form-input[type="password"],
.form-input[type="text"] {
    padding-right: 2.75rem;
}


.form-link {
    color: var(--c-brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

    .form-link:hover {
        color: var(--c-brand-hover);
        text-decoration: underline;
    }

.form-link--sm {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ── CHECKBOX ──────────────────────────────────────────────────────────── */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
}

    .form-checkbox input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.form-checkbox__box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--c-border-dark);
    border-radius: 5px;
    display: grid;
    place-items: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .form-checkbox__box svg {
        width: 12px;
        height: 12px;
        color: white;
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.2s;
    }

.form-checkbox input:checked + .form-checkbox__box {
    background: var(--c-brand);
    border-color: var(--c-brand);
}

    .form-checkbox input:checked + .form-checkbox__box svg {
        opacity: 1;
        transform: scale(1);
    }

.form-checkbox input:focus + .form-checkbox__box {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-checkbox__label {
    font-size: 0.875rem;
    color: var(--c-text-2);
    font-weight: 500;
}



.btn--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.w-full {
    width: 100%;
}

.btn__spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.login-box__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
    text-align: center;
}

    .login-box__footer p {
        font-size: 0.875rem;
        color: var(--c-text-3);
    }



@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}



/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-hero {
        display: none;
    }

    .login-form-side {
        padding: 1.5rem;
    }

    .login-box {
        padding: 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIPDESK ONBOARDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── SHELL ───────────────────────────────────────────────────────────────── */
.ob-shell {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 100vh;
}

/* ── LEFT PANEL ──────────────────────────────────────────────────────────── */
.ob-side {
    background: linear-gradient(165deg, var(--c-brand-dark) 0%, #162536 50%, #0D1B2A 100%);
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Brand */
.ob-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.ob-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
    flex-shrink: 0;
}

    .ob-brand__mark svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.ob-brand__name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-trip {
    color: #fff;
}

.brand-desk {
    color: var(--c-brand);
}

/* Side body */
.ob-side__body {
    position: relative;
    z-index: 2;
    flex: 1;
}

.ob-side__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.ob-side__sub {
    font-size: 0.9375rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Steps */
.ob-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.ob-step {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.ob-step--active,
.ob-step--done {
    opacity: 1;
}

.ob-step__bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(148, 163, 184, 0.3);
    color: #94A3B8;
    transition: all 0.3s;
}

.ob-step--done .ob-step__bubble {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.ob-step--active .ob-step__bubble {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--c-brand);
    color: var(--c-brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.ob-step__bubble svg {
    width: 16px;
    height: 16px;
}

.ob-step__info {
    padding-top: 0.25rem;
}

.ob-step__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.125rem;
}

.ob-step__hint {
    font-size: 0.8125rem;
    color: #64748B;
}

/* Perks */
.ob-perks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ob-perk {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #CBD5E1;
}

    .ob-perk svg {
        width: 16px;
        height: 16px;
        color: var(--c-success);
        flex-shrink: 0;
    }

/* Footer */
.ob-side__footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.9375rem;
    color: #64748B;
}

    .ob-side__footer a {
        color: var(--c-brand);
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s;
    }

        .ob-side__footer a:hover {
            color: var(--c-brand-mid);
        }

/* Decorative orbs */
.ob-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.ob-orb--1 {
    width: 350px;
    height: 350px;
    background: var(--c-brand);
    opacity: 0.12;
    top: -80px;
    right: -80px;
}

.ob-orb--2 {
    width: 280px;
    height: 280px;
    background: var(--c-accent);
    opacity: 0.08;
    bottom: 10%;
    left: -60px;
}

/* ── RIGHT PANEL ─────────────────────────────────────────────────────────── */
.ob-main {
    padding: 2.5rem 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

/* Progress */
.ob-progress {
    margin-bottom: 2rem;
}

.ob-progress__track {
    height: 4px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    overflow: hidden;
}

.ob-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-accent) 100%);
    border-radius: var(--r-full);
    width: var(--progress, 0%);
    transition: width 0.5s var(--ease);
}

/* Form header */
.ob-form__header {
    margin-bottom: 1.75rem;
}

.ob-form__badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: var(--c-brand-light);
    color: var(--c-brand);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--r-full);
    margin-bottom: 0.75rem;
}

.ob-form__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.ob-form__sub {
    font-size: 0.9375rem;
    color: var(--c-text-3);
    line-height: 1.6;
}

/* ── ALERTS ──────────────────────────────────────────────────────────────── */
.ob-alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    animation: slideUp 0.3s var(--ease-out);
}

    .ob-alert svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.ob-alert--error {
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border: 1px solid var(--c-danger-mid);
}

.ob-alert--success {
    background: var(--c-success-bg);
    color: var(--c-success);
    border: 1px solid var(--c-success-mid);
}

/* Success next state */
.ob-success-next {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--c-text-3);
}

    .ob-success-next p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

.ob-success__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--c-border);
    border-top-color: var(--c-brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* ── FORM GRID ───────────────────────────────────────────────────────────── */
.ob-form__body {
    animation: slideUp 0.4s var(--ease-out);
}

.ob-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.ob-grid__full {
    grid-column: 1 / -1;
}

/* ── LABELS & INPUTS ─────────────────────────────────────────────────────── */
.ob-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.375rem;
}

.ob-req {
    color: var(--c-danger);
    margin-left: 0.125rem;
}

.ob-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s var(--ease);
}

    .ob-input:focus {
        outline: none;
        border-color: var(--c-brand-mid);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .ob-input::placeholder {
        color: var(--c-text-3);
    }

    /* Validation states */
    .ob-input.has-error {
        border-color: var(--c-danger-mid);
        background: var(--c-danger-bg);
    }

        .ob-input.has-error:focus {
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        }

    .ob-input.is-good {
        border-color: var(--c-success-mid);
    }

/* Input with toggle */
.ob-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .ob-input-wrap .ob-input {
        padding-right: 2.75rem;
    }

.ob-input__toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-3);
    cursor: pointer;
    transition: all 0.2s;
}

    .ob-input__toggle:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

    .ob-input__toggle svg {
        width: 18px;
        height: 18px;
    }

/* Hints & messages */
.ob-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.25rem;
}

.ob-error-msg {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--c-danger);
    margin-top: 0.375rem;
    font-weight: 500;
    animation: slideUp 0.2s ease;
}

.ob-ok-msg {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--c-success);
    margin-top: 0.375rem;
    animation: slideUp 0.2s ease;
}

    .ob-ok-msg svg {
        width: 14px;
        height: 14px;
    }

/* ── PASSWORD STRENGTH ──────────────────────────────────────────────────── */
.ob-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.625rem;
}

.ob-strength__bars {
    display: flex;
    gap: 0.375rem;
    flex: 1;
}

.ob-strength__bar {
    height: 4px;
    flex: 1;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    transition: all 0.3s;
}

.ob-strength__bar--weak {
    background: var(--c-danger);
}

.ob-strength__bar--fair {
    background: var(--c-warning);
}

.ob-strength__bar--good {
    background: var(--c-brand);
}

.ob-strength__bar--strong {
    background: var(--c-success);
}

.ob-strength__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ob-strength__label--weak {
    color: var(--c-danger);
}

.ob-strength__label--fair {
    color: var(--c-warning);
}

.ob-strength__label--good {
    color: var(--c-brand);
}

.ob-strength__label--strong {
    color: var(--c-success);
}

/* ── CHECKBOX ───────────────────────────────────────────────────────────── */
.ob-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    user-select: none;
}

    .ob-checkbox input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.ob-checkbox__box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--c-border-dark);
    border-radius: 5px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all 0.2s;
}

    .ob-checkbox__box svg {
        width: 12px;
        height: 12px;
        color: white;
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.2s;
    }

.ob-checkbox input:checked + .ob-checkbox__box {
    background: var(--c-brand);
    border-color: var(--c-brand);
}

    .ob-checkbox input:checked + .ob-checkbox__box svg {
        opacity: 1;
        transform: scale(1);
    }

.ob-checkbox input:focus + .ob-checkbox__box {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ob-checkbox__text {
    font-size: 0.875rem;
    color: var(--c-text-2);
    line-height: 1.6;
}

    .ob-checkbox__text a {
        color: var(--c-brand);
        font-weight: 600;
        text-decoration: none;
    }

        .ob-checkbox__text a:hover {
            text-decoration: underline;
        }

/* ── ACTIONS ─────────────────────────────────────────────────────────────── */
.ob-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border);
}

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: none;
}

    .ob-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .ob-btn svg {
        width: 16px;
        height: 16px;
    }

.ob-btn--primary {
    background: var(--c-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

    .ob-btn--primary:hover:not(:disabled) {
        background: var(--c-brand-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }

.ob-btn--ghost {
    background: transparent;
    color: var(--c-text-2);
    border: 1.5px solid var(--c-border);
}

    .ob-btn--ghost:hover:not(:disabled) {
        background: var(--c-surface-2);
        border-color: var(--c-border-dark);
        color: var(--c-text);
    }

.ob-btn--submit {
    padding: 0.75rem 1.5rem;
}

.ob-spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

.ob-terms-note {
    text-align: right;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--c-text-3);
    font-style: italic;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ob-shell {
        grid-template-columns: 1fr;
    }

    .ob-side {
        display: none;
    }

    .ob-main {
        padding: 1.5rem;
        max-width: 100%;
    }

    .ob-grid {
        grid-template-columns: 1fr;
    }

    .ob-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

        .ob-actions .ob-btn {
            width: 100%;
        }

    .ob-terms-note {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── STATS GRID ─────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

    .stat-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.stat-card--warn {
    border-color: var(--c-warning-mid);
    background: var(--c-warning-bg);
}

.stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .stat-card__icon svg {
        width: 22px;
        height: 22px;
    }

.stat-card__icon--blue {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

.stat-card__icon--green {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.stat-card__icon--orange {
    background: var(--c-accent-light);
    color: var(--c-accent);
}

.stat-card__icon--purple {
    background: #F3E8FF;
    color: #7C3AED;
}

.stat-card__icon--red {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

.stat-card__icon--navy {
    background: #E2E8F0;
    color: var(--c-brand-dark);
}

.stat-card__info {
    flex: 1;
    min-width: 0;
}

.stat-card__value {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-card__label {
    font-size: 0.875rem;
    color: var(--c-text-2);
    font-weight: 500;
    margin-top: 0.25rem;
}

.stat-card__trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

    .stat-card__trend svg {
        width: 14px;
        height: 14px;
    }

.stat-card__trend--up {
    color: var(--c-success);
}

/* ── DASHBOARD GRID ──────────────────────────────────────────────────────── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── CARD ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--t-mid), transform var(--t-fast);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    gap: 1rem;
}

    .card__header .badge {
        margin-left: auto;
    }

.card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card__body {
    padding: 1.5rem;
}

.card__body--flush {
    padding: 0;
}

.card__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--c-border);
    display: flex;
    gap: 0.75rem;
}

/* ── TRIP LIST ──────────────────────────────────────────────────────────── */
.trip-list {
    display: flex;
    flex-direction: column;
}

.trip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    transition: background 0.15s;
}

    .trip-row:last-child {
        border-bottom: none;
    }

    .trip-row:hover {
        background: var(--c-surface-2);
    }

.trip-row__main {
    flex: 1;
    min-width: 0;
}

.trip-row__code {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-brand);
    margin-bottom: 0.25rem;
}

.trip-row__route {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.375rem;
}

.trip-row__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .trip-row__meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.8125rem;
        color: var(--c-text-3);
    }

    .trip-row__meta svg {
        width: 14px;
        height: 14px;
        opacity: 0.7;
    }

.trip-row__side {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* ── OCCUPANCY BAR ───────────────────────────────────────────────────────── */
.occupancy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.occupancy__text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--c-text-2);
    white-space: nowrap;
}

.occupancy__track {
    width: 80px;
    height: 6px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    overflow: hidden;
}

.occupancy__bar {
    height: 100%;
    border-radius: var(--r-full);
    width: var(--occ-width, 0%);
    transition: width 0.6s ease;
}

.occupancy__bar--high {
    background: var(--c-success);
}

.occupancy__bar--mid {
    background: var(--c-accent);
}

.occupancy__bar--low {
    background: var(--c-brand);
}

/* ── ALERTS ─────────────────────────────────────────────────────────────── */
.alert-list {
    display: flex;
    flex-direction: column;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
}

    .alert-item:last-child {
        border-bottom: none;
    }

.alert-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.375rem;
    flex-shrink: 0;
}

.alert-item__dot--critical {
    background: var(--c-danger);
    box-shadow: 0 0 0 3px var(--c-danger-bg);
}

.alert-item__dot--warning {
    background: var(--c-warning);
    box-shadow: 0 0 0 3px var(--c-warning-bg);
}

.alert-item__dot--info {
    background: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-light);
}

.alert-item__content {
    flex: 1;
    min-width: 0;
}

.alert-item__msg {
    font-size: 0.9375rem;
    color: var(--c-text);
    font-weight: 500;
    line-height: 1.5;
}

.alert-item__type {
    font-size: 0.75rem;
    color: var(--c-text-3);
    text-transform: capitalize;
}

/* ── ACTION LIST ───────────────────────────────────────────────────────── */
.action-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
}

.btn--block {
    width: 100%;
    justify-content: flex-start;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text-2);
    background: transparent;
    border: none;
    border-radius: var(--r-md);
    gap: 0.625rem;
}

    .btn--block:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

    .btn--block svg {
        width: 18px;
        height: 18px;
        opacity: 0.7;
    }

/* ── EMPTY STATE ───────────────────────────────────────────────────────── */


.empty-state--sm {
    padding: 2rem 1.5rem;
}


.empty-state__icon--green {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.empty-state__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

.empty-state__desc {
    font-size: 0.9375rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ── ALERT COMPONENT ───────────────────────────────────────────────────── */


.alert__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── BUTTON HELPERS ─────────────────────────────────────────────────────── */
.btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn--left {
    justify-content: flex-start;
}

/* ── BADGE ──────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.badge--red {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .trip-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .trip-row__side {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPANIES PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── STATS GRID VARIANT ─────────────────────────────────────────────────── */
.stats-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ── FILTER BAR ──────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--r-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-2);
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

    .filter-chip:hover {
        border-color: var(--c-border-dark);
        background: var(--c-surface-2);
    }

.filter-chip--active {
    background: var(--c-brand-light);
    border-color: var(--c-brand-mid);
    color: var(--c-brand);
    font-weight: 600;
}

.filter-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.filter-chip__dot--all {
    background: var(--c-text-3);
}

.filter-chip__dot--active {
    background: var(--c-success);
}

.filter-chip__dot--suspended {
    background: var(--c-danger);
}

.filter-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-text-2);
}

.filter-chip--active .filter-chip__count {
    background: rgba(37, 99, 235, 0.15);
    color: var(--c-brand);
}

/* ── TOOLBAR ─────────────────────────────────────────────────────────────── */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    pointer-events: none;
}

.search-box__input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s var(--ease);
}

    .search-box__input:focus {
        outline: none;
        border-color: var(--c-brand-mid);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .search-box__input::placeholder {
        color: var(--c-text-3);
    }

.toolbar__count {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    font-weight: 500;
}


/* ── COMPANY CELL ──────────────────────────────────────────────────────── */
.company-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.company-cell__avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.company-cell__info {
    min-width: 0;
}

.company-cell__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text);
}

.company-cell__meta {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

/* ── DROPDOWN ────────────────────────────────────────────────────────────── */


.dropdown__trigger {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-3);
    cursor: pointer;
    transition: all 0.2s;
}

    .dropdown__trigger:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

    .dropdown__trigger svg {
        width: 18px;
        height: 18px;
    }

.dropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 180px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    padding: 0.375rem;
    animation: slideDown 0.15s var(--ease-out);
}



    .dropdown__item:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

    .dropdown__item svg {
        width: 16px;
        height: 16px;
        opacity: 0.7;
    }



.dropdown__divider {
    height: 1px;
    background: var(--c-border);
    margin: 0.375rem 0;
}

/* ── SKELETON ───────────────────────────────────────────────────────────── */
.page-skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-header {
    height: 32px;
    width: 200px;
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    margin-bottom: 1.5rem;
}

.skeleton-table {
    height: 400px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}


/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stats-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .stats-grid--4 {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .data-table {
        font-size: 0.875rem;
    }

        .data-table thead th,
        .data-table tbody td {
            padding: 0.75rem;
        }

    .company-cell__avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL COMPONENT
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── BACKDROP ───────────────────────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

/* ── MODAL ───────────────────────────────────────────────────────────────── */


    .modal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-accent) 100%);
    }



.modal__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--c-brand-light);
    color: var(--c-brand);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .modal__icon svg {
        width: 20px;
        height: 20px;
    }


.modal__subtitle {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

/* ── MODAL ALERTS ───────────────────────────────────────────────────────── */
.modal-alert {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    animation: slideUp 0.3s var(--ease-out);
}

    .modal-alert svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.modal-alert--error {
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border: 1px solid var(--c-danger-mid);
}

.modal-alert--success {
    background: var(--c-success-bg);
    color: var(--c-success);
    border: 1px solid var(--c-success-mid);
}

/* ── FORM (Modal variant) ───────────────────────────────────────────────── */


    .modal .form-group:last-child {
        margin-bottom: 0;
    }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.375rem;
}

.form-req {
    color: var(--c-danger);
    margin-left: 0.125rem;
}

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}


    .form-input:focus {
        outline: none;
        border-color: var(--c-brand-mid);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-input::placeholder {
        color: var(--c-text-3);
    }

.form-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--c-danger);
    margin-top: 0.375rem;
    font-weight: 500;
    animation: slideUp 0.2s ease;
}



    .btn--primary:hover:not(:disabled) {
        background: var(--c-brand-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }

.btn--ghost {
    background: transparent;
    color: var(--c-text-2);
    border: 1.5px solid var(--c-border);
}

    .btn--ghost:hover:not(:disabled) {
        background: var(--c-surface-2);
        border-color: var(--c-border-dark);
        color: var(--c-text);
    }

.btn__spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */


@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--r-xl) var(--r-xl) 0 0;
        animation: modalSlideUpMobile 0.3s var(--ease-out);
    }

    .modal__header,
    .modal__body,
    .modal__footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@keyframes modalSlideUpMobile {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPANY DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── STATUS BAR ─────────────────────────────────────────────────────────── */
.status-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.status-bar__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-bar__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text-3);
}

.status-bar__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
}


/* ── DEFINITION LIST ───────────────────────────────────────────────────── */
.def-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.def-list__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
}

    .def-list__row:last-child {
        border-bottom: none;
    }

.def-list dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text-2);
}

.def-list dd {
    font-size: 0.9375rem;
    color: var(--c-text);
    font-weight: 500;
}

/* ── CODE / BADGE ──────────────────────────────────────────────────────── */
.code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
    background: var(--c-surface-2);
    padding: 0.25rem 0.5rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-border);
}

/* ── USER CELL ─────────────────────────────────────────────────────────── */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-cell__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── COMPANY CELL SMALL ────────────────────────────────────────────────── */
.company-cell__avatar--sm {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

/* ── LINK ─────────────────────────────────────────────────────────────── */
.link {
    color: var(--c-brand);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

    .link:hover {
        color: var(--c-brand-hover);
        text-decoration: underline;
    }

/* ── SKELETON ───────────────────────────────────────────────────────────── */
.skeleton-tabs {
    height: 48px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}



.btn--warning {
    background: var(--c-warning);
    color: white;
}

    .btn--warning:hover:not(:disabled) {
        background: #b45309;
    }

.btn--danger {
    color: var(--c-danger);
}

    .btn--danger:hover:not(:disabled) {
        background: var(--c-danger-bg);
    }


/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .status-bar {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .tabs::-webkit-scrollbar {
            display: none;
        }

    .def-list__row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .data-table {
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRANCHES ADMIN PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header__info {
    flex: 1;
}

.page-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.page-header__subtitle {
    font-size: 0.9375rem;
    color: var(--c-text-3);
}

/* ── FILTER BAR ─────────────────────────────────────────────────────────── */


.filter-bar__selects {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.search-box--lg {
    width: 360px;
}


.form-select--sm {
    padding: 0.375rem 1.75rem 0.375rem 0.625rem;
    font-size: 0.875rem;
}

/* ── STATS STRIP ─────────────────────────────────────────────────────────── */
.stats-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-sm);
}

.stat-pill__value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
}

.stat-pill__label {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    font-weight: 500;
}

.stat-pill--green {
    background: var(--c-success-bg);
    border-color: var(--c-success-mid);
}

    .stat-pill--green .stat-pill__value {
        color: var(--c-success);
    }

.stat-pill--red {
    background: var(--c-danger-bg);
    border-color: var(--c-danger-mid);
}

    .stat-pill--red .stat-pill__value {
        color: var(--c-danger);
    }

/* ── TABLE LOADING ───────────────────────────────────────────────────────── */
.table-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--c-text-3);
}

.table-loading__spinner {
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

/* ── DATA TABLE ROW ─────────────────────────────────────────────────────── */
.data-table__row {
    cursor: pointer;
    transition: background 0.15s;
}

    .data-table__row:hover {
        background: var(--c-surface-2);
    }

.data-table__primary {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text);
}

.data-table__sub {
    display: block;
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

.data-table__muted {
    color: var(--c-text-3);
    font-style: italic;
}

.data-table__center {
    text-align: center;
}

.data-table__date {
    font-size: 0.875rem;
    color: var(--c-text-2);
    white-space: nowrap;
}

/* ── COUNT BADGE ─────────────────────────────────────────────────────────── */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--c-text-2);
}

/* ── ACTION GROUP ────────────────────────────────────────────────────────── */
.action-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-3);
    cursor: pointer;
    transition: all 0.2s;
}

    .icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .icon-btn:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

.icon-btn--ghost:hover {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

.icon-btn--danger:hover {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--c-border);
}

.pagination__info {
    font-size: 0.875rem;
    color: var(--c-text-3);
    font-weight: 500;
    white-space: nowrap;
}

.pagination__controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination__page {
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-2);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .pagination__page:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

.pagination__page--active {
    background: var(--c-brand);
    color: white;
}

    .pagination__page--active:hover {
        background: var(--c-brand-hover);
    }

/* ── FORM SECTION ────────────────────────────────────────────────────────── */
.form-section {
    margin-bottom: 1.5rem;
}

.form-section__title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text-3);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--c-border);
}


.form-group--full {
    grid-column: 1 / -1;
}

.form-input--mono {
    font-family: 'SF Mono', Monaco, monospace;
    text-transform: uppercase;
}

/* ── TOGGLE ─────────────────────────────────────────────────────────────── */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--c-surface-2);
    border-radius: var(--r-md);
}

.toggle-row__hint {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.25rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

    .toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   USERS PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ROLE TABS ───────────────────────────────────────────────────────────── */
.role-tabs {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.role-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--r-xl);
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--c-surface);
    color: var(--c-text-2);
    border: 1.5px solid var(--c-border);
    cursor: pointer;
    transition: all var(--t-fast);
}

    .role-tab:hover {
        border-color: var(--c-brand-mid);
        color: var(--c-brand);
    }

.role-tab--active {
    background: var(--c-brand-light);
    border-color: var(--c-brand);
    color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.role-tab__icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: white;
}

    .role-tab__icon svg {
        width: 14px;
        height: 14px;
    }

.role-tab__count {
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    padding: 0.0625rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--c-text-3);
}

.role-tab--active .role-tab__count {
    background: rgba(37, 99, 235, 0.12);
    color: var(--c-brand);
}

/* ── TOOLBAR ─────────────────────────────────────────────────────────────── */


.toolbar-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}

.toolbar-search__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    pointer-events: none;
}

.toolbar-search__input {
    width: 100%;
    padding-left: 2.25rem;
}

.toolbar-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toolbar-filter__label {
    font-size: 0.875rem;
    color: var(--c-text-2);
    font-weight: 500;
}

.toolbar-count {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--c-text-3);
    font-weight: 500;
}

/* ── USER CELL ───────────────────────────────────────────────────────────── */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.9375rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.user-avatar--lg {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.user-cell__info {
    line-height: 1.35;
}

.user-cell__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
}

.user-cell__meta {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── ROLE BADGE ──────────────────────────────────────────────────────────── */
.role-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── BADGE WITH DOT ──────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}

    .badge__dot::after {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        border: 1.5px solid currentColor;
        animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    }

.badge--green {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.badge--gray {
    background: var(--c-surface-2);
    color: var(--c-text-3);
}

/* ── ACTION MENU / DROPDOWN ──────────────────────────────────────────────── */
.action-menu {
    position: relative;
}

.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    min-width: 180px;
    overflow: hidden;
    animation: slideDown 0.15s var(--ease-out);
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--t-fast);
}

.dropdown__item--danger {
    color: var(--c-danger);
}

    .dropdown__item--danger:hover {
        background: var(--c-danger-bg);
    }

.dropdown__item--success {
    color: var(--c-success);
}

    .dropdown__item--success:hover {
        background: var(--c-success-bg);
    }

.dropdown__divider {
    height: 1px;
    background: var(--c-border);
    margin: 0.25rem 0;
}

/* ── TABLE MODIFIERS ─────────────────────────────────────────────────────── */
.card--table {
    padding: 0;
    overflow: hidden;
}

.data-table__actions {
    width: 48px;
    text-align: right;
}

.data-table__row--muted td {
    opacity: 0.55;
}

.data-table__row--muted:hover td {
    opacity: 0.8;
}

/* ── CONFIRM MODAL USER ──────────────────────────────────────────────────── */
.confirm-user {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.confirm-user__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

.confirm-user__email {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── SKELETON TABLE ──────────────────────────────────────────────────────── */
.skeleton-table {
    padding: 1.5rem;
}

.skeleton-header {
    height: 36px;
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    margin-bottom: 0.75rem;
}

.skeleton-row {
    height: 56px;
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    margin-bottom: 0.5rem;
    opacity: 0.6;
}





/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .role-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-search {
        max-width: 100%;
    }

    .toolbar-count {
        margin-left: 0;
    }

    .user-cell__meta {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUSES / FLEET PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── FLEET CHIPS ─────────────────────────────────────────────────────────── */
.fleet-chips {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.fleet-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.875rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--c-surface);
    color: var(--c-text-2);
    cursor: pointer;
    transition: all var(--t-fast);
}

    .fleet-chip:hover {
        border-color: var(--c-brand-mid);
        color: var(--c-brand);
    }

.fleet-chip--active {
    background: var(--c-brand-light);
    border-color: var(--c-brand);
    color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.fleet-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fleet-chip__count {
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    padding: 0.0625rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--c-text-3);
}

.fleet-chip--active .fleet-chip__count {
    background: rgba(37, 99, 235, 0.12);
    color: var(--c-brand);
}

/* ── BUS GRID ────────────────────────────────────────────────────────────── */
.bus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* ── BUS CARD ────────────────────────────────────────────────────────────── */
.bus-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-mid), transform var(--t-mid);
}

    .bus-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.bus-card__bar {
    height: 4px;
}

.bus-card__body {
    padding: 1.25rem;
}

.bus-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.bus-card__plate {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--c-text);
}

.bus-card__model {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

/* ── BUS META ────────────────────────────────────────────────────────────── */
.bus-card__meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

    .bus-card__meta span {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.8125rem;
        color: var(--c-text-2);
        font-weight: 500;
    }

    .bus-card__meta svg {
        width: 16px;
        height: 16px;
        opacity: 0.7;
    }

.bus-card__location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--c-text-2);
    font-weight: 500;
}

    .bus-card__location svg {
        width: 16px;
        height: 16px;
        opacity: 0.7;
        color: var(--c-brand);
    }

/* ── MAINTENANCE ALERT ───────────────────────────────────────────────────── */
.bus-card__maintenance {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border-radius: var(--r-sm);
}

    .bus-card__maintenance svg {
        width: 14px;
        height: 14px;
    }

.bus-card__maintenance--ok {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.bus-card__maintenance--warn {
    background: var(--c-warning-bg);
    color: var(--c-warning);
}

.bus-card__maintenance--urgent {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

.bus-card__maintenance-days {
    margin-left: auto;
    font-weight: 700;
}

/* ── CARD ACTIONS ────────────────────────────────────────────────────────── */
.bus-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--c-border);
}

    .bus-card__actions .btn {
        font-size: 0.8125rem;
        padding: 0.375rem 0.625rem;
    }

        .bus-card__actions .btn svg {
            width: 14px;
            height: 14px;
        }

/* ── SKELETON ────────────────────────────────────────────────────────────── */
.bus-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.bus-skeleton__card {
    height: 200px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .bus-grid,
    .bus-skeleton {
        grid-template-columns: 1fr;
    }

    .fleet-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .fleet-chip {
        white-space: nowrap;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUS DETAIL DRAWER — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── OVERLAY ─────────────────────────────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 900;
    animation: fadeIn 0.15s ease;
}

/* ── DRAWER ──────────────────────────────────────────────────────────────── */
.drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(440px, 100vw);
    background: var(--c-surface);
    box-shadow: var(--shadow-xl);
    z-index: 901;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.25s var(--ease-out);
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--c-border);
    flex-shrink: 0;
    gap: 1rem;
}

.drawer__title-group {
    min-width: 0;
}

.drawer__plate {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--c-text);
}

.drawer__subtitle {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

.drawer__header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.drawer__close {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-3);
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.25rem;
}

    .drawer__close:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

    .drawer__close svg {
        width: 18px;
        height: 18px;
    }

/* ── BODY ────────────────────────────────────────────────────────────────── */
.drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.drawer__section {
    margin-top: 1.25rem;
}

.drawer__section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-3);
    margin-bottom: 0.625rem;
}

/* ── STATUS ACTIONS ──────────────────────────────────────────────────────── */
.status-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .status-actions .btn svg {
        width: 14px;
        height: 14px;
    }

/* ── MAINTENANCE BUTTON ──────────────────────────────────────────────────── */
.btn--maintenance {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

    .btn--maintenance svg {
        width: 18px;
        height: 18px;
    }

/* ── LOADING & EMPTY ─────────────────────────────────────────────────────── */
.drawer__loading {
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.drawer__empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--c-text-3);
}

    .drawer__empty svg {
        width: 32px;
        height: 32px;
        margin: 0 auto 0.75rem;
        opacity: 0.5;
    }

    .drawer__empty p {
        font-size: 0.875rem;
    }

/* ── TIMELINE ────────────────────────────────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: var(--c-border);
    }

.timeline__item {
    display: flex;
    gap: 0.875rem;
    padding: 0.75rem 0;
    position: relative;
}

.timeline__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-surface-2);
    border: 2px solid var(--c-border);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    z-index: 1;
    color: var(--c-text-3);
    transition: all 0.3s;
}

    .timeline__dot svg {
        width: 14px;
        height: 14px;
    }

.timeline__dot--active {
    background: var(--c-brand-light);
    border-color: var(--c-brand);
    color: var(--c-brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.timeline__content {
    flex: 1;
    padding-top: 0.25rem;
    min-width: 0;
}

.timeline__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

.timeline__meta {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.375rem;
}

.timeline__desc {
    font-size: 0.8125rem;
    color: var(--c-text-2);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.timeline__next {
    font-size: 0.75rem;
    color: var(--c-text-3);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .drawer {
        width: 100vw;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRIVERS PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ALERT BANNER ────────────────────────────────────────────────────────── */
.alert--banner {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

    .alert--banner svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 0.125rem;
    }

/* ── TABS ────────────────────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1.5px solid var(--c-border);
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text-3);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast);
}

    .tab:hover {
        color: var(--c-text);
    }

.tab--active {
    color: var(--c-brand);
    border-bottom-color: var(--c-brand);
}


.tab svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.tab--active svg {
    opacity: 1;
    color: var(--c-brand);
}

.tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-text-3);
}

.tab--active .tab__count {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

/* ── TAB CONTENT ───────────────────────────────────────────────────────── */
.tab-content {
    animation: fadeIn 0.3s var(--ease-out);
}

/* ── DRIVER CELL ─────────────────────────────────────────────────────────── */
.driver-cell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.driver-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-brand-light);
    color: var(--c-brand);
    font-size: 0.9375rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.driver-cell__info {
    line-height: 1.35;
}

.driver-cell__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
}

.driver-cell__meta {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── LICENSE ─────────────────────────────────────────────────────────────── */
.license-number {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: 0.02em;
}

/* ── EXPIRY ──────────────────────────────────────────────────────────────── */
.expiry-date {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
}

.expiry-date--danger {
    color: var(--c-danger);
}

.expiry-date--warning {
    color: var(--c-warning);
}

.expiry-warning {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--c-warning);
    margin-top: 0.25rem;
}

    .expiry-warning svg {
        width: 14px;
        height: 14px;
    }

/* ── TRIPS ───────────────────────────────────────────────────────────────── */
.trip-count {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text);
}

.trip-late {
    font-size: 0.8125rem;
    color: var(--c-warning);
    font-weight: 500;
    margin-top: 0.125rem;
}

/* ── TABLE CLICKABLE ROW ─────────────────────────────────────────────────── */
.data-table__row--clickable {
    cursor: pointer;
    transition: background var(--t-fast);
}

    .data-table__row--clickable:hover {
        background: var(--c-surface-2);
    }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab {
        white-space: nowrap;
    }

    .data-table th:nth-child(4),
    .data-table td:nth-child(4),
    .data-table th:nth-child(5),
    .data-table td:nth-child(5) {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DRIVER DETAIL DRAWER — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── IDENTITY ────────────────────────────────────────────────────────────── */
.drawer__identity {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.drawer__identity-info {
    min-width: 0;
}

.drawer__identity-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.01em;
}

.drawer__identity-meta {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

/* ── DRIVER AVATAR ───────────────────────────────────────────────────────── */
.driver-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-brand-light);
    color: var(--c-brand);
    font-size: 0.9375rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.driver-avatar--lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

/* ── PERFORMANCE STRIP ───────────────────────────────────────────────────── */
.perf-strip {
    display: flex;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-surface-2);
}

.perf-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 0.625rem;
    gap: 0.25rem;
    border-right: 1px solid var(--c-border);
}

    .perf-cell:last-child {
        border-right: none;
    }

.perf-cell__value {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.perf-cell__value--danger {
    color: var(--c-danger);
}

.perf-cell__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── DETAIL GRID FULL WIDTH ──────────────────────────────────────────────── */
.detail-grid__full {
    grid-column: 1 / -1;
}

/* ── COMPACT ALERT ───────────────────────────────────────────────────────── */
.alert--compact {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

    .alert--compact svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin-top: 0.125rem;
    }

    .alert--compact strong {
        font-weight: 700;
        color: var(--c-warning);
    }

/* ── STATUS ACTIONS ──────────────────────────────────────────────────────── */
.status-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .status-actions .btn svg {
        width: 14px;
        height: 14px;
    }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .perf-strip {
        flex-direction: column;
    }

    .perf-cell {
        border-right: none;
        border-bottom: 1px solid var(--c-border);
        flex-direction: row;
        justify-content: space-between;
        padding: 0.625rem 1rem;
    }

        .perf-cell:last-child {
            border-bottom: none;
        }

    .perf-cell__label {
        font-size: 0.8125rem;
        text-transform: none;
        letter-spacing: normal;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REGISTER BUS MODAL — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── FORM GRID ───────────────────────────────────────────────────────────── */

.form-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.form-group--full {
    grid-column: 1 / -1;
}

/* ── PLATE INPUT ─────────────────────────────────────────────────────────── */
.form-input--plate {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ── SMALL SPINNER ───────────────────────────────────────────────────────── */
.btn__spinner--sm {
    width: 14px;
    height: 14px;
}

    .btn__spinner--sm circle,
    .btn__spinner--sm path {
        stroke-width: 3;
    }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REGISTER DRIVER MODAL — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── FORM SECTION ────────────────────────────────────────────────────────── */
.form-section {
    border-top: 1px solid var(--c-border);
    padding-top: 1rem;
    margin-top: 0.25rem;
}

.form-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text-3);
}

/* ── MONO INPUT ──────────────────────────────────────────────────────────── */
.form-input--mono {
    text-transform: uppercase;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}

/* ── COMPACT ALERT (reused from driver drawer, ensure it's in shared CSS) ── */
.alert--compact {
    margin-top: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    .alert--compact svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-top: 0.125rem;
    }

    .alert--compact strong {
        font-weight: 700;
    }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-grid--2 {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   EXPENSES PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TOOLBAR DATES ───────────────────────────────────────────────────────── */
.toolbar--dates {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.toolbar__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    margin: 0;
}

.toolbar__date {
    width: 148px;
}

.toolbar__sep {
    color: var(--c-text-3);
    font-size: 0.875rem;
}

.toolbar__filter {
    width: 180px;
}

.toolbar__quick {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* ── STAT GRID COMPACT ───────────────────────────────────────────────────── */
.stat-grid--compact {
    margin-bottom: 1.5rem;
}

.stat-card--accent {
    border-left: 4px solid var(--c-brand);
}

.stat-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-card__count {
    background: var(--c-surface-2);
    color: var(--c-text-3);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: var(--r-full);
}

.stat-card__value--sm {
    font-size: 1.125rem;
}

/* ── EXPENSE TABLE ───────────────────────────────────────────────────────── */
.expense-date__day {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--c-text);
}

.expense-date__year {
    font-size: 0.8125rem;
}

.expense-desc {
    font-size: 0.875rem;
    color: var(--c-text);
    display: block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expense-amount {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--c-text);
}

.mono-text {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: 0.02em;
}

/* ── CATEGORY BADGE ──────────────────────────────────────────────────────── */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

    .category-badge svg {
        width: 14px;
        height: 14px;
    }

.category-badge--warning {
    background: var(--c-warning-bg);
    color: var(--c-warning);
}

.category-badge--info {
    background: var(--c-info-bg);
    color: var(--c-info);
}

.category-badge--primary {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

.category-badge--success {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.category-badge--secondary {
    background: var(--c-surface-2);
    color: var(--c-text-2);
}

/* ── TABLE FOOTER ────────────────────────────────────────────────────────── */
.table-footer {
    background: var(--c-surface-2);
    font-weight: 700;
}

    .table-footer td {
        padding: 0.625rem 1rem;
    }

.table-footer__label {
    text-align: right;
    color: var(--c-text-2);
    font-size: 0.875rem;
}

.table-footer__value {
    font-size: 0.9375rem;
    color: var(--c-text);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .toolbar--dates {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar__date,
    .toolbar__filter {
        width: 100%;
    }

    .toolbar__quick {
        margin-left: 0;
    }

    .expense-desc {
        max-width: 120px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REPORTS PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── REPORTS GRID ────────────────────────────────────────────────────────── */
.reports-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.reports-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── STAT CARD TOP BORDER ────────────────────────────────────────────────── */
.stat-card--top {
    border-top: 3px solid var(--c-border-dark);
}

.stat-card--success {
    border-top-color: var(--c-success);
}

.stat-card--danger {
    border-top-color: var(--c-danger);
}

.stat-card--brand {
    border-top-color: var(--c-brand);
}

.stat-card__value--success {
    color: var(--c-success);
}

.stat-card__value--danger {
    color: var(--c-danger);
}

/* ── BAR CHART ───────────────────────────────────────────────────────────── */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    height: 220px;
    padding: 0 0.25rem;
    overflow-x: auto;
}

.bar-chart__col {
    flex: 1;
    min-width: 28px;
    max-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 0.25rem;
    cursor: pointer;
}

.bar-chart__label-top {
    font-size: 0.625rem;
    color: var(--c-text-3);
    font-weight: 600;
    text-align: center;
    height: 16px;
    white-space: nowrap;
    overflow: hidden;
}

.bar-chart__track {
    flex: 1;
    width: 100%;
    background: var(--c-surface-2);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bar-chart__fill {
    width: 100%;
    height: var(--bar-height, 0%);
    background: var(--c-brand);
    border-radius: 4px 4px 0 0;
    transition: height 0.4s var(--ease), background 0.2s;
    min-height: 2px;
}

.bar-chart__col:hover .bar-chart__fill {
    background: var(--c-brand-hover);
}

.bar-chart__label-bottom {
    font-size: 0.625rem;
    color: var(--c-text-3);
    text-align: center;
    height: 14px;
    white-space: nowrap;
}

/* ── P&L LIST ────────────────────────────────────────────────────────────── */
.pnl-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pnl-divider {
    height: 1px;
    background: var(--c-border);
    margin: 0.25rem 0;
}

/* ── MARGIN CARD ─────────────────────────────────────────────────────────── */
.margin-card {
    margin-top: 0.5rem;
    padding: 0.75rem 0.875rem;
    background: var(--c-surface-2);
    border-radius: var(--r-md);
}

.margin-card__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.margin-card__label {
    font-size: 0.8125rem;
    color: var(--c-text-2);
}

.margin-card__value {
    font-size: 0.8125rem;
    font-weight: 700;
}

.margin-card__value--positive {
    color: var(--c-success);
}

.margin-card__value--negative {
    color: var(--c-danger);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIPS PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TABS ────────────────────────────────────────────────────────────────── */
.trip-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1.5px solid var(--c-border);
}

.trip-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text-3);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
}

    .trip-tab:hover {
        color: var(--c-text);
    }

.trip-tab--active {
    color: var(--c-brand);
    border-bottom-color: var(--c-brand);
}

.trip-tab__count {
    background: var(--c-brand-light);
    color: var(--c-brand);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.0625rem 0.375rem;
    border-radius: var(--r-full);
}

/* ── TOOLBAR DATE ────────────────────────────────────────────────────────── */
.toolbar-date {
    width: 160px;
    flex-shrink: 0;
}

.toolbar-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── TRIP TABLE ──────────────────────────────────────────────────────────── */
.trip-table__code {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--c-brand);
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: -0.01em;
}

.trip-table__route {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--c-text);
}

.trip-table__time {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--c-text);
}

.trip-table__asset {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--c-text);
}

    .trip-table__asset svg {
        width: 14px;
        height: 14px;
        opacity: 0.7;
        flex-shrink: 0;
    }

.trip-table__fare {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}

/* ── MODAL BODY & FOOTER ─────────────────────────────────────────────────── */
.modal-body {
    padding: 0.5rem 0 1rem;
}

.modal-body__text {
    font-size: 0.9375rem;
    color: var(--c-text-2);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .trip-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .toolbar {
        flex-wrap: wrap;
    }

    .toolbar-date {
        width: 100%;
    }

    .trip-table__asset svg {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIP DETAIL PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── PAGE BACK ───────────────────────────────────────────────────────────── */
.page-back {
    margin-bottom: 0.5rem;
}

/* ── INFO STRIP ──────────────────────────────────────────────────────────── */
.info-strip {
    display: flex;
    gap: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--c-surface);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* InfoChip component styles (if not already defined) */
.info-chip {
    flex: 1;
    padding: 0.875rem 1.125rem;
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .info-chip:last-child {
        border-right: none;
    }

.info-chip__icon-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: var(--c-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .info-chip__icon-label svg {
        width: 14px;
        height: 14px;
        opacity: 0.7;
    }

.info-chip__value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text);
}

/* ── DETAIL GRID ─────────────────────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.25rem;
    align-items: start;
}

.detail-grid__main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.detail-grid__side {
    position: relative;
}

.card--sticky {
    position: sticky;
    top: 76px;
}

/* ── REVENUE GRID ────────────────────────────────────────────────────────── */
.rev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    padding: 0 1.5rem 1.5rem;
}

.rev-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rev-metric__label {
    font-size: 0.75rem;
    color: var(--c-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rev-metric__value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text);
}

.rev-metric__value--muted {
    color: var(--c-text-3);
}

.rev-metric__value--bold {
    font-size: 1.25rem;
    color: var(--c-brand);
}

/* ── SEAT LABEL ──────────────────────────────────────────────────────────── */
.seat-label {
    background: var(--c-brand-light);
    color: var(--c-brand);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--r-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    letter-spacing: -0.01em;
}

/* ── TICKET NUMBER ───────────────────────────────────────────────────────── */
.ticket-number {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: var(--c-text-2);
    letter-spacing: 0.02em;
}

/* ── SEAT ALERT ──────────────────────────────────────────────────────────── */
.seat-alert {
    margin-top: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.seat-alert__text {
    font-size: 0.9375rem;
    color: var(--c-text-2);
}

/* ── DROPDOWN RIGHT ALIGN ────────────────────────────────────────────────── */
.dropdown--right {
    right: 0;
    top: calc(100% + 0.25rem);
}

/* ── BUTTON CHEVRON ──────────────────────────────────────────────────────── */
.btn__chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s var(--ease);
}

    .btn__chevron.open {
        transform: rotate(180deg);
    }

/* ── ALERT LINK ──────────────────────────────────────────────────────────── */
.alert__link {
    color: var(--c-brand);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
}

    .alert__link:hover {
        text-decoration: underline;
    }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .card--sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .info-strip {
        flex-wrap: wrap;
        border-radius: var(--r-lg);
    }

    .info-chip {
        flex: 1 1 33%;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }

        .info-chip:nth-child(3n) {
            border-right: none;
        }

    .rev-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CREATE TRIP MODAL — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── MODAL SKELETON ──────────────────────────────────────────────────────── */
.modal-skeleton {
    padding: 0.5rem;
}

    .modal-skeleton .skeleton-header {
        height: 24px;
        width: 60%;
        background: var(--c-surface-2);
        border-radius: var(--r-md);
        margin-bottom: 1.5rem;
    }

    .modal-skeleton .skeleton-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .modal-skeleton .skeleton-field {
        height: 64px;
        background: var(--c-surface-2);
        border-radius: var(--r-md);
    }

    .modal-skeleton .skeleton-field--full {
        grid-column: 1 / -1;
    }



.form-grid--2col {
    grid-template-columns: 1fr 1fr;
}

.form-group--full {
    grid-column: 1 / -1;
}

/* ── FORM SELECT ─────────────────────────────────────────────────────────── */
.form-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
    .form-select:disabled {
        background: var(--c-surface-2);
        color: var(--c-text-3);
        cursor: not-allowed;
    }

.form-select__chevron {
    position: absolute;
    right: 0.75rem;
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    pointer-events: none;
}

/* ── FORM INPUT LOADING STATE ────────────────────────────────────────────── */
.form-input--loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-text-3);
    background: var(--c-surface-2);
    cursor: wait;
}

.form-input__spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

/* ── INPUT WITH PREFIX ───────────────────────────────────────────────────── */
.form-input-wrap--prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input__prefix {
    position: absolute;
    left: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text-3);
    pointer-events: none;
}

.form-input-wrap--prefix .form-input {
    padding-left: 2rem;
}

/* ── ETA BANNER ──────────────────────────────────────────────────────────── */
.eta-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--c-info-bg);
    border: 1px solid var(--c-info-mid);
    border-radius: var(--r-md);
    color: var(--c-info);
}

    .eta-banner svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

.eta-banner__text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    font-size: 0.9375rem;
}

    .eta-banner__text strong {
        color: var(--c-text);
        font-weight: 700;
    }

.eta-banner__duration {
    color: var(--c-text-3);
    font-size: 0.875rem;
}

/* ── FORM LABEL OPTIONAL ─────────────────────────────────────────────────── */
.form-label__optional {
    font-weight: 400;
    color: var(--c-text-3);
    font-size: 0.8125rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-grid--2col {
        grid-template-columns: 1fr;
    }

    .modal-skeleton .skeleton-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ROUTES PAGE — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ROUTE GRID ──────────────────────────────────────────────────────────── */
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

/* ── ROUTE CARD ──────────────────────────────────────────────────────────── */
.route-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-mid), transform var(--t-mid);
}

    .route-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.route-card--inactive {
    opacity: 0.65;
}

.route-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.625rem;
    gap: 0.75rem;
}

.route-card__cities {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-card__arrow {
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    flex-shrink: 0;
}

.route-card__name {
    font-size: 0.75rem;
    color: var(--c-text-3);
    margin-top: 0.25rem;
}

.route-card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
}

.route-card__duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--c-text-3);
    font-weight: 500;
}

    .route-card__duration svg {
        width: 14px;
        height: 14px;
    }

/* ── ROUTE META ──────────────────────────────────────────────────────────── */
.route-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--c-text-3);
    flex-wrap: wrap;
    font-weight: 500;
}

    .route-card__meta span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .route-card__meta svg {
        width: 14px;
        height: 14px;
        opacity: 0.7;
    }

/* ── ROUTE STOPS ─────────────────────────────────────────────────────────── */
.route-stops {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--c-border);
}

.route-stops__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text-3);
    margin-bottom: 0.5rem;
}

/* ── STOPS TIMELINE ──────────────────────────────────────────────────────── */
.stops-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stop-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.375rem 0;
    position: relative;
}

    .stop-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 7px;
        top: 22px;
        bottom: -6px;
        width: 2px;
        background: var(--c-border);
    }

.stop-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--c-surface-2);
    border: 2px solid var(--c-border-dark);
    flex-shrink: 0;
    margin-top: 2px;
    z-index: 1;
}

.stop-dot--origin {
    background: var(--c-success);
    border-color: var(--c-success);
}

.stop-dot--destination {
    background: var(--c-danger);
    border-color: var(--c-danger);
}

.stop-label {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

.stop-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text);
}

.stop-time {
    font-size: 0.6875rem;
    color: var(--c-text-3);
}

/* ── LOADING STATE ───────────────────────────────────────────────────────── */
.route-card__loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--c-text-3);
    font-size: 0.875rem;
}

.route-card__spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

/* ── SKELETON ────────────────────────────────────────────────────────────── */
.route-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.route-skeleton__card {
    height: 140px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .route-grid,
    .route-skeleton {
        grid-template-columns: 1fr;
    }

    .route-card__header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .route-card__badges {
        flex-direction: row;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEATMAP COMPONENT — TripDesk
   ═══════════════════════════════════════════════════════════════════════════ */

.seatmap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.seatmap-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--c-text-3);
    text-align: center;
    padding: 1.5rem 0;
}

    .seatmap-empty svg {
        width: 32px;
        height: 32px;
        opacity: 0.5;
    }

/* ── FRONT LABEL ─────────────────────────────────────────────────────────── */
.seatmap-front {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--c-text-3);
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1.5px dashed var(--c-border);
}

    .seatmap-front svg {
        width: 18px;
        height: 18px;
        opacity: 0.7;
    }

/* ── GRID ────────────────────────────────────────────────────────────────── */
.seatmap-grid {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.seatmap-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.seatmap-row__num {
    width: 18px;
    flex-shrink: 0;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--c-text-3);
    text-align: right;
    user-select: none;
}

.seatmap-block {
    display: flex;
    gap: 0.3125rem;
}

.seatmap-aisle {
    width: 20px;
    flex-shrink: 0;
}

.seatmap-placeholder {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 7px;
    background: transparent;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.seatmap-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--c-border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── LEGEND ──────────────────────────────────────────────────────────────── */
.seatmap-legend {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.seatmap-legend__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--c-text-2);
    font-weight: 500;
}

.seatmap-legend__dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}

.seatmap-legend__dot--available {
    background: var(--c-success-bg);
    border: 1.5px solid var(--c-success-mid);
}

.seatmap-legend__dot--occupied {
    background: var(--c-danger-bg);
    border: 1.5px solid var(--c-danger-mid);
}

.seatmap-legend__dot--selected {
    background: var(--c-brand);
    border: 1.5px solid var(--c-brand);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ── SELECTED LABEL ──────────────────────────────────────────────────────── */
.seatmap-selected {
    font-size: 0.75rem;
    color: var(--c-brand);
    font-weight: 600;
}

    .seatmap-selected strong {
        font-weight: 800;
    }


/* ── FORM LAYOUT ───────────────────────────────────────────────────────── */
.route-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-3);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}
    .form-input.is-invalid {
        border-color: var(--c-danger-mid);
        background: var(--c-danger-bg);
    }

        .form-input.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        }

/* ── DURATION INPUT ────────────────────────────────────────────────────── */
.duration-input {
    position: relative;
    display: flex;
    align-items: center;
}

.duration-hint {
    position: absolute;
    right: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-brand);
    pointer-events: none;
    background: var(--c-brand-light);
    padding: 0.125rem 0.5rem;
    border-radius: var(--r-sm);
}

/* ── STOPS BUILDER ─────────────────────────────────────────────────────── */
.stops-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.stops-header__hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.125rem 0.5rem;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
}

.stops-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 1.5px dashed var(--c-border);
    border-radius: var(--r-lg);
    text-align: center;
    transition: all 0.2s;
}

    .stops-empty:hover {
        border-color: var(--c-brand-mid);
        background: var(--c-brand-light);
    }

.stops-empty__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    background: var(--c-surface-2);
    display: grid;
    place-items: center;
    color: var(--c-text-3);
}

    .stops-empty__icon svg {
        width: 20px;
        height: 20px;
    }

.stops-empty p {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text-2);
}

.stops-empty span {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

.stops-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.stop-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: all 0.2s;
    animation: slideUp 0.25s ease;
}

    .stop-row:hover {
        border-color: var(--c-brand-mid);
        background: var(--c-brand-light);
    }

.stop-row__badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 138, 0, 0.25);
}

.stop-row__fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr 120px;
    gap: 0.625rem;
}

.stop-minutes {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stop-minutes__label {
    font-size: 0.6875rem;
    color: var(--c-text-3);
    font-weight: 500;
    text-align: center;
}


.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-3);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .btn-icon:hover {
        background: var(--c-surface);
        color: var(--c-text);
    }

.btn-icon--danger {
    color: var(--c-danger);
}

    .btn-icon--danger:hover {
        background: var(--c-danger-bg);
        color: var(--c-danger);
    }

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-add-stop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1.5px dashed var(--c-border);
    border-radius: var(--r-md);
    background: transparent;
    color: var(--c-brand);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-add-stop:hover {
        border-color: var(--c-brand);
        background: var(--c-brand-light);
        color: var(--c-brand-hover);
    }

    .btn-add-stop svg {
        width: 18px;
        height: 18px;
    }

/* ── SPINNER ───────────────────────────────────────────────────────────── */
.spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}


/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stop-row__fields {
        grid-template-columns: 1fr;
    }

    .stop-row {
        flex-wrap: wrap;
    }

    .stop-row__badge {
        order: -1;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TRIPDESK — ISSUE TICKET MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── FORM LAYOUT ─────────────────────────────────────────────────────────── */
.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.ticket-section {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ticket-section__header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.25rem;
}

.ticket-section__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--c-brand-light, #EFF6FF);
    color: var(--c-brand, #2563EB);
    display: grid;
    place-items: center;
}

    .ticket-section__icon svg {
        width: 18px;
        height: 18px;
    }

.ticket-section__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text, #0F172A);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── FORM GRID ───────────────────────────────────────────────────────────── */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group--full {
    grid-column: 1 / -1;
}


.form-req {
    color: var(--c-danger, #DC2626);
    font-weight: 700;
}



    .form-input.is-invalid {
        border-color: var(--c-danger-mid, #FECACA);
        background: var(--c-danger-bg, #FEF2F2);
    }

        .form-input.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        }

.form-input--readonly {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--c-surface-2, #F1F5F9);
    color: var(--c-text-2, #475569);
    font-weight: 600;
}



/* Input with icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    width: 16px;
    height: 16px;
    color: var(--c-text-3, #94A3B8);
    pointer-events: none;
    z-index: 2;
}

.input-with-icon .form-input {
    padding-left: 2.25rem;
}

/* ── SELECT ──────────────────────────────────────────────────────────────── */
.select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}


.select-chevron {
    position: absolute;
    right: 0.75rem;
    width: 16px;
    height: 16px;
    color: var(--c-text-3, #94A3B8);
    pointer-events: none;
}



/* ── LOOKUP ROW ──────────────────────────────────────────────────────────── */
.lookup-row {
    display: flex;
    gap: 0.625rem;
    align-items: flex-end;
}

.lookup-field {
    flex: 1;
    margin: 0;
}

.lookup-btn {
    white-space: nowrap;
}

.lookup-result {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

    .lookup-result svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .lookup-result strong {
        font-weight: 700;
        color: var(--c-text, #0F172A);
    }

.lookup-result__meta {
    color: var(--c-text-3, #94A3B8);
    font-size: 0.875rem;
}

/* ── SEAT FIELD ──────────────────────────────────────────────────────────── */
.seat-field {
    display: flex;
    align-items: flex-end;
    gap: 0.875rem;
}

.seat-input {
    max-width: 140px;
}

.seat-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--c-success, #16A34A);
    font-weight: 500;
    padding-bottom: 0.5rem;
}

    .seat-hint svg {
        width: 14px;
        height: 14px;
    }


/* ── FARE SUMMARY ────────────────────────────────────────────────────────── */
.fare-summary {
    background: var(--c-surface-2, #F1F5F9);
    border: 1px solid var(--c-border, #E2E8F0);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.fare-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    padding: 0.375rem 0;
}

    .fare-summary__row span:first-child {
        color: var(--c-text-2, #475569);
    }

    .fare-summary__row span:last-child {
        font-weight: 600;
        color: var(--c-text, #0F172A);
    }

.fare-summary__row--discount {
    color: var(--c-success, #16A34A);
}

    .fare-summary__row--discount span:last-child {
        color: var(--c-success, #16A34A);
        font-weight: 700;
    }

.fare-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 800;
    border-top: 1.5px solid var(--c-border, #E2E8F0);
    padding-top: 0.75rem;
    margin-top: 0.375rem;
}

    .fare-summary__total span:first-child {
        color: var(--c-text, #0F172A);
    }

    .fare-summary__total span:last-child {
        color: var(--c-brand, #2563EB);
        font-size: 1.125rem;
    }





.spinner--sm {
    width: 14px;
    height: 14px;
}



/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-grid--2 {
        grid-template-columns: 1fr;
    }

    .lookup-row {
        flex-wrap: wrap;
    }

    .lookup-field {
        width: 100%;
        flex: none;
    }

    .lookup-btn {
        flex: 1;
    }

    .seat-field {
        flex-wrap: wrap;
    }

    .seat-input {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIPDESK — MODAL COMPONENT
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── OVERLAY ─────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(13, 27, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: modalFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── MODAL BOX ───────────────────────────────────────────────────────────── */
.modal {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    background: var(--c-surface, #FFFFFF);
    border: 1px solid var(--c-border, #E2E8F0);
    border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(13, 27, 42, 0.25);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal--sm {
    max-width: 360px;
}

.modal--lg {
    max-width: 640px;
}

.modal--xl {
    max-width: 800px;
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--c-border, #E2E8F0);
    flex-shrink: 0;
}

.modal__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--c-text, #0F172A);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0;
}

.modal__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--c-text-3, #94A3B8);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin: -4px -4px -4px 0;
}

    .modal__close:hover {
        background: var(--c-surface-2, #F1F5F9);
        color: var(--c-text, #0F172A);
    }

    .modal__close:active {
        transform: scale(0.95);
    }

    .modal__close svg {
        width: 18px;
        height: 18px;
    }

/* ── BODY ────────────────────────────────────────────────────────────────── */
.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

    .modal__body::-webkit-scrollbar {
        width: 6px;
    }

    .modal__body::-webkit-scrollbar-track {
        background: transparent;
    }

    .modal__body::-webkit-scrollbar-thumb {
        background: var(--c-border-dark, #CBD5E1);
        border-radius: 999px;
    }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--c-border, #E2E8F0);
    background: var(--c-surface, #FFFFFF);
    flex-shrink: 0;
}

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        animation: modalSlideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modal__header {
        padding: 1rem 1.25rem;
    }

    .modal__body {
        padding: 1.25rem;
    }

    .modal__footer {
        padding: 0.875rem 1.25rem;
        flex-direction: column-reverse;
    }

        .modal__footer .btn {
            width: 100%;
        }
}

@keyframes modalSlideUpMobile {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRIPDESK — EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════════ */



.empty-state__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--c-brand-light, #EFF6FF) 0%, #F1F5F9 100%);
    color: var(--c-brand, #2563EB);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

    .empty-state__icon svg {
        width: 28px;
        height: 28px;
    }

.empty-state__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--c-text, #0F172A);
    letter-spacing: -0.01em;
    margin: 0 0 0.375rem;
}

.empty-state__desc {
    font-size: 0.9375rem;
    color: var(--c-text-3, #94A3B8);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 0 1.25rem;
}

.empty-state__action {
    margin-top: 0.25rem;
}

/* ── VARIANTS ────────────────────────────────────────────────────────────── */

/* Compact — for inline use inside cards/tables */
.empty-state--compact {
    padding: 2rem 1rem;
}

    .empty-state--compact .empty-state__icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

        .empty-state--compact .empty-state__icon svg {
            width: 22px;
            height: 22px;
        }

    .empty-state--compact .empty-state__title {
        font-size: 0.9375rem;
    }

    .empty-state--compact .empty-state__desc {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

/* Small — for tight spaces like dropdowns */
.empty-state--sm {
    padding: 1.25rem 1rem;
}

   

        .empty-state--sm .empty-state__icon svg {
            width: 18px;
            height: 18px;
        }

    .empty-state--sm .empty-state__title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .empty-state--sm .empty-state__desc {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

/* ── ANIMATION ───────────────────────────────────────────────────────────── */
@keyframes emptyFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── FILTER TOOLBAR ─────────────────────────────────────────────────────── */
.filter-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* ── FILTER GROUP (LEFT) ────────────────────────────────────────────────── */
.filter-group {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

/* ── FILTER FIELD ───────────────────────────────────────────────────────── */
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.filter-field--date {
    min-width: 280px;
}

.filter-field--action {
    padding-bottom: 0.125rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-3);
    white-space: nowrap;
}

/* ── DATE RANGE ─────────────────────────────────────────────────────────── */
.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input-wrap {
    position: relative;
    flex: 1;
}

.date-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    pointer-events: none;
}

.date-separator {
    color: var(--c-text-3);
    display: flex;
    align-items: center;
    padding-bottom: 0.125rem;
}

    .date-separator svg {
        width: 16px;
        height: 16px;
    }

/* ── INPUT WRAPS ────────────────────────────────────────────────────────── */
.input-wrap,
.select-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--c-text-3);
    pointer-events: none;
}

/* ── FILTER INPUT ───────────────────────────────────────────────────────── */
.filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding-left: 2.25rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface-2);
    color: var(--c-text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--t-fast);
    outline: none;
}

    .filter-input::placeholder {
        color: var(--c-text-3);
    }

    .filter-input:hover {
        border-color: var(--c-border-dark);
    }

    .filter-input:focus {
        border-color: var(--c-brand-mid);
        background: var(--c-surface);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

/* Date inputs */
.filter-input--date {
    padding-left: 2.25rem;
    min-width: 130px;
}

/* Select */
.filter-input--select {
    appearance: none;
    padding-right: 2rem;
    cursor: pointer;
    min-width: 160px;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--c-text-3);
    pointer-events: none;
}

/* Text filter */
.input-wrap .filter-input {
    min-width: 200px;
}

/* ── CLEAR BUTTON ───────────────────────────────────────────────────────── */
.btn--clear {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--c-danger);
    white-space: nowrap;
}

    .btn--clear svg {
        width: 14px;
        height: 14px;
    }

    .btn--clear:hover {
        background: var(--c-danger-bg);
        color: var(--c-danger);
    }

/* ── COUNT (RIGHT) ──────────────────────────────────────────────────────── */
.filter-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    background: var(--c-brand);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--r-full);
}

.count-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text-2);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .filter-field--date {
        min-width: unset;
    }

    .date-range {
        width: 100%;
    }

    .date-input-wrap {
        flex: 1;
    }

    .filter-input,
    .input-wrap .filter-input,
    .filter-input--select {
        width: 100%;
        min-width: unset;
    }

    .filter-count {
        justify-content: flex-end;
        padding-bottom: 0;
    }
}


/* ── LOOKUP BAR ─────────────────────────────────────────────────────────── */
.lookup-bar {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.lookup-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 280px;
}

.lookup-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-3);
}

.lookup-input-wrap {
    position: relative;
}

.lookup-input__icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--c-text-3);
    pointer-events: none;
}

.lookup-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface-2);
    color: var(--c-text);
    font-size: 0.9375rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--t-fast);
    outline: none;
}

    .lookup-input::placeholder {
        font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
        font-weight: 400;
        letter-spacing: 0;
        color: var(--c-text-3);
    }

    .lookup-input:focus {
        border-color: var(--c-brand-mid);
        background: var(--c-surface);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.lookup-btn {
    white-space: nowrap;
}

    .lookup-btn svg {
        width: 18px;
        height: 18px;
    }


/* Error message */
.lookup-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--c-danger-bg);
    border: 1px solid var(--c-danger-mid);
    border-radius: var(--r-md);
    color: var(--c-danger);
    font-size: 0.875rem;
    font-weight: 500;
    animation: shake 0.4s ease;
}

    .lookup-error svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }



/* ── TICKET CARD ────────────────────────────────────────────────────────── */
.ticket-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
    animation: slideUp 0.35s var(--ease-out);
}

/* Header */
.ticket-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--c-brand-light) 0%, var(--c-surface) 100%);
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;
}

.ticket-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ticket-card__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-brand);
}

.ticket-card__number {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: var(--c-brand);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ticket-card__badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Body */
.ticket-card__body {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

/* Info grid */
.ticket-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .info-icon svg {
        width: 18px;
        height: 18px;
    }

.info-icon--user {
    background: #eff6ff;
    color: var(--c-brand);
}

.info-icon--phone {
    background: #f0fdf4;
    color: var(--c-success);
}

.info-icon--bus {
    background: #fefce8;
    color: #d97706;
}

.info-icon--clock {
    background: #f1f5f9;
    color: var(--c-text-2);
}

.info-icon--seat {
    background: #fff7ed;
    color: var(--c-accent);
}

.info-icon--money {
    background: #f0fdf4;
    color: var(--c-success);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-3);
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.info-value--highlight {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-brand);
}

.info-separator {
    color: var(--c-text-3);
    font-weight: 400;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    color: var(--c-text-3);
    flex-shrink: 0;
}

/* Actions */
.ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 200px;
}

.ticket-action {
    justify-content: flex-start;
    width: 100%;
}

    .ticket-action svg {
        width: 18px;
        height: 18px;
    }

/* ── ALERT ──────────────────────────────────────────────────────────────── */
.ticket-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    margin: 0 1.5rem 1.5rem;
    border-radius: var(--r-md);
    font-size: 0.9375rem;
}

.ticket-alert--danger {
    background: var(--c-danger-bg);
    border: 1px solid var(--c-danger-mid);
    color: var(--c-danger);
}

.ticket-alert__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ticket-alert__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.5;
}

    .ticket-alert__content strong {
        font-weight: 700;
    }

.ticket-alert__time {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.25rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lookup-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lookup-field {
        min-width: unset;
    }

    .lookup-btn {
        width: 100%;
        justify-content: center;
    }

    .ticket-card__header {
        flex-direction: column;
    }

    .ticket-card__body {
        flex-direction: column;
    }

    .ticket-info {
        grid-template-columns: 1fr;
    }

    .ticket-actions {
        min-width: unset;
        width: 100%;
    }
}

/* ── KPI STRIP ──────────────────────────────────────────────────────────── */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ── KPI CARD ───────────────────────────────────────────────────────────── */
.kpi-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--t-mid);
    position: relative;
    overflow: hidden;
}

    .kpi-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        border-radius: var(--r-lg) 0 0 var(--r-lg);
        transition: width var(--t-mid);
    }

    .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

        .kpi-card:hover::before {
            width: 4px;
        }

/* Variants */
.kpi-card--total::before {
    background: var(--c-brand);
}

.kpi-card--success::before {
    background: var(--c-success);
}

.kpi-card--danger::before {
    background: var(--c-danger);
}

.kpi-card--accent::before {
    background: var(--c-accent);
}

.kpi-card--info::before {
    background: var(--c-info);
}

/* Icons */
.kpi-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .kpi-card__icon svg {
        width: 20px;
        height: 20px;
    }

.kpi-card--total .kpi-card__icon {
    background: var(--c-brand-light);
    color: var(--c-brand);
}

.kpi-card--success .kpi-card__icon {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.kpi-card--danger .kpi-card__icon {
    background: var(--c-danger-bg);
    color: var(--c-danger);
}

.kpi-card--accent .kpi-card__icon {
    background: var(--c-accent-light);
    color: var(--c-accent);
}

.kpi-card--info .kpi-card__icon {
    background: var(--c-info-bg);
    color: var(--c-info);
}

/* Content */
.kpi-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.kpi-card__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-card__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-3);
    white-space: nowrap;
}

/* ── EMPTY STATE ────────────────────────────────────────────────────────── */
.kpi-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 2rem;
    background: var(--c-surface);
    border: 1px dashed var(--c-border);
    border-radius: var(--r-lg);
    color: var(--c-text-3);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

    .kpi-empty svg {
        width: 20px;
        height: 20px;
        opacity: 0.6;
    }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .kpi-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .kpi-card {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
    }

    .kpi-card__value {
        font-size: 1.125rem;
    }
}

/* ── DATA CARD ──────────────────────────────────────────────────────────── */
.data-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--t-mid);
}

    .data-card:hover {
        box-shadow: var(--shadow-md);
    }

/* ── TABLE WRAP ─────────────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-lg);
    border: 1px solid var(--c-border);
}

    .table-wrap::-webkit-scrollbar {
        height: 6px;
    }

    .table-wrap::-webkit-scrollbar-track {
        background: transparent;
    }

    .table-wrap::-webkit-scrollbar-thumb {
        background: var(--c-border-dark);
        border-radius: var(--r-full);
    }

/* ── DATA TABLE ─────────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 900px;
}

    /* Header */
    .data-table thead th {
        background: var(--c-surface-2);
        color: var(--c-text-2);
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0.875rem 1rem;
        text-align: left;
        white-space: nowrap;
        border-bottom: 1px solid var(--c-border);
        position: sticky;
        top: 0;
        z-index: 10;
    }

        .data-table thead th.col-actions {
            width: 1%;
            text-align: right;
            padding-right: 1.25rem;
        }

    /* Body rows */
    .data-table tbody tr {
        border-bottom: 1px solid var(--c-border);
        transition: background var(--t-fast);
        cursor: pointer;
    }

        .data-table tbody tr:last-child {
            border-bottom: none;
        }

        .data-table tbody tr:hover {
            background: var(--c-surface-2);
        }

        .data-table tbody tr.row-selected {
            background: var(--c-brand-light);
            position: relative;
        }

            .data-table tbody tr.row-selected::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                width: 3px;
                background: var(--c-brand);
            }

    /* Cells */
    .data-table tbody td {
        padding: 1rem;
        vertical-align: top;
        color: var(--c-text);
    }

/* ── CELL: TICKET ───────────────────────────────────────────────────────── */
.cell-ticket .ticket-number {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--c-brand);
    letter-spacing: -0.01em;
}

/* ── CELL: PASSENGER ────────────────────────────────────────────────────── */
.cell-passenger {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 160px;
}

.passenger-name {
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.passenger-phone {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── CELL: TRIP ─────────────────────────────────────────────────────────── */
.cell-trip {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 140px;
}

.trip-code {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--c-text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.trip-route {
    font-size: 0.8125rem;
    color: var(--c-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trip-time {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── CELL: SEAT ─────────────────────────────────────────────────────────── */
.cell-seat .seat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.25rem 0.5rem;
    background: var(--c-brand-light);
    color: var(--c-brand);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: var(--r-sm);
}

/* ── CELL: AMOUNT ───────────────────────────────────────────────────────── */
.cell-amount {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 100px;
}

.amount-value {
    font-weight: 700;
    color: var(--c-text);
    white-space: nowrap;
}

.amount-discount {
    font-size: 0.75rem;
    color: var(--c-text-3);
}

/* ── CELL: PAYMENT ──────────────────────────────────────────────────────── */
.cell-payment .payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--c-surface-2);
    color: var(--c-text-2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--r-full);
    border: 1px solid var(--c-border);
    white-space: nowrap;
}

/* ── CELL: ISSUED ───────────────────────────────────────────────────────── */
.cell-issued {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.issued-date {
    font-size: 0.875rem;
    color: var(--c-text);
}

.issued-time {
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── CELL: STATUS / BOARDING ────────────────────────────────────────────── */
.cell-status,
.cell-boarding {
    white-space: nowrap;
}

/* ── CELL: ACTIONS ──────────────────────────────────────────────────────── */
.cell-actions {
    text-align: right;
    white-space: nowrap;
}

.action-group {
    display: inline-flex;
    gap: 0.25rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    display: inline-grid;
    place-items: center;
    color: var(--c-text-3);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--t-fast);
}

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .action-btn:hover {
        background: var(--c-surface-2);
        color: var(--c-text);
    }

.action-btn--danger {
    color: var(--c-danger);
}

    .action-btn--danger:hover {
        background: var(--c-danger-bg);
        color: var(--c-danger);
    }

/* ── EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--c-text-3);
}


.empty-state__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.25rem;
}

.empty-state__desc {
    font-size: 0.9375rem;
    max-width: 280px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.875rem;
    }

        .data-table tbody td {
            padding: 0.875rem 0.75rem;
        }

    .cell-passenger,
    .cell-trip {
        min-width: 120px;
    }
}

/* ── MODAL ALERT ────────────────────────────────────────────────────────── */

.modal-alert--warning {
    background: var(--c-warning-bg);
    border: 1px solid var(--c-warning-mid);
    color: #92400e;
}

.modal-alert__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

    .modal-alert__icon svg {
        width: 100%;
        height: 100%;
    }

.modal-alert__content p {
    margin: 0;
}

.modal-alert__content strong {
    font-weight: 700;
    color: var(--c-text);
}

/* ── FORM GROUP ─────────────────────────────────────────────────────────── */




.form-label--required::after {
    content: '*';
    color: var(--c-danger);
    margin-left: 0.25rem;
}

.input-wrap {
    position: relative;
}



.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── MODAL ACTIONS ──────────────────────────────────────────────────────── */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}




/* ── PRINT LOADING ──────────────────────────────────────────────────────── */
.print-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
    color: var(--c-text-3);
}

    .print-loading .spinner {
        width: 32px;
        height: 32px;
        animation: spin 1s linear infinite;
    }



/* ── PRINT TOOLBAR (screen only) ────────────────────────────────────────── */
.print-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 1rem;
    flex-wrap: wrap;
}

.print-toolbar__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--c-text);
}

.print-toolbar__logo {
    width: 28px;
    height: 28px;
}

.print-toolbar__actions {
    display: flex;
    gap: 0.625rem;
}

/* ── TICKET ─────────────────────────────────────────────────────────────── */
.ticket {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-size: 0.9375rem;
    color: var(--c-text);
}

/* Header */
.ticket__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--c-brand-dark) 0%, #162536 100%);
    color: white;
}

.ticket__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket__logo {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    overflow: hidden;
}

.ticket__brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ticket__brand-trip {
    color: white;
}

.ticket__brand-desk {
    color: var(--c-brand);
}

.ticket__type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: var(--r-full);
}

/* Body */
.ticket__body {
    display: flex;
}

.ticket__main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Fields */
.ticket__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ticket__field--highlight {
    padding: 1rem;
    background: var(--c-brand-light);
    border: 1px solid var(--c-brand-mid);
    border-radius: var(--r-md);
    margin-bottom: 0.5rem;
}

.ticket__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-3);
}

.ticket__number {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-brand);
    letter-spacing: -0.01em;
}

.ticket__value {
    font-weight: 600;
    color: var(--c-text);
}

.ticket__value--time {
    font-size: 1.125rem;
    color: var(--c-brand);
    font-weight: 700;
}

.ticket__value--confirmed {
    color: var(--c-success);
}

.ticket__value--cancelled {
    color: var(--c-danger);
    text-decoration: line-through;
}

/* Route */
.ticket__route {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--c-surface-2);
    border-radius: var(--r-lg);
    margin: 0.5rem 0;
}

.ticket__station {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

    .ticket__station:first-child {
        text-align: right;
        align-items: flex-end;
    }

    .ticket__station:last-child {
        text-align: left;
        align-items: flex-start;
    }

.ticket__station-code {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-brand);
    letter-spacing: -0.02em;
}

.ticket__station-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-2);
}

.ticket__route-arrow {
    color: var(--c-text-3);
    display: flex;
    align-items: center;
}

    .ticket__route-arrow svg {
        width: 24px;
        height: 24px;
    }

/* Grid */
.ticket__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Side panel (tear-off) */
.ticket__side {
    width: 220px;
    background: var(--c-surface-2);
    position: relative;
    display: flex;
    flex-shrink: 0;
}

.ticket__perforation {
    width: 12px;
    position: relative;
    border-left: 2px dashed var(--c-border-dark);
    margin-left: 6px;
}

    .ticket__perforation::before,
    .ticket__perforation::after {
        content: '';
        position: absolute;
        left: -7px;
        width: 14px;
        height: 14px;
        background: var(--c-bg);
        border-radius: 50%;
    }

    .ticket__perforation::before {
        top: -7px;
    }

    .ticket__perforation::after {
        bottom: -7px;
    }

.ticket__side-content {
    flex: 1;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

/* Seat */
.ticket__seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ticket__seat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-3);
}

.ticket__seat-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-hover) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-brand);
}

/* Amount */
.ticket__amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.ticket__amount-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-3);
}

.ticket__amount-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-text);
}

.ticket__amount-discount {
    font-size: 0.75rem;
    color: var(--c-success);
    font-weight: 600;
}

/* Barcode */
.ticket__barcode {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ticket__barcode-svg {
    width: 100%;
    height: 48px;
}

.ticket__barcode-text {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.6875rem;
    color: var(--c-text-3);
    letter-spacing: 0.05em;
}

/* Issued */
.ticket__issued {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.6875rem;
    color: var(--c-text-3);
}

/* Footer */
.ticket__footer {
    padding: 1rem 1.5rem;
    background: var(--c-surface-2);
    border-top: 1px solid var(--c-border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--c-text-3);
    line-height: 1.6;
}

    .ticket__footer p {
        margin: 0;
    }

/* ── PRINT STYLES ───────────────────────────────────────────────────────── */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-toolbar {
        display: none !important;
    }

    .ticket {
        margin: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        max-width: 100%;
        min-height: 100vh;
    }

    .ticket__header {
        background: #0D1B2A !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ticket__seat-number {
        background: #2563EB !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ticket__perforation::before,
    .ticket__perforation::after {
        background: white !important;
    }
}
/* ── SCAN MODAL ─────────────────────────────────────────────────────────── */
.scan-modal {
    text-align: center;
    padding: 0.5rem 0;
}

.scan-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: var(--r-xl);
    background: var(--c-brand-light);
    color: var(--c-brand);
    display: grid;
    place-items: center;
}

    .scan-modal__icon svg {
        width: 28px;
        height: 28px;
    }

.scan-modal__hint {
    font-size: 0.9375rem;
    color: var(--c-text-2);
    margin-bottom: 1.25rem;
}

.scan-modal__error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--c-danger-bg);
    border: 1px solid var(--c-danger-mid);
    border-radius: var(--r-md);
    color: var(--c-danger);
    font-size: 0.875rem;
    font-weight: 500;
    animation: shake 0.4s ease;
}

    .scan-modal__error svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

/* ── MONO INPUT ─────────────────────────────────────────────────────────── */
.input-wrap--mono {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    font-size: 1rem;
}

    .input-wrap--mono .form-input--mono::placeholder {
        font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
        font-weight: 400;
        letter-spacing: 0;
        text-align: left;
    }

/* ── PAGE SKELETON (reusable) ───────────────────────────────────────────── */
.page-skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-header {
    height: 32px;
    width: 200px;
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    margin-bottom: 1.5rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skeleton-card {
    height: 100px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.skeleton-table {
    height: 300px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}


/* ── INFO CHIP ───────────────────────────────────────────────────────────── */

    .info-chip:hover {
        box-shadow: var(--shadow-md);
    }

.info-chip__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-chip__icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-chip__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-3);
    text-transform: capitalize;
    white-space: nowrap;
}

.info-chip__value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* ── VARIANTS ────────────────────────────────────────────────────────────── */

/* Accent chip — for highlighted metrics */
.info-chip--accent {
    background: var(--c-brand-light);
    border-color: var(--c-brand-mid);
}

    .info-chip--accent .info-chip__value {
        color: var(--c-brand);
    }

/* Orange chip — for warnings or revenue */
.info-chip--orange {
    background: var(--c-accent-light);
    border-color: var(--c-accent-mid);
}

    .info-chip--orange .info-chip__value {
        color: var(--c-accent);
    }

/* Dark chip — for sidebar or dark backgrounds */
.info-chip--dark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

    .info-chip--dark .info-chip__label {
        color: var(--sidebar-text);
    }

    .info-chip--dark .info-chip__value {
        color: var(--sidebar-active);
    }

/* ── COMPACT ─────────────────────────────────────────────────────────────── */
.info-chip--sm {
    padding: 0.375rem 0.75rem;
    min-width: auto;
    gap: 0.625rem;
}

    .info-chip--sm .info-chip__label {
        font-size: 0.75rem;
    }

    .info-chip--sm .info-chip__value {
        font-size: 0.875rem;
    }

/* ── IDENTITY STRIP ──────────────────────────────────────────────────────── */
.identity-strip {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--c-surface-2);
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
}

.identity-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-text);
}

/* ── ROLE GRID ───────────────────────────────────────────────────────────── */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.role-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    cursor: pointer;
    transition: all var(--t-fast);
    text-align: left;
    width: 100%;
}

    .role-card:hover {
        border-color: var(--c-brand-mid);
        background: var(--c-brand-light);
    }

.role-card--selected {
    border-color: var(--c-brand);
    background: var(--c-brand-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.role-card__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.role-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.role-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text);
}

.role-card__desc {
    font-size: 0.8125rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-card__check {
    width: 20px;
    height: 20px;
    color: var(--c-brand);
    flex-shrink: 0;
}

/* ── CHANGE SUMMARY ──────────────────────────────────────────────────────── */
.change-summary {
    padding: 1rem;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.change-summary__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-3);
    margin-bottom: 0.75rem;
}

.change-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.change-row__label {
    font-weight: 600;
    color: var(--c-text-3);
    min-width: 50px;
}

.change-row__old {
    color: var(--c-text-3);
    text-decoration: line-through;
}

.change-row__arrow {
    color: var(--c-text-3);
    font-size: 0.75rem;
}

.change-row__new {
    font-weight: 600;
    color: var(--c-brand);
}
/* ── STAT BAR ────────────────────────────────────────────────────────────── */
.stat-bar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.stat-bar__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-2);
}

.stat-bar__count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--c-text);
}

.stat-bar__track {
    height: 6px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    overflow: hidden;
}

.stat-bar__fill {
    height: 100%;
    width: var(--pct, 0%);
    background: var(--bar-color, var(--c-brand));
    border-radius: var(--r-full);
    transition: width 0.6s var(--ease);
}

/* ── PROGRESS BAR (generic) ─────────────────────────────────────────────── */
.progress-track {
    height: 6px;
    background: var(--c-surface-2);
    border-radius: var(--r-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: var(--progress-width, 0%);
    border-radius: var(--r-full);
    transition: width 0.6s var(--ease);
}

.progress-fill--high {
    background: var(--c-success);
}

.progress-fill--mid {
    background: var(--c-accent);
}

.progress-fill--low {
    background: var(--c-danger);
}

/* ── ROUTE ITEM (Top Routes by Revenue) ─────────────────────────────────── */
.route-item {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
}

    .route-item:last-child {
        border-bottom: none;
    }

.route-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.route-item__name {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    min-width: 0;
}

.route-item__rank {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--c-text-3);
    flex-shrink: 0;
}

.route-item__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-item__amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text);
    white-space: nowrap;
}

.route-item__meta {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--c-text-3);
}

/* ── ROLE BANNER (Invite Team Member modal) ─────────────────────────────── */
.role-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--role-mid, var(--c-border));
    background: var(--role-bg, var(--c-surface-2));
    margin-bottom: 1rem;
}

.role-banner__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--c-text);
}

.role-banner__desc {
    font-size: 0.75rem;
    color: var(--c-text-3);
    margin-top: 0.125rem;
}

/* ── ROLE TAB ICON — extend the existing class for emoji glyphs + a larger size ── */
.role-tab__icon {
    font-size: 12px;
    line-height: 1;
}

.role-tab__icon--lg {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
}

/* ── FORM SUCCESS MESSAGE — success counterpart to .form-error ─────────── */
.form-success {
    font-size: 0.8125rem;
    color: var(--c-success);
    font-weight: 500;
}

/* ── PNL ROW (inside .pnl-list) ─────────────────────────────────────────── */
.pnl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pnl-row__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-2);
}

.pnl-row__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--row-color, var(--c-text));
}

.pnl-row--bold .pnl-row__label {
    font-size: 0.875rem;
    font-weight: 700;
}

.pnl-row--bold .pnl-row__value {
    font-size: 1rem;
    font-weight: 800;
}


/* ── extend .role-tab__icon--lg for the SVG (not just emoji) use case ───── */
.role-tab__icon--lg svg {
    width: 20px;
    height: 20px;
}

/* ── local override: reuse .drawer__identity but without the centered-drawer margin ── */
.drawer__identity--form {
    margin-bottom: 1.25rem;
}

    .drawer__identity--form .user-avatar--lg {
        margin: 0;
    }

/* ── CHANGE SUMMARY (Edit User modal — "here's what will change") ──────── */
.change-summary {
    background: var(--c-surface-2);
    border-radius: var(--r-md);
    padding: 0.875rem 1rem;
}

.change-summary__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-3);
    margin-bottom: 0.625rem;
}

.change-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    flex-wrap: wrap;
}

.change-row__label {
    width: 56px;
    flex-shrink: 0;
    font-weight: 600;
    color: var(--c-text-2);
}

.change-row__old {
    color: var(--c-text-3);
    text-decoration: line-through;
}

.change-row__arrow {
    color: var(--c-text-3);
}

.change-row__new {
    font-weight: 700;
    color: var(--c-text);
}

/* ── ROLE CARD (Edit User modal's fuller role picker, with description) ── */
.role-grid {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.role-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-surface);
    cursor: pointer;
    text-align: left;
    transition: all var(--t-fast);
}

    .role-card:hover {
        border-color: var(--c-brand-mid);
    }

.role-card--selected {
    background: var(--c-brand-light);
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.role-card__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.role-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-text);
}

.role-card__desc {
    font-size: 0.75rem;
    color: var(--c-text-3);
    margin-top: 0.0625rem;
}

.role-card__check {
    width: 18px;
    height: 18px;
    color: var(--c-brand);
    flex-shrink: 0;
}