:root {
    --bg: #e6f4ff;
    --surface: #ffffff;
    --text: #113f67;
    --muted: #5b7d99;
    --primary: #1b6cc1;
    --secondary: #7fb4f7;
    --accent: #0d3d6b;
    --border: rgba(17, 63, 103, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: rgba(255,255,255,0.92);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-nav a {
    margin-left: 24px;
    color: var(--muted);
}

.hero {
    min-height: 72vh;
    display: grid;
    place-items: center;
    padding: 48px 32px;
    background: url('hero.svg') center/cover no-repeat;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.06) 0%, rgba(248, 242, 238, 0.9) 100%);
}

.hero-content {
    max-width: 780px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content .eyebrow {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--muted);
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.7rem, 4vw, 5rem);
    line-height: 1.02;
}

.hero-content p {
    margin: 24px auto 32px;
    max-width: 640px;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    padding: 16px 28px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.search-panel {
    padding: 24px 32px;
    background: #fff;
    margin: -60px auto 32px;
    max-width: 1200px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.05);
    border-radius: 18px;
}

.search-form {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field {
    display: grid;
}

.field label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

input,
select,
textarea {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.features {
    display: grid;
    gap: 24px;
    padding: 0 32px 64px;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.05);
}

.feature-card h2 {
    margin-top: 0;
}

.carousel-section {
    padding: 48px 32px 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.section-head .eyebrow {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 2.6vw, 3rem);
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 32px;
    text-align: center;
}

.search-form-inline {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.search-form-inline input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    font-size: 1rem;
}

.search-form-inline button {
    padding: 14px 24px;
    border-radius: 24px;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 28px;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 14px;
}

.carousel-card {
    display: grid;
    gap: 24px;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.08);
    min-height: 380px;
}

.carousel-photo {
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.carousel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-info h3 {
    margin: 0;
    font-size: 1.8rem;
}

.carousel-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

.carousel-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 14px 32px rgba(0,0,0,0.1);
    color: var(--accent);
    cursor: pointer;
    font-size: 1.9rem;
    line-height: 1;
}

.carousel-button.prev {
    left: -28px;
}

.carousel-button.next {
    right: -28px;
}

@media (max-width: 768px) {
    .carousel-button.prev,
    .carousel-button.next {
        display: none;
    }
}

.auth-page,
.booking-page,
.dashboard-page {
    padding: 40px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-card,
.booking-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 20px 56px rgba(0,0,0,0.08);
}

.auth-card h1,
.booking-card h1 {
    margin-top: 0;
}

.auth-card label,
.booking-card label {
    display: block;
    margin-top: 18px;
    color: var(--muted);
}

.auth-form label,
.auth-card label {
    text-align: center;
}

.auth-card input,
.booking-card input,
.booking-card select,
.booking-card textarea,
.auth-card select,
.auth-card textarea {
    width: 100%;
    margin-top: 8px;
}

.flash {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.flash-error { background: #ffeaea; color: #8c1d1d; }
.flash-success { background: #e8f7e8; color: #1c5d2e; }

.auth-card .auth-subtitle {
    margin: -4px 0 20px;
    color: var(--muted);
    text-align: center;
}

.login-role-fieldset {
    border: none;
    margin: 0 0 8px;
    padding: 0;
}

.login-role-legend {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.login-role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.login-role-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.login-role-option:hover {
    border-color: var(--secondary);
}

.login-role-option.is-selected,
span.login-role-option.is-selected {
    border-color: var(--primary);
    background: rgba(27, 108, 193, 0.06);
    box-shadow: 0 8px 24px rgba(27, 108, 193, 0.12);
    cursor: default;
}

.login-role-label {
    font-weight: 700;
    color: var(--text);
}

.login-role-hint {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
}

.login-form .button-primary {
    width: 100%;
    margin-top: 8px;
}

.login-admin-link {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 520px) {
    .login-role-options {
        grid-template-columns: 1fr;
    }
}

.dashboard-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.06);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-compact li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.room-list {
    display: grid;
    gap: 24px;
    padding: 32px 0;
}

.room-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.06);
    display: grid;
    gap: 18px;
}

.room-card-image {
    overflow: hidden;
    border-radius: 20px;
    max-height: 220px;
}

.room-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.room-card-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.room-card-content {
    display: grid;
    gap: 14px;
}

.room-meta {
    display: flex;
    gap: 16px;
    color: var(--muted);
    flex-wrap: wrap;
}

.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rooms-header {
    display: grid;
    gap: 18px;
    padding: 32px 0 16px;
}

.search-form-inline {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.empty-state {
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
}

.site-footer {
    padding: 24px 32px;
    text-align: center;
    color: var(--muted);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 24px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(229, 244, 255, 0.92) 34%, rgba(241, 246, 250, 0.98));
}

.auth-container {
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
    background: #ffffff;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(17, 63, 103, 0.14);
}

.auth-visual {
    position: relative;
    color: #ffffff;
    padding: 52px 42px;
    background: linear-gradient(180deg, rgba(8, 40, 77, 0.96), rgba(22, 74, 135, 0.95));
    display: flex;
    align-items: center;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('image/room1.jpg') center/cover no-repeat;
    opacity: 0.22;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

.auth-visual .eyebrow {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: #e5f2ff;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.auth-visual h1 {
    margin: 0;
    font-size: clamp(2.4rem, 3vw, 3.6rem);
    line-height: 1.05;
}

.auth-visual p {
    margin-top: 24px;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.8;
}

.auth-form {
    padding: 52px 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form .auth-card {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    max-width: 560px;
    padding: 42px 40px;
    border-radius: 30px;
    box-shadow: 0 34px 90px rgba(17, 63, 103, 0.14);
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(27, 108, 193, 0.12);
    font-size: 1.5rem;
}

.auth-form .auth-card h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--text);
}

.auth-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
    max-width: 440px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #4d6b8d;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 42px 16px 16px;
    border: 1px solid rgba(17, 63, 103, 0.18);
    border-radius: 16px;
    background: #f8fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: rgba(27, 108, 193, 0.7);
    box-shadow: 0 0 0 4px rgba(27, 108, 193, 0.08);
}

.input-icon {
    position: absolute;
    right: 14px;
    font-size: 1.15rem;
    pointer-events: none;
    opacity: 0.7;
}

.auth-actions {
    margin-top: 30px;
    display: grid;
    gap: 16px;
}

.auth-actions .button,
.auth-actions .button-secondary {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 16px 30px rgba(27, 108, 193, 0.22);
}

.button-secondary {
    border: 1px solid rgba(15, 59, 114, 0.16);
    color: var(--accent);
    background: #fff;
    text-align: center;
}

.button-secondary:hover {
    background: rgba(27, 108, 193, 0.05);
}

@media (max-width: 960px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-visual,
    .auth-form {
        padding: 32px 28px;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 24px 16px;
    }

    .auth-visual {
        padding: 28px 22px;
    }

    .auth-form {
        padding: 28px 22px;
    }
}

/* Admin shell — Hubstaff-style sidebar */
.admin-page {
    margin: 0;
    background: #f0f1f5;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 130;
    transition: transform 0.25s ease;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 2px 0 16px rgba(3, 105, 161, 0.25);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.08);
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 4px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow: hidden;
    box-sizing: border-box;
}

.admin-sidebar-logo img,
.admin-sidebar-logo-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.admin-sidebar-brand-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: none;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-back {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 20px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-back:hover {
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 1);
    padding-left: 24px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding: 16px 0 24px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 20px;
    border-radius: 0 20px 20px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    margin-right: 12px;
    position: relative;
}

.sidebar-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.sidebar-nav a:hover .sidebar-nav-icon {
    transform: scale(1.1) rotate(2deg);
}

.sidebar-nav a.active .sidebar-nav-icon {
    transform: scale(1.15);
}

.sidebar-nav-icon-peso {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.sidebar-nav a svg {
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateX(4px);
    font-weight: 600;
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.25);
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    padding-left: 17px;
}

.sidebar-nav a.active svg {
    stroke: #ffffff;
}

.sidebar-nav-logout {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.65) !important;
    transition: all 0.25s ease;
}

.sidebar-nav-logout:hover {
    background: rgba(255, 0, 0, 0.15) !important;
    color: #ffffff !important;
    border-left: 3px solid rgba(255, 100, 100, 0.6) !important;
}

/* Sidebar Scrollbar Styling */
.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.admin-main {
    flex: 1;
    min-width: 0;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #ffffff;
    transition: margin-left 0.25s ease;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e8eaef;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.2);
    position: relative;
    z-index: 160;
    touch-action: manipulation;
}

.admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 120;
    }

    body.admin-sidebar-open .admin-sidebar-overlay,
    body.mobile-menu-open .admin-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    @media (max-width: 992px) {
        .admin-sidebar {
            pointer-events: auto;
            position: fixed;
            top: 0;
            left: 0;
            width: 260px;
            height: 100vh;
            z-index: 130;
            transform: translateX(-100%);
        }

        body:not(.admin-sidebar-collapsed) .admin-sidebar {
            transform: translateX(0);
        }

        .admin-main {
            margin-left: 0;
        }
    }

    .admin-menu-toggle:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
    }
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
}

.admin-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.admin-topbar-user:hover {
    background: #f3f4f6;
}

.admin-topbar-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe, #00c6fb);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-topbar-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.admin-topbar-chevron {
    color: #9ca3af;
}

.admin-page-heading {
    padding: 24px 32px 0;
}

.admin-page-heading h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4facfe;
}

.admin-page-heading p {
    margin: 6px 0 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

body.admin-sidebar-collapsed .admin-sidebar {
    transform: translateX(-100%);
}

body:not(.admin-sidebar-collapsed) .admin-sidebar {
    transform: translateX(0);
}

body.admin-sidebar-collapsed .admin-main {
    margin-left: 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px 32px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-content {
    padding: 24px 32px 48px;
    display: grid;
    gap: 24px;
    background: #ffffff;
}

.admin-content > h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4facfe;
}

.admin-content > p {
    margin: 0 0 8px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.admin-inline-form {
    display: grid;
    gap: 12px;
    max-width: 480px;
}

.admin-inline-form label {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.admin-inline-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

@media (max-width: 992px) {
    .admin-topbar-brand{
        margin-right: 12px;
    }

    .admin-topbar-brand a{
        font-size: 0.85rem;
    }

    .admin-topbar-register{
        font-size: 0.85rem;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }


    body:not(.admin-sidebar-collapsed) .admin-sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        padding: 14px 16px;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav {
        margin-top: 16px;
    }
    .site-nav a {
        margin: 0 12px 8px 0;
    }
}

/* Admin login — right panel only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-auth-form {
    font-family: Inter, system-ui, sans-serif;
}

.admin-auth-form .admin-auth-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

.admin-auth-title {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3494;
    letter-spacing: -0.02em;
}

.admin-auth-subtitle {
    margin: 0 0 28px;
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.55;
}

.admin-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.875rem;
    text-align: left;
    line-height: 1.45;
}

.admin-auth-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.admin-auth-warning {
    margin: -8px 0 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fffbeb;
    color: #b45309;
    font-size: 0.82rem;
    border: 1px solid #fde68a;
}

.admin-auth-form-fields {
    display: grid;
    gap: 14px;
}

.admin-auth-field {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-auth-field-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}

.admin-auth-field input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    color: #374151;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-auth-field input:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.admin-auth-field input::placeholder {
    color: #9ca3af;
}

.admin-auth-field input:focus {
    outline: none;
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

.admin-auth-toggle-pw {
    position: absolute;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.admin-auth-toggle-pw:hover:not(:disabled) {
    color: #4338ca;
    background: rgba(67, 56, 202, 0.06);
}

.admin-auth-toggle-pw:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.admin-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: #4338ca;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.28);
}

.admin-auth-btn:hover:not(:disabled) {
    background: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(67, 56, 202, 0.32);
}

.admin-auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.admin-auth-btn .btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: admin-auth-spin 0.7s linear infinite;
}

@keyframes admin-auth-spin {
    to { transform: rotate(360deg); }
}

.admin-auth-footer {
    margin: 26px 0 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

.admin-auth-footer a {
    color: #4338ca;
    font-weight: 500;
    text-decoration: none;
}

.admin-auth-footer a:hover {
    text-decoration: underline;
}

.admin-auth-footer-secondary {
    margin-top: 8px;
}

.auth-visual-user {
    background: linear-gradient(180deg, rgba(8, 40, 77, 0.96), rgba(22, 74, 135, 0.95));
}

.auth-visual-owner {
    background: linear-gradient(180deg, rgba(55, 28, 95, 0.96), rgba(88, 42, 138, 0.95));
}

@media (max-width: 640px) {
    .admin-auth-title {
        font-size: 1.75rem;
    }
}

/* Login portal (role chooser + role-specific sign-in) */
.portal-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    color: #f5f7fa;
    background: linear-gradient(145deg, #1a2332 0%, #243447 45%, #1b2a3d 100%);
}

.portal-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 28, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portal-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.portal-card {
    width: min(100%, 420px);
    padding: 36px 32px 28px;
    border-radius: 20px;
    background: rgba(28, 32, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.portal-card-form {
    text-align: left;
}

.portal-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid #4a9fd4;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
}

.portal-logo-sm {
    width: 56px;
    height: 56px;
    margin: 8px auto 16px;
}

.portal-logo-inner {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.room-owner-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.room-owner-logo-inner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #0d6efd;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.room-owner-label {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.portal-title {
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.portal-card-form .portal-title {
    text-align: center;
}

.portal-tagline {
    margin: 0 0 28px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.portal-card-form .portal-tagline {
    text-align: center;
    margin-bottom: 22px;
}

.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.portal-btn:hover {
    transform: translateY(-1px);
}

.portal-btn-user {
    background: linear-gradient(180deg, #2d8fd4 0%, #1b6cc1 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(27, 108, 193, 0.35);
}

.portal-btn-user:hover {
    box-shadow: 0 12px 28px rgba(27, 108, 193, 0.45);
}

.portal-btn-owner {
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
}

.portal-btn-owner:hover {
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.45);
}

.portal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.portal-divider::before,
.portal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.portal-btn-admin {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.portal-btn-admin:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
}

.portal-footer {
    margin: 24px 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.portal-back {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.portal-back:hover {
    color: #fff;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.portal-label {
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.portal-input {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: inherit;
}

.portal-input:focus {
    outline: none;
    border-color: #4a9fd4;
    box-shadow: 0 0 0 3px rgba(74, 159, 212, 0.25);
}

.portal-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.portal-btn-submit {
    margin-top: 20px;
}

.portal-flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    text-align: center;
}

.portal-flash-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ffb4bc;
}

.portal-switch {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.portal-switch a {
    color: #7fb4f7;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
}

.portal-switch a:hover {
    text-decoration: underline;
}

.portal-register {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.portal-register a {
    color: #7fb4f7;
    text-decoration: none;
}

.portal-register a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .portal-card {
        padding: 28px 22px 22px;
    }

    .portal-title {
        font-size: 1.6rem;
    }
}

.user-sidebar .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.2);
}

.user-room-list {
    margin-top: 24px;
}

.room-card-no-flex {
    display: block !important;
}

.available-rooms-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.available-rooms-logo .logo-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.available-rooms-logo .logo-text {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
}

.user-rooms-toolbar .search-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.user-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 8px 0 0;
}

.user-stat-paid {
    color: #15803d;
}

.user-stat-pending {
    color: #b45309;
}

.user-card-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary);
}

.user-bill-summary {
    margin-bottom: 24px;
}

.bill-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bill-badge-paid {
    background: #dcfce7;
    color: #166534;
}

.bill-badge-active {
    background: #dbeafe;
    color: #1e40af;
}

.bill-badge-upcoming {
    background: #fef3c7;
    color: #92400e;
}
