:root {
    --brand-navy: #12305c;
    --brand-navy-dark: #0b1f3d;
    --sidebar-width: 230px;
}

body {
    background-color: #f4f6f9;
}

.guest-bg {
    background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    padding: 24px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.guest-bg h1 {
    color: #fff;
}

.guest-bg p.text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.guest-bg .text-center.text-muted.small {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- App shell --- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--brand-navy-dark);
    color: #cfd8e6;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.app-sidebar .brand {
    color: #fff;
    font-weight: 600;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar .nav-link {
    color: #b6c2d6;
    padding: 9px 20px;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.app-sidebar .nav-link i {
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 8px;
}

.app-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.app-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #4f9cf9;
}

.app-sidebar .nav-section-title {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 20px 6px;
}

.app-main {
    flex-grow: 1;
    min-width: 0;
}

.app-topbar {
    background: #fff;
    border-bottom: 1px solid #e3e8ef;
    padding: 12px 24px;
}

.app-content {
    padding: 24px;
}

.stat-tile {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: 16px 18px;
}

.stat-tile .label {
    font-size: 0.78rem;
    color: #6b7280;
}

.stat-tile .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2430;
}

.table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    border-bottom-width: 1px;
}

.badge-status-active { background-color: #dcf5e6; color: #157347; }
.badge-status-suspended { background-color: #fdecea; color: #b02a37; }
.badge-status-pending { background-color: #fff3cd; color: #997404; }
.badge-status-unpaid { background-color: #fdecea; color: #b02a37; }
.badge-status-paid { background-color: #dcf5e6; color: #157347; }
