/* ==========================================================================
   NIT ANP Guest Room Booking — Design System
   Layered on top of Bootstrap 5.3.2. Loaded after bootstrap.min.css.
   Sections:
     1. Tokens            6. Tables & DataTables   11. Frontend layout
     2. Bootstrap mapping 7. Badges & alerts       12. Admin layout
     3. Base              8. Overlays (modal, Swal) 13. Page blocks
     4. Buttons           9. Navigation bits       14. Utilities
     5. Forms            10. Cards & states        15. Motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Brand: institute navy (logo is white → dark surfaces), saffron accent */
    --brand-950: #071a45;
    --brand-900: #0a2259;
    --brand-800: #0b2e6b;
    --brand-700: #123f8f;
    --primary-700: #1e40af;
    --primary-600: #1d4ed8;
    --primary-500: #2563eb;
    --primary-100: #dbe7ff;
    --primary-50:  #eef4ff;
    --accent-500:  #f59e0b;
    --accent-100:  #fef3c7;

    --success-700: #15803d; --success-50: #ecfdf3; --success-200: #bbf7d0;
    --danger-700:  #b91c1c; --danger-600: #dc2626; --danger-50: #fef2f2; --danger-200: #fecaca;
    --warning-700: #b45309; --warning-50: #fffbeb; --warning-200: #fde68a;
    --info-700:    #0369a1; --info-50: #f0f9ff;   --info-200: #bae6fd;

    --gray-950: #0b1220;
    --gray-900: #0f172a;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50:  #f8fafc;

    --surface-page: #f4f6fb;
    --surface-card: #ffffff;
    --border: var(--gray-200);
    --text: var(--gray-900);
    --text-muted: var(--gray-500);

    /* Typography */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --fs-xs: .75rem;  --fs-sm: .875rem; --fs-base: .9375rem; --fs-md: 1rem;
    --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: clamp(1.9rem, 1.2rem + 2.4vw, 2.85rem);

    /* Spacing (4px scale) */
    --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
    --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem;

    /* Radius & elevation */
    --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow:    0 4px 12px -2px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .05);
    --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .18);
    --ring: 0 0 0 .25rem rgba(37, 99, 235, .25);

    --header-h: 72px;
    --sidebar-w: 260px;
    --sidebar-w-collapsed: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Bootstrap variable mapping ------------------------------------------ */
:root {
    --bs-font-sans-serif: var(--font-sans);
    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: var(--fs-base);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--surface-page);
    --bs-secondary-color: var(--text-muted);
    --bs-border-color: var(--border);
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-sm: 6px;
    --bs-border-radius-lg: var(--radius);
    --bs-border-radius-xl: var(--radius-lg);
    --bs-box-shadow: var(--shadow);
    --bs-box-shadow-sm: var(--shadow-sm);
    --bs-box-shadow-lg: var(--shadow-lg);

    --bs-primary: var(--primary-600);   --bs-primary-rgb: 29, 78, 216;
    --bs-success: var(--success-700);   --bs-success-rgb: 21, 128, 61;
    --bs-danger:  var(--danger-600);    --bs-danger-rgb: 220, 38, 38;
    --bs-warning: var(--accent-500);    --bs-warning-rgb: 245, 158, 11;
    --bs-info:    #0284c7;              --bs-info-rgb: 2, 132, 199;
    --bs-dark-rgb: 15, 23, 42;
    --bs-primary-text-emphasis: var(--primary-700);
    --bs-primary-bg-subtle: var(--primary-50);
    --bs-primary-border-subtle: var(--primary-100);
    --bs-success-bg-subtle: var(--success-50);
    --bs-danger-bg-subtle: var(--danger-50);
    --bs-warning-bg-subtle: var(--warning-50);
    --bs-info-bg-subtle: var(--info-50);

    --bs-link-color: var(--primary-600);
    --bs-link-color-rgb: 29, 78, 216;
    --bs-link-hover-color: var(--primary-700);
    --bs-link-hover-color-rgb: 30, 64, 175;
    --bs-focus-ring-color: rgba(37, 99, 235, .25);
}

/* 3. Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.25;
}
.display-5, .display-6 { font-weight: 800; letter-spacing: -.025em; }
.lead { color: var(--gray-600); font-weight: 400; }
.text-muted { color: var(--text-muted) !important; }
.fw-800 { font-weight: 800 !important; }
img { max-width: 100%; }
::selection { background: var(--primary-100); color: var(--brand-900); }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .55); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: var(--sp-4); top: -100px; z-index: 2000;
    padding: var(--sp-2) var(--sp-4); background: var(--surface-card); color: var(--brand-900);
    border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: var(--sp-3); }

/* 4. Buttons ---------------------------------------------------------------- */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-font-size: var(--fs-sm);
    --bs-btn-padding-y: .6rem;
    --bs-btn-padding-x: 1.1rem;
    --bs-btn-border-radius: var(--radius-sm);
    --bs-btn-focus-box-shadow: var(--ring);
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 6px; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.5rem; --bs-btn-font-size: var(--fs-md); --bs-btn-border-radius: var(--radius); }
.w-100.btn, .btn.w-100 { display: flex; }

.btn-primary {
    --bs-btn-bg: var(--primary-600); --bs-btn-border-color: var(--primary-600);
    --bs-btn-hover-bg: var(--primary-700); --bs-btn-hover-border-color: var(--primary-700);
    --bs-btn-active-bg: var(--brand-800); --bs-btn-active-border-color: var(--brand-800);
    --bs-btn-disabled-bg: var(--primary-600); --bs-btn-disabled-border-color: var(--primary-600);
    box-shadow: 0 1px 2px rgba(29, 78, 216, .25);
}
.btn-success {
    --bs-btn-bg: var(--success-700); --bs-btn-border-color: var(--success-700);
    --bs-btn-hover-bg: #166534; --bs-btn-hover-border-color: #166534;
    --bs-btn-active-bg: #14532d; --bs-btn-active-border-color: #14532d;
}
.btn-danger {
    --bs-btn-bg: var(--danger-600); --bs-btn-border-color: var(--danger-600);
    --bs-btn-hover-bg: var(--danger-700); --bs-btn-hover-border-color: var(--danger-700);
    --bs-btn-active-bg: #991b1b; --bs-btn-active-border-color: #991b1b;
}
.btn-warning {
    --bs-btn-color: #3b2a00; --bs-btn-bg: var(--accent-500); --bs-btn-border-color: var(--accent-500);
    --bs-btn-hover-color: #3b2a00; --bs-btn-hover-bg: #e08e07; --bs-btn-hover-border-color: #e08e07;
}
.btn-info {
    --bs-btn-color: #fff; --bs-btn-bg: #0284c7; --bs-btn-border-color: #0284c7;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--info-700); --bs-btn-hover-border-color: var(--info-700);
}
.btn-secondary {
    --bs-btn-bg: var(--gray-600); --bs-btn-border-color: var(--gray-600);
    --bs-btn-hover-bg: var(--gray-700); --bs-btn-hover-border-color: var(--gray-700);
}
.btn-dark {
    --bs-btn-bg: var(--brand-900); --bs-btn-border-color: var(--brand-900);
    --bs-btn-hover-bg: var(--brand-950); --bs-btn-hover-border-color: var(--brand-950);
}
.btn-light {
    --bs-btn-bg: #fff; --bs-btn-border-color: var(--border); --bs-btn-color: var(--gray-700);
    --bs-btn-hover-bg: var(--gray-50); --bs-btn-hover-border-color: var(--gray-300); --bs-btn-hover-color: var(--gray-900);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary-600); --bs-btn-border-color: var(--primary-100);
    --bs-btn-hover-bg: var(--primary-50); --bs-btn-hover-color: var(--primary-700); --bs-btn-hover-border-color: var(--primary-600);
    --bs-btn-active-bg: var(--primary-100); --bs-btn-active-color: var(--primary-700); --bs-btn-active-border-color: var(--primary-600);
}
.btn-outline-secondary {
    --bs-btn-color: var(--gray-700); --bs-btn-border-color: var(--gray-300);
    --bs-btn-hover-bg: var(--gray-100); --bs-btn-hover-color: var(--gray-900); --bs-btn-hover-border-color: var(--gray-400);
    --bs-btn-active-bg: var(--gray-200); --bs-btn-active-color: var(--gray-900);
}
.btn-outline-success {
    --bs-btn-color: var(--success-700); --bs-btn-border-color: var(--success-200);
    --bs-btn-hover-bg: var(--success-50); --bs-btn-hover-color: var(--success-700); --bs-btn-hover-border-color: var(--success-700);
}
.btn-outline-danger {
    --bs-btn-color: var(--danger-600); --bs-btn-border-color: var(--danger-200);
    --bs-btn-hover-bg: var(--danger-50); --bs-btn-hover-color: var(--danger-700); --bs-btn-hover-border-color: var(--danger-600);
}
.btn-outline-warning {
    --bs-btn-color: var(--warning-700); --bs-btn-border-color: var(--warning-200);
    --bs-btn-hover-bg: var(--warning-50); --bs-btn-hover-color: var(--warning-700); --bs-btn-hover-border-color: var(--accent-500);
}
.btn-outline-info {
    --bs-btn-color: var(--info-700); --bs-btn-border-color: var(--info-200);
    --bs-btn-hover-bg: var(--info-50); --bs-btn-hover-color: var(--info-700); --bs-btn-hover-border-color: var(--info-700);
}
.btn-outline-dark {
    --bs-btn-color: var(--gray-900); --bs-btn-border-color: var(--gray-300);
    --bs-btn-hover-bg: var(--gray-900); --bs-btn-hover-border-color: var(--gray-900);
}
/* Square icon-only button (table actions) */
.btn-icon { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; width: 34px; height: 34px; }
.btn-icon.btn-sm { width: 30px; height: 30px; }

/* Loading state: add .is-loading to a button */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 1.1em; height: 1.1em; border-radius: 50%;
    border: 2px solid var(--spin, rgba(255,255,255,.9)); border-right-color: transparent;
    animation: spin .7s linear infinite;
}
.btn-light.is-loading, [class*="btn-outline-"].is-loading, .dt-buttons .btn.is-loading, .btn-warning.is-loading { --spin: var(--gray-500); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 5. Forms ------------------------------------------------------------------ */
.form-label, label.form-label {
    font-size: var(--fs-sm); font-weight: 600; color: var(--gray-700); margin-bottom: .4rem;
}
.form-text { color: var(--text-muted); font-size: var(--fs-xs); }
.form-control, .form-select {
    font-size: var(--fs-base);
    padding: .6rem .85rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background-color: var(--surface-card);
    color: var(--gray-900);
    box-shadow: var(--shadow-xs);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.form-select { padding-right: 2.25rem; }
.form-control-sm, .form-select-sm { padding: .4rem .65rem; font-size: var(--fs-sm); }
.form-control-lg, .form-select-lg { padding: .75rem 1rem; font-size: var(--fs-md); }
.form-control::placeholder { color: var(--gray-400); }
.form-control:hover:not(:disabled):not([readonly]), .form-select:hover:not(:disabled) { border-color: var(--gray-400); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary-500);
    box-shadow: var(--ring);
}
.form-control:disabled, .form-control[readonly], .form-select:disabled {
    background-color: var(--gray-50); color: var(--gray-600);
}
textarea.form-control { min-height: 96px; }
.form-control[type="file"] { padding: .45rem .6rem; }
.form-control::file-selector-button {
    border: 0; border-radius: 6px; margin-right: .75rem; padding: .35rem .8rem;
    background: var(--primary-50); color: var(--primary-700); font-weight: 600;
}
.form-check-input { width: 1.1em; height: 1.1em; border-color: var(--gray-400); }
.form-check-input:checked { background-color: var(--primary-600); border-color: var(--primary-600); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--primary-500); }
.form-check-label { color: var(--gray-700); }
.input-group-text { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-600); }

/* Validation — server side (Bootstrap) and existing JS hooks (.field-error/.field-success) */
.is-invalid, .form-control.is-invalid, .form-select.is-invalid,
.field-error, .form-control.field-error, .form-select.field-error {
    border-color: var(--danger-600) !important;
    box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .14) !important;
}
.is-valid, .field-success, .form-control.field-success, .form-select.field-success {
    border-color: var(--success-700) !important;
    box-shadow: 0 0 0 .2rem rgba(21, 128, 61, .12) !important;
}
.invalid-feedback, .text-danger.small, small.text-danger { font-size: var(--fs-xs); font-weight: 500; }
.required::after, .form-label.required::after { content: " *"; color: var(--danger-600); }

/* Fieldset-style grouping inside forms */
.form-section { padding: var(--sp-6); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-card); }
.form-section + .form-section { margin-top: var(--sp-4); }
.form-section-title {
    display: flex; align-items: center; gap: .6rem; font-size: var(--fs-md); font-weight: 700;
    margin: 0 0 var(--sp-4); color: var(--gray-900);
}
.form-section-title .bi { color: var(--primary-600); }

/* Accordion used as multi-step form */
.accordion {
    --bs-accordion-border-color: var(--border);
    --bs-accordion-border-radius: var(--radius);
    --bs-accordion-inner-border-radius: calc(var(--radius) - 1px);
    --bs-accordion-btn-padding-y: 1rem;
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-color: var(--gray-900);
    --bs-accordion-active-color: var(--brand-800);
    --bs-accordion-active-bg: var(--primary-50);
    --bs-accordion-btn-focus-box-shadow: var(--ring);
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 1.25rem;
}
.accordion-item { overflow: hidden; }
.accordion-item + .accordion-item { margin-top: var(--sp-3); border-top: 1px solid var(--border); border-radius: var(--radius) !important; }
.accordion-item:first-of-type, .accordion-item:last-of-type { border-radius: var(--radius) !important; }
.accordion-item:first-of-type > .accordion-header .accordion-button,
.accordion-item:last-of-type > .accordion-header .accordion-button.collapsed { border-radius: var(--radius) !important; }
.accordion-button { font-weight: 600; gap: .6rem; }
.accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 var(--border); }
.accordion-button .step-index {
    display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none;
    border-radius: 50%; background: var(--gray-100); color: var(--gray-600); font-size: var(--fs-xs); font-weight: 700;
}
.accordion-button:not(.collapsed) .step-index { background: var(--primary-600); color: #fff; }

/* 6. Tables & DataTables ---------------------------------------------------- */
.table {
    --bs-table-color: var(--gray-700);
    --bs-table-border-color: var(--gray-100);
    --bs-table-striped-bg: var(--gray-50);
    --bs-table-hover-bg: var(--primary-50);
    --bs-table-hover-color: var(--gray-900);
    font-size: var(--fs-sm);
    margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: .85rem 1rem; vertical-align: middle; }
.table > thead > tr > th, .table thead th {
    background: var(--gray-50);
    color: var(--gray-500);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
.table-dark, .table > thead.table-dark > tr > th, .table thead.table-dark th,
.table > thead.table-primary > tr > th, .table thead.table-primary th {
    --bs-table-bg: var(--gray-50); --bs-table-color: var(--gray-500);
    background: var(--gray-50) !important; color: var(--gray-500) !important; border-color: var(--border) !important;
}
.table-bordered > :not(caption) > * > * { border-color: var(--gray-100); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table-hover > tbody > tr { transition: background-color .12s var(--ease); }
.table-responsive { border-radius: inherit; }

/* Card that wraps a table */
.table-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-card > .card-header, .table-card-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5); background: var(--surface-card); border-bottom: 1px solid var(--border);
}
.table-card .table-responsive, .table-card .dataTables_wrapper { padding: 0; }

/* DataTables 1.13 (bootstrap5 integration) */
.dataTables_wrapper { font-size: var(--fs-sm); }
.dataTables_wrapper > .row:first-child, .dataTables_wrapper > .row:last-child { padding: var(--sp-3) var(--sp-5); margin: 0; align-items: center; row-gap: var(--sp-2); }
.dataTables_wrapper > .row:nth-child(2) { margin: 0; }
.dataTables_wrapper > .row:nth-child(2) > [class*="col-"] { padding: 0; }
.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label { color: var(--gray-500); font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; }
.dataTables_wrapper .dataTables_filter input {
    margin-left: 0 !important; min-width: 220px; padding-left: 2.1rem;
    background: var(--surface-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat .7rem center;
}
.dataTables_wrapper .dataTables_length select { width: auto; display: inline-block; }
.dataTables_wrapper .dataTables_info { color: var(--gray-500); padding-top: 0 !important; }
.dataTables_wrapper .dataTables_paginate { padding-top: 0 !important; }
table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; border-collapse: collapse !important; }
table.dataTable thead > tr > th.sorting::before, table.dataTable thead > tr > th.sorting::after,
table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_asc::after,
table.dataTable thead > tr > th.sorting_desc::before, table.dataTable thead > tr > th.sorting_desc::after { opacity: .3; }
table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_desc::after { opacity: .9; color: var(--primary-600); }
.dt-buttons.btn-group { gap: .4rem; flex-wrap: wrap; }
.dt-buttons .btn { border-radius: var(--radius-sm) !important; }
.dataTables_empty { padding: var(--sp-10) !important; color: var(--gray-500); }

/* 7. Badges & alerts ---------------------------------------------------------- */
.badge { font-weight: 600; letter-spacing: .01em; padding: .4em .7em; border-radius: var(--radius-pill); }
/* Solid Bootstrap badges become soft tinted pills (better contrast, calmer tables) */
.badge.bg-success, .badge.text-bg-success { background: var(--success-50) !important; color: var(--success-700) !important; box-shadow: inset 0 0 0 1px var(--success-200); }
.badge.bg-danger,  .badge.text-bg-danger  { background: var(--danger-50) !important;  color: var(--danger-700) !important;  box-shadow: inset 0 0 0 1px var(--danger-200); }
.badge.bg-warning, .badge.text-bg-warning { background: var(--warning-50) !important; color: var(--warning-700) !important; box-shadow: inset 0 0 0 1px var(--warning-200); }
.badge.bg-info,    .badge.text-bg-info    { background: var(--info-50) !important;    color: var(--info-700) !important;    box-shadow: inset 0 0 0 1px var(--info-200); }
.badge.bg-primary, .badge.text-bg-primary { background: var(--primary-50) !important; color: var(--primary-700) !important; box-shadow: inset 0 0 0 1px var(--primary-100); }
.badge.bg-secondary, .badge.text-bg-secondary { background: var(--gray-100) !important; color: var(--gray-600) !important; box-shadow: inset 0 0 0 1px var(--gray-200); }
.badge.bg-dark { background: var(--gray-900) !important; color: #fff !important; }
.badge.bg-success::before, .badge.bg-danger::before, .badge.bg-warning::before, .badge.bg-info::before, .badge.bg-secondary::before,
.badge.text-bg-success::before, .badge.text-bg-danger::before, .badge.text-bg-warning::before, .badge.text-bg-info::before, .badge.text-bg-secondary::before {
    content: ""; display: inline-block; width: .45em; height: .45em; border-radius: 50%; background: currentColor; margin-right: .4em; vertical-align: .12em;
}

.alert {
    --bs-alert-padding-x: 1rem; --bs-alert-padding-y: .85rem;
    --bs-alert-border-radius: var(--radius-sm);
    border-width: 1px; font-size: var(--fs-sm);
    display: flex; gap: .65rem; align-items: flex-start;
}
.alert > :is(ul, ol) { margin-bottom: 0; padding-left: 1.1rem; }
.alert.d-block, .alert:has(> .btn-close) { display: block; }
.alert::before {
    font-family: "bootstrap-icons"; font-size: 1.05rem; line-height: 1.35; flex: none;
}
.alert-success { --bs-alert-color: #14532d; --bs-alert-bg: var(--success-50); --bs-alert-border-color: var(--success-200); }
.alert-success::before { content: "\F26A"; color: var(--success-700); }
.alert-danger  { --bs-alert-color: #7f1d1d; --bs-alert-bg: var(--danger-50);  --bs-alert-border-color: var(--danger-200); }
.alert-danger::before { content: "\F33A"; color: var(--danger-600); }
.alert-warning { --bs-alert-color: #78350f; --bs-alert-bg: var(--warning-50); --bs-alert-border-color: var(--warning-200); }
.alert-warning::before { content: "\F33B"; color: var(--warning-700); }
.alert-info    { --bs-alert-color: #0c4a6e; --bs-alert-bg: var(--info-50);    --bs-alert-border-color: var(--info-200); }
.alert-info::before { content: "\F431"; color: var(--info-700); }
.alert:has(> .btn-close)::before, .alert.no-icon::before { display: none; }

/* 8. Overlays ---------------------------------------------------------------- */
.modal { --bs-modal-border-radius: var(--radius-lg); --bs-modal-border-color: transparent; --bs-modal-box-shadow: var(--shadow-lg); }
.modal-header { border-bottom-color: var(--border); padding: 1.1rem 1.5rem; }
.modal-title { font-weight: 700; font-size: var(--fs-lg); }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top-color: var(--border); padding: 1rem 1.5rem; gap: .5rem; }
.modal-backdrop { --bs-backdrop-bg: #0b1220; --bs-backdrop-opacity: .55; }

.dropdown-menu {
    --bs-dropdown-border-color: var(--border);
    --bs-dropdown-border-radius: var(--radius);
    --bs-dropdown-box-shadow: var(--shadow-lg);
    --bs-dropdown-link-hover-bg: var(--gray-100);
    --bs-dropdown-link-active-bg: var(--primary-600);
    --bs-dropdown-item-padding-y: .5rem;
    --bs-dropdown-font-size: var(--fs-sm);
    padding: .4rem;
    box-shadow: var(--shadow-lg);
}
.dropdown-item { border-radius: 6px; display: flex; align-items: center; }
.dropdown-item .bi { color: var(--gray-500); width: 1.2rem; }
.dropdown-item.text-danger .bi { color: inherit; }

.tooltip { --bs-tooltip-bg: var(--gray-900); --bs-tooltip-border-radius: 6px; --bs-tooltip-font-size: var(--fs-xs); }

/* SweetAlert2 (existing confirm/validation dialogs) */
.swal2-popup { border-radius: var(--radius-lg) !important; font-family: var(--font-sans) !important; padding: 1.75rem 1.5rem 1.5rem !important; }
.swal2-title { font-size: 1.3rem !important; font-weight: 700 !important; color: var(--gray-900) !important; }
.swal2-html-container { font-size: var(--fs-base) !important; color: var(--gray-600) !important; }
.swal2-actions { gap: .5rem; }
.swal2-styled { border-radius: var(--radius-sm) !important; font-weight: 600 !important; font-size: var(--fs-sm) !important; padding: .65rem 1.3rem !important; margin: 0 !important; }
.swal2-styled.swal2-confirm { background-color: var(--primary-600); }
.swal2-styled.swal2-cancel { background-color: var(--gray-500); }
.swal2-styled:focus { box-shadow: var(--ring) !important; }
.swal2-input, .swal2-textarea, .swal2-select { border-radius: var(--radius-sm) !important; border-color: var(--gray-300) !important; font-size: var(--fs-base) !important; }

/* 9. Navigation bits ------------------------------------------------------------ */
.breadcrumb { --bs-breadcrumb-divider-color: var(--gray-400); --bs-breadcrumb-item-active-color: var(--gray-500); font-size: var(--fs-sm); margin-bottom: 0; }
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-600); }
.breadcrumb-item + .breadcrumb-item::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7em; vertical-align: .15em; }

.pagination {
    --bs-pagination-border-radius: var(--radius-sm);
    --bs-pagination-color: var(--gray-700);
    --bs-pagination-border-color: var(--border);
    --bs-pagination-hover-bg: var(--gray-100);
    --bs-pagination-hover-color: var(--gray-900);
    --bs-pagination-focus-box-shadow: var(--ring);
    --bs-pagination-active-bg: var(--primary-600);
    --bs-pagination-active-border-color: var(--primary-600);
    --bs-pagination-disabled-color: var(--gray-400);
    --bs-pagination-font-size: var(--fs-sm);
    gap: .25rem; margin-bottom: 0;
}
.pagination .page-link { border-radius: var(--radius-sm) !important; min-width: 36px; text-align: center; }

.nav-tabs { --bs-nav-tabs-border-color: var(--border); --bs-nav-tabs-link-active-color: var(--primary-600); --bs-nav-tabs-link-active-border-color: transparent transparent var(--primary-600); }
.nav-tabs .nav-link { font-weight: 600; color: var(--gray-500); border-width: 0 0 2px; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--primary-600); --bs-nav-pills-border-radius: var(--radius-sm); }

/* 10. Cards & states ------------------------------------------------------------ */
.card {
    --bs-card-border-color: var(--border);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    --bs-card-cap-bg: #fff;
    --bs-card-cap-padding-y: 1rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.card.shadow, .card.shadow-lg { box-shadow: var(--shadow) !important; }
.card-header { font-weight: 600; }
.card-header.bg-primary, .card-header.bg-success, .card-header.bg-dark, .card-header.bg-info {
    background: linear-gradient(135deg, var(--brand-800), var(--primary-600)) !important; color: #fff; border-bottom: 0;
}
.card-header.bg-success { background: linear-gradient(135deg, #14532d, var(--success-700)) !important; }
.card-header :is(h1,h2,h3,h4,h5,h6) { color: inherit; margin-bottom: 0; }
.card-title { font-weight: 700; }

/* Interactive card (links) */
.card-link-hover, a > .card { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
a:hover > .card, .card-link-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) !important; }

/* Page header (title + actions) */
.page-header {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.page-header h1, .page-title { font-size: var(--fs-2xl); font-weight: 800; margin: 0; letter-spacing: -.025em; }
.page-header .page-subtitle, .page-subtitle { color: var(--text-muted); margin: .25rem 0 0; font-size: var(--fs-sm); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Stat card */
.stat-card {
    position: relative; display: flex; align-items: center; gap: var(--sp-4);
    padding: var(--sp-5); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; height: 100%;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-100); color: inherit; }
.stat-icon {
    display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px;
    font-size: 1.35rem; background: var(--primary-50); color: var(--primary-600);
}
.stat-icon.is-success { background: var(--success-50); color: var(--success-700); }
.stat-icon.is-warning { background: var(--warning-50); color: var(--warning-700); }
.stat-icon.is-info    { background: var(--info-50);    color: var(--info-700); }
.stat-icon.is-danger  { background: var(--danger-50);  color: var(--danger-600); }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--gray-900); letter-spacing: -.02em; }
.stat-label { font-size: var(--fs-xs); font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }

/* Key/value detail lists */
.detail-list { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: .55rem 1rem; margin: 0; font-size: var(--fs-sm); }
.detail-list dt { color: var(--gray-500); font-weight: 500; }
.detail-list dd { margin: 0; color: var(--gray-900); font-weight: 500; word-break: break-word; }
@media (max-width: 575.98px) { .detail-list { grid-template-columns: 1fr; gap: .1rem; } .detail-list dd { margin-bottom: .6rem; } }

/* Empty & loading states */
.empty-state { text-align: center; padding: var(--sp-12) var(--sp-6); color: var(--gray-500); }
.empty-state .bi { font-size: 2.4rem; color: var(--gray-300); display: block; margin-bottom: var(--sp-3); }
.empty-state h3, .empty-state .empty-title { font-size: var(--fs-md); color: var(--gray-700); margin-bottom: .25rem; }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spinner-border { --bs-spinner-border-width: .18em; }

/* 11. Frontend layout ------------------------------------------------------------ */
#app-container { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }  /* clip (not hidden) keeps the sticky header working */
#main-content:focus { outline: none; }
#app-container > main { flex: 1 0 auto; }

.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: linear-gradient(100deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px -10px rgba(7, 26, 69, .6);
}
.site-header .navbar { --bs-navbar-padding-y: .65rem; min-height: var(--header-h); }
.site-header .navbar-brand { display: flex; align-items: center; gap: .85rem; margin-right: auto; min-width: 0; padding: 0; }
.site-header .brand-logo { height: 44px; width: auto; }
.site-header .brand-emblem { height: 44px; width: 44px; object-fit: cover; object-position: left center; }
.site-header .brand-divider { width: 1px; height: 34px; background: rgba(255,255,255,.25); }
.site-header .brand-name { display: flex; flex-direction: column; line-height: 1.15; color: #fff; min-width: 0; }
.site-header .brand-name strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header .brand-name small { font-size: .72rem; color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.site-header .nav-link {
    --bs-navbar-nav-link-padding-x: .9rem;
    color: rgba(255,255,255,.82) !important; font-weight: 500; font-size: var(--fs-sm);
    border-radius: var(--radius-sm); display: flex; align-items: center; gap: .4rem;
    transition: color .15s, background-color .15s;
}
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: #fff !important; background: rgba(255,255,255,.08); }
.site-header .nav-link.is-current { color: #fff !important; background: rgba(255,255,255,.12); }
.site-header .btn-nav {
    background: var(--surface-card); color: var(--brand-900); font-weight: 600; font-size: var(--fs-sm);
    border-radius: var(--radius-sm); padding: .5rem 1rem;
}
.site-header .btn-nav:hover { background: var(--primary-50); color: var(--brand-900); }
.site-header .navbar-toggler { border: 1px solid rgba(255,255,255,.25); padding: .4rem .6rem; border-radius: var(--radius-sm); }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.3); }
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: .75rem 0 .5rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: .65rem; }
    .site-header .navbar-nav { align-items: stretch !important; gap: .15rem; }
    .site-header .btn-nav { width: 100%; margin-top: .4rem; justify-content: center; }
}
@media (max-width: 575.98px) {
    .site-header .brand-logo { height: 32px; }
    .site-header .brand-emblem { height: 34px; width: 34px; }
    .site-header .brand-divider, .site-header .brand-name small { display: none; }
    .site-header .brand-name strong { font-size: .95rem; }
}

/* Avatar */
.user-avatar, .avatar-circle {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    display: inline-grid; place-items: center;
    background: linear-gradient(135deg, var(--accent-500), #f97316); color: #fff;
    font-weight: 700; font-size: .8rem; letter-spacing: .02em;
    box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

.site-main { padding-block: var(--sp-10) var(--sp-12); }
@media (max-width: 575.98px) { .site-main { padding-block: var(--sp-6) var(--sp-8); } }

.site-footer { background: var(--brand-950); color: rgba(255,255,255,.72); font-size: var(--fs-sm); margin-top: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-top { padding-block: var(--sp-10) var(--sp-8); }
.site-footer .footer-title { color: #fff; font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-3); }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .footer-links .bi { opacity: .7; margin-right: .4rem; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: var(--sp-4) 0; font-size: var(--fs-xs); }
.site-footer .footer-logo { height: 40px; width: auto; opacity: .95; }

/* Landing: hero band ------------------------------------------------------- */
/* Full-bleed navy band: 100vw wide, centred; #app-container clips the scrollbar-width overhang */
.landing-hero {
    position: relative; isolation: isolate;
    margin-top: calc(-1 * var(--sp-10));
    padding: clamp(2.5rem, 6vw, 4rem) var(--sp-4) clamp(7rem, 12vw, 8.5rem);
    color: #fff; text-align: center;
    background: var(--brand-950);
    width: 100vw; margin-left: calc(50% - 50vw);
}
.landing-hero::before {               /* dot grid + soft glows, pure CSS */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(37, 99, 235, .45), transparent 70%),
        radial-gradient(420px 220px at 85% 100%, rgba(245, 158, 11, .16), transparent 70%),
        radial-gradient(420px 220px at 15% 100%, rgba(21, 128, 61, .18), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
            mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.landing-hero .hero-mark {
    display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .35rem;
    border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14); font-size: var(--fs-xs); font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-bottom: var(--sp-5);
}
.landing-hero .hero-mark img {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: left center;
    background: var(--surface-card); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}
.landing-hero h1 {
    color: #fff; font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem); font-weight: 800;
    letter-spacing: -.03em; line-height: 1.15; max-width: 760px; margin: 0 auto var(--sp-3);
    text-wrap: balance;
}
.landing-hero p { color: rgba(255, 255, 255, .75); font-size: var(--fs-lg); max-width: 620px; margin: 0 auto; text-wrap: balance; }
@media (max-width: 575.98px) { .landing-hero { margin-top: calc(-1 * var(--sp-6)); } .landing-hero p { font-size: var(--fs-md); } }

/* Landing: booking option cards ---------------------------------------------- */
.booking-options {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 500px)); justify-content: center;
    gap: var(--sp-6); margin-top: clamp(-6rem, -9vw, -5rem);
}
@media (max-width: 767.98px) { .booking-options { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); } }

.booking-option {
    --accent: var(--primary-600); --accent-soft: var(--primary-50); --accent-ring: rgba(29, 78, 216, .35); --accent-border: #bcd0fb; --accent-hover: var(--primary-700);
    position: relative; display: flex; flex-direction: column;
    padding: var(--sp-8) var(--sp-6) var(--sp-6);
    background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
    animation: fadeUp .5s var(--ease) both;
}
.booking-option + .booking-option { animation-delay: .08s; }
.booking-option.is-success { --accent: var(--success-700); --accent-soft: var(--success-50); --accent-ring: rgba(21, 128, 61, .35); --accent-border: #a7e3bd; --accent-hover: #166534; }
.booking-option::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.booking-option:hover, .booking-option:focus-within {
    transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-border);
}
.booking-option:focus-within { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.booking-option:focus-within :focus-visible { outline: 0; }   /* ring is drawn on the card */

.booking-option .option-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.booking-option .option-icon {
    display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%;
    font-size: 1.75rem; color: var(--accent); background: var(--accent-soft);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.booking-option .option-chip {
    display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--radius-pill);
    background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.booking-option h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; margin-bottom: var(--sp-2); }
.booking-option .option-desc { color: var(--gray-600); margin-bottom: var(--sp-5); }
.booking-option .option-needs-title { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-bottom: var(--sp-2); }
.booking-option .option-needs { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: grid; gap: .5rem; font-size: var(--fs-sm); color: var(--gray-700); }
.booking-option .option-needs li { display: flex; gap: .55rem; align-items: flex-start; }
.booking-option .option-needs .bi { color: var(--accent); font-size: 1rem; line-height: 1.35; flex: none; }

.booking-option .option-cta {
    margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.25rem; border-radius: var(--radius); font-weight: 600; text-decoration: none;
    color: #fff; background: var(--accent); transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.booking-option .option-cta::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* stretched link: whole card clickable */
.booking-option .option-cta .bi { transition: transform .2s var(--ease); }
.booking-option:hover .option-cta, .booking-option:focus-within .option-cta { background: var(--accent-hover); box-shadow: 0 6px 16px -6px var(--accent-ring); }
.booking-option:hover .option-cta .bi, .booking-option:focus-within .option-cta .bi { transform: translateX(4px); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Landing: how it works timeline ------------------------------------------------ */
.how-it-works { max-width: 1024px; margin: var(--sp-12) auto 0; width: 100%; }
.how-it-works .section-eyebrow { text-align: center; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-600); margin-bottom: .35rem; }
.how-it-works h2 { text-align: center; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; margin-bottom: var(--sp-8); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.timeline-step { position: relative; text-align: center; padding: 0 var(--sp-2); }
.timeline-step::before {             /* connector line to the next step */
    content: ""; position: absolute; top: 22px; left: calc(50% + 30px); right: calc(-50% - var(--sp-6) + 30px);
    height: 2px; background: repeating-linear-gradient(90deg, var(--gray-300) 0 6px, transparent 6px 11px);
}
.timeline-step:last-child::before { display: none; }
.timeline-num {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto var(--sp-4);
    border-radius: 50%; background: var(--surface-card); border: 2px solid var(--primary-600); color: var(--primary-600);
    font-weight: 800; font-size: var(--fs-sm); box-shadow: 0 0 0 5px var(--surface-page);
}
.timeline-step:last-child .timeline-num { background: var(--primary-600); color: #fff; }
.timeline-step h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: .3rem; display: inline-flex; align-items: center; gap: .4rem; }
.timeline-step h3 .bi { color: var(--primary-600); }
.timeline-step p { font-size: var(--fs-sm); color: var(--gray-500); margin: 0; }
@media (max-width: 767.98px) {
    .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .timeline-step { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--sp-4); text-align: left; padding: 0 0 var(--sp-6); }
    .timeline-step::before { top: 50px; bottom: 6px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gray-300) 0 6px, transparent 6px 11px); }
    .timeline-num { grid-row: span 2; margin: 0; }
    .timeline-step h3 { margin-top: .55rem; }
}

.help-line {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .75rem;
    max-width: 720px; margin: var(--sp-10) auto 0; padding: var(--sp-4) var(--sp-5);
    border: 1px dashed var(--gray-300); border-radius: var(--radius); background: var(--surface-card);
    font-size: var(--fs-sm); color: var(--gray-600); text-align: center;
}
.help-line .bi { color: var(--primary-600); font-size: 1.1rem; }
.help-line a { font-weight: 600; }

/* Form page shell (booking forms) */
.form-shell { max-width: 1040px; margin-inline: auto; }
.form-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow); overflow: hidden; }
.form-card-header {
    padding: var(--sp-6) var(--sp-8); color: #fff;
    background: linear-gradient(120deg, var(--brand-900), var(--primary-600));
}
.form-card-header.is-success { background: linear-gradient(120deg, #14532d, var(--success-700)); }
.form-card-header h1, .form-card-header h2, .form-card-header h3, .form-card-header h4 { color: #fff; margin: 0; font-size: var(--fs-xl); font-weight: 700; }
.form-card-header p { margin: .35rem 0 0; color: rgba(255,255,255,.8); font-size: var(--fs-sm); }
.form-card-body { padding: var(--sp-8); }
.form-card-footer { padding: var(--sp-5) var(--sp-8); background: var(--gray-50); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; }
@media (max-width: 575.98px) {
    .form-card-header, .form-card-body, .form-card-footer { padding-inline: var(--sp-4); }
    .form-card-body { padding-block: var(--sp-5); }
}
.total-amount {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); background: var(--primary-50); border: 1px solid var(--primary-100);
}
.total-amount .label { color: var(--gray-600); font-weight: 600; font-size: var(--fs-sm); }
.total-amount .value { color: var(--brand-800); font-weight: 800; font-size: var(--fs-xl); }

/* Auth (login) */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 160px); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.auth-card .auth-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-50); color: var(--primary-600); font-size: 1.5rem; margin-bottom: var(--sp-4); }
.auth-card h1 { font-size: var(--fs-xl); margin-bottom: .25rem; }

/* Status hero (success page) */
.status-hero { text-align: center; padding: var(--sp-8) var(--sp-6); }
.status-hero .status-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success-50); color: var(--success-700); font-size: 2.2rem; margin-bottom: var(--sp-4); box-shadow: 0 0 0 8px rgba(21,128,61,.06); }
.ref-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: var(--radius-pill); background: var(--gray-100); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--gray-900); }

/* 12. Admin layout ---------------------------------------------------------------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--surface-page); }
.admin-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 1040; width: var(--sidebar-w);
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--brand-950), var(--brand-900));
    color: rgba(255,255,255,.75);
    transition: width .22s var(--ease), transform .22s var(--ease);
}
.admin-sidebar .sidebar-brand { display: flex; align-items: center; gap: .7rem; height: var(--header-h); padding: 0 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; flex: none; overflow: hidden; }
.admin-sidebar .sidebar-brand img { height: 36px; width: 36px; object-fit: cover; object-position: left center; flex: none; }
.admin-sidebar .sidebar-brand span { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.admin-sidebar .sidebar-brand strong { font-size: .95rem; }
.admin-sidebar .sidebar-brand small { font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.admin-sidebar .sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem .75rem; }
.admin-sidebar .sidebar-section { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 1rem .75rem .45rem; white-space: nowrap; }
.admin-sidebar .sidebar-link {
    display: flex; align-items: center; gap: .8rem; padding: .62rem .75rem; margin-bottom: 2px;
    border-radius: var(--radius-sm); color: rgba(255,255,255,.75); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
    white-space: nowrap; transition: background-color .15s, color .15s;
}
.admin-sidebar .sidebar-link .bi { font-size: 1.1rem; width: 1.25rem; text-align: center; flex: none; }
.admin-sidebar .sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-sidebar .sidebar-link.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--accent-500); }
.admin-sidebar .sidebar-footer { padding: .75rem; border-top: 1px solid rgba(255,255,255,.08); flex: none; }

.admin-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; transition: margin-left .22s var(--ease); }
.admin-topbar {
    position: sticky; top: 0; z-index: 1020; height: var(--header-h);
    display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-6);
    background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.admin-topbar .sidebar-toggle { border: 1px solid var(--border); background: var(--surface-card); color: var(--gray-700); width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; flex: none; }
.admin-topbar .sidebar-toggle:hover { background: var(--gray-50); }
.admin-topbar .topbar-title { min-width: 0; }
.admin-topbar .user-menu-btn { display: flex; align-items: center; gap: .65rem; border: 0; background: transparent; padding: .3rem .5rem .3rem .3rem; border-radius: var(--radius-pill); color: var(--gray-900); }
.admin-topbar .user-menu-btn:hover { background: var(--gray-100); }
.admin-topbar .user-menu-btn .user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.admin-topbar .user-menu-btn .user-meta strong { font-size: var(--fs-sm); }
.admin-topbar .user-menu-btn .user-meta small { font-size: var(--fs-xs); color: var(--gray-500); }
.admin-topbar .user-avatar { box-shadow: none; }
.admin-content { flex: 1; padding: var(--sp-8) var(--sp-6) var(--sp-10); }
.admin-content > .container, .admin-content > .container-fluid, .admin-content .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.admin-footer { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-xs); color: var(--gray-500); border-top: 1px solid var(--border); background: var(--surface-card); }

/* Collapsed (desktop) */
@media (min-width: 992px) {
    .sidebar-collapsed .admin-sidebar { width: var(--sidebar-w-collapsed); }
    .sidebar-collapsed .admin-main { margin-left: var(--sidebar-w-collapsed); }
    .sidebar-collapsed .admin-sidebar .sidebar-brand span,
    .sidebar-collapsed .admin-sidebar .sidebar-link span,
    .sidebar-collapsed .admin-sidebar .sidebar-section { opacity: 0; pointer-events: none; }
    .sidebar-collapsed .admin-sidebar .sidebar-section { height: .75rem; padding: 0; overflow: hidden; }
    .sidebar-collapsed .admin-sidebar .sidebar-link { justify-content: center; padding-inline: 0; }
    .sidebar-collapsed .admin-sidebar .sidebar-brand { justify-content: center; padding: 0; }
}
/* Off-canvas (mobile/tablet) */
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .admin-main { margin-left: 0; }
    .sidebar-open .admin-sidebar { transform: none; }
    .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(11, 18, 32, .5); }
    .admin-topbar { padding: 0 var(--sp-4); }
    .admin-content { padding: var(--sp-5) var(--sp-4) var(--sp-8); }
    .admin-topbar .user-menu-btn .user-meta { display: none; }
}

/* 13. Page blocks ------------------------------------------------------------------- */
.section-title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-4); display: flex; align-items: center; gap: .5rem; }
.section-title .bi { color: var(--primary-600); }
.soft-panel { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.divider { height: 1px; background: var(--border); margin: var(--sp-6) 0; }
.kbd-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; color: var(--brand-800); }
.actions { display: inline-flex; flex-wrap: nowrap; gap: .35rem; align-items: center; }
.actions form { margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: end; padding: var(--sp-4) var(--sp-5); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); margin-bottom: var(--sp-4); }

/* 14. Utilities --------------------------------------------------------------------- */
.hidden { display: none !important; }  /* used by agh/availability modal JS */
.text-brand { color: var(--brand-800) !important; }
.bg-brand { background: var(--brand-900) !important; color: #fff; }
.bg-soft-primary { background: var(--primary-50) !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.gap-y-2 { row-gap: .5rem; }
.min-w-0 { min-width: 0; }
.text-balance { text-wrap: balance; }

/* 15. Motion & print ----------------------------------------------------------------- */
.fade-in { animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
    body { background: #fff !important; }
    .site-header, .site-footer, .admin-sidebar, .admin-topbar, .admin-footer, .no-print, .btn, .skip-link { display: none !important; }
    .admin-main { margin-left: 0 !important; }
    .admin-content, .site-main { padding: 0 !important; }
    .card, .form-card, .table-card { box-shadow: none !important; border-color: #ccc !important; }
    a[href]::after { content: none !important; }
}

/* 16. Admin: dark mode ----------------------------------------------------------------
   Toggled by data-theme="dark" on <html> (admin layout only). The gray ramp is inverted
   so components that use gray-50 surfaces / gray-900 text adapt automatically. */
[data-theme="dark"] {
    color-scheme: dark;
    --gray-950: #f8fafc; --gray-900: #e6ebf2; --gray-700: #c5cfdc; --gray-600: #a6b2c3;
    --gray-500: #8e9bb0; --gray-400: #66748a; --gray-300: #3a475c; --gray-200: #2b3649;
    --gray-100: #1f2939; --gray-50: #182131;
    --surface-page: #0d1420; --surface-card: #131c2b; --border: #243046;
    --text: var(--gray-900); --text-muted: var(--gray-500);
    --primary-600: #3b82f6; --primary-700: #60a5fa; --primary-500: #3b82f6;
    --primary-100: rgba(59, 130, 246, .32); --primary-50: rgba(59, 130, 246, .14);
    --brand-800: #93c5fd;
    --success-700: #22a35a; --success-50: rgba(34, 197, 94, .13); --success-200: rgba(34, 197, 94, .35);
    --danger-600: #ef4444; --danger-700: #f87171; --danger-50: rgba(239, 68, 68, .13); --danger-200: rgba(239, 68, 68, .35);
    --warning-700: #fbbf24; --warning-50: rgba(245, 158, 11, .13); --warning-200: rgba(245, 158, 11, .35);
    --info-700: #38bdf8; --info-50: rgba(14, 165, 233, .13); --info-200: rgba(14, 165, 233, .35);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
    --shadow: 0 4px 14px -2px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, .6);

    --bs-body-bg: var(--surface-page); --bs-body-color: var(--text);
    --bs-emphasis-color: #fff; --bs-secondary-color: var(--text-muted);
    --bs-secondary-bg: var(--gray-100); --bs-tertiary-bg: var(--gray-50);
    --bs-border-color: var(--border); --bs-heading-color: var(--gray-950);
    --bs-primary: var(--primary-600); --bs-primary-rgb: 59, 130, 246;
    --bs-link-color: #60a5fa; --bs-link-color-rgb: 96, 165, 250; --bs-link-hover-color: #93c5fd;
    --bs-light-rgb: 31, 41, 57;
}
[data-theme="dark"] .card, [data-theme="dark"] .modal, [data-theme="dark"] .dropdown-menu { --bs-card-bg: var(--surface-card); --bs-modal-bg: var(--surface-card); --bs-dropdown-bg: var(--surface-card); --bs-dropdown-link-color: var(--gray-700); --bs-dropdown-link-hover-color: var(--gray-950); }
[data-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-striped-color: var(--gray-700); --bs-table-hover-color: var(--gray-950); --bs-table-color: var(--gray-700); }
[data-theme="dark"] .bg-white, [data-theme="dark"] .bg-light { background-color: var(--surface-card) !important; }
[data-theme="dark"] .text-dark { color: var(--gray-900) !important; }
[data-theme="dark"] .badge.bg-dark { background: var(--gray-200) !important; color: var(--gray-900) !important; }
[data-theme="dark"] .btn-light { --bs-btn-bg: var(--gray-100); --bs-btn-color: var(--gray-700); --bs-btn-border-color: var(--border); --bs-btn-hover-bg: var(--gray-200); --bs-btn-hover-color: var(--gray-950); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
[data-theme="dark"] .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a6b2c3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
[data-theme="dark"] .admin-topbar { background: rgba(19, 28, 43, .88); }
[data-theme="dark"] .swal2-popup { background: var(--surface-card) !important; color: var(--text) !important; }
[data-theme="dark"] .swal2-input, [data-theme="dark"] .swal2-textarea { background: var(--gray-50) !important; color: var(--text) !important; }
[data-theme="dark"] ::selection { background: rgba(59, 130, 246, .35); color: #fff; }
.theme-transition, .theme-transition * { transition: background-color .2s ease, border-color .2s ease, color .2s ease !important; }

/* 17. Admin: shell additions ------------------------------------------------------------ */
.admin-shell .admin-sidebar .sidebar-link .badge-count {
    margin-left: auto; min-width: 22px; height: 20px; padding: 0 .4rem; border-radius: var(--radius-pill);
    display: inline-grid; place-items: center; background: var(--accent-500); color: #2b1d00; font-size: .7rem; font-weight: 700;
}
.sidebar-collapsed .admin-sidebar .sidebar-link .badge-count { position: absolute; margin: 0; transform: translate(12px, -10px); }
.admin-sidebar .sidebar-link { position: relative; }
.admin-sidebar .sidebar-footer .sidebar-link { margin: 0; }
.admin-topbar .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.admin-topbar .icon-btn {
    width: 38px; height: 38px; display: grid; place-items: center; flex: none;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-card); color: var(--gray-600);
}
.admin-topbar .icon-btn:hover { color: var(--gray-950); background: var(--gray-50); }
.admin-topbar .search-trigger {
    display: flex; align-items: center; gap: .55rem; height: 38px; padding: 0 .6rem 0 .8rem; min-width: 240px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--gray-50); color: var(--gray-500); font-size: var(--fs-sm);
}
.admin-topbar .search-trigger:hover { border-color: var(--gray-300); color: var(--gray-700); }
.admin-topbar .search-trigger kbd, .cmdk kbd {
    margin-left: auto; padding: .1rem .4rem; border-radius: 5px; border: 1px solid var(--border); background: var(--surface-card);
    color: var(--gray-500); font: 600 .7rem/1.4 var(--font-sans); box-shadow: none;
}
@media (max-width: 767.98px) { .admin-topbar .search-trigger { min-width: 0; width: 38px; padding: 0; justify-content: center; } .admin-topbar .search-trigger span, .admin-topbar .search-trigger kbd { display: none; } }
.role-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--primary-50); color: var(--primary-700); }
.role-badge.is-m { background: var(--success-50); color: var(--success-700); }
.role-badge.is-i { background: var(--warning-50); color: var(--warning-700); }
.admin-breadcrumb { font-size: var(--fs-xs); }
.admin-page-title { font-size: var(--fs-md); font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-content { animation: fadeIn .3s var(--ease) both; }

/* Command palette (Ctrl/⌘ + K) */
.cmdk .modal-dialog { max-width: 560px; margin-top: 12vh; }
.cmdk .modal-content { overflow: hidden; border: 1px solid var(--border); }
.cmdk-input-wrap { display: flex; align-items: center; gap: .65rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.cmdk-input-wrap .bi { color: var(--gray-400); font-size: 1.05rem; }
.cmdk-input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: var(--fs-md); }
.cmdk-list { list-style: none; margin: 0; padding: .4rem; max-height: 360px; overflow-y: auto; }
.cmdk-group { padding: .6rem .7rem .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); }
.cmdk-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: var(--radius-sm); color: var(--gray-700); text-decoration: none; font-size: var(--fs-sm); }
.cmdk-item .bi { width: 1.2rem; text-align: center; color: var(--gray-400); }
.cmdk-item[aria-selected="true"] { background: var(--primary-50); color: var(--primary-700); }
.cmdk-item[aria-selected="true"] .bi { color: var(--primary-600); }
.cmdk-empty { padding: 1.5rem; text-align: center; color: var(--gray-500); font-size: var(--fs-sm); }
.cmdk-foot { display: flex; gap: 1rem; padding: .55rem 1.1rem; border-top: 1px solid var(--border); font-size: .72rem; color: var(--gray-500); }

/* 18. Admin: page building blocks ------------------------------------------------------ */
.greeting { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.greeting h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.025em; margin: 0; }
.greeting .date { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .2rem; }
.mini-stat { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: var(--radius); background: var(--surface-card); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.mini-stat .bi { font-size: 1.2rem; color: var(--primary-600); }
.mini-stat strong { font-size: var(--fs-lg); font-weight: 800; color: var(--gray-950); line-height: 1; }
.mini-stat span { font-size: var(--fs-xs); color: var(--text-muted); }
.stat-card .stat-foot { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .35rem; }
.stat-card { overflow: hidden; }
.stat-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--stat-accent, var(--primary-600)); opacity: .85; }
.stat-card.is-success { --stat-accent: var(--success-700); } .stat-card.is-warning { --stat-accent: var(--accent-500); } .stat-card.is-info { --stat-accent: var(--info-700); }

.panel { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.panel-head h2, .panel-head h3 { font-size: var(--fs-md); font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
.panel-head h2 .bi, .panel-head h3 .bi { color: var(--primary-600); }
.panel-body { padding: var(--sp-5); flex: 1; }
.panel-body.p-0 { padding: 0; }
.chart-box { position: relative; height: 260px; }
.panel-body.is-chart { display: flex; flex-direction: column; }
.panel-body.is-chart .chart-box { flex: 1; height: auto; min-height: 260px; }

.attention-list { list-style: none; margin: 0; padding: 0; }
.attention-list li + li { border-top: 1px solid var(--border); }
.attention-item { display: flex; align-items: center; gap: .85rem; padding: .8rem var(--sp-5); color: inherit; text-decoration: none; transition: background-color .15s; }
.attention-item:hover { background: var(--gray-50); color: inherit; }
.attention-item .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--warning-50); color: var(--warning-700); }
.attention-item .meta { min-width: 0; flex: 1; }
.attention-item .meta strong { display: block; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention-item .meta span { font-size: var(--fs-xs); color: var(--text-muted); }
.attention-item .age { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }

/* Filter chips (wired to DataTables search) */
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--surface-card); color: var(--gray-600); font-size: var(--fs-sm); font-weight: 600;
    transition: background-color .15s, color .15s, border-color .15s;
}
.filter-chip:hover { border-color: var(--gray-300); color: var(--gray-900); }
.filter-chip .count { min-width: 20px; padding: 0 .35rem; border-radius: var(--radius-pill); background: var(--gray-100); font-size: .7rem; text-align: center; }
.filter-chip[aria-pressed="true"] { background: var(--gray-900); border-color: var(--gray-900); color: var(--surface-card); }
.filter-chip[aria-pressed="true"] .count { background: rgba(255,255,255,.18); color: inherit; }
.filter-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.filter-chip.is-pending .dot { color: var(--accent-500); } .filter-chip.is-approved .dot { color: var(--success-700); } .filter-chip.is-declined .dot { color: var(--danger-600); }

/* DataTables: custom dom used by the admin pages ('<"d-flex ..."Bf>rtip') */
.table-card .dataTables_wrapper > .d-flex:first-child { flex-wrap: wrap; gap: .75rem; padding: var(--sp-4) var(--sp-5); margin: 0 !important; border-bottom: 1px solid var(--border); }
.table-card .dataTables_wrapper > .dataTables_info { padding: var(--sp-4) var(--sp-5); float: left; }
.table-card .dataTables_wrapper > .dataTables_paginate { padding: var(--sp-3) var(--sp-5); float: right; }
.table-card .dataTables_wrapper::after { content: ""; display: block; clear: both; }
.table-card .dataTables_wrapper .dataTables_filter { margin-left: auto; }
.table-card .dataTables_wrapper .dataTables_filter input { min-width: 240px; }
@media (max-width: 575.98px) {
    .table-card .dataTables_wrapper .dataTables_filter, .table-card .dataTables_wrapper .dataTables_filter label, .table-card .dataTables_wrapper .dataTables_filter input { width: 100%; min-width: 0; margin-left: 0; }
    .table-card .dataTables_wrapper > .dataTables_info, .table-card .dataTables_wrapper > .dataTables_paginate { float: none; text-align: center; }
    .table-card .dataTables_wrapper .pagination { justify-content: center; flex-wrap: wrap; }
}
.dt-buttons .btn, .dt-buttons .btn-export {
    --bs-btn-padding-y: .38rem; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .8125rem;
    background: var(--surface-card) !important; color: var(--gray-700) !important; border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-xs); font-weight: 600;
}
.dt-buttons .btn:hover { background: var(--gray-50) !important; color: var(--gray-950) !important; border-color: var(--gray-300) !important; }
.dt-buttons .btn.btn-primary { background: var(--primary-600) !important; color: #fff !important; border-color: var(--primary-600) !important; }
.dt-buttons .btn-excel .bi, .dt-buttons .btn-csv .bi { color: var(--success-700); }
.dt-buttons .btn-pdf .bi { color: var(--danger-600); }
.dt-buttons .btn-print .bi { color: var(--primary-600); }
.dt-buttons.btn-group > .btn { border-radius: var(--radius-sm) !important; margin: 0 !important; }

/* Sticky table header inside a scroll area */
.table-scroll { max-height: min(70vh, 720px); overflow: auto; }
.table-scroll thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--border); }
.table td .actions, .table td.text-center > form, .table td.text-center > a { vertical-align: middle; }
.table .ref-link { font-weight: 700; color: var(--primary-600); text-decoration: none; font-variant-numeric: tabular-nums; }
.table .ref-link:hover { text-decoration: underline; }
.table .muted-sub { display: block; font-size: var(--fs-xs); color: var(--text-muted); }

/* Status timeline (request detail) */
.status-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.status-timeline li { position: relative; padding: 0 0 1.4rem 2.4rem; }
.status-timeline li:last-child { padding-bottom: 0; }
.status-timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--border); }
.status-timeline li:last-child::before { display: none; }
.status-timeline .st-icon { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; background: var(--gray-100); color: var(--gray-400); border: 2px solid var(--surface-card); box-shadow: 0 0 0 1px var(--border); }
.status-timeline .is-done .st-icon { background: var(--success-700); color: #fff; box-shadow: none; }
.status-timeline .is-done::before { background: var(--success-200); }
.status-timeline .is-current .st-icon { background: var(--accent-500); color: #2b1d00; box-shadow: 0 0 0 4px var(--warning-50); }
.status-timeline .is-failed .st-icon { background: var(--danger-600); color: #fff; box-shadow: none; }
.status-timeline strong { display: block; font-size: var(--fs-sm); color: var(--gray-950); }
.status-timeline span { font-size: var(--fs-xs); color: var(--text-muted); }

/* Rooms: grid view */
.view-toggle { display: inline-flex; padding: 3px; border-radius: var(--radius-sm); background: var(--gray-100); border: 1px solid var(--border); }
.view-toggle button { border: 0; background: transparent; color: var(--gray-500); padding: .35rem .65rem; border-radius: 6px; font-size: var(--fs-sm); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.view-toggle button[aria-pressed="true"] { background: var(--surface-card); color: var(--gray-950); box-shadow: var(--shadow-xs); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-4); padding: var(--sp-5); }
.room-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); background: var(--surface-card); display: flex; flex-direction: column; gap: .6rem; transition: box-shadow .15s, transform .15s; }
.room-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.room-card .room-no { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.room-card .room-status { position: absolute; top: var(--sp-4); right: var(--sp-4); display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 600; }
.room-card .room-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success-700); box-shadow: 0 0 0 3px var(--success-50); }
.room-card.is-occupied .room-status::before { background: var(--danger-600); box-shadow: 0 0 0 3px var(--danger-50); }
.room-card .room-status { color: var(--success-700); } .room-card.is-occupied .room-status { color: var(--danger-600); }
.room-card .room-meta { font-size: var(--fs-sm); color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.room-card .room-rate { font-weight: 700; color: var(--gray-950); }
.room-card .actions { margin-top: auto; }

/* Password tools */
.input-reveal { position: relative; }
.input-reveal .form-control { padding-right: 2.75rem; }
.input-reveal .reveal-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--gray-500); width: 36px; height: 36px; border-radius: 6px; }
.input-reveal .reveal-btn:hover { color: var(--gray-900); background: var(--gray-100); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .5rem; }
.pw-meter span { height: 4px; border-radius: 4px; background: var(--gray-200); transition: background-color .2s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger-600); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--accent-500); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #84cc16; }
.pw-meter[data-score="4"] span:nth-child(-n+4) { background: var(--success-700); }
.pw-hint { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .35rem; }
.match-hint { font-size: var(--fs-xs); margin-top: .35rem; }

/* AGH modal (existing #assignModal toggled via .hidden) */
.agh-modal { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(11, 18, 32, .55); }
.agh-modal.hidden { display: none !important; }
.agh-modal .agh-dialog { width: 100%; max-width: 440px; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* Mobile sticky action bar */
@media (max-width: 767.98px) {
    .mobile-sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: var(--sp-4) calc(-1 * var(--sp-4)) calc(-1 * var(--sp-8)); padding: .75rem var(--sp-4); background: var(--surface-card); border-top: 1px solid var(--border); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.25); }
}

/* 19. Admin: dense data tables + DataTables stripe/hover overrides --------------------- */
.table-card .table > :not(caption) > * > * { padding: .7rem .8rem; }
.table-card .table td { white-space: nowrap; }
.table-card .table td.wrap { white-space: normal; }
.table-card .table th:first-child, .table-card .table td:first-child { padding-left: 1.25rem; }
.table-card .table th:last-child, .table-card .table td:last-child { padding-right: 1.25rem; }
table.dataTable.table-striped > tbody > tr.odd > * { box-shadow: inset 0 0 0 9999px rgba(100, 116, 139, .045) !important; }
table.dataTable.table-hover > tbody > tr:hover > * { box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, .06) !important; }
table.dataTable > tbody > tr > .sorting_1 { box-shadow: none; }
table.dataTable.table-striped > tbody > tr:not(.odd) > * { box-shadow: none !important; }
[data-theme="dark"] table.dataTable.table-striped > tbody > tr.odd > * { box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, .025) !important; }
[data-theme="dark"] table.dataTable.table-hover > tbody > tr:hover > * { box-shadow: inset 0 0 0 9999px rgba(59, 130, 246, .1) !important; }
.table td .btn-sm + form, .table td form + form, .table td .btn + .btn { margin-left: .25rem; }
@media (max-width: 767.98px) { .admin-topbar .admin-breadcrumb { display: none; } }
/* Sticky actions column: keeps approve/decline/edit visible while the table scrolls sideways */
.table.sticky-actions > thead > tr > th:last-child,
.table.sticky-actions > tbody > tr > td:last-child {
    position: sticky; right: 0; z-index: 1;
    background-color: var(--surface-card);
    border-left: 1px solid var(--border);
}
.table.sticky-actions > thead > tr > th:last-child { background-color: var(--gray-50); }
