/* ============================================================
   theme.css — shared by EVERY page (super admin, owner, staff, auth)
   Tokens, layout shell, buttons, cards/tables/badges, modals, toast,
   dark mode, accent colours, theme switcher, shell responsiveness.
   Load first; page files (dashboard.css etc.) only add page-specific parts.
   ============================================================ */

/* ============================================================
       THEME TOKENS (same as Grand Horizon owner portal)
    ============================================================ */
:root {
    --navy-950: #060c17;
    --navy-900: #0b1424;
    --navy-800: #0f1a2e;
    --navy-700: #15203a;
    --navy-600: #1a2538;
    --navy-500: #22304a;
    --gold-500: #d4af37;
    --gold-400: #e6c76a;
    --gold-600: #b8942e;
    --gold-300: #b8a87c;
    --gold-soft: rgba(var(--accent-rgb), 0.12);
    --gold-border: rgba(var(--accent-rgb), 0.25);
    --ink-900: #1e2b3c;
    --ink-700: #43546b;
    --ink-500: #7b8b9e;
    --ink-300: #cbd5e1;
    --line-soft: #edf1f7;
    --line-lighter: #f4f7fb;
    --bg-body: #f4f7fb;
    --surface: #ffffff;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.35rem;
    --shadow-sm: 0 1px 3px rgba(11, 20, 36, 0.04);
    --shadow-md: 0 8px 24px -8px rgba(11, 20, 36, 0.12);
    --shadow-gold: 0 8px 24px -8px rgba(var(--accent-rgb), 0.25);
    --sidebar-w: 260px;
    --topbar-h: 68px;
    --accent-rgb: 212, 175, 55;
    --surface-2: #f5f8fe;
    --border-2: #e6ecf5;
    --border-3: #cbd9f0;
    --hover: #eef3ff;
    --row-hover: #fafcff;
    --track: #eef1f7;
    --track-strong: #d5dce8;
    --success: #2c9b5e;
    --danger: #dc2626;
    --warning: #d97e1a;
    --info: #2f6bff;
    --violet: #9b51e0;
    --cyan: #06b6d4;
    --pink: #ec4899;
}

* {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    background-color: var(--bg-body);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    color: var(--ink-900);
    font-size: 15px;
}

::selection {
    background: var(--gold-500);
    color: var(--navy-900);
}

/* ============================================================
       SIDEBAR
    ============================================================ */
.gh-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--navy-800);
    border-right: 1px solid var(--gold-border);
    display: flex;
    flex-direction: column;
    z-index: 1045;
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.gh-sidebar__brand {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--gold-border);
    background: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.gh-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, #1e2f4a, var(--navy-800));
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 12px -4px rgba(var(--accent-rgb), 0.25), inset 0 0 0 1px var(--gold-border);
    flex-shrink: 0;
}

.gh-brand-copy h1 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f5efe0;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.gh-brand-copy span {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gold-300);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.gh-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.7rem;
    scrollbar-width: thin;
    scrollbar-color: #2a3a55 transparent;
}

.gh-sidebar__nav::-webkit-scrollbar {
    width: 6px;
}

.gh-sidebar__nav::-webkit-scrollbar-thumb {
    background: #2a3a55;
    border-radius: 10px;
    border: 1px solid var(--gold-border);
}

.gh-nav-group {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.85rem 0.9rem 0.35rem;
    opacity: 0.65;
}

.gh-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.1rem;
    border-radius: 0.7rem;
    font-size: 0.83rem;
    font-weight: 500;
    color: #cbc2a8;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.gh-nav-link i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold-300);
    flex-shrink: 0;
}

.gh-nav-link:hover {
    background: rgba(var(--accent-rgb), 0.06);
    color: #f5efe0;
    border-color: var(--gold-border);
}

.gh-nav-link:hover i {
    color: var(--gold-500);
}

.gh-nav-link.is-active {
    background: var(--gold-soft);
    color: var(--gold-400);
    border-color: var(--gold-border);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--gold-500);
}

.gh-nav-link.is-active i {
    color: var(--gold-500);
}

.gh-nav-pill {
    margin-left: auto;
    background: var(--gold-500);
    color: var(--navy-900);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 1rem;
    flex-shrink: 0;
}

.gh-nav-pill--danger {
    background: var(--danger);
    color: #fff;
}

.gh-sidebar__footer {
    padding: 0.85rem 0.7rem;
    border-top: 1px solid var(--gold-border);
    background: var(--navy-900);
    flex-shrink: 0;
}

.gh-user-tile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.85rem;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid var(--gold-border);
}

.gh-user-tile__avatar {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.75rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.gh-user-tile__copy {
    min-width: 0;
    line-height: 1.3;
    flex: 1;
}

.gh-user-tile__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #f5efe0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-user-tile__role {
    font-size: 0.62rem;
    color: var(--gold-300);
    font-weight: 500;
}

.gh-user-tile__logout {
    color: var(--gold-300);
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem;
}

.gh-user-tile__logout:hover {
    color: var(--gold-500);
}

/* ============================================================
       MAIN + TOPBAR
    ============================================================ */
.gh-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

.gh-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.7rem 1.25rem;
    box-shadow: var(--shadow-sm);
    min-height: var(--topbar-h);
}

.gh-icon-btn {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0.7rem;
    color: var(--ink-700);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
}

.gh-icon-btn:hover {
    background: var(--hover);
    border-color: var(--border-3);
    color: var(--ink-900);
}

.gh-icon-btn.is-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-size: 0.55rem;
    font-weight: 700;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.gh-sidebar-toggle {
    display: none;
    width: 2.35rem;
    height: 2.35rem;
    background: var(--navy-800);
    border: 1px solid var(--gold-border);
    border-radius: 0.7rem;
    color: var(--gold-500);
    font-size: 0.95rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.gh-page-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
    line-height: 1.2;
}

.gh-crumb {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-500);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.gh-crumb a {
    color: var(--ink-500);
    text-decoration: none;
}

.gh-crumb a:hover {
    color: var(--gold-600);
}

.gh-crumb .is-current {
    color: var(--ink-900);
    font-weight: 700;
}

.gh-crumb i {
    font-size: 0.55rem;
    opacity: 0.5;
}

.gh-search {
    position: relative;
}

.gh-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-500);
    font-size: 0.78rem;
}

.gh-search input {
    width: 260px;
    padding: 0.58rem 0.9rem 0.58rem 2.2rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0.7rem;
    font-size: 0.8rem;
    color: var(--ink-900);
    transition: all 0.15s;
}

.gh-search input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.gh-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--navy-800);
    color: var(--gold-400);
    border: 1px solid var(--gold-border);
    padding: 0.4rem 0.8rem;
    border-radius: 0.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.gh-content {
    padding: 1.25rem;
    flex: 1;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
}

/* ============================================================
       BUTTONS
    ============================================================ */
.btn-gold {
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    border: none;
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s;
    box-shadow: 0 6px 16px -8px rgba(var(--accent-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.btn-gold:hover {
    background: linear-gradient(145deg, var(--gold-400), var(--gold-500));
    color: var(--navy-900);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px -10px rgba(var(--accent-rgb), 0.75);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    color: #e0d9c6;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-ghost-light:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--gold-500);
    color: #fff;
}

.btn-soft {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    color: var(--ink-700);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
    border-radius: 0.7rem;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-soft:hover {
    background: var(--hover);
    border-color: var(--border-3);
    color: var(--ink-900);
}

.btn-soft-dark {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--gold-border);
    color: var(--gold-300);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.55rem 1.15rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-soft-dark:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: var(--gold-500);
    color: #f5efe0;
}

.btn-danger-dark {
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #f87171;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.55rem 1.15rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-danger-dark:hover {
    background: rgba(220, 38, 38, 0.28);
    border-color: #dc2626;
    color: #fca5a5;
}

/* ============================================================
       STAT CARDS
    ============================================================ */
.gh-stat {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gh-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-500));
    opacity: 0;
    transition: opacity 0.2s;
}

.gh-stat:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.gh-stat:hover::before {
    opacity: 1;
}

.gh-stat__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.gh-stat__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gh-stat__icon--gold {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--gold-500);
}

.gh-stat__icon--success {
    background: rgba(44, 155, 94, 0.1);
    color: var(--success);
}

.gh-stat__icon--warning {
    background: rgba(217, 126, 26, 0.1);
    color: var(--warning);
}

.gh-stat__icon--info {
    background: rgba(47, 107, 255, 0.1);
    color: var(--info);
}

.gh-stat__icon--violet {
    background: rgba(155, 81, 224, 0.1);
    color: var(--violet);
}

.gh-stat__icon--danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.gh-stat__label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ink-500);
}

.gh-stat__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gh-stat__sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-500);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gh-stat__sub.is-up {
    color: var(--success);
}

.gh-stat__sub.is-down {
    color: var(--danger);
}

/* ============================================================
       PANEL + TABLE + BADGES
    ============================================================ */
.gh-panel {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gh-panel__head {
    padding: 1rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--line-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.gh-panel__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-panel__title i {
    color: var(--gold-500);
    font-size: 0.9rem;
}

.gh-panel__body {
    padding: 1.25rem;
    flex: 1;
}

.gh-panel__body--flush {
    padding: 0;
}

.gh-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.82rem;
    border-collapse: collapse;
}

.gh-table thead th {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-500);
    background: var(--row-hover);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
    text-align: left;
}

.gh-table tbody td {
    padding: 0.8rem 0.9rem;
    font-weight: 500;
    color: var(--ink-900);
    border-bottom: 1px solid var(--line-lighter);
    white-space: nowrap;
    vertical-align: middle;
}

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

.gh-table tbody tr:hover {
    background: var(--row-hover);
}

.gh-table tbody tr[data-owner-id] {
    cursor: pointer;
}

.gh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 2rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.gh-badge--success {
    background: #e6f7ec;
    color: #1c7e42;
}

.gh-badge--warning {
    background: #fff5e5;
    color: #b5680e;
}

.gh-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.gh-badge--info {
    background: var(--hover);
    color: #2f6bff;
}

.gh-badge--gold {
    background: var(--gold-soft);
    color: var(--gold-600);
}

.gh-badge--violet {
    background: #f5ecff;
    color: #7c3aed;
}

.gh-mini-btn {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    display: grid;
    place-items: center;
    color: var(--ink-700);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
}

.gh-mini-btn:hover {
    background: var(--gold-soft);
    border-color: var(--gold-border);
    color: var(--gold-600);
}

.gh-mini-btn--danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.gh-filter {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 0.65rem;
    color: var(--ink-900);
}

.gh-filter:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.gh-owner-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gh-owner-avatar {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--navy-900);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.gh-owner-avatar--navy {
    background: linear-gradient(145deg, #1e2f4a, var(--navy-800));
    color: var(--gold-500);
}

.gh-owner-avatar--info {
    background: linear-gradient(145deg, #2f6bff, #1e40af);
    color: #fff;
}

.gh-owner-avatar--success {
    background: linear-gradient(145deg, #2c9b5e, #1c7e42);
    color: #fff;
}

.gh-owner-name {
    font-weight: 700;
    line-height: 1.2;
}

.gh-owner-sub {
    font-size: 0.65rem;
    color: var(--ink-500);
    font-weight: 500;
}

/* ============================================================
       FEED / LISTS
    ============================================================ */
.gh-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-feed__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line-lighter);
}

.gh-feed__item:last-child {
    border-bottom: none;
}

.gh-feed__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.gh-feed__text {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-900);
    line-height: 1.4;
}

.gh-feed__text strong {
    font-weight: 700;
}

.gh-feed__time {
    font-size: 0.64rem;
    color: var(--ink-500);
    font-weight: 500;
    margin-top: 0.15rem;
}

.gh-health-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--line-lighter);
    font-size: 0.8rem;
    font-weight: 600;
}

.gh-health-row:last-child {
    border-bottom: none;
}

.gh-health-row__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.gh-health-row__dot--ok {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(44, 155, 94, 0.15);
}

.gh-health-row__dot--warn {
    background: var(--warning);
    box-shadow: 0 0 0 3px rgba(217, 126, 26, 0.15);
}

.gh-health-row__dot--down {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.gh-health-row__meta {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--ink-500);
    font-weight: 600;
}

.gh-flag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--line-lighter);
}

.gh-flag:last-child {
    border-bottom: none;
}

.gh-flag__copy {
    flex: 1;
    min-width: 0;
}

.gh-flag__name {
    font-size: 0.8rem;
    font-weight: 700;
}

.gh-flag__sub {
    font-size: 0.65rem;
    color: var(--ink-500);
    font-weight: 500;
}

.gh-switch {
    position: relative;
    width: 2.4rem;
    height: 1.35rem;
    flex-shrink: 0;
}

.gh-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gh-switch span {
    position: absolute;
    inset: 0;
    background: var(--track-strong);
    border-radius: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.gh-switch span::before {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    left: 0.18rem;
    top: 0.17rem;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gh-switch input:checked+span {
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
}

.gh-switch input:checked+span::before {
    transform: translateX(1.05rem);
}

.gh-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ink-500);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================================
       MODAL (dark theme)
    ============================================================ */
.modal-backdrop {
    background: rgba(6, 12, 23, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--navy-800);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.75);
}

.modal-content::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-500), var(--gold-400), var(--gold-500), var(--gold-600));
    background-size: 200% 100%;
    animation: ghShimmer 3s ease-in-out infinite;
}

@keyframes ghShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.modal-header {
    border-bottom: 1px solid var(--gold-border);
    background: linear-gradient(130deg, var(--navy-900), var(--navy-800));
    padding: 1.25rem 1.5rem 1.1rem;
    position: relative;
    align-items: center;
}

.modal-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
    border-radius: 2px;
}

.modal-header h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #f5efe0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}

.modal-header h5 i {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.06));
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    flex-shrink: 0;
}

.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--gold-border);
    border-radius: 0.65rem;
    width: 2.1rem;
    height: 2.1rem;
    opacity: 0.85;
    background-size: 0.6rem;
    background-position: center;
    filter: invert(1) brightness(2);
    margin: 0;
    padding: 0;
}

.modal-header .btn-close:hover {
    opacity: 1;
    background-color: rgba(var(--accent-rgb), 0.2);
    border-color: var(--gold-500);
}

.modal-body {
    padding: 1.5rem;
    color: var(--gold-300);
    background: var(--navy-800);
    max-height: 76vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #2a3a55;
    border-radius: 10px;
    border: 1px solid var(--gold-border);
}

.modal-footer {
    border-top: 1px solid var(--gold-border);
    background: linear-gradient(130deg, var(--navy-900), var(--navy-800));
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

.modal-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 1.5rem;
    width: 70px;
    height: 2px;
    background: linear-gradient(270deg, var(--gold-500), transparent);
    border-radius: 2px;
}

.gh-label-dark {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-300);
    margin-bottom: 0.4rem;
    display: block;
}

.gh-label-dark .gh-req {
    color: #f87171;
}

.gh-input-dark,
.gh-select-dark,
.gh-textarea-dark {
    width: 100%;
    background: rgba(6, 12, 23, 0.55);
    border: 1px solid var(--gold-border);
    border-radius: 0.7rem;
    color: #f5efe0;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    transition: all 0.2s;
}

.gh-input-dark:focus,
.gh-select-dark:focus,
.gh-textarea-dark:focus {
    background: rgba(6, 12, 23, 0.8);
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
    color: #f5efe0;
    outline: none;
}

.gh-input-dark::placeholder,
.gh-textarea-dark::placeholder {
    color: #7a6e54;
}

.gh-select-dark option {
    background: var(--navy-800);
    color: #f5efe0;
}

.gh-field-section {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold-500);
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gh-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(var(--accent-rgb), 0.1);
    font-size: 0.85rem;
}

.gh-detail-row:last-child {
    border-bottom: none;
}

.gh-detail-row__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-300);
    font-weight: 500;
    flex-shrink: 0;
}

.gh-detail-row__label i {
    color: var(--gold-500);
    font-size: 0.75rem;
    width: 0.9rem;
    text-align: center;
}

.gh-detail-row__value {
    color: #f5efe0;
    font-weight: 700;
    text-align: right;
}

.gh-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

.gh-modal-stat {
    background: rgba(26, 37, 56, 0.7);
    border: 1px solid var(--gold-border);
    border-radius: 0.75rem;
    padding: 0.85rem 0.5rem;
    text-align: center;
}

.gh-modal-stat__value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f5efe0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.gh-modal-stat__value.is-gold {
    color: var(--gold-500);
}

.gh-modal-stat__label {
    font-size: 0.6rem;
    color: var(--gold-300);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-top: 0.35rem;
}

.gh-modal-note {
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    color: var(--gold-300);
    line-height: 1.5;
    display: flex;
    gap: 0.6rem;
}

.gh-modal-note i {
    color: var(--gold-500);
    margin-top: 2px;
}

.gh-modal-note--danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

.gh-modal-note--danger i {
    color: #f87171;
}

.gh-module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gh-module-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 12, 23, 0.5);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 0.6rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #f5efe0;
}

.gh-module-chip i {
    font-size: 0.7rem;
}

.gh-module-chip.is-on i {
    color: #7dba7d;
}

.gh-module-chip.is-off {
    opacity: 0.5;
}

.gh-module-chip.is-off i {
    color: #f87171;
}

/* ============================================================
       SIDEBAR BACKDROP + TOAST
    ============================================================ */
.gh-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 23, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.gh-sidebar-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.gh-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

.gh-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.8rem 1.1rem;
    border-radius: 0.85rem;
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 340px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.gh-toast.is-visible {
    transform: translateX(0);
}

.gh-toast--success {
    background: linear-gradient(145deg, #2c9b5e, #1c7e42);
}

.gh-toast--error {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
}

.gh-toast--info {
    background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
    color: var(--navy-900);
}

.gh-toast--warning {
    background: linear-gradient(145deg, #d97e1a, #b5680e);
}

/* ============================================================
       THEME: DARK MODE + ACCENT COLOURS
    ============================================================ */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-body: #070d19;
    --surface: #0f1a2e;
    --ink-900: #eef2f8;
    --ink-700: #b6c2d4;
    --ink-500: #8696ab;
    --ink-300: #4a5a73;
    --line-soft: #1d2a42;
    --line-lighter: #16233a;
    --surface-2: #15203a;
    --border-2: #22304a;
    --border-3: #33466a;
    --hover: #1a2a47;
    --row-hover: #13203a;
    --track: #1d2a42;
    --track-strong: #2a3a55;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .gh-badge--success,
:root[data-theme="dark"] .gh-health__badge {
    background: rgba(44, 155, 94, 0.18);
    color: #6fd49a;
}

:root[data-theme="dark"] .gh-badge--warning {
    background: rgba(217, 126, 26, 0.18);
    color: #f0a94a;
}

:root[data-theme="dark"] .gh-badge--danger {
    background: rgba(220, 38, 38, 0.18);
    color: #f87171;
}

:root[data-theme="dark"] .gh-badge--info {
    background: rgba(47, 107, 255, 0.2);
    color: #7fa3ff;
}

:root[data-theme="dark"] .gh-badge--violet {
    background: rgba(155, 81, 224, 0.2);
    color: #c19bf0;
}

:root[data-theme="dark"] .gh-badge--gold {
    color: var(--gold-400);
}

:root[data-theme="dark"] .gh-mini-btn--danger:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
    color: #f87171;
}

:root[data-theme="dark"] .gh-sidebar,
:root[data-theme="dark"] .gh-topbar {
    box-shadow: none;
}

:root[data-theme="dark"] .gh-panel,
:root[data-theme="dark"] .gh-stat {
    box-shadow: none;
}

:root[data-theme="dark"] .gh-switch span::before {
    background: #e8edf5;
}

.gh-filter option {
    background: var(--surface);
    color: var(--ink-900);
}

:root[data-accent="emerald"] {
    --gold-500: #10b981;
    --gold-400: #34d399;
    --gold-600: #059669;
    --gold-300: #8fd4bb;
    --accent-rgb: 16, 185, 129;
}

:root[data-accent="blue"] {
    --gold-500: #3b82f6;
    --gold-400: #60a5fa;
    --gold-600: #2563eb;
    --gold-300: #93b4e6;
    --accent-rgb: 59, 130, 246;
}

:root[data-accent="violet"] {
    --gold-500: #8b5cf6;
    --gold-400: #a78bfa;
    --gold-600: #7c3aed;
    --gold-300: #b9a8e8;
    --accent-rgb: 139, 92, 246;
}

:root[data-accent="rose"] {
    --gold-500: #f43f5e;
    --gold-400: #fb7185;
    --gold-600: #e11d48;
    --gold-300: #e8a3b0;
    --accent-rgb: 244, 63, 94;
}

:root[data-accent="blue"] .btn-gold,
:root[data-accent="violet"] .btn-gold,
:root[data-accent="rose"] .btn-gold,
:root[data-accent="blue"] .gh-owner-avatar,
:root[data-accent="violet"] .gh-owner-avatar,
:root[data-accent="rose"] .gh-owner-avatar,
:root[data-accent="blue"] .gh-user-tile__avatar,
:root[data-accent="violet"] .gh-user-tile__avatar,
:root[data-accent="rose"] .gh-user-tile__avatar,
:root[data-accent="blue"] .gh-health__icon,
:root[data-accent="violet"] .gh-health__icon,
:root[data-accent="rose"] .gh-health__icon,
:root[data-accent="blue"] .gh-nav-pill,
:root[data-accent="violet"] .gh-nav-pill,
:root[data-accent="rose"] .gh-nav-pill {
    color: #fff;
}

body,
.gh-topbar,
.gh-panel,
.gh-health,
.gh-search input,
.gh-filter {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* ============================================================
       THEME SWITCHER
    ============================================================ */
.gh-theme {
    position: relative;
}

.gh-theme__panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: 290px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px -12px rgba(11, 20, 36, 0.35);
    padding: 1rem;
    z-index: 1050;
    display: none;
}

.gh-theme.is-open .gh-theme__panel {
    display: block;
    animation: ghFade 0.2s ease;
}

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

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

.gh-theme__title {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.55rem;
}

.gh-theme__title:not(:first-child) {
    margin-top: 1rem;
}

.gh-theme__modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.gh-theme__mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.3rem;
    background: var(--surface-2);
    border: 1.5px solid var(--border-2);
    border-radius: 0.75rem;
    color: var(--ink-700);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.gh-theme__mode i {
    font-size: 1rem;
    color: var(--ink-500);
}

.gh-theme__mode:hover {
    border-color: var(--gold-border);
}

.gh-theme__mode.is-active {
    border-color: var(--gold-500);
    background: var(--gold-soft);
    color: var(--ink-900);
}

.gh-theme__mode.is-active i {
    color: var(--gold-500);
}

.gh-theme__swatches {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.gh-theme__swatch {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1.5px var(--border-3);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.7rem;
    transition: transform 0.15s;
    padding: 0;
}

.gh-theme__swatch:hover {
    transform: scale(1.1);
}

.gh-theme__swatch i {
    opacity: 0;
}

.gh-theme__swatch.is-active {
    box-shadow: 0 0 0 2px var(--ink-900);
}

.gh-theme__swatch.is-active i {
    opacity: 1;
}

.gh-theme__reset {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .gh-theme__panel {
        position: fixed;
        top: 4.2rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}


/* ============================================================
   SHELL RESPONSIVE (common to all pages)
   ============================================================ */
@media (max-width: 991.98px) {
    .gh-sidebar { transform: translateX(-100%); height: 100dvh; width: min(86vw, 280px); padding-bottom: env(safe-area-inset-bottom); }
    .gh-sidebar.is-open { transform: translateX(0); }
    .gh-main { margin-left: 0; }
    .gh-sidebar-toggle { display: inline-flex; }
    .gh-search input { width: 180px; }
}
@media (max-width: 767.98px) {
    .gh-content { padding: 1rem; }
    .gh-panel__head { padding: 0.9rem 1rem 0.75rem; }
    .modal-dialog { margin: 0.6rem; }
    .modal-footer { flex-direction: column-reverse; gap: 0.5rem; }
    .modal-footer .btn { width: 100%; margin: 0; }
    input, select, textarea, .form-control, .form-select { font-size: 16px !important; } /* stops iOS zoom */
}
@media (max-width: 575.98px) {
    .gh-content { padding: 0.85rem 0.85rem calc(1.25rem + env(safe-area-inset-bottom)); }
    .gh-topbar { padding: 0.65rem 0.9rem; }
    .gh-icon-btn, .gh-sidebar-toggle { width: 2.2rem; height: 2.2rem; font-size: 0.85rem; }
    .gh-stat__value { font-size: 1.2rem; }
    .gh-modal-stats { grid-template-columns: repeat(2, 1fr); }
    .gh-module-grid { grid-template-columns: 1fr; }
    .gh-toast { max-width: calc(100vw - 2rem); }
}
.gh-main { min-width: 0; }
.gh-icon-btn.is-badge[data-count="0"]::after { display: none; }
.gh-empty { padding: 1.25rem; text-align: center; color: var(--ink-500); font-size: 0.8rem; }

@media (pointer: coarse) {
    .gh-icon-btn, .gh-mini-btn, .gh-nav-link { min-height: 2.25rem; }
    .gh-icon-btn, .gh-mini-btn { min-width: 2.25rem; }
}
@media (hover: none) { .gh-stat:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Mobile card tables: add class "gh-table--cards" + data-label on each td ---------- */
@media (max-width: 767.98px) {
    .gh-table--cards thead { display: none; }
    .gh-table--cards, .gh-table--cards tbody, .gh-table--cards tr, .gh-table--cards td { display: block; width: 100%; }
    .gh-table--cards tbody tr { border: 1px solid var(--line-soft); border-radius: .85rem; margin: 0 0 .75rem; padding: .35rem .85rem; background: var(--surface); }
    .gh-table--cards td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border: 0; border-bottom: 1px dashed var(--line-soft); text-align: right; }
    .gh-table--cards td:last-child { border-bottom: 0; }
    .gh-table--cards td::before { content: attr(data-label); flex-shrink: 0; text-align: left; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
    .gh-table--cards td.d-none { display: flex !important; }
    .gh-table--cards td[data-label="Owner"], .gh-table--cards td[data-label="Hotel"], .gh-table--cards td[data-label="User"] { text-align: left; }
    .gh-table--cards td[data-label="Owner"]::before, .gh-table--cards td[data-label="Hotel"]::before, .gh-table--cards td[data-label="User"]::before, .gh-table--cards td.gh-actions-cell::before { display: none; }
    .gh-table--cards td.gh-actions-cell { justify-content: flex-end; }
    .gh-table--cards .gh-mini-btn { width: 2.5rem; height: 2.5rem; }
    .gh-table--cards .gh-empty-row { border: 0; padding: 0; }
    .gh-table--cards .gh-empty-row td { display: block; text-align: center; }
    .gh-table--cards .gh-empty-row td::before { display: none; }
}

/* ============================================================
       HERO
    ============================================================ */
.gh-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(130deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
    border: 1px solid var(--gold-border);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px -14px rgba(11, 20, 36, 0.5);
}

.gh-hero::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15), transparent 70%);
    pointer-events: none;
}

.gh-hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07), transparent 70%);
    pointer-events: none;
}

.gh-hero>* {
    position: relative;
    z-index: 1;
}

.gh-hero__title {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 700;
    color: #f5efe0;
    letter-spacing: -0.02em;
    margin: 0 0 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.gh-hero__title i {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.06));
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-size: 1rem;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    flex-shrink: 0;
}

.gh-hero__sub {
    font-size: 0.82rem;
    color: var(--gold-300);
    margin: 0;
    font-weight: 500;
    padding-left: 3.1rem;
}


@media (max-width: 767.98px) {
    .gh-hero { padding: 1.15rem 1.25rem; }
    .gh-hero__sub { padding-left: 0; margin-top: .5rem; }
    .gh-hero .btn, .gh-hero__actions .btn { width: 100%; }
}

/* ============================================================
   LIST PAGES (owners, hotels): chips, toolbar, pager, mini table
   ============================================================ */
/* ---------- Quick filter chips ---------- */
.gh-chipbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.gh-chip {
    display: inline-flex; align-items: center; gap: .55rem;
    background: var(--surface); color: var(--ink-700);
    border: 1px solid var(--line-soft); border-radius: 999px;
    padding: .4rem .5rem .4rem .95rem; font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.gh-chip:hover { border-color: var(--gold-border); }
.gh-chip__count {
    min-width: 1.6rem; text-align: center; padding: .1rem .5rem; border-radius: 999px;
    background: var(--surface-2); color: var(--ink-500); font-size: .72rem; font-weight: 700;
}
.gh-chip.is-active { background: rgba(var(--accent-rgb), .14); border-color: var(--gold-500); color: var(--ink-900); }
.gh-chip.is-active .gh-chip__count { background: var(--gold-500); color: var(--navy-900); }

/* ---------- Toolbar ---------- */
.gh-toolbar { flex-wrap: wrap; gap: .75rem; }
.gh-toolbar__filters { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1; justify-content: flex-end; min-width: 0; }
.gh-toolbar__filters #ghOwnerSearch { flex: 1 1 14rem; max-width: 20rem; }
.gh-toolbar__filters select { flex: 0 0 auto; }

/* ---------- Table states ---------- */
#ghOwnerTable { transition: opacity .15s; }
#ghOwnerTable.is-loading { opacity: .45; pointer-events: none; }
.gh-table .gh-row-actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: wrap; }
.gh-clear-link { background: none; border: 0; color: var(--gold-500); font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- Pager ---------- */
.gh-pager {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .85rem 1.1rem; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--ink-500);
}
.gh-pager__nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.gh-pager__btn {
    min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem; display: inline-grid; place-items: center;
    border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-700);
    border-radius: .6rem; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s;
}
.gh-pager__btn:hover:not(:disabled) { border-color: var(--gold-500); background: var(--hover); }
.gh-pager__btn.is-current { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.gh-pager__btn:disabled { opacity: .4; cursor: not-allowed; }
.gh-pager__gap { align-self: center; padding: 0 .2rem; }

/* Hotels list inside the details window */
.gh-mini-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.gh-mini-table th { text-align: left; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); padding: .4rem .5rem; border-bottom: 1px solid var(--line-soft); }
.gh-mini-table td { padding: .55rem .5rem; border-bottom: 1px dashed var(--line-soft); }
.gh-mini-table td:nth-child(n+3), .gh-mini-table th:nth-child(n+3) { text-align: right; }

@media (max-width: 767.98px) {
    .gh-toolbar__filters { justify-content: stretch; width: 100%; }
    .gh-toolbar__filters #ghOwnerSearch,
    .gh-toolbar__filters select { flex: 1 1 100%; max-width: none; width: 100%; }
    .gh-chipbar { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.85rem; padding: 0 .85rem .35rem; scrollbar-width: none; }
    .gh-chipbar::-webkit-scrollbar { display: none; }
    .gh-chip { flex: 0 0 auto; }
    .gh-pager { justify-content: center; text-align: center; }
    .gh-table--cards .gh-row-actions { width: 100%; justify-content: flex-end; }
}
