/* ===========================================
   ADMIN PANEL – REFINED DESIGN SYSTEM
   Inter font, Neutral Slate palette, Clean UI
   =========================================== */

/* ========== CSS VARIABLES ========== */
:root {
    --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Neutral Slate Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Accent – Indigo */
    --accent: #3730a3;
    --accent-light: #818cf8;
    --accent-lighter: #e0e7ff;
    --accent-dark: #f6bd2a;

    /* Status */
    --green-500: #22c55e;
    --green-100: #dcfce7;
    --green-700: #15803d;
    --yellow-500: #eab308;
    --yellow-100: #fef9c3;
    --yellow-700: #a16207;
    --red-500: #ef4444;
    --red-100: #fee2e2;
    --red-700: #b91c1c;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;

    /* Surfaces */
    --bg-body: #f0f1f3;
    --bg-sidebar: var(--slate-900);
    --bg-card: #ffffff;
    --border-color: var(--slate-200);
    --border-color-light: var(--slate-100);

    /* Text */
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-tertiary: var(--slate-400);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.006em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.h-font {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========== ADMIN SHELL ========== */
.admin-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-body);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-shell__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-shell__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 32px;
}

/* ========== SIDEBAR ========== */
.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--sidebar-bg, #0f172a);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
    position: relative;
    z-index: 1050;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Collapsed state (desktop) ─────────────────────────────── */
.admin-sidebar--collapsed {
    width: 68px;
}

.admin-sidebar--collapsed .admin-sidebar__brand {
    justify-content: center;
    padding: 22px 10px 20px;
}

.admin-sidebar--collapsed .admin-sidebar__nav {
    padding: 4px 8px;
    align-items: center;
}

.admin-sidebar--collapsed .admin-sidebar__link {
    justify-content: center;
    padding: 9px 8px;
}

.admin-sidebar--collapsed .admin-sidebar__footer {
    padding: 12px 8px 20px;
}

.admin-sidebar--collapsed .admin-sidebar__logout {
    justify-content: center;
    padding: 9px 8px;
}

/* ── Collapse toggle button ─────────────────────────────── */
.admin-sidebar__collapse-btn {
    position: absolute;
    top: 28px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    z-index: 1060;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.admin-sidebar__collapse-btn:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Brand */
.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.admin-sidebar__brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-sidebar__brand-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.admin-sidebar__brand-sub {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    margin-top: 1px;
}

/* Navigation */
.admin-sidebar__nav {
    flex: 1;
    padding: 4px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: auto;
}

.admin-sidebar__group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 4px;
}

.admin-sidebar__group-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.28);
    padding: 10px 12px 4px;
    white-space: nowrap;
}

.admin-sidebar__group + .admin-sidebar__group {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 4px;
    margin-top: 2px;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 16px;
    font-weight: 450;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.admin-sidebar__link-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar__link-label {
    white-space: nowrap;
    font-size: 15px;
}

.admin-sidebar__link-ext {
    font-size: 0.6rem;
    opacity: 0.4;
}

.admin-sidebar__link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

.admin-sidebar__link:hover .admin-sidebar__link-icon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.admin-sidebar__link--active {
    color: #fff !important;
    background: rgba(79, 70, 229, 0.2) !important;
}

.admin-sidebar__link--active .admin-sidebar__link-icon {
    background: var(--accent);
    color: #fff;
}

/* Footer / logout */
.admin-sidebar__footer {
    padding: 12px 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.admin-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.8rem;
    font-weight: 450;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.15s ease;
}

.admin-sidebar__logout:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
}

/* Mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px !important;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-sidebar--open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .admin-sidebar--collapsed {
        width: 250px !important;
    }

    .admin-sidebar__collapse-btn {
        display: none !important;
    }

    .admin-shell__content {
        padding: 20px 16px;
    }
}

/* ========== TOP BAR ========== */
.admin-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    height: 64px;
    flex-shrink: 0;
    background: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-topbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== BILLING ========== */
.billing-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.billing-banner--trial {
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
    border-color: #c7d2fe;
}

.billing-banner--overdue,
.billing-banner--danger {
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.billing-banner__copy {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.billing-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 16px;
    background: var(--text-primary);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}

.billing-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.billing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 24px;
    padding: 28px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1d4ed8 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.billing-hero--overdue {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 24%),
        linear-gradient(135deg, #3f0d12 0%, #7f1d1d 55%, #b91c1c 100%);
}

.billing-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.72;
}

.billing-hero__title {
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    max-width: 14ch;
}

.billing-hero__body {
    font-size: 0.95rem;
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.billing-hero__meta {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
}

.billing-hero__meta>div {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.billing-hero__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 4px;
}

.billing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.billing-cycle-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.billing-cycle-switch button {
    border: 0;
    background: transparent;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 600;
}

.billing-cycle-switch button.is-active {
    background: var(--text-primary);
    color: #fff;
}

.billing-plan-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.billing-plan-card--selected {
    border-color: #1d4ed8;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.14);
}

.billing-plan-card--featured {
    background:
        radial-gradient(circle at top right, rgba(224, 231, 255, 0.7), transparent 28%),
        #fff;
}

.billing-plan-card__title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
}

.billing-plan-card__desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.billing-plan-card__price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.billing-plan-card__price span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 4px;
}

.billing-plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.billing-plan-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.billing-plan-card__features i {
    color: #2563eb;
}

.billing-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.billing-footnote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 18px 20px;
}

.billing-footnote h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .billing-banner,
    .billing-toolbar,
    .billing-footnote,
    .billing-hero {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .billing-banner__cta {
        width: 100%;
    }

    .billing-hero__title {
        max-width: none;
        font-size: 1.6rem;
    }
}

.admin-topbar__menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-topbar__menu-btn:hover {
    background: var(--slate-100);
    color: var(--text-primary);
}

/* Search */
.admin-topbar__search {
    flex: 1;
    max-width: 440px;
    position: relative;
    display: flex;
    align-items: center;
}

.admin-topbar__search-icon {
    position: absolute;
    left: 12px;
    color: var(--slate-400);
    font-size: 0.85rem;
    pointer-events: none;
}

.admin-topbar__search-input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px 0 36px;
    font-size: 0.8125rem;
    color: var(--text-primary);
    background: var(--slate-50);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-topbar__search-input::placeholder {
    color: var(--slate-400);
}

.admin-topbar__search-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

/* Right side */
.admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.admin-topbar__visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    border-radius: 9px;
    background: var(--slate-300, #cbd5e1);
    color: var(--text-primary, #1e293b) !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s ease;
    border: 1px solid var(--border-color, #e2e8f0);
    white-space: nowrap;
}

.admin-topbar__visit-btn:hover {
    transform: translateY(-1px);
    color: var(--text-primary, #1e293b) !important;
    background: var(--slate-400, #94a3b8);
    border-color: var(--slate-400, #94a3b8);
}

.admin-topbar__icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    background-color: whitesmoke;
}

.admin-topbar__icon-btn:hover {
    background: var(--slate-100);
    color: var(--text-primary);
}

.admin-topbar__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red-500);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Bell shake animation for new bookings */
@keyframes bellShake {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-14deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(6deg);
    }

    60% {
        transform: rotate(-6deg);
    }

    70% {
        transform: rotate(3deg);
    }

    80% {
        transform: rotate(-3deg);
    }

    90% {
        transform: rotate(1deg);
    }

    100% {
        transform: rotate(0);
    }
}

.admin-topbar__icon-btn--shaking {
    animation: bellShake 0.6s ease-in-out;
    animation-iteration-count: 5;
}

/* Notification dropdown */
.admin-topbar__notif-wrap {
    position: relative;
}

.admin-topbar__notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -60px;
    width: 340px;
    max-height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: dropIn 0.15s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-topbar__notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-color);
}

.admin-topbar__notif-header h6 {
    font-size: 0.85rem;
    font-weight: 650;
    margin: 0;
    color: var(--text-primary);
}

.admin-topbar__notif-header span {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.admin-topbar__notif-list {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}

.admin-topbar__notif-item-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.admin-topbar__notif-item-wrap:hover .admin-topbar__notif-dismiss {
    opacity: 1;
}

.admin-topbar__notif-dismiss {
    flex-shrink: 0;
    align-self: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
    margin-right: 8px;
}

.admin-topbar__notif-dismiss:hover {
    background: var(--danger-light, #fee2e2);
    color: var(--danger, #ef4444);
}

.admin-topbar__notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.admin-topbar__notif-item:hover {
    background: var(--slate-100);
}

.admin-topbar__notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-light, #ede9fe);
    color: var(--accent, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.admin-topbar__notif-content {
    flex: 1;
    min-width: 0;
}

.admin-topbar__notif-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.admin-topbar__notif-body {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar__notif-time {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin: 3px 0 0;
}

.admin-topbar__notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.admin-topbar__notif-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.admin-topbar__notif-footer a {
    font-size: 0.75rem;
    font-weight: 550;
    color: var(--accent);
    text-decoration: none;
}

.admin-topbar__notif-footer a:hover {
    text-decoration: underline;
}

/* Avatar */
.admin-topbar__avatar-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    border-radius: 10px;
    padding: 5px 8px;
    transition: background 0.15s ease;
    position: relative;
    user-select: none;
    background-color: whitesmoke;
}

.admin-topbar__avatar-wrap:hover {
    background: var(--slate-100);
}

.admin-topbar__avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.admin-topbar__avatar-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-topbar__avatar-role {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.2;
}

.admin-topbar__chevron {
    font-size: 0.68rem;
    color: var(--slate-400);
}

/* Dropdown */
.admin-topbar__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 9999;
    animation: dropIn 0.15s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-topbar__dropdown-header {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-topbar__dropdown-header strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-topbar__dropdown-header span {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.admin-topbar__dropdown-divider {
    margin: 4px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.admin-topbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 450;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.12s ease;
    text-align: left;
}

.admin-topbar__dropdown-item:hover {
    background: var(--slate-100);
}

.admin-topbar__dropdown-item i {
    font-size: 0.875rem;
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
}

.admin-topbar__dropdown-item--danger {
    color: var(--red-700);
}

.admin-topbar__dropdown-item--danger:hover {
    background: var(--red-100);
}

.admin-topbar__dropdown-item--danger i {
    color: var(--red-500);
}

/* ========== PAGE HEADINGS ========== */
.admin-shell__content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.admin-shell__content h3 i {
    color: var(--slate-400);
    font-size: 1.2rem;
}

/* ========== NAV PILLS / FILTER TABS ========== */
.nav-pills {
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
    margin-bottom: 20px !important;
}

.nav-pills .nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    background: transparent !important;
    border: none;
    border-radius: 0;
    padding: 8px 14px;
    position: relative;
    transition: all 0.15s var(--ease);
}

.nav-pills .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    height: 2px;
    width: 100%;
    background: transparent;
    border-radius: 1px 1px 0 0;
    transition: all 0.15s var(--ease);
}

.nav-pills .nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-pills .nav-link.active {
    color: var(--accent) !important;
    background: transparent !important;
}

.nav-pills .nav-link.active::after {
    background: var(--accent);
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 20px;
}

.card-body h5.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ========== TABLES ========== */
.table {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.table thead {
    border-bottom: 2px solid var(--slate-200);
}

.table thead th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
    background: var(--slate-50) !important;
    border-bottom: none !important;
    padding: 10px 16px !important;
    white-space: nowrap;
}

.table-dark th {
    background: var(--slate-800) !important;
    color: var(--slate-300) !important;
}

.table td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    color: var(--text-primary);
    border-color: var(--border-color-light) !important;
    white-space: wrap;
}

.table-hover>tbody>tr:hover {
    background-color: var(--slate-50) !important;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.table td:last-child {
    white-space: nowrap;
    min-width: 120px;
}

.table td:last-child .dropdown {
    display: inline-block;
}

/* ========== BADGES ========== */
.badge {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.01em;
}

.badge.bg-success {
    background: var(--green-100) !important;
    color: var(--green-700) !important;
}

.badge.bg-warning {
    background: var(--yellow-100) !important;
    color: var(--yellow-700) !important;
}

.badge.bg-danger {
    background: var(--red-100) !important;
    color: var(--red-700) !important;
}

.badge.bg-info {
    background: var(--blue-100) !important;
    color: #1d4ed8 !important;
}

.badge.bg-secondary {
    background: var(--slate-100) !important;
    color: var(--slate-600) !important;
}

.badge.bg-dark {
    background: var(--slate-800) !important;
    color: var(--slate-200) !important;
}

.table .badge {
    font-size: 0.6875rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* ========== BUTTONS – LIQUID GLASS THEME ========== */
.btn {
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 14px;
    padding: 8px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 10px;
}

.btn-dark {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(15, 23, 42, 0.15);
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-dark:hover {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(15, 23, 42, 0.12);
    color: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-outline-dark:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--slate-900);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-outline-primary {
    border: 1px solid rgba(55, 48, 163, 0.2);
    color: var(--accent);
    background: rgba(55, 48, 163, 0.06);
    box-shadow: 0 2px 8px rgba(55, 48, 163, 0.06), inset 0 0 0 1px rgba(55, 48, 163, 0.08);
}

.btn-outline-primary:hover {
    background: rgba(55, 48, 163, 0.12);
    border-color: rgba(55, 48, 163, 0.25);
    color: var(--accent);
    box-shadow: 0 4px 16px rgba(55, 48, 163, 0.1), inset 0 0 0 1px rgba(55, 48, 163, 0.12);
}

.btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red-500);
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.04), inset 0 0 0 1px rgba(239, 68, 68, 0.06);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--red-700);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08), inset 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 0.15);
    color: #fff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.7);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-warning {
    background: rgba(234, 179, 8, 0.8);
    border-color: rgba(234, 179, 8, 0.15);
    color: var(--slate-900);
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-warning:hover {
    background: rgba(234, 179, 8, 0.7);
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: rgba(34, 197, 94, 0.8);
    border-color: rgba(34, 197, 94, 0.15);
    color: #fff;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.7);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ========== LIQUID GLASS BUTTONS ========== */
.btn-glass {
    padding: 8px 20px;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    color: var(--slate-600);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    color: var(--slate-800);
    transform: translateY(-1px);
}

.btn-glass:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-glass.active,
.btn-glass-active {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    color: var(--slate-900);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-glass-primary {
    background: rgba(55, 48, 163, 0.12);
    border-color: rgba(55, 48, 163, 0.2);
    color: var(--accent);
}

.btn-glass-primary:hover {
    background: rgba(55, 48, 163, 0.2);
    box-shadow: 0 4px 16px rgba(55, 48, 163, 0.12), inset 0 0 0 1px rgba(55, 48, 163, 0.15);
    color: var(--accent);
}

.btn-glass-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--red-500);
}

.btn-glass-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1), inset 0 0 0 1px rgba(239, 68, 68, 0.15);
    color: var(--red-700);
}

.btn-glass-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--green-700);
}

.btn-glass-success:hover {
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.1), inset 0 0 0 1px rgba(34, 197, 94, 0.15);
    color: var(--green-700);
}

.btn-glass-dark {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--slate-800);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.btn-glass-dark:hover {
    background: rgba(15, 23, 42, 0.14);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(15, 23, 42, 0.1);
    color: var(--slate-900);
}

.btn-glass-sm {
    padding: 5px 14px;
    font-size: 0.75rem;
    border-radius: 12px;
}

.btn-glass-lg {
    padding: 12px 28px;
    font-size: 0.875rem;
    border-radius: 20px;
}

/* Liquid-glass toggle group */
.glass-toggle-group {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(200, 200, 220, 0.22) 0%, rgba(180, 180, 200, 0.12) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.glass-toggle-group .btn-glass {
    padding: 8px 20px;
    border-radius: 18px;
}

.glass-toggle-group .btn-glass.active {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    color: var(--slate-900);
}

.glass-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34c759;
    display: inline-block;
    margin-left: 4px;
}

/* ========== DROPDOWNS ========== */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 4px;
    min-width: 180px;
    font-size: 0.8125rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 450;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: var(--slate-50);
}

.dropdown-item i {
    font-size: 0.875rem;
}

.dropdown-divider {
    margin: 4px 0;
    border-color: var(--border-color-light);
}

.table .dropdown-menu {
    z-index: 1050;
    min-width: 180px;
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    font-size: 0.875rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: var(--slate-400);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-group-text {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-400);
    font-size: 0.875rem;
}

/* ========== MODALS ========== */
.modal-content {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;

}

.modal-header .modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
}

/* ========== ADMIN DIALOGS ========== */
body.admin-dialog-open {
    overflow: hidden;
}

.admin-dialog-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 3000;
}

.admin-dialog {
    width: min(100%, 620px);
    max-height: calc(100vh - 158px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    animation: adminDialogIn 0.18s var(--ease);
}

.admin-dialog--sm {
    width: min(100%, 440px);
}

.admin-dialog--lg {
    width: min(100%, 680px);
    /* height: calc(122vh - 298px); */
    height: fit-content;
}

.admin-dialog--xl {
    width: min(100%, 880px);
}

.admin-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.admin-dialog__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.admin-dialog__subtitle {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.admin-dialog__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.admin-dialog__close:hover {
    background: var(--slate-100);
    color: var(--text-primary);
}

.admin-dialog__body {
    padding: 24px;
    overflow-y: auto;
}

.admin-dialog__footer {
    padding: 18px 24px 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
}

.admin-page-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-page-subtitle {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-xs);
}

.admin-stat-card__label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.admin-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.admin-stat-card__meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.admin-segmented-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--slate-100);
    border: 1px solid var(--border-color);
}

.admin-segmented-tabs__button {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s var(--ease);
}

.admin-segmented-tabs__button:hover {
    color: var(--text-primary);
}

.admin-segmented-tabs__button.active {
    background: #fff;
    color: var(--accent);
    box-shadow: var(--shadow-xs);
}

/* ── Theme group tabs (Basic / Premium switcher) ── */
.admin-theme-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-theme-tabs__button {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.admin-theme-tabs__button small {
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.admin-theme-tabs__button:hover {
    border-color: var(--accent);
    background: #f8fafc;
}

.admin-theme-tabs__button.active {
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.04);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.admin-theme-tabs__button.active small {
    color: var(--accent);
    opacity: 0.7;
}

.admin-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
    gap: 18px;
}

.admin-section-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.admin-section-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-section-card__subtitle {
    margin: 0 0 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-field-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.admin-field-grid>* {
    grid-column: span 12;
}

.admin-field-grid .span-6 {
    grid-column: span 6;
}

.admin-field-grid .span-4 {
    grid-column: span 4;
}

.admin-field-grid .span-8 {
    grid-column: span 8;
}

.admin-field-grid .span-3 {
    grid-column: span 3;
}

.admin-upload-field {
    border: 1px dashed var(--slate-300);
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #fff 100%);
    transition: all 0.18s var(--ease);
}

.admin-upload-field:hover,
.admin-upload-field--active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.admin-upload-field__preview {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-50));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-tertiary);
}

.admin-upload-field__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--text-primary);
    border: 1px solid rgba(203, 213, 225, 0.8);
    font-size: 0.82rem;
    font-weight: 500;
}

.admin-chip__remove {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.admin-chip__remove:hover {
    background: rgba(239, 68, 68, 0.14);
    color: var(--red-500);
}

@keyframes adminDialogIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== TOAST NOTIFICATIONS (ht-toast) ========== */
.ht-toast-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: calc(100vw - 48px);
    pointer-events: none;
}

.ht-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
    border: 1px solid transparent;
    pointer-events: all;
    cursor: default;
    line-height: 1.45;
}

.ht-toast--enter {
    animation: ht-toast-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ht-toast--exit {
    animation: ht-toast-out 0.26s ease-in both;
}

@keyframes ht-toast-in {
    from { opacity: 0; transform: translateY(14px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes ht-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(8px); }
}

.ht-toast__icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ht-toast__msg {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.ht-toast__close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity .15s, background .15s;
    padding: 0;
}

.ht-toast__close:hover {
    opacity: 1;
    background: rgba(0,0,0,.07);
}

/* Variants */
.ht-toast--success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.ht-toast--success .ht-toast__icon { color: #16a34a; }

.ht-toast--error {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.ht-toast--error .ht-toast__icon { color: #e11d48; }

.ht-toast--warning {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.ht-toast--warning .ht-toast__icon { color: #d97706; }

.ht-toast--info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.ht-toast--info .ht-toast__icon { color: #2563eb; }

/* Keep old .custom-alert rules intact for any legacy usage */
.custom-alert {
    display: none !important;
}

/* ========== REVIEW CARDS ========== */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    border-left: 3px solid var(--slate-200) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.15s var(--ease);
    box-shadow: none !important;
}

.review-card.unseen {
    border-left-color: var(--yellow-500) !important;
    background: #fffef7;
}

.review-card:hover {
    box-shadow: var(--shadow-sm) !important;
}

.review-card .stars {
    color: var(--yellow-500);
    font-size: 0.95rem;
}

/* ========== AUTH PAGES (Login / Sign Up) ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
}

/* --- Left decorative panel --- */
.auth-panel {
    width: 50%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    top: -120px;
    right: -160px;
    pointer-events: none;
}

.auth-panel::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.auth-panel__content {
    position: relative;
    z-index: 1;
}

.auth-panel__logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(165, 180, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a5b4fc;
    margin-bottom: 28px;
}

.auth-panel__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.auth-panel__subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 36px;
}

.auth-panel__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-panel__feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 450;
}

.auth-panel__feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(165, 180, 252, 0.12);
    border: 1px solid rgba(165, 180, 252, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #a5b4fc;
    flex-shrink: 0;
}

/* --- Right form side --- */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--slate-50);
    overflow-y: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-header__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-lighter);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.auth-form-header__title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-form-header__sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-field__forgot {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.auth-field__forgot:hover {
    opacity: 0.75;
}

.auth-field__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__icon {
    position: absolute;
    left: 14px;
    color: var(--slate-400);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.auth-field__input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field__input::placeholder {
    color: var(--slate-400);
}

.auth-field__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-field__input--padded-right {
    padding-right: 44px;
}

.auth-field__eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.auth-field__eye:hover {
    color: var(--text-primary);
}

/* ─── Custom phone input with searchable country code dropdown ────── */
.auth-phone-input {
    width: 100%;
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 0 0.75rem;
    min-height: 46px;
    gap: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-phone-input:focus-within {
    border-color: var(--accent, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.auth-phone-input__divider {
    width: 1.5px;
    align-self: stretch;
    margin: 8px 0;
    background: #e2e8f0;
    flex-shrink: 0;
}

.auth-phone-input__number {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1e293b;
    padding: 0.4rem 0.6rem;
    min-width: 0;
}

.auth-phone-input__number::placeholder {
    color: #94a3b8;
}

/* ─── CountryCodeSelect (.ccs) ──────────────────────────────────── */
.ccs {
    position: relative;
    flex-shrink: 0;
}

.ccs__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 0 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
    height: 100%;
    white-space: nowrap;
}

.ccs__trigger:hover {
    color: #111827;
}

.ccs__flag {
    font-size: 1.25rem;
    line-height: 1;
}

.ccs__dial-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.ccs__chevron {
    font-size: 0.55rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.ccs__chevron--open {
    transform: rotate(180deg);
}

/* dropdown panel */
.ccs__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    width: 300px;
    max-height: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ccsSlideIn 0.18s ease-out;
}

@keyframes ccsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ccs__search-wrap {
    padding: 10px 10px 6px;
    flex-shrink: 0;
}

.ccs__search {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s;
}

.ccs__search:focus {
    border-color: var(--accent, #4f46e5);
}

.ccs__search::placeholder {
    color: #94a3b8;
}

.ccs__list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px 6px 8px;
}

.ccs__list::-webkit-scrollbar {
    width: 5px;
}

.ccs__list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.ccs__list::-webkit-scrollbar-track {
    background: transparent;
}

.ccs__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s ease;
    font-size: 0.875rem;
    color: #374151;
}

.ccs__item:hover {
    background: #f1f5f9;
}

.ccs__item--active {
    background: #eef2ff;
    color: var(--accent, #4f46e5);
    font-weight: 500;
}

.ccs__item--active:hover {
    background: #e0e7ff;
}

.ccs__item-flag {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.ccs__item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccs__item-dial {
    color: #94a3b8;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.ccs__empty {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ──────────────────────────────────────────────────────────────────── */

.auth-field__hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

.auth-field--error .auth-field__input {
    border-color: #ef4444 !important;
}

.auth-field--error .auth-field__icon {
    color: #ef4444 !important;
}

.auth-field--error .auth-field__label {
    color: #ef4444 !important;
}

.auth-field__error {
    font-size: 0.75rem;
    color: #ef4444;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
}

.auth-field--error .auth-field__error {
    max-height: 20px;
    opacity: 1;
    margin-top: 5px;
}

/* Specific to PhoneInput */
.auth-field--error .auth-phone-input {
    border-color: #ef4444 !important;
}

.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 2px 0;
}

.auth-terms__checkbox {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.auth-terms__label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.auth-terms__link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-terms__link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.auth-submit-btn:hover:not(:disabled) {
    background: var(--accent-dark);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--text-tertiary);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-signup-btn {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.18s ease;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.auth-signup-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-lighter);
    text-decoration: none;
}

.auth-disclaimer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .auth-panel {
        display: none;
    }

    .auth-form-side {
        background: var(--slate-900);
    }

    .auth-form-header__title {
        color: #fff;
    }

    .auth-form-header__sub,
    .auth-field__label {
        color: var(--slate-400);
    }

    .auth-field__input {
        background: var(--slate-800);
        border-color: var(--slate-700);
        color: #fff;
    }

    .auth-field__input::placeholder {
        color: var(--slate-500);
    }

    .auth-field__input:focus {
        border-color: var(--accent-light);
    }

    .auth-signup-btn {
        background: transparent;
        border-color: var(--slate-600);
        color: var(--slate-300);
    }

    .auth-signup-btn:hover {
        border-color: var(--accent-light);
        color: var(--accent-light);
        background: rgba(99, 102, 241, 0.1);
    }

    .auth-terms__label {
        color: var(--slate-400);
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* ========== SELECTION ========== */
::selection {
    background: var(--accent);
    color: #fff;
}

/* ========== UTILITY ========== */
.text-muted {
    color: var(--text-tertiary) !important;
    font-size: 0.8125rem;
}

.bg-light {
    background: var(--bg-body) !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
    color: var(--slate-400);
}

.swiper {
    width: 100%;
    height: 500px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 991px) {
    #main-content .col-lg-10 {
        padding: 20px 16px !important;
    }
}

/* ========== SETTINGS MODULE CARDS ========== */
.settings-module-card {
    cursor: pointer;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-module-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
    border-color: var(--accent) !important;
}

.settings-module-card:hover .settings-module-icon {
    transform: scale(1.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-module-card--disabled {
    cursor: default;
    opacity: 0.6;
}

.settings-module-card--disabled:hover {
    box-shadow: var(--shadow-xs) !important;
    transform: none;
    border-color: var(--border-color) !important;
}

/* ========== CHAT ========== */
.overflow-y-auto {
    overflow-y: auto;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--accent);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-tertiary);
}

/* ========== PROGRESS BAR ========== */
.progress {
    background: var(--slate-100);
    border-radius: var(--radius-full);
}

/* ========== RECHARTS OVERRIDES ========== */
.recharts-cartesian-grid-horizontal line,
.recharts-cartesian-grid-vertical line {
    stroke: var(--border-color-light) !important;
}

.recharts-legend-item-text {
    color: var(--text-secondary) !important;
    font-size: 0.78rem !important;
}

/* ================================================================
   BOOKINGS PAGE  (bk-*)
   ================================================================ */

/* ── Page shell ── */
.bk-page {
    padding: 0;
}

.bk-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: #666D80;
    margin: 0 0 .25rem;
    padding: 0;
}

.bk-breadcrumb strong {
    color: #0D0D12;
}

.bk-breadcrumb__sep {
    color: #666D80;
}

.bk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bk-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0D0D12;
    margin: 0;
}

.bk-header__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.bk-header__search {
    position: relative;
    width: 260px;
    max-width: 100%;
}

.bk-header__search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666D80;
    font-size: .85rem;
    pointer-events: none;
}

.bk-header__search-input {
    width: 100%;
    padding: .45rem .75rem .45rem 2.1rem;
    border: 1px solid #ECEFF3;
    border-radius: var(--radius-md);
    font-size: .84rem;
    background: #fff;
    color: #0D0D12;
    transition: border-color .2s, box-shadow .2s;
}

.bk-header__search-input:focus {
    outline: none;
    border-color: #0D0D12;
    box-shadow: 0 0 0 3px rgba(13, 13, 18, .08);
}

/* ── Stat grid ── */
.bk-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .bk-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .bk-stats {
        grid-template-columns: 1fr;
    }
}

.bk-stat {
    background: #fff;
    border: 1px solid #ECEFF3;
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow .2s;
}

.bk-stat:hover {
    box-shadow: var(--shadow-md);
}

.bk-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bk-stat--emerald .bk-stat__icon {
    background: rgba(50, 142, 110, .12);
    color: #328E6E;
}

.bk-stat--orange .bk-stat__icon {
    background: rgba(255, 190, 76, .18);
    color: #c08a00;
}

.bk-stat--blue .bk-stat__icon {
    background: rgba(64, 196, 170, .12);
    color: #40C4AA;
}

.bk-stat--red .bk-stat__icon {
    background: rgba(223, 28, 65, .1);
    color: #DF1C41;
}

.bk-stat--indigo .bk-stat__icon {
    background: #eef2ff;
    color: #4f46e5;
}

.bk-stat--yellow .bk-stat__icon {
    background: #fef9c3;
    color: #ca8a04;
}

.bk-stat--green .bk-stat__icon {
    background: #dcfce7;
    color: #16a34a;
}

.bk-stat__body {
    min-width: 0;
}

.bk-stat__label {
    font-size: .72rem;
    color: #666D80;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 500;
}

.bk-stat__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0D0D12;
    line-height: 1.2;
    margin-top: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-stat__meta {
    font-size: .7rem;
    color: #666D80;
    margin-top: .2rem;
}

/* ── Card ── */
.bk-card {
    background: #fff;
    border: 1px solid #ECEFF3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ── Toolbar ── */
.bk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ECEFF3;
}

.bk-toolbar__title {
    font-size: .95rem;
    font-weight: 600;
    color: #0D0D12;
    margin: 0;
}

.bk-toolbar__right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ── Tabs bar ── */
.bk-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #ECEFF3;
    padding: 0 4.25rem;
    overflow-x: auto;
}

.bk-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .75rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666D80;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}

.bk-tabs__btn:hover {
    color: #0D0D12;
}

.bk-tabs__btn--active {
    color: #0D0D12;
    border-bottom-color: #0D0D12;
    font-weight: 600;
}

.bk-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 600;
    background: #ECEFF3;
    color: #666D80;
}

.bk-tabs__btn--active .bk-tabs__count {
    background: #0D0D12;
    color: #fff;
}

/* ── Buttons ── */
.bk-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem 1rem;
    border-radius: var(--radius-md);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.bk-btn--outline {
    background: transparent;
    border-color: #ECEFF3;
    color: #666D80;
}

.bk-btn--outline:hover {
    background: #ECEFF3;
    color: #0D0D12;
}

.bk-btn--primary {
    background: #0D0D12;
    color: #fff;
    border-color: #0D0D12;
}

.bk-btn--primary:hover {
    opacity: .88;
}

.bk-btn--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
    border: 1px solid #ECEFF3;
    background: transparent;
    color: #666D80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.bk-btn--icon:hover {
    background: #ECEFF3;
    color: #0D0D12;
}

/* ── Table ── */
.bk-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 14px;
}

.bk-table thead tr {
    background: #ECEFF3;
}

.bk-table th {
    padding: .7rem 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #666D80;
    border-bottom: 1px solid #ECEFF3;
    white-space: nowrap;
}

.bk-table td {
    padding: .85rem 0.5rem;
    border-bottom: 1px solid #ECEFF3;
    color: #666D80;
}

.bk-table tbody tr:last-child td {
    border-bottom: none;
}

.bk-table tbody tr:hover>td {
    background: rgba(236, 239, 243, .4);
}

.bk-table__row--expanded>td {
    background: rgba(236, 239, 243, .5) !important;
}

.bk-table__id {
    font-weight: 600;
    color: #0D0D12;
    font-family: var(--font-mono, monospace);
    font-size: .75rem;
}

.bk-table__guest {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.bk-table__guest span {
    color: #0D0D12;
    font-weight: 500;
}

.bk-table__date {
    font-weight: 500;
    color: #0D0D12;
    white-space: nowrap;
}

.bk-table__amount {
    font-weight: 600;
    color: #0D0D12;
}

/* ── Status badges (from color palette) ── */
.bk-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .7rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid transparent;
    white-space: nowrap;
}

.bk-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.bk-badge--pending {
    background: rgba(255, 190, 76, .15);
    color: #b88a00;
    border-color: rgba(255, 190, 76, .4);
}

.bk-badge--confirmed {
    background: rgba(50, 142, 110, .1);
    color: #328E6E;
    border-color: rgba(50, 142, 110, .3);
}

.bk-badge--completed {
    background: rgba(64, 196, 170, .1);
    color: #2a9a80;
    border-color: rgba(64, 196, 170, .3);
}

.bk-badge--cancelled {
    background: rgba(223, 28, 65, .08);
    color: #DF1C41;
    border-color: rgba(223, 28, 65, .2);
}

.bk-badge--checkedin {
    background: rgba(64, 196, 170, .12);
    color: #40C4AA;
    border-color: rgba(64, 196, 170, .3);
}

.bk-badge--noshow {
    background: rgba(147, 51, 234, .08);
    color: #9333ea;
    border-color: rgba(147, 51, 234, .2);
}

/* ── 3-dot action menu ── */
.bk-action-menu {
    position: relative;
    display: inline-block;
}

.bk-action-menu__trigger {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid #ECEFF3;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    color: #666D80;
    cursor: pointer;
    transition: all .18s;
}

.bk-action-menu__trigger:hover {
    background: #ECEFF3;
    color: #0D0D12;
}

.bk-action-menu__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ECEFF3;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 200;
    overflow: hidden;
    animation: bk-dropdown-in .15s ease;
}

@keyframes bk-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bk-action-menu__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .55rem 1rem;
    font-size: .8rem;
    color: #666D80;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.bk-action-menu__item:hover {
    background: #ECEFF3;
    color: #0D0D12;
}

.bk-action-menu__item--success {
    color: #328E6E;
}

.bk-action-menu__item--success:hover {
    background: rgba(50, 142, 110, .1);
    color: #257a5c;
}

.bk-action-menu__item--danger {
    color: #DF1C41;
}

.bk-action-menu__item--danger:hover {
    background: rgba(223, 28, 65, .08);
    color: #c0163a;
}

/* ── Status Dropdown (clickable badge) ── */
.bk-status-dropdown {
    position: relative;
    display: inline-block;
}

.bk-status-dropdown__trigger {
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
    user-select: none;
    gap: .4rem;
}

.bk-status-dropdown__trigger:hover {
    filter: brightness(0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.bk-status-dropdown__trigger--locked:hover {
    filter: none;
    box-shadow: none;
}

.bk-status-dropdown__arrow {
    font-size: .55rem;
    transition: transform .25s ease;
    margin-left: .15rem;
}

.bk-status-dropdown__arrow--open {
    transform: rotate(180deg);
}

.bk-status-dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ECEFF3;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    min-width: 185px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 300;
    padding: .35rem 0;

    /* Smooth open/close transition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    pointer-events: none;
}

.bk-status-dropdown__menu--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bk-status-dropdown__option {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .5rem .9rem;
    font-size: .78rem;
    font-weight: 500;
    color: #444;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.bk-status-dropdown__option:hover {
    background: #f4f5f7;
    color: #0D0D12;
}

.bk-status-dropdown__option--active {
    background: #f0f1f4;
    font-weight: 600;
    color: #0D0D12;
}

.bk-status-dropdown__option--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.bk-status-dropdown__option--disabled:hover {
    background: transparent;
    color: #444;
}

.bk-status-dropdown__option i {
    font-size: .85rem;
    flex-shrink: 0;
}

/* ── Expandable detail row ── */
.bk-detail-row {
    background: rgba(236, 239, 243, .5) !important;
    padding: 0 !important;
}

.bk-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 2px solid #0D0D12;
}

@media (max-width: 720px) {
    .bk-detail-grid {
        grid-template-columns: 1fr;
    }
}

.bk-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.bk-detail-list>div,
.bk-detail-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    font-size: .8rem;
}

.bk-detail-list>div>span:first-child,
.bk-detail-list li span:first-child {
    color: #666D80;
    flex-shrink: 0;
}

.bk-detail-list>div>strong,
.bk-detail-list li span:last-child {
    color: #0D0D12;
    font-weight: 500;
    text-align: right;
}

/* ── Pagination ── */
.bk-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .9rem 1.25rem;
    border-top: 1px solid #ECEFF3;
    font-size: .8rem;
    color: #666D80;
}

.bk-pagination__left {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.bk-pagination__select {
    padding: .25rem .5rem;
    border: 1px solid #ECEFF3;
    border-radius: var(--radius-sm);
    font-size: .78rem;
    background: #fff;
    color: #0D0D12;
}

.bk-pagination__pages {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.bk-pagination__btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid #ECEFF3;
    background: transparent;
    color: #666D80;
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .18s;
}

.bk-pagination__btn:hover {
    background: #ECEFF3;
    color: #0D0D12;
}

.bk-pagination__btn--active {
    background: #0D0D12;
    color: #fff;
    border-color: #0D0D12;
}

.bk-pagination__btn--dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.bk-pagination__btn--dots:hover {
    background: transparent;
    color: #666D80;
}


/* ================================================================
   ROOMS PAGE  (rm-*)
   ================================================================ */

/* ── Page header ── */
.rm-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rm-page-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .2rem;
}

/* admin-stat-grid & admin-stat-card defined earlier — no duplicate needed */

/* ── Rooms table ── */
.rm-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: .82rem;
}

/* Column widths */
.rm-table th:nth-child(1),
.rm-table td:nth-child(1) {
    width: 90px;
}

/* Image */
.rm-table th:nth-child(4),
.rm-table td:nth-child(4) {
    width: 95px;
}

/* Room Number */
.rm-table th:nth-child(5),
.rm-table td:nth-child(5) {
    width: 100px;
}

/* View */
.rm-table th:nth-child(6),
.rm-table td:nth-child(6) {
    width: 115px;
}

/* Rate */
.rm-table th:nth-child(7),
.rm-table td:nth-child(7) {
    width: 110px;
}

/* State */
.rm-table th:nth-child(8),
.rm-table td:nth-child(8) {
    width: 85px;
}

/* Action */

.rm-table thead tr {
    background: var(--slate-50);
}

.rm-table th {
    padding: .7rem 1rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.rm-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-secondary);
    vertical-align: middle;
}

.rm-table tbody tr:last-child td {
    border-bottom: none;
}

.rm-table tbody tr:hover>td {
    background: var(--slate-50);
}

/* Thumbnail image */
.rm-table__img-btn {
    width: 68px;
    height: 50px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: box-shadow .18s, border-color .18s;
}

.rm-table__img-btn:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.rm-table__img-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rm-table__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

.rm-table__name {
    font-weight: 600;
    color: var(--text-primary);
}

.rm-table__desc {
    font-size: .74rem;
    color: var(--text-tertiary);
    margin-top: .15rem;
}

.rm-table__price {
    font-weight: 600;
    color: var(--text-primary);
}

/* Action buttons */
.rm-table__actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.rm-table__action-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .18s;
}

.rm-table__action-btn:hover {
    background: var(--slate-100);
    color: var(--text-primary);
}

.rm-table__action-btn--edit:hover {
    background: #dbeafe;
    color: #2563eb;
    border-color: #93c5fd;
}

/* Status badges */
.rm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .7rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.rm-status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.rm-status-badge--available {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

.rm-status-badge--occupied {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.rm-status-badge--reserved {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.rm-status-badge--maintenance {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.rm-status-badge--house_use {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}

.rm-status-badge--blocked {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

.rm-status-badge--inactive {
    background: var(--slate-100);
    color: var(--text-tertiary);
    border-color: var(--border-color);
}


/* ================================================================
   AVAILABILITY CALENDAR  (rm-avail__*)
   ================================================================ */

.rm-avail {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Header */
.rm-avail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--slate-50);
}

.rm-avail__month {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rm-avail__nav {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.rm-avail__nav-btn {
    height: 30px;
    padding: 0 .75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
}

.rm-avail__nav-btn:hover {
    background: var(--slate-100);
    color: var(--text-primary);
}

.rm-avail__nav-btn--icon {
    width: 30px;
    padding: 0;
}

/* Grid */
.rm-avail__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* Day name header row */
.rm-avail__day-name {
    padding: .55rem .5rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-tertiary);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--slate-50);
}

/* Calendar cell */
.rm-avail__cell {
    border: 1px solid var(--border-color-light);
    min-height: 80px;
    padding: .5rem .45rem .45rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    position: relative;
    border-collapse: collapse;
}

.rm-avail__cell--ghost {
    background: var(--slate-50);
    opacity: .45;
}

.rm-avail__cell--current {
    background: var(--bg-primary);
}

.rm-avail__cell--today {
    background: #f5f3ff;
}

.rm-avail__cell--today .rm-avail__cell-date {
    background: var(--accent, #4f46e5);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-avail__cell-date {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Status pill button */
.rm-avail__status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    padding: .18rem .35rem;
    border-radius: 99px;
    font-size: .65rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid currentColor;
    transition: opacity .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-avail__status-btn:hover {
    opacity: .8;
}

/* Status dropdown */
.rm-avail__status-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 300;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 130px;
    overflow: hidden;
    animation: bk-dropdown-in .15s ease;
}

.rm-avail__status-option {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    padding: .45rem .75rem;
    font-size: .76rem;
    font-weight: 500;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.rm-avail__status-option:hover {
    background: var(--slate-100);
}

/* Dot indicator */
.rm-avail__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Legend */
.rm-avail__legend {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding: .9rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--slate-50);
}

.rm-avail__legend-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive: shrink cells on small screens */
@media (max-width: 640px) {
    .rm-avail__cell {
        min-height: 56px;
        padding: .3rem .25rem;
    }

    .rm-avail__status-btn {
        font-size: .55rem;
        padding: .12rem .2rem;
    }

    .rm-avail__cell-date {
        font-size: .68rem;
    }
}


/* ===========================================
   SUPERADMIN PANEL — OVERRIDES & ADDITIONS
   =========================================== */

/* Sidebar purple accent */
.sa-sidebar {
    --sa-accent: #7c3aed;
}

.sa-brand-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: #fff !important;
}

.sa-link--active {
    background: rgba(124, 58, 237, 0.2) !important;
}

.sa-link--active .admin-sidebar__link-icon {
    background: #7c3aed !important;
    color: #fff !important;
}

/* ===== Stat card grid ===== */
.sa-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.sa-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.sa-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sa-stat-card__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sa-stat-card__body {
    flex: 1;
    min-width: 0;
}

.sa-stat-card__label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sa-stat-card__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

/* ===== Impersonation banner ===== */
.sa-impersonation-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1050;
}

.sa-impersonation-bar i {
    font-size: 1rem;
}

.sa-impersonation-bar__btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sa-impersonation-bar__btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Responsive stat grid */
@media (max-width: 768px) {
    .sa-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sa-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== HOTEL SWITCHER ========== */
.hotel-switcher {
    position: relative;
    margin-left: 12px;
}

.hotel-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--slate-50);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    max-width: 260px;
}

.hotel-switcher__trigger:hover {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.hotel-switcher__trigger:disabled {
    opacity: 0.6;
    cursor: wait;
}

.hotel-switcher__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
}

.hotel-switcher__logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hotel-switcher__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.hotel-switcher__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hotel-switcher__city {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hotel-switcher__chevron {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-left: 2px;
}

/* Dropdown */
.hotel-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: hotelSwitcherFadeIn 0.15s ease;
}

@keyframes hotelSwitcherFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hotel-switcher__dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hotel-switcher__count {
    background: var(--slate-100);
    color: var(--text-secondary);
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.hotel-switcher__list {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 8px;
}

.hotel-switcher__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.hotel-switcher__item:hover {
    background: var(--slate-50);
}

.hotel-switcher__item--active {
    background: rgba(79, 70, 229, 0.06);
}

.hotel-switcher__item--active:hover {
    background: rgba(79, 70, 229, 0.1);
}

.hotel-switcher__item:disabled {
    opacity: 0.5;
    cursor: wait;
}

.hotel-switcher__item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--slate-100);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.hotel-switcher__item--active .hotel-switcher__item-icon {
    background: var(--accent);
    color: #fff;
}

.hotel-switcher__item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.hotel-switcher__item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.hotel-switcher__item-city {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    line-height: 1.2;
}

.hotel-switcher__item-check {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hotel-switcher__dropdown-footer {
    padding: 8px;
    border-top: 1px solid var(--border-color);
}

.hotel-switcher__add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed var(--border-color);
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.15s ease;
}

.hotel-switcher__add-btn:hover {
    background: rgba(79, 70, 229, 0.04);
    border-color: var(--accent);
}

.hotel-switcher__empty {
    text-align: center;
    padding: 16px 12px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ========== ADD HOTEL MODAL ========== */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalOverlayIn 0.2s ease;
}

@keyframes modalOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0,0,0,0.25));
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--border-color);
}

.admin-modal__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--slate-100);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.admin-modal__close:hover {
    background: var(--slate-200);
    color: var(--text-primary);
}

.admin-modal__body {
    padding: 20px 24px;
}

.admin-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* ========== HOTEL SWITCHER RESPONSIVE ========== */
@media (max-width: 576px) {
    .hotel-switcher__trigger {
        max-width: 180px;
        padding: 5px 10px 5px 6px;
        gap: 6px;
    }

    .hotel-switcher__icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .hotel-switcher__name {
        font-size: 0.75rem;
    }

    .hotel-switcher__city {
        display: none;
    }

    .hotel-switcher__dropdown {
        left: -20px;
        min-width: 250px;
    }

    .hotel-switcher {
        margin-left: 8px;
    }
}

/* ========== PAGE TRANSITION ========== */
.page-transition--prepare {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
}

.page-transition--enter {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* ========== GLOBAL SMOOTHNESS ========== */

/* Hardware-accelerated scrolling for content areas */
.admin-shell__content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* Prevent layout shift during navigation */
.admin-shell__body {
    contain: layout style;
}

/* Stabilize sidebar so it never triggers reflow in main content */
.admin-sidebar {
    contain: layout style;
    will-change: width;
}

/* Smooth card interactions */
.card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Smooth table row hovers */
.table tbody tr {
    transition: background-color 0.15s ease;
}

/* Smooth button interactions globally */
.btn {
    transition: all 0.15s ease;
}

/* Prevent flicker on route change — keep a stable min-height */
.admin-shell__content > * {
    min-height: 0;
}
