/* BoardingHub stylesheet */

:root {
    --teal: #0f766e;
    --teal-dark: #0b5a54;
    --teal-soft: #e6f4f2;
    --ink: #1f2a37;
    --muted: #6b7280;
    --line: #e5e7e2;
    --bg: #f3f4f1;
    --card: #ffffff;
    --ok: #15803d;      --ok-bg: #e7f6ec;
    --warn: #b45309;    --warn-bg: #fdf1dc;
    --bad: #b91c1c;     --bad-bg: #fde8e8;
    --info: #1d4ed8;    --info-bg: #e5edff;
    --dark: #1f2a37;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --sidebar: 244px;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { background: #eef0ec; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }
.icon { vertical-align: -3px; flex: none; }
.link { font-size: 13.5px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px; border-radius: 9px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
    line-height: 1.25;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: #d3d6cf; }
.btn-outline:hover { background: #f6f7f4; border-color: #bfc3b9; }
.btn-danger-outline { background: #fff; color: var(--bad); border-color: #f0c4c4; }
.btn-danger-outline:hover { background: var(--bad-bg); }
.btn-google { background: #fff; color: var(--ink); border-color: #d3d6cf; }
.btn-google:hover { background: #f6f7f4; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; line-height: 1.25; }
.btn-block { display: flex; width: 100%; }
.btn:focus-visible, .nav-link:focus-visible, .icon-btn:focus-visible, a:focus-visible {
    outline: 3px solid rgba(15, 118, 110, .35); outline-offset: 2px;
}
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    background: #fff; border: 1px solid #d3d6cf; border-radius: 9px; color: var(--ink); cursor: pointer;
    font-size: 20px; line-height: 1; text-decoration: none;
}
.icon-btn:hover { background: #f6f7f4; text-decoration: none; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-wide { padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field > span { font-weight: 600; }
.field > span em { font-weight: 400; color: var(--muted); font-style: normal; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=month], input[type=search], select, textarea {
    width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid #cfd3ca; border-radius: 9px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .18); }
input[disabled], input[readonly] { background: #f3f4f1; color: #5b6472; }
textarea { resize: vertical; }
.field-error { color: var(--bad); font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--teal); }
.input-group { display: flex; gap: 8px; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.inline-label input { width: auto; }
.copy-field { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

/* ---------- Cards, layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.content > .card, .content > section.card, .content > form.card { margin-bottom: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; }
.toolbar input[type=search], .toolbar input[type=month], .toolbar select { width: auto; min-width: 150px; flex: 0 1 200px; }
.toolbar input[type=search] { flex: 1 1 220px; }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; }
.action-sep { width: 1px; height: 26px; background: var(--line); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-dark { background: var(--dark); color: #fff; }
.badge-muted { background: #eceee9; color: #5b6472; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid #f0f1ed; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbf9; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * { display: inline-block; vertical-align: middle; margin-left: 4px; }
.table .actions form { margin: 0; }
.table-compact td, .table-compact th { padding: 8px 8px; font-size: 13px; }
.table-plain td { border-bottom: 1px solid var(--line); }
.table-plain tbody tr:hover { background: none; }
.cal-dot { color: var(--teal); }
.person { display: flex; align-items: center; gap: 10px; }
.empty { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px 12px; color: var(--muted); }
.empty-big { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat, .stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-sizing: border-box; text-decoration: none; color: inherit; }
.stat-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); display: block; }
.stat-value { font-size: 28px; line-height: 1.25; font-variant-numeric: tabular-nums; display: block; margin: 2px 0; }
.stat-note, .stat-sub { font-size: 13px; color: var(--muted); display: block; }
.stat-alert { border-color: #f0c4c4; background: #fffafa; }
.stat-alert .stat-value { color: var(--bad); }
.meter { height: 8px; background: #eceee9; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter > span { display: block; height: 100%; background: var(--dark); border-radius: 99px; }
.meter-teal > span { background: var(--teal); }
.meter-sm { height: 6px; margin-top: 6px; }
.meter-sm > span { background: var(--teal); }

/* ---------- Bar chart ---------- */
.legend { display: inline-flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.dot-billed { background: #b8d8d4; }
.dot-collected { background: var(--teal); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; min-width: 0; position: relative; cursor: pointer; }
.bar-pair { flex: 1; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line); transition: border-color .15s ease; }
.bar { width: 40%; max-width: 30px; min-height: 2px; border-radius: 5px 5px 0 0; transition: transform .15s ease, filter .15s ease; }
.bar-billed { background: #b8d8d4; }
.bar-collected { background: var(--teal); }
.bar-col small { color: var(--muted); font-size: 12px; font-weight: 500; }
.bar-col:hover small { color: var(--teal); font-weight: 700; }

.bar-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #f8fafc;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.45;
    white-space: nowrap;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 100;
    text-align: left;
}
.bar-tooltip strong.tip-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 3px;
}
.bar-tooltip .tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.bar-tooltip .tip-row strong {
    color: #fff;
    margin-left: auto;
}
.bar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}
.bar-col:first-child .bar-tooltip {
    left: 0;
    transform: translateY(4px);
}
.bar-col:first-child .bar-tooltip::after {
    left: 20px;
    transform: none;
}
.bar-col:last-child .bar-tooltip {
    left: auto;
    right: 0;
    transform: translateY(4px);
}
.bar-col:last-child .bar-tooltip::after {
    left: auto;
    right: 20px;
    transform: none;
}
.bar-col:hover .bar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.bar-col:first-child:hover .bar-tooltip {
    transform: translateY(0);
}
.bar-col:last-child:hover .bar-tooltip {
    transform: translateY(0);
}
.bar-col:hover .bar-pair {
    border-bottom-color: var(--teal);
}
.bar-col:hover .bar {
    transform: scaleY(1.02);
}

/* ---------- Weather ---------- */
.wx-now { display: flex; align-items: center; gap: 12px; }
.wx-now strong { display: block; font-size: 30px; line-height: 1.1; }
.wx-now span { color: var(--muted); font-size: 14px; }
.wx-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.wx-stats strong { color: var(--ink); }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; margin-bottom: 14px; }
.wx-days div { display: flex; flex-direction: column; align-items: center; background: #f7f8f5; border-radius: 10px; padding: 6px 2px; }
.wx-days small { color: var(--muted); font-size: 11.5px; }
.advice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }
.advice p { margin: 2px 0 0; }
.advice-ok { background: var(--ok-bg); color: #14532d; }
.advice-warn { background: var(--warn-bg); color: #78350f; }

/* ---------- Definition lists, small bits ---------- */
.def { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.def dt { color: var(--muted); }
.def dd { margin: 0; font-weight: 600; text-align: right; }
.def-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.def-grid > div { display: flex; flex-direction: column; gap: 2px; }
.def-grid dd { text-align: left; }
.plain-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plain-list li > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mini-stats > div { background: #f7f8f5; border-radius: 10px; padding: 10px; text-align: center; }
.mini-stats strong { display: block; font-size: 20px; }
.mini-stats small { color: var(--muted); }
.prop-card { display: flex; flex-direction: column; }
.prop-card header p { margin-top: 4px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions form { margin: 0; }
.room-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.room-no { background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: 22px; min-width: 76px; height: 76px; border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.int-card p { margin-bottom: 8px; }
.map { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); z-index: 0; background: #e9ecE6; }
.map-wrap small { display: block; margin-top: 6px; }

/* ---------- Flash messages ---------- */
.flashes { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; width: 100%; }
.flash { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; width: fit-content; max-width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); box-sizing: border-box; }
.flashes .flash { margin-bottom: 0; }
.flash-success { background: var(--ok-bg); color: #14532d; border-color: #bfe5cb; }
.flash-error { background: var(--bad-bg); color: #7f1d1d; border-color: #f4c2c2; }
.flash-warning { background: var(--warn-bg); color: #78350f; border-color: #f3d9a6; }
.flash-info { background: var(--info-bg); color: #1e3a8a; border-color: #c4d4fb; }
.flash-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; padding: 0 2px; }
.flash-close:hover { opacity: 1; }

/* ---------- App shell ---------- */
.app .shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: none; background: #12332f; color: #d7e7e4; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; padding: 4px 8px 18px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 800; }
.brand-light { color: #fff; }
.brand-dark { color: var(--ink); padding: 0; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #cfe1dd; font-weight: 600; font-size: 14.5px; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit; text-decoration: none; }
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav-link.is-active { background: var(--teal); color: #fff; }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.sidebar-foot form { margin: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-meta strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: #9bb9b4; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #2f5b55; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.avatar-sm { width: 32px; height: 32px; background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px; background: var(--bg); position: sticky; top: 0; z-index: 20; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 24px; }
.topbar-title p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topbar-actions form { margin: 0; }
.menu-btn { display: none; }
.content { padding: 4px 28px 28px; flex: 1; }
.foot { padding: 16px 28px; color: var(--muted); font-size: 13px; }
.sidebar-scrim { display: none; }

/* ---------- Guest pages ---------- */
.guest { background: #fff; }
.guest-wrap { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(360px, 6fr); min-height: 100vh; }
.guest-side { background: linear-gradient(160deg, #0f766e 0%, #12332f 100%); color: #fff; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; }
.guest-pitch { max-width: 420px; padding-bottom: 40px; }
.guest-pitch h2 { font-size: 30px; line-height: 1.2; margin-bottom: 14px; }
.guest-pitch p { color: #cfe8e4; font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: #e3f2ef; }
.guest-card { align-self: flex-start; justify-self: center; width: 100%; max-width: 480px; padding: 48px 24px 60px; margin-top: clamp(20px, 6vh, 60px); }
.guest-card h1 { font-size: 28px; margin-bottom: 6px; }
.guest-card > .muted { margin-bottom: 22px; }
.guest-foot { text-align: center; margin-top: 22px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Public landing page ---------- */
.public { background: #fff; }
.public-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 6vw; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); z-index: 30; }
.public-nav nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14.5px; }
.public-nav nav a:not(.btn) { color: var(--ink); }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; padding: 64px 6vw 48px; background: linear-gradient(180deg, var(--teal-soft), #fff); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #cfe5e1; color: var(--teal-dark); padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 16px 0 14px; max-width: 14ch; }
.hero-copy p { font-size: 18px; color: #4b5563; max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-weather { max-width: 280px; justify-self: end; }
.section { padding: 48px 6vw; }
.section-alt { background: var(--bg); }
.section h2 { font-size: 26px; margin-bottom: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head .inline-form select, .section-head .inline-form input { width: auto; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.room-list { display: flex; flex-direction: column; gap: 12px; }
.room-card { display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.room-card h3 { margin-bottom: 4px; }
.room-card .tags { margin: 8px 0 0; }
.room-price { text-align: right; flex: none; }
.room-price strong { display: block; font-size: 22px; color: var(--teal-dark); }
.room-price small { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #f1f3ee; border-radius: 6px; padding: 2px 9px; font-size: 12.5px; color: #4b5563; }
.step { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.step-no { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 6px 0 0; }
.public-foot { text-align: center; padding: 28px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }

/* ---------- Receipt ---------- */
.receipt-page { background: #e9ebe6; padding: 24px 12px; }
.receipt-actions { max-width: 720px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 10px; }
.receipt { max-width: 720px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 14px; box-shadow: var(--shadow); }
.receipt-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 20px; }
.receipt-no { text-align: right; display: flex; flex-direction: column; }
.receipt-no small { letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.receipt-no strong { font-size: 18px; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0 0 20px; }
.receipt-grid dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.receipt-grid dd { margin: 2px 0 0; font-weight: 600; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; background: var(--teal-soft); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.receipt-total strong { font-size: 28px; color: var(--teal-dark); }
.receipt-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 28px; padding-top: 14px; border-top: 1px dashed #c9cdc4; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main, .split, .hero { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-weather { justify-self: start; }
}
@media (max-width: 860px) {
    .menu-btn { display: inline-flex; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; }
    .nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    .nav-open .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 20, .45); z-index: 50; }
    .topbar { padding: 14px 16px; }
    .topbar-title h1 { font-size: 20px; }
    .content { padding: 4px 16px 24px; }
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .guest-wrap { grid-template-columns: 1fr; }
    .guest-side { padding: 22px 24px; }
    .guest-pitch { display: none; }
    .guest-card { padding: 28px 20px 40px; }
}
@media (max-width: 600px) {
    .stats, .stats-3, .grid-4, .form-row, .form-row-3, .form-row-4, .def-grid, .receipt-grid { grid-template-columns: minmax(0, 1fr); }
    .public-nav nav a:not(.btn) { display: none; }
    .hero { padding: 40px 20px 32px; }
    .section { padding: 36px 20px; }
    .room-card { flex-direction: column; }
    .room-price { text-align: left; }
    .receipt { padding: 22px; }
    .receipt-head, .receipt-foot { flex-direction: column; }
    .receipt-no { text-align: left; }
    .action-sep { display: none; }
    .toolbar input[type=search], .toolbar input[type=month], .toolbar select { flex: 1 1 100%; }
    .bars { gap: 6px; }
}

/* ---------- Print (receipts) ---------- */
@media print {
    .no-print, .sidebar, .topbar, .foot { display: none !important; }
    .receipt-page { background: #fff; padding: 0; }
    .receipt { box-shadow: none; max-width: none; padding: 0; }
}

/* ---------- Role selector (Tenants vs Landlord split) ---------- */
.role-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 12px 0 20px;
}
.role-choice-card {
    position: relative;
    border-radius: 12px;
    padding: 18px 16px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    transition: all .18s ease-in-out;
}
.role-choice-card h3 {
    font-size: 17px;
    margin: 0 0 6px;
    color: var(--ink);
    transition: color .18s ease-in-out;
}
.role-choice-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.45;
}
.role-choice-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* UNSELECTED STATE */
.role-choice-card:not(.is-selected) {
    background: #fbfcfd;
    border-color: #e2e8f0;
    opacity: 0.72;
}
.role-choice-card:not(.is-selected):hover {
    opacity: 1;
    border-color: #cbd5e1;
}

/* SELECTED STATE */
.role-choice-card.is-selected {
    opacity: 1;
    background: #f0fdfa;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .22), 0 4px 12px rgba(15, 118, 110, .08);
}
.role-choice-card.is-selected h3 {
    color: #0f766e;
}

.role-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 10px;
    align-self: flex-start;
    transition: all .18s ease-in-out;
}
.role-choice-tenant .role-tag {
    background: #e0f2fe;
    color: #0369a1;
}
.role-choice-tenant.is-selected .role-tag {
    background: #ccfbf1;
    color: #0f766e;
}
.role-choice-landlord .role-tag {
    background: #fef3c7;
    color: #92400e;
}
.role-choice-landlord.is-selected .role-tag {
    background: #fef3c7;
    color: #92400e;
}
@media (max-width: 600px) {
    .role-split-grid { grid-template-columns: 1fr; }
}

/* ---------- Confirmation Modal Dialog ---------- */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.confirm-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.confirm-modal-card {
    position: relative;
    background: #ffffff;
    max-width: 480px;
    width: 100%;
    border-radius: 16px;
    padding: 28px 24px 22px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    transform: scale(0.94) translateY(8px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.confirm-modal-overlay.is-open .confirm-modal-card {
    transform: scale(1) translateY(0);
}
.confirm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.confirm-modal-close:hover {
    color: var(--ink);
    background: #f1f5f9;
}
.confirm-modal-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.confirm-modal-body {
    flex: 1;
    min-width: 0;
}
.confirm-modal-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.confirm-modal-icon.is-danger {
    background: #fef2f2;
    color: var(--bad);
}
.confirm-modal-icon.is-primary {
    background: #ecfdf5;
    color: var(--teal);
}
.confirm-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.3;
}
.confirm-modal-msg {
    font-size: 14.5px;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}
.confirm-modal-detail {
    font-size: 13px;
    color: #64748b;
    margin: 10px 0 0;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
}
.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
.btn-danger {
    background: var(--bad);
    color: #ffffff;
    border: 1px solid var(--bad);
}
.btn-danger:hover {
    background: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}
