/* ================================================================
   GuestHouse Pro — Master Stylesheet v2
   Font: Inter (loaded via Google Fonts in App.razor)
   Icons: Bootstrap Icons (loaded via CDN in App.razor)
   All colours via CSS custom properties — never hard-coded
   ================================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    height: 100%;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1E2532;
    background: var(--gh-bg);
    -webkit-font-smoothing: antialiased;
    /* No overflow:hidden here — admin shell manages its own scroll;
       landing page needs body to be scrollable */
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── App shell ──────────────────────────────────────────────── */
.gh-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.gh-sidebar {
    width: 230px;
    min-width: 230px;
    background: var(--gh-sidebar);
    display: flex;
    flex-direction: column;
    transition: width .22s ease, min-width .22s ease;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 200;
}

.sidebar-collapsed .gh-sidebar {
    width: 58px;
    min-width: 58px;
}

/* Brand / logo row */
.gh-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    height: 60px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.gh-brand-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--gh-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-text-on-primary);
    font-size: 16px;
}

.gh-brand-name {
    flex: 1;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .18s;
}

.gh-collapse-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 17px;
    padding: 4px;
    border-radius: 5px;
    transition: color .15s, background .15s;
    flex-shrink: 0;
    line-height: 1;
}
.gh-collapse-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Collapsed: hide text labels */
.sidebar-collapsed .gh-brand-name,
.sidebar-collapsed .gh-nav-label,
.sidebar-collapsed .gh-user-info { display: none; }

/* Navigation */
.gh-nav {
    flex: 1;
    padding: 10px 8px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gh-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    color: rgba(255,255,255,.65);
    font-size: 13.5px;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
}

.gh-nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.gh-nav-link.active {
    background: var(--gh-primary);
    color: var(--gh-text-on-primary);
    font-weight: 600;
}

.gh-nav-icon {
    font-size: 17px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

.gh-nav-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 6px 4px;
}

/* Sidebar footer */
.gh-sidebar-footer {
    padding: 10px 8px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gh-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
}

.gh-user-avatar {
    font-size: 22px;
    color: rgba(255,255,255,.6);
    min-width: 24px;
    text-align: center;
    line-height: 1;
}

.gh-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gh-user-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-user-role {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.gh-logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    transition: background .15s, color .15s;
}
.gh-logout-link:hover { background: rgba(220,53,69,.25); color: #ff8f9a; }

/* ================================================================
   TOPBAR + MAIN CONTENT
   ================================================================ */
.gh-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.gh-topbar {
    height: 60px;
    min-height: 60px;
    background: var(--gh-card-bg);
    border-bottom: 1px solid var(--gh-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    z-index: 10;
}

.gh-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    padding: 2px 4px;
    line-height: 1;
}

.gh-topbar-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.gh-topbar-right { display: flex; align-items: center; gap: 16px; }

.gh-topbar-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
}
.gh-topbar-date i { font-size: 13px; }

.gh-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--gh-bg);
}

/* ── Mobile overlay ──────────────────────────────────────── */
.gh-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.gh-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.gh-page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.gh-page-subtitle {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
    margin-top: 2px;
    display: block;
}

/* ================================================================
   KPI CARDS
   ================================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--gh-card-bg);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--gh-border);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: transform .15s, box-shadow .15s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }

/* Icon circle */
.kpi-icon-wrap {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-icon-primary { background: rgba(74,144,217,.12); color: var(--gh-primary); }
.kpi-icon-accent  { background: rgba(245,166,35,.12);  color: var(--gh-accent); }
.kpi-icon-success { background: rgba(40,167,69,.12);   color: var(--gh-success); }
.kpi-icon-warning { background: rgba(255,193,7,.15);   color: #B45309; }
.kpi-icon-danger  { background: rgba(220,53,69,.1);    color: var(--gh-danger); }

.kpi-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
}
.kpi-title { font-size: 12px; color: #6B7280; font-weight: 500; margin-top: 2px; }
.kpi-sub   { font-size: 11px; color: #9CA3AF; margin-top: 2px; }

/* Accent border on left */
.kpi-primary { border-left: 3px solid var(--gh-primary); }
.kpi-accent  { border-left: 3px solid var(--gh-accent); }
.kpi-success { border-left: 3px solid var(--gh-success); }
.kpi-warning { border-left: 3px solid var(--gh-warning); }
.kpi-danger  { border-left: 3px solid var(--gh-danger); }

/* ================================================================
   CARDS
   ================================================================ */
.gh-card {
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    overflow: hidden;
    margin-bottom: 20px;
}

.gh-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gh-border);
    background: #FAFBFC;
}

.gh-card-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 7px;
}

.gh-card-body { padding: 18px; }
.gh-card-body.p-0 { padding: 0; }

/* ================================================================
   TABS
   ================================================================ */
.gh-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gh-border);
    margin-bottom: 20px;
    overflow-x: auto;
}

.gh-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: none;
    border: none;
    font-size: 13.5px;
    font-weight: 500;
    color: #6B7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .15s;
    white-space: nowrap;
}
.gh-tab:hover  { color: var(--gh-primary); }
.gh-tab.active { color: var(--gh-primary); border-bottom-color: var(--gh-primary); font-weight: 600; }

/* ================================================================
   TABLES
   ================================================================ */
.gh-table-scroll { overflow-x: auto; }

.gh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gh-table th {
    background: #F9FAFB;
    color: #6B7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gh-border);
    white-space: nowrap;
}

.gh-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
    vertical-align: middle;
}

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

.table-footer {
    padding: 8px 16px;
    font-size: 11.5px;
    color: #9CA3AF;
    border-top: 1px solid var(--gh-border);
    text-align: right;
}

/* ================================================================
   STATUS BADGES
   ================================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2px;
}

.status-pending     { background: #FEF3C7; color: #92400E; }
.status-confirmed   { background: #D1FAE5; color: #065F46; }
.status-checkout    { background: #EDE9FE; color: #4C1D95; }
.status-cancelled   { background: #FEE2E2; color: #991B1B; }
.status-active      { background: #D1FAE5; color: #065F46; }
.status-dormant     { background: #F3F4F6; color: #6B7280; }
.status-available   { background: #D1FAE5; color: #065F46; }
.status-occupied    { background: #FEE2E2; color: #991B1B; }
.status-maintenance { background: #FEF3C7; color: #92400E; }
.status-warning     { background: #FEF3C7; color: #92400E; }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gh-primary);
    color: var(--gh-text-on-primary);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 20px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-gh-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--gh-primary);
    color: var(--gh-text-on-primary);
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s, opacity .15s;
}
.btn-gh-primary:hover:not(:disabled) { background: var(--gh-primary-dark); transform: translateY(-1px); }
.btn-gh-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-gh-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    color: #374151;
    border: 1.5px solid var(--gh-border);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-gh-secondary:hover { background: #F9FAFB; border-color: #D1D5DB; }

.btn-gh-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gh-danger);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.btn-gh-danger:hover { opacity: .88; }

.btn-gh-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--gh-primary);
    color: var(--gh-text-on-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
.btn-gh-sm:hover:not(:disabled) { background: var(--gh-primary-dark); }
.btn-gh-sm:disabled { opacity: .6; cursor: not-allowed; }

.btn-gh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    color: #6B7280;
    transition: background .15s, color .15s;
}
.btn-gh-icon:hover { background: #F3F4F6; color: #1F2937; }

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-group .input-text {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1F2937;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 3px rgba(74,144,217,.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #4B5563;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gh-primary);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--gh-border);
}

/* Validation */
.validation-message { font-size: 11.5px; color: var(--gh-danger); margin-top: 3px; }

/* ================================================================
   ALERTS / FEEDBACK
   ================================================================ */
.alert-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-left: 4px solid var(--gh-danger);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
    border-left: 4px solid var(--gh-success);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* ================================================================
   MODALS
   ================================================================ */
.gh-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.gh-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: modalIn .2s ease;
}

.gh-modal-lg { max-width: 680px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(.96) translateY(-12px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.gh-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gh-border);
}

.gh-modal-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.gh-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 17px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.gh-modal-close:hover { background: #F3F4F6; color: #374151; }

.gh-modal-body { padding: 20px; }

.gh-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--gh-border);
    background: #FAFBFC;
}

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.gh-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 14px;
}

.gh-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #E5E7EB;
    border-top-color: var(--gh-primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.gh-loading-text { font-size: 13px; color: #9CA3AF; font-weight: 500; }

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
.gh-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.gh-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    animation: toastIn .25s ease;
    transition: opacity .35s;
}
.gh-toast-fade { opacity: 0; }
.gh-toast-success { background: #065F46; color: #fff; }
.gh-toast-danger  { background: #991B1B; color: #fff; }
.gh-toast-info    { background: var(--gh-primary); color: var(--gh-text-on-primary); }
.gh-toast-msg  { flex: 1; }
.gh-toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}
.gh-toast-close:hover { color: #fff; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   CONFIRM DIALOG
   ================================================================ */
/* uses .gh-modal-backdrop / .gh-modal styles already defined */

/* ================================================================
   FILTERS / SEARCH
   ================================================================ */
.gh-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gh-search-input {
    padding: 8px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1F2937;
    outline: none;
    min-width: 220px;
    transition: border-color .15s, box-shadow .15s;
}
.gh-search-input:focus {
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 3px rgba(74,144,217,.1);
}

.gh-select {
    padding: 8px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1F2937;
    outline: none;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s;
}
.gh-select:focus { border-color: var(--gh-primary); }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    color: #9CA3AF;
    font-size: 13.5px;
    font-weight: 500;
    padding: 36px 20px;
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-page-wrapper {
    min-height: 100vh;
    background: var(--gh-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gh-primary);
    border-radius: 14px;
    color: var(--gh-text-on-primary);
    font-size: 28px;
    margin-bottom: 14px;
}

.login-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
}

.login-subtitle { font-size: 13px; color: #9CA3AF; }

.login-form { display: flex; flex-direction: column; }

.login-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.login-form input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    margin-bottom: 16px;
    font-family: inherit;
    color: #1F2937;
}
.login-form input:focus {
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 3px rgba(74,144,217,.12);
}

.btn-login {
    width: 100%;
    padding: 11px;
    background: var(--gh-primary);
    color: var(--gh-text-on-primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 4px;
    font-family: inherit;
}
.btn-login:hover { background: var(--gh-primary-dark); transform: translateY(-1px); }

.login-footer {
    text-align: center;
    font-size: 11.5px;
    color: #D1D5DB;
    margin-top: 20px;
}

/* ================================================================
   ROOM AVAILABILITY CARDS
   ================================================================ */
.room-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.room-availability-card {
    background: var(--gh-card-bg);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: transform .15s, box-shadow .15s;
}
.room-availability-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.room-availability-card.unavailable { opacity: .7; }

.rac-header { display: flex; align-items: center; justify-content: space-between; }
.rac-type-name { font-size: 13px; font-weight: 800; letter-spacing: .7px; color: #111827; }

.availability-pill {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}
.pill-available   { background: #D1FAE5; color: #065F46; }
.pill-unavailable { background: #FEE2E2; color: #991B1B; }

.rac-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--gh-primary);
    line-height: 1;
}
.rac-per-night { font-size: 13px; font-weight: 400; color: #9CA3AF; }

.rac-meta {
    display: flex;
    gap: 14px;
    font-size: 12.5px;
    color: #6B7280;
    font-weight: 500;
}

.rac-rooms { font-size: 12px; color: #9CA3AF; }
.rac-room-numbers { font-weight: 600; color: #4B5563; }

/* ================================================================
   GUEST SEARCH DROPDOWN (Quick Book & Booking modal)
   ================================================================ */
.guest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--gh-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    z-index: 600;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 3px;
}

.guest-dropdown-item {
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    transition: background .1s;
    color: #374151;
}
.guest-dropdown-item:last-child { border-bottom: none; }
.guest-dropdown-item:hover { background: #EFF6FF; color: var(--gh-primary); }

.selected-guest-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 6px;
}
.selected-guest-chip button {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}
.selected-guest-chip button:hover { color: #374151; }

/* ================================================================
   BOOKING SUMMARY BOX
   ================================================================ */
.booking-summary {
    background: #F8FAFC;
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
}
.bs-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    color: #6B7280;
}
.bs-total {
    border-top: 1px solid var(--gh-border);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--gh-primary);
}

/* ================================================================
   PHASE 3 EXTRAS
   ================================================================ */
.row-selected td { background: #EFF6FF !important; }
.row-outstanding td { background: #FFF7ED !important; }

.btn-action-confirm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-action-confirm:hover { background: #A7F3D0; }

.btn-action-checkout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: #EDE9FE;
    color: #4C1D95;
    border: 1px solid #C4B5FD;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn-action-checkout:hover { background: #C4B5FD; }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-muted   { color: #9CA3AF; font-size: 12.5px; }
.text-danger  { color: var(--gh-danger); }
.text-success { color: var(--gh-success); }
.text-warning { color: #B45309; }
.fw-bold      { font-weight: 700; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2        { gap: 8px; }
.w-100        { width: 100%; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 18px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 18px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .gh-mobile-menu-btn { display: block; }
    .gh-sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
        transition: transform .22s ease;
        z-index: 300;
    }
    /* Drawer is closed by default on phones/tablets; opened by the menu button */
    .gh-shell.mobile-open .gh-sidebar {
        transform: translateX(0);
        width: 260px;
        min-width: 260px;
        box-shadow: 8px 0 30px rgba(0,0,0,.25);
    }
    /* Labels always visible in the drawer, even if desktop collapse was used */
    .gh-shell .gh-brand-name,
    .gh-shell .gh-nav-label { display: inline; }
    .gh-shell .gh-user-info { display: flex; }
    .gh-collapse-btn { display: none; }
    .gh-drawer-close { display: inline-flex; }
    .gh-overlay { display: block; }
}

@media (max-width: 768px) {
    .gh-content   { padding: 14px; }
    .kpi-grid     { grid-template-columns: 1fr 1fr; }
    .form-row     { grid-template-columns: 1fr; }
    .room-type-grid { grid-template-columns: 1fr; }
}

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

/* ================================================================
   ENGAGEMENT UI (notifications, drawer, mobile, website admin)
   ================================================================ */

/* Drawer close button (phones only) */
.gh-drawer-close {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 18px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
}
.gh-drawer-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Notification bell ───────────────────────────────────── */
.nb-wrap { position: relative; display: inline-flex; }
.nb-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gh-border);
    background: #fff;
    color: #4B5563;
    font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.nb-btn:hover { background: #F3F4F6; color: var(--gh-primary); }
.nb-btn.has-unread i { animation: nbRing 2.4s ease-in-out infinite; transform-origin: 50% 0; }
.nb-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px;
    background: var(--gh-danger); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
    box-shadow: 0 0 0 2px #fff;
}
@keyframes nbRing {
    0%, 86%, 100% { transform: rotate(0); }
    88% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 96% { transform: rotate(6deg); }
}
.nb-backdrop { position: fixed; inset: 0; z-index: 400; }
.nb-panel {
    position: absolute; top: 48px; right: 0; z-index: 401;
    width: 380px; max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(17,24,39,.18);
    overflow: hidden;
    animation: nbIn .16s ease-out;
}
@keyframes nbIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nb-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--gh-border); }
.nb-title { font-weight: 700; font-size: 14px; color: #111827; }
.nb-link { background: none; border: none; color: var(--gh-primary); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 4px; }
.nb-list { max-height: min(70vh, 460px); overflow-y: auto; }
.nb-empty { padding: 28px 16px; text-align: center; color: #9CA3AF; font-size: 13px; }
.nb-item {
    display: flex; gap: 12px; width: 100%;
    padding: 12px 16px;
    background: #fff; border: none; border-bottom: 1px solid #F3F4F6;
    text-align: left; cursor: pointer;
}
.nb-item:hover { background: #F9FAFB; }
.nb-item.unread { background: #F5F9FF; }
.nb-item.unread .nb-item-title::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--gh-primary); vertical-align: middle; }
.nb-icon { flex: 0 0 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.nb-info    { background: rgba(74,144,217,.12); color: #2F6FB3; }
.nb-success { background: rgba(40,167,69,.12);  color: #1E7E34; }
.nb-warning { background: rgba(255,193,7,.18);  color: #9A6B00; }
.nb-danger  { background: rgba(220,53,69,.12);  color: #B02A37; }
.nb-text { display: flex; flex-direction: column; min-width: 0; }
.nb-item-title { font-size: 13.5px; font-weight: 600; color: #111827; }
.nb-item-msg { font-size: 12.5px; color: #4B5563; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nb-item-time { font-size: 11px; color: #9CA3AF; margin-top: 4px; }

.nb-popup {
    position: fixed; right: 20px; bottom: 20px; z-index: 900;
    display: flex; align-items: flex-start; gap: 12px;
    width: 360px; max-width: calc(100vw - 24px);
    padding: 14px 16px;
    background: #111827; color: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.3);
    cursor: pointer;
    animation: nbPop .25s ease-out;
}
.nb-popup > i { font-size: 20px; margin-top: 2px; }
.nb-popup-success > i { color: #4ADE80; }
.nb-popup-warning > i { color: #FBBF24; }
.nb-popup-danger  > i { color: #F87171; }
.nb-popup-info    > i { color: #60A5FA; }
.nb-popup-title { font-weight: 700; font-size: 14px; }
.nb-popup-msg { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 2px; }
.nb-popup-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; padding: 2px 4px; }
@keyframes nbPop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Live indicator on dashboard ─────────────────────────── */
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #1E7E34; font-weight: 600; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #28A745; box-shadow: 0 0 0 0 rgba(40,167,69,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(40,167,69,.55); } 70% { box-shadow: 0 0 0 8px rgba(40,167,69,0); } 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); } }

/* ── Status pills used by Settings email log and Website admin ── */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.pill-ok   { background: #E8F7EE; color: #1E7E34; }
.pill-wait { background: #FFF6DB; color: #8A6100; }
.pill-bad  { background: #FDECEE; color: #B02A37; }
.pill-mute { background: #F3F4F6; color: #6B7280; }

/* ── Website admin page ──────────────────────────────────── */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ws-thumb { border: 1px solid var(--gh-border); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ws-thumb img { width: 100%; height: 150px; object-fit: cover; background: #F3F4F6; }
.ws-thumb-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ws-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-list-item { border: 1px solid var(--gh-border); border-radius: 12px; padding: 14px; background: #fff; margin-bottom: 10px; }
.ws-list-item.muted { opacity: .6; }
.ws-help { font-size: 12px; color: #6B7280; margin-top: 4px; line-height: 1.5; }
.ws-section-card { border: 1px solid var(--gh-border); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.ws-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; }
.ws-section-head h5 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.ws-section-body { padding: 0 14px 14px; }
.ws-section-body textarea { min-height: 140px; font-family: inherit; }
.ws-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; cursor: pointer; }
.ws-check input { width: 18px; height: 18px; }

/* ── Mobile and touch improvements (admin area) ──────────── */
@supports (height: 100dvh) {
    .gh-shell { height: 100dvh; }
}
.gh-card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 768px) {
    .gh-topbar { padding: 0 12px; gap: 8px; }
    .gh-topbar-date { display: none; }
    .gh-topbar-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gh-mobile-menu-btn { width: 44px; height: 44px; }
    .gh-page-header { flex-direction: column; align-items: stretch; }
    .gh-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .gh-tab { white-space: nowrap; min-height: 44px; }
    .gh-nav-link { min-height: 44px; }
    /* 16px stops iOS from zooming into form fields */
    input, select, textarea { font-size: 16px; }
    .btn-gh-primary, .btn-gh-secondary, .btn-gh-sm { min-height: 40px; }
    .nb-popup { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .nb-panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; }
}

/* ── Photo carousel (room cards, booking form, admin preview) ── */
.pc { position: relative; overflow: hidden; background: #E9EDE6; touch-action: pan-y; user-select: none; }
.pc-track { display: flex; height: 100%; transition: transform .35s ease; }
.pc-slide { flex: 0 0 100%; height: 100%; }
.pc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pc-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.88); color: #1A1F18; font-size: 16px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.18); opacity: .92; transition: opacity .2s, transform .2s;
}
.pc-nav:hover { opacity: 1; }
.pc-prev { left: 10px; } .pc-next { right: 10px; }
.pc-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.pc-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s, background .2s; }
.pc-dot.on { width: 20px; border-radius: 4px; background: #fff; }
.pc-count { position: absolute; right: 10px; bottom: 8px; z-index: 2; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 10px; }
.pc-caption { position: absolute; left: 10px; top: 10px; z-index: 2; max-width: 70%; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 8px; }
@media (hover: hover) { .pc .pc-nav { opacity: 0; } .pc:hover .pc-nav { opacity: .92; } }

/* ── Half-day switch (Bookings and Quick Book) ─────────────── */
.halfday-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--gh-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; cursor: pointer; background: #FAFAFA; transition: border-color .2s, background .2s; }
.halfday-row.hd-active { border-color: #F5A623; background: #FFFBEB; }
.hd-left { display: flex; align-items: center; gap: 10px; }
.hd-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(245,166,35,.15); color: #B7791F; display: flex; align-items: center; justify-content: center; }
.hd-title { font-size: 13.5px; font-weight: 600; color: #111827; }
.hd-sub { font-size: 11.5px; color: #6B7280; }
.hd-switch { width: 44px; min-width: 44px; height: 24px; background: #D1D5DB; border-radius: 100px; position: relative; transition: background .2s; }
.hd-switch.on { background: #F5A623; }
.hd-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.hd-switch.on::after { transform: translateX(20px); }

/* ── Clickable KPI cards ───────────────────────────────────── */
a.kpi-card { color: inherit; text-decoration: none; cursor: pointer; position: relative; }
a.kpi-card::after { content: '\F285'; font-family: 'bootstrap-icons'; position: absolute; right: 14px; top: 14px; font-size: 13px; color: #9CA3AF; transition: transform .15s, color .15s; }
a.kpi-card:hover::after { color: var(--gh-primary); transform: translateX(2px); }
a.kpi-card:focus-visible { outline: 3px solid var(--gh-primary); outline-offset: 2px; }

/* ── Bookings filters and highlighted row ──────────────────── */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--gh-border); background: #fff; color: #374151; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--gh-primary); color: var(--gh-primary); }
.chip.on { background: var(--gh-primary); border-color: var(--gh-primary); color: var(--gh-text-on-primary); }
.chip .chip-n { font-size: 11px; font-weight: 700; opacity: .8; }
tr.row-highlight td { background: #FFF8E1 !important; }
tr.row-highlight td:first-child { box-shadow: inset 4px 0 0 #F5A623; }
.load-error { margin: 0 0 14px; }

/* ── Room photo manager (Rooms > Manage Rooms) ─────────────── */
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.rp-item { border: 1px solid var(--gh-border); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.rp-item img { width: 100%; height: 110px; object-fit: cover; background: #F3F4F6; }
.rp-item .rp-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.rp-item input { font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--gh-border); border-radius: 6px; width: 100%; }
.rp-actions { display: flex; gap: 4px; justify-content: space-between; }
.rp-cover { position: absolute; }
.rp-badge { font-size: 10.5px; font-weight: 700; color: #1E7E34; }
.photo-count { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.photo-count.ok { background: #E8F7EE; color: #1E7E34; }
.photo-count.low { background: #FFF6DB; color: #8A6100; }
.h-100 { height: 100%; }

/* ── Booking guard dialogs (past-date confirm, checkout bill) ── */
.guard-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; border: 1px solid; }
.guard-banner > i { font-size: 18px; margin-top: 1px; }
.guard-warn   { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.guard-danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.guard-ok     { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.guard-info   { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.guard-actions { flex-wrap: wrap; gap: 8px; }
.guard-actions a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-guard-outline { background: #fff; color: #B02A37; border: 1.5px solid #F1AEB5; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-guard-outline:hover { background: #FEF2F2; }
.btn-guard-outline:disabled { opacity: .6; cursor: default; }
.bill-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.bill-table td { padding: 8px 4px; border-bottom: 1px solid #F3F4F6; color: #374151; }
.bill-table td:last-child { text-align: right; font-weight: 600; color: #111827; white-space: nowrap; }
.bill-table .bt-total td { font-weight: 700; color: #111827; border-top: 1px solid #E5E7EB; }
.bill-table .bt-due td { font-size: 15px; font-weight: 800; border-bottom: none; }
.bill-table .bt-due.due td { color: #B02A37; }
.flag-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.flag-danger { background: #FDECEE; color: #B02A37; }
.flag-warn   { background: #FFF6DB; color: #8A6100; }
@media (max-width: 768px) {
    .guard-actions > * { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
.guard-actions button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Hosting and Domain renewals ─────────────────────────── */
.field-hint { display: block; margin-top: 5px; font-size: 12px; color: #6B7280; line-height: 1.45; }
.hs-banner { margin-bottom: 16px; }
.hs-dash { margin-bottom: 18px; text-decoration: none; align-items: center; transition: box-shadow .15s; }
.hs-dash:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.hs-dash > div { flex: 1; min-width: 0; }
.hs-dash-go { font-weight: 600; white-space: nowrap; font-size: 13px; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 20px; }
.hs-card { background: var(--gh-card-bg, #fff); border: 1px solid var(--gh-border); border-top: 4px solid #22A55A; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); min-width: 0; }
.hs-due      { border-top-color: #E0A100; }
.hs-critical,
.hs-expired  { border-top-color: #D93848; }
.hs-expired  { background: #FFFAFA; }
.hs-inactive { border-top-color: #C9CDD3; opacity: .8; }
.hs-highlight { box-shadow: 0 0 0 3px rgba(74,144,217,.35), 0 1px 4px rgba(0,0,0,.04); }
.hs-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hs-icon { width: 38px; height: 38px; border-radius: 10px; background: #EEF4FB; color: var(--gh-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hs-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hs-type { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6B7280; font-weight: 600; }
.hs-name { font-size: 15px; font-weight: 700; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-count { display: flex; align-items: baseline; gap: 8px; }
.hs-days { font-size: 30px; font-weight: 800; line-height: 1; color: #111827; font-variant-numeric: tabular-nums; }
.hs-critical .hs-days, .hs-expired .hs-days { color: #B02A37; }
.hs-due .hs-days { color: #8A6100; }
.hs-inactive .hs-days { font-size: 16px; color: #6B7280; }
.hs-days-label { font-size: 13px; color: #6B7280; }
.hs-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.hs-facts dt { color: #6B7280; }
.hs-facts dd { margin: 0; color: #1F2937; overflow-wrap: anywhere; }
.hs-notes { margin: 0; font-size: 12.5px; color: #4B5563; background: #F9FAFB; border-radius: 8px; padding: 8px 10px; white-space: pre-line; overflow-wrap: anywhere; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.hs-actions a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.hs-actions .btn-gh-primary, .hs-actions .btn-gh-secondary { padding: 7px 12px; font-size: 13px; }
.hs-tools { display: inline-flex; gap: 8px; margin-left: auto; }
.hs-icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid #E5E7EB; background: #fff; color: #4B5563; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hs-icon-btn:hover { background: #F3F4F6; }
.hs-del:hover { color: #B02A37; border-color: #F1AEB5; background: #FEF2F2; }
.hs-empty { text-align: center; padding: 36px 18px; }
.hs-empty > i { font-size: 34px; color: var(--gh-primary); }
.hs-empty h4 { margin: 10px 0 6px; font-size: 16px; }
.hs-empty p { max-width: 520px; margin: 0 auto 16px; color: #6B7280; font-size: 13.5px; }
.hs-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hs-help p { margin: 6px 0 0; font-size: 13px; color: #4B5563; }
.hs-renew-grid { display: flex; align-items: center; gap: 14px; background: #F9FAFB; border-radius: 10px; padding: 12px 14px; }
.hs-renew-grid > div { display: flex; flex-direction: column; }
.hs-renew-grid > i { color: #6B7280; }
.hs-k { font-size: 11.5px; color: #6B7280; }
.hs-v { font-size: 15px; font-weight: 700; color: #111827; }
@media (max-width: 768px) {
    .hs-grid { grid-template-columns: 1fr; }
    .hs-dash { flex-wrap: wrap; }
}

/* ── Gallery collage (public site and admin preview) ─────── */
.gc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 15.5vw, 250px); grid-auto-flow: row dense; gap: 14px; }
.gc-grid.gc-compact { grid-auto-rows: clamp(70px, 9vw, 130px); gap: 8px; }
.gc-tile { position: relative; overflow: hidden; border: 0; padding: 0; margin: 0; cursor: zoom-in; border-radius: 18px; background: #E9E4DA; box-shadow: 0 14px 34px -18px rgba(20, 30, 20, .45); isolation: isolate; opacity: 0; animation: gcIn .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--gc-delay, 0ms); text-align: left; font: inherit; }
.gc-compact .gc-tile { border-radius: 10px; box-shadow: none; }
.gc-L { grid-column: span 2; grid-row: span 2; }
.gc-T { grid-row: span 2; }
.gc-W { grid-column: span 2; }
.gc-B { grid-column: 1 / -1; grid-row: span 2; }
.gc-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
.gc-tile:hover img, .gc-tile:focus-visible img { transform: scale(1.06); filter: saturate(1.08); }
.gc-tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); pointer-events: none; z-index: 3; }
.gc-tile:focus-visible { outline: 3px solid #F0A830; outline-offset: 3px; }
.gc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(8,14,9,.72) 100%); opacity: 0; transition: opacity .45s ease; z-index: 1; }
.gc-tile:hover .gc-shade, .gc-tile:focus-visible .gc-shade { opacity: 1; }
.gc-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,.35); transform: translateY(10px); opacity: 0; transition: transform .45s ease, opacity .45s ease; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-L .gc-cap, .gc-B .gc-cap { font-size: 16.5px; left: 22px; bottom: 20px; }
.gc-tile:hover .gc-cap, .gc-tile:focus-visible .gc-cap { transform: none; opacity: 1; }
.gc-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .86); color: #1F2A20; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .4s ease; }
.gc-tile:hover .gc-tag, .gc-tile:focus-visible .gc-tag { opacity: 1; transform: none; }
.gc-zoom { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #1F2A20; display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: 0; transform: scale(.8); transition: opacity .35s ease, transform .35s ease; }
.gc-tile:hover .gc-zoom { opacity: 1; transform: none; }
.gc-num { position: absolute; top: 6px; left: 6px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gc-compact .gc-cap, .gc-compact .gc-tag, .gc-compact .gc-zoom { display: none; }
@keyframes gcIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (hover: none) {
    .gc-shade { opacity: .85; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(8,14,9,.7) 100%); }
    .gc-cap { opacity: 1; transform: none; font-size: 12.5px; left: 12px; right: 12px; bottom: 10px; }
    .gc-S .gc-cap { display: none; }
}
@media (max-width: 700px) {
    .gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 42vw, 210px); gap: 10px; }
    .gc-grid.gc-compact { grid-auto-rows: clamp(70px, 26vw, 120px); gap: 6px; }
    .gc-tile { border-radius: 14px; }
    .gc-B { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .gc-tile { animation: none; opacity: 1; }
    .gc-tile img, .gc-cap, .gc-shade { transition: none; }
}

/* ── Gallery manager (Website > Gallery) ─────────────────── */
.gm-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 18px; border: 2px dashed #CBD5E1; border-radius: 14px; background: #F8FAFC; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.gm-drop:hover, .gm-drop:focus-within { border-color: var(--gh-primary); background: #F1F7F2; }
.gm-drop.busy { cursor: progress; opacity: .85; }
.gm-drop > i { font-size: 30px; color: var(--gh-primary); }
.gm-drop-title { font-weight: 700; color: #111827; font-size: 15px; }
.gm-drop-sub { font-size: 12.5px; color: #6B7280; max-width: 460px; }
.gm-drop .gm-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gm-drop.busy .gm-file { cursor: progress; }
.gm-head h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gm-count { font-size: 12px; font-weight: 500; color: #6B7280; }
.gm-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gm-item { border: 1.5px solid var(--gh-border, #E5E7EB); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s, opacity .2s; min-width: 0; }
.gm-item:hover { box-shadow: 0 8px 22px -14px rgba(0,0,0,.35); }
.gm-dragging { opacity: .45; }
.gm-over { border-color: var(--gh-primary); box-shadow: 0 0 0 3px rgba(45,106,53,.18); transform: scale(1.02); }
.gm-off .gm-thumb img { filter: grayscale(1) brightness(.85); }
.gm-thumb { position: relative; aspect-ratio: 4 / 3; background: #F3F4F6; cursor: grab; }
.gm-thumb:active { cursor: grabbing; }
.gm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.gm-pos { position: absolute; top: 8px; left: 8px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(17,24,39,.8); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gm-off .gm-pos { background: #B45309; }
.gm-grip { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.9); color: #374151; display: flex; align-items: center; justify-content: center; }
.gm-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.gm-body input, .gm-body select { width: 100%; min-width: 0; font-size: 13px; padding: 7px 9px; border: 1.5px solid #E5E7EB; border-radius: 8px; background: #fff; }
.gm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.gm-btn { height: 32px; min-width: 32px; padding: 0 9px; border-radius: 8px; border: 1.5px solid #E5E7EB; background: #fff; color: #374151; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.gm-btn:hover:not(:disabled) { background: #F3F4F6; }
.gm-btn:disabled { opacity: .4; cursor: not-allowed; }
.gm-del { margin-left: auto; }
.gm-del:hover:not(:disabled) { color: #B02A37; border-color: #F1AEB5; background: #FEF2F2; }
.gm-del-yes { margin-left: auto; background: #B02A37; border-color: #B02A37; color: #fff; }
.gm-del-yes:hover { background: #962330 !important; }
@media (max-width: 520px) {
    .gm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gm-body { padding: 8px; }
    .gm-btn { min-width: 30px; padding: 0 7px; }
}

/* ── Delete user popup (Settings > Users) ────────────────── */
.du-who { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; background: #F9FAFB; border-radius: 10px; padding: 12px 14px; }
.du-who > span { min-width: 0; overflow-wrap: anywhere; }
.du-k { color: #6B7280; }
.du-list { margin: 6px 0 8px; padding-left: 18px; }
.du-list li { margin-bottom: 4px; }
