@charset "UTF-8";

:root {
    --night: #061923;
    --navy: #092f3b;
    --blue: #164b5b;
    --gold: #d2ad70;
    --ivory: #f4f1ea;
    --paper: #fff;
    --ink: #102c35;
    --muted: #728188;
    --line: rgba(9, 47, 59, .12);
    --green: #2d8b66;
    --red: #9e4b47;
    --shadow: 0 24px 70px rgba(6, 25, 35, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: Inter, Aptos, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.saas-eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* Login */

.saas-login-page { min-height: 100vh; background: var(--night); }
.saas-login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1.12fr .88fr;
}
.saas-login-brand {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;
    padding: 48px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 78% 22%, rgba(210, 173, 112, .2), transparent 28%),
        radial-gradient(circle at 18% 78%, rgba(30, 94, 110, .42), transparent 35%),
        linear-gradient(145deg, #092f3b, #04151d 72%);
}
.saas-login-brand::before,
.saas-login-brand::after {
    position: absolute;
    border: 1px solid rgba(210, 173, 112, .16);
    border-radius: 50%;
    content: "";
}
.saas-login-brand::before { top: -20vw; right: -9vw; width: 52vw; height: 52vw; }
.saas-login-brand::after { right: 8vw; bottom: -21vw; width: 38vw; height: 38vw; }
.saas-mark, .saas-login-brand > div, .saas-login-brand footer { position: relative; z-index: 2; }
.saas-mark { display: flex; align-items: center; gap: 13px; font-family: Georgia, serif; font-size: 19px; }
.saas-mark span, .saas-logo span {
    display: grid;
    place-items: center;
    border: 1px solid rgba(210, 173, 112, .6);
    border-radius: 50%;
    color: var(--gold);
}
.saas-mark span { width: 44px; height: 44px; font: 750 12px Inter, sans-serif; }
.saas-login-brand p {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.saas-login-brand h1 {
    margin: 0 0 28px;
    font: 400 clamp(55px, 6.2vw, 92px)/.9 Georgia, serif;
    letter-spacing: -.055em;
}
.saas-login-brand h1 em { color: var(--gold); font-weight: 400; }
.saas-login-brand > div > small { display: block; max-width: 470px; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.65; }
.saas-login-brand footer { color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .08em; }
.saas-login-card { display: grid; place-items: center; padding: 52px; background: var(--ivory); }
.saas-login-card form { width: min(420px, 100%); }
.saas-login-card h2 { margin: 0 0 14px; font: 400 48px/1 Georgia, serif; letter-spacing: -.04em; }
.saas-login-card form > p:not(.saas-eyebrow):not(.form-message) { margin: 0 0 36px; color: var(--muted); font-size: 13px; }
.saas-login-card label, .saas-dialog label { display: grid; gap: 7px; margin-bottom: 15px; }
.saas-login-card label span, .saas-dialog label > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.saas-login-card input, .saas-dialog input, .saas-dialog select {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: 0;
    color: var(--ink);
    background: white;
}
.saas-login-card input:focus, .saas-dialog input:focus, .saas-dialog select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210,173,112,.14); }
.saas-login-card button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 54px;
    margin-top: 10px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}
.saas-login-card button span { color: var(--gold); font-size: 18px; }
.form-message { min-height: 20px; color: var(--red); font-size: 11px; }

/* App */

.saas-sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: 248px;
    flex-direction: column;
    padding: 25px 18px;
    color: white;
    background:
        radial-gradient(circle at 35% 16%, rgba(32, 95, 110, .44), transparent 28%),
        var(--night);
}
.saas-logo { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; font: 400 16px Georgia, serif; }
.saas-logo span { width: 40px; height: 40px; flex: 0 0 40px; font: 800 11px Inter, sans-serif; }
.saas-sidebar nav { display: grid; gap: 7px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.saas-sidebar nav a, .saas-sidebar nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    color: rgba(255,255,255,.67);
    background: transparent;
    font-size: 11px;
    font-weight: 750;
    text-align: left;
}
.saas-sidebar nav a.is-active { color: white; background: rgba(255,255,255,.09); }
.saas-sidebar nav a b { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 99px; color: var(--gold); background: rgba(210,173,112,.13); }
.saas-sidebar nav button { justify-content: flex-start; margin-top: 10px; color: var(--gold); border: 1px solid rgba(210,173,112,.28); }
.saas-sidebar-bottom { display: grid; gap: 5px; margin-top: auto; padding: 17px 12px 0; border-top: 1px solid rgba(255,255,255,.09); }
.saas-sidebar-bottom small { color: rgba(255,255,255,.42); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.saas-sidebar-bottom strong { font-size: 11px; }
.saas-sidebar-bottom button { width: fit-content; margin-top: 8px; padding: 0; border: 0; color: rgba(255,255,255,.55); background: transparent; font-size: 10px; }
.saas-main { min-height: 100vh; margin-left: 248px; padding-bottom: 60px; }
.saas-topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    align-items: center;
    height: 74px;
    padding: 0 38px;
    border-bottom: 1px solid var(--line);
    background: rgba(244,241,234,.9);
    backdrop-filter: blur(18px);
}
.saas-topbar p { margin: 0 0 3px; font-size: 11px; font-weight: 800; }
.saas-topbar small { color: var(--muted); font-size: 9px; }
.saas-menu-toggle { display: none; }
.saas-health { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.saas-health i, .tenant-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(45,139,102,.1); }
.saas-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 315px;
    margin: 0 38px;
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--line);
}
.saas-hero h1 { margin: 0 0 17px; font: 400 clamp(48px, 5.3vw, 76px)/.9 Georgia, serif; letter-spacing: -.055em; }
.saas-hero h1 em { color: var(--gold); font-weight: 400; }
.saas-hero > div > p:last-child { max-width: 570px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.saas-primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 210px;
    height: 50px;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    color: white;
    background: var(--navy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}
.saas-primary-button span { color: var(--gold); font-size: 19px; }
.saas-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 26px 38px; }
.saas-stats article { position: relative; overflow: hidden; min-height: 148px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); }
.saas-stats article::after { position: absolute; right: -22px; bottom: -42px; width: 100px; height: 100px; border: 1px solid rgba(210,173,112,.26); border-radius: 50%; content: ""; }
.saas-stats small { display: block; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.saas-stats strong { display: block; margin: 14px 0 5px; font: 400 42px/1 Georgia, serif; }
.saas-stats span { color: var(--muted); font-size: 9px; }
.saas-panel { margin: 0 38px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.saas-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; }
.saas-panel-heading h2 { margin: 0; font: 400 32px/1 Georgia, serif; letter-spacing: -.03em; }
.saas-search { display: flex; align-items: center; width: min(300px, 42vw); height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; }
.saas-search span { color: var(--gold); font-size: 19px; }
.saas-search input { width: 100%; height: 100%; padding: 0 9px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.hotel-list { display: grid; gap: 10px; }
.hotel-row {
    display: grid;
    grid-template-columns: 54px minmax(190px, 1.35fr) minmax(240px, .9fr) minmax(245px, auto);
    align-items: center;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    transition: .2s ease;
}
.hotel-row:hover { border-color: rgba(210,173,112,.52); transform: translateY(-1px); box-shadow: 0 12px 35px rgba(6,25,35,.06); }
.hotel-monogram { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 14px; color: var(--gold); background: var(--night); font: 700 15px Georgia, serif; }
.hotel-identity > div { display: flex; align-items: center; gap: 10px; }
.hotel-identity h3 { margin: 0; font: 600 13px/1.2 Georgia, serif; }
.hotel-identity p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.tenant-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; color: var(--green); background: rgba(45,139,102,.08); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.tenant-status.is-paused { color: var(--red); background: rgba(158,75,71,.08); }
.tenant-status.is-paused i { background: var(--red); box-shadow: 0 0 0 4px rgba(158,75,71,.08); }
.hotel-metrics { display: flex; gap: 16px; }
.hotel-metrics span { display: grid; gap: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.hotel-metrics b { color: var(--ink); font-size: 12px; letter-spacing: 0; }
.hotel-actions { display: flex; justify-content: flex-end; gap: 7px; }
.hotel-actions a, .hotel-actions button { padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 8px; font-weight: 800; white-space: nowrap; }
.hotel-actions a { color: var(--blue); }
.hotel-actions .hotel-toggle { color: var(--red); }
.hotel-actions .hotel-toggle.is-resume { color: var(--green); }
.saas-empty { padding: 60px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.saas-empty h3 { margin: 0 0 8px; font: 400 25px Georgia, serif; }
.saas-empty p { color: var(--muted); font-size: 11px; }

/* Dialog */

.saas-dialog { width: min(880px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: white; box-shadow: 0 30px 100px rgba(6,25,35,.32); }
.saas-dialog::backdrop { background: rgba(4,20,28,.72); backdrop-filter: blur(4px); }
.saas-dialog-close { position: absolute; z-index: 2; top: 17px; right: 19px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 20px; }
.saas-dialog form { padding: 32px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-right: 45px; }
.dialog-heading h2 { margin: 0; font: 400 34px/1 Georgia, serif; }
.active-switch { display: flex !important; align-items: center; grid-auto-flow: column; margin: 0 !important; }
.active-switch input { width: 20px; height: 20px; }
.hotel-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hotel-form-grid section { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fdfcf9; }
.hotel-form-grid section h3 { margin: 0 0 18px; font: 600 16px Georgia, serif; }
.hotel-form-grid .manager-section { grid-column: 1 / -1; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
.saas-dialog label small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.saas-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 19px; }
.saas-dialog footer p { max-width: 450px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.saas-toast {
    position: fixed;
    z-index: 200;
    right: 25px;
    bottom: 25px;
    max-width: 390px;
    padding: 15px 19px;
    border-radius: 13px;
    color: white;
    background: var(--night);
    box-shadow: var(--shadow);
    font-size: 10px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .24s ease;
}
.saas-toast.is-visible { opacity: 1; transform: translateY(0); }
.saas-toast.is-error { background: var(--red); }

@media (max-width: 1180px) {
    .saas-stats { grid-template-columns: repeat(2, 1fr); }
    .hotel-row { grid-template-columns: 54px 1fr auto; }
    .hotel-metrics { display: none; }
}

@media (max-width: 820px) {
    .saas-login-shell { grid-template-columns: 1fr; }
    .saas-login-brand { display: none; }
    .saas-login-card { min-height: 100vh; padding: 28px; }
    .saas-sidebar { transform: translateX(-100%); transition: transform .24s ease; }
    .saas-sidebar.is-open { transform: translateX(0); }
    .saas-main { margin-left: 0; }
    .saas-menu-toggle { display: grid; width: 38px; height: 38px; margin-right: 12px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
    .saas-topbar, .saas-hero, .saas-stats, .saas-panel { margin-right: 18px; margin-left: 18px; }
    .saas-topbar { margin: 0; padding: 0 18px; }
    .saas-hero { align-items: flex-start; flex-direction: column; gap: 25px; }
    .saas-primary-button { width: 100%; }
    .saas-panel { padding: 20px; }
    .hotel-row { grid-template-columns: 54px 1fr; }
    .hotel-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 70px; }
    .hotel-form-grid { grid-template-columns: 1fr; }
    .hotel-form-grid .manager-section { grid-column: auto; }
    .field-row.three { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .saas-stats { grid-template-columns: 1fr; }
    .saas-hero h1 { font-size: 48px; }
    .saas-panel-heading { align-items: stretch; flex-direction: column; gap: 17px; }
    .saas-search { width: 100%; }
    .hotel-row { grid-template-columns: 46px 1fr; }
    .hotel-monogram { width: 46px; height: 46px; }
    .hotel-identity > div { align-items: flex-start; flex-direction: column; gap: 5px; }
    .hotel-actions { display: grid; grid-template-columns: 1fr 1fr; padding-left: 0; }
    .hotel-actions a { grid-column: 1 / -1; text-align: center; }
    .field-row { grid-template-columns: 1fr; }
    .saas-dialog form { padding: 25px 18px; }
    .saas-dialog footer { align-items: stretch; flex-direction: column; }
}
