/* KyroBook — Light (guest) + Midnight Gold admin */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7F8;
    --bg-tertiary: #EFEFEF;
    --bg-card: #FFFFFF;
    --gold: #6B21D4;
    --gold-light: #7C3AED;
    --gold-muted: rgba(107,33,212,0.10);
    --gold-border: rgba(107,33,212,0.20);
    --text-primary: #0F1523;
    --text-secondary: #4A4540;
    --text-muted: #8B8580;
    --border: rgba(15,21,35,0.10);
    --success: #16a34a;
    --error: #dc2626;
    --radius: 2px;
    --nav-height: 72px;
    --max-w: 1280px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 300;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.kb-container { width: min(100% - 32px, var(--max-w)); margin: 0 auto; }

.kb-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.kb-header-inner {
    min-height: var(--nav-height);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.kb-brand { display: flex; align-items: center; gap: 10px; }
.kb-brand-logo { width: 48px; height: 40px; object-fit: contain; object-position: left center; }
.kb-brand-text { font-family: 'Cormorant Garamond', serif; font-size: 20px; }
.kb-brand-text em { font-style: normal; font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted); display: block; letter-spacing: 0.08em; text-transform: uppercase; }

.kb-nav-toggle, .kb-admin-nav-toggle {
    display: none; background: none; border: 1px solid var(--border);
    color: var(--text-primary); border-radius: var(--radius); padding: 8px 10px;
}
.kb-nav-toggle span {
    display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px 0;
}
.kb-nav { display: flex; align-items: center; gap: 20px; }
.kb-nav a { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.kb-nav a:hover, .kb-nav a.active { color: var(--gold); }
.kb-nav-ghost { opacity: 0.85; }

.kb-btn, .kb-btn-sm {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 12px 18px; border-radius: var(--radius);
    border: 1px solid var(--gold-border); background: var(--gold); color: #FFFFFF;
    cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.kb-btn-sm { padding: 8px 14px; font-size: 11px; }
.kb-btn:hover, .kb-btn-sm:hover { background: var(--gold-light); transform: translateY(-1px); }
.kb-btn-outline {
    background: transparent; color: var(--text-primary); border: 1px solid var(--gold-border);
}
.kb-btn-outline:hover { background: var(--gold-muted); color: var(--text-primary); }

.kb-main { min-height: calc(100vh - 160px); padding-bottom: 48px; }
.kb-hero {
    padding: 56px 0 32px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-primary));
    border-bottom: 1px solid var(--border);
}
.kb-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05; margin-bottom: 12px;
}
.kb-hero p { color: var(--text-secondary); max-width: 560px; font-size: 16px; }
.kb-eyebrow {
    font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}

.kb-search-card {
    margin-top: 24px; padding: 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.kb-search-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.kb-field label {
    display: block; font-family: 'DM Sans', sans-serif; font-size: 11px;
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 6px;
}
.kb-field input, .kb-field select, .kb-field textarea {
    width: 100%; padding: 11px 12px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
}
.kb-field input:focus, .kb-field select:focus, .kb-field textarea:focus {
    outline: none; border-color: var(--gold-border); box-shadow: 0 0 0 3px var(--gold-muted);
}

.kb-section { padding: 40px 0; }
.kb-section h2 {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 8px;
}
.kb-section-intro { color: var(--text-secondary); margin-bottom: 24px; max-width: 560px; }

.kb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px;
}
.kb-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(15,21,35,0.04);
}
.kb-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,21,35,0.08); }
.kb-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tertiary); }
.kb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.kb-card-body { padding: 16px; }
.kb-card-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin-bottom: 6px; }
.kb-card-meta { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.kb-price { font-family: 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }

.kb-flash {
    padding: 12px 14px; border-radius: var(--radius); margin: 16px 0;
    font-family: 'DM Sans', sans-serif; font-size: 14px;
}
.kb-flash-success { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.25); color: #166534; }
.kb-flash-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.22); color: #991b1b; }

.kb-footer {
    border-top: 1px solid var(--border); padding: 24px 0;
    color: var(--text-muted); font-size: 13px;
}
.kb-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.kb-footer a { color: var(--gold); }

/* Admin — Midnight Gold dark */
.kb-admin-body {
    --bg-primary: #080D17;
    --bg-secondary: #0F1827;
    --bg-tertiary: #17233A;
    --bg-card: #111C2E;
    --gold: #C4A35A;
    --gold-light: #D4B76A;
    --gold-muted: rgba(196,163,90,0.18);
    --gold-border: rgba(196,163,90,0.22);
    --text-primary: #F5F2EC;
    --text-secondary: #B8B3A7;
    --text-muted: #6B6560;
    --border: rgba(245,242,236,0.09);
    background: var(--bg-primary);
    color: var(--text-primary);
}
.kb-admin-body .kb-btn-outline:hover { color: var(--gold); }
.kb-admin-body .kb-flash-success { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: #bbf7d0; }
.kb-admin-body .kb-flash-error { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #fecaca; }
.kb-admin-body .kb-field input,
.kb-admin-body .kb-field select,
.kb-admin-body .kb-field textarea { background: var(--bg-secondary); }

.kb-admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.kb-admin-sidebar {
    background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 24px 16px;
}
.kb-admin-brand {
    font-family: 'Cormorant Garamond', serif; font-size: 24px; margin-bottom: 24px;
}
.kb-admin-brand span { color: var(--gold); font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; display: block; }
.kb-admin-nav { display: flex; flex-direction: column; gap: 6px; }
.kb-admin-nav a {
    padding: 10px 12px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif;
    font-size: 13px; color: var(--text-secondary);
}
.kb-admin-nav a:hover, .kb-admin-nav a.active { background: var(--gold-muted); color: var(--gold); }
.kb-admin-main { padding: 24px; }
.kb-admin-nav-toggle { margin: 12px; }

.kb-auth-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: radial-gradient(circle at top, rgba(196,163,90,0.08), transparent 40%), var(--bg-primary);
}
.kb-auth-card {
    width: min(100%, 420px); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.kb-auth-card h1 { font-family: 'Cormorant Garamond', serif; font-size: 32px; margin-bottom: 8px; }
.kb-auth-card p { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }

.kb-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px;
}
.kb-stat {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.kb-stat strong { display: block; font-family: 'DM Sans', sans-serif; font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }
.kb-stat span { font-size: 12px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }

.kb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kb-table { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; font-size: 13px; }
.kb-table th, .kb-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.kb-table th { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

.kb-badge {
    display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 10px;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.kb-badge-confirmed { background: rgba(34,197,94,0.12); color: #166534; }
.kb-badge-pending { background: var(--gold-muted); color: #8B6914; }
.kb-badge-cancelled { background: rgba(239,68,68,0.10); color: #991b1b; }
.kb-badge-pending_payment, .kb-badge-expired { background: var(--gold-muted); color: #8B6914; }
.kb-badge-completed { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.kb-admin-body .kb-badge-confirmed { color: #86efac; }
.kb-admin-body .kb-badge-cancelled { color: #fca5a5; }
.kb-admin-body .kb-badge-completed { color: #93c5fd; }

.kb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kb-apartment-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start;
}
.kb-apartment-gallery { grid-column: 1 / -1; }
.kb-gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-tertiary); aspect-ratio: 16/10; max-width: 820px; margin: 0 auto; }
.kb-gallery-main img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.kb-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.kb-gallery-thumb {
    flex: 0 0 72px; height: 54px; padding: 0; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer;
}
.kb-gallery-thumb.active { border-color: var(--gold); }
.kb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kb-amenities {
    display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px;
}
.kb-amenities li {
    font-family: 'DM Sans', sans-serif; font-size: 12px; padding: 6px 10px;
    border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary);
}
.kb-booking-panel, .kb-checkout-layout aside {
    position: sticky; top: calc(var(--nav-height) + 16px);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.kb-quote-lines { display: flex; flex-direction: column; gap: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.kb-quote-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-secondary); }
.kb-quote-total { padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-primary); font-weight: 600; }
.kb-quote-total span:last-child { color: var(--gold); }
.kb-card-unavailable { opacity: 0.65; }
.kb-card-unavailable:hover { transform: none; }
.kb-unavailable-label { color: var(--text-muted); font-size: 13px; }
.kb-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.kb-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kb-photo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kb-photo-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.kb-photo-actions { padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kb-admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kb-list { list-style: none; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.kb-list li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.kb-link-btn { background: none; border: none; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }
.kb-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.kb-confirm-card { max-width: 560px; }

/* ── Premium booking UX ── */
.kb-hero-premium {
    position: relative; min-height: min(88vh, 720px);
    display: flex; align-items: center; padding: 48px 0 64px;
    background: var(--bg-secondary) center/cover no-repeat;
    background-image: var(--hero-image, none);
}
.kb-hero-premium-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 45%, rgba(250,248,243,0.55) 100%);
}
.kb-hero-premium-inner { position: relative; z-index: 1; max-width: 640px; }
.kb-hero-premium h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 7vw, 72px); line-height: 1.02; margin-bottom: 16px; color: var(--text-primary);
}
.kb-hero-premium h1 em { font-style: italic; color: var(--gold); }
.kb-hero-lead { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin-bottom: 28px; }
.kb-eyebrow-light { color: var(--gold); }
.kb-hero-search {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
    padding: 20px; box-shadow: 0 16px 48px rgba(15,21,35,0.10);
}

.kb-book-widget { position: relative; }
.kb-book-widget-fields {
    display: grid; grid-template-columns: 1.4fr 0.8fr auto; gap: 12px; align-items: end;
}
.kb-book-field label {
    display: block; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.kb-book-field select, .kb-date-trigger {
    width: 100%; padding: 13px 14px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-primary);
    text-align: left; cursor: pointer;
}
.kb-date-trigger-label { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; }
.kb-btn-search { padding: 13px 24px; white-space: nowrap; border-radius: var(--radius); }

.kb-datepicker-popover {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 80;
    width: min(100%, 340px); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; padding: 16px; box-shadow: 0 20px 50px rgba(15,21,35,0.15);
}
.kb-datepicker-popover[hidden] { display: none !important; }
.kb-datepicker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kb-cal-title { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; }
.kb-cal-nav {
    width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-primary); cursor: pointer; color: var(--text-primary);
}
.kb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.kb-cal-dow { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.kb-cal-day {
    aspect-ratio: 1; border: none; border-radius: var(--radius); background: transparent;
    font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; color: var(--text-primary);
}
.kb-cal-day:hover:not(:disabled) { background: var(--gold-muted); }
.kb-cal-day:disabled { color: var(--text-muted); opacity: 0.35; cursor: not-allowed; }
.kb-cal-day.kb-cal-unavail { text-decoration: line-through; opacity: 0.3; }
.kb-cal-day.kb-cal-start, .kb-cal-day.kb-cal-end { background: var(--gold); color: #fff; font-weight: 600; }
.kb-cal-day.kb-cal-inrange { background: var(--gold-muted); }
.kb-cal-day.kb-cal-past { opacity: 0.25; }
.kb-datepicker-hint { font-size: 12px; color: var(--text-muted); margin: 10px 0 8px; }
.kb-datepicker-actions { display: flex; gap: 8px; justify-content: flex-end; }

.kb-steps { padding: 40px 0; background: var(--bg-card); border-block: 1px solid var(--border); }
.kb-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kb-step { text-align: center; padding: 8px 12px; }
.kb-step-num {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold-muted); color: var(--gold); font-family: 'DM Sans', sans-serif;
    font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.kb-step h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin-bottom: 6px; }
.kb-step p { font-size: 14px; color: var(--text-secondary); }

.kb-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.kb-card-premium .kb-card-img { position: relative; aspect-ratio: 5/4; }
.kb-card-tag {
    position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: var(--radius);
    background: rgba(255,255,255,0.92); font-family: 'DM Sans', sans-serif; font-size: 10px;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.kb-card-desc { font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
.kb-price span { font-size: 18px; }

.kb-cta-band {
    padding: 56px 0; background: linear-gradient(135deg, #0F1523 0%, #1a2744 100%);
    color: #F5F2EC; text-align: center;
}
.kb-cta-band h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.kb-cta-band p { color: rgba(245,242,236,0.75); margin-bottom: 24px; }
.kb-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.kb-btn-on-dark { color: #F5F2EC !important; border-color: rgba(245,242,236,0.35) !important; }
.kb-btn-on-dark:hover { background: rgba(255,255,255,0.1) !important; }

.kb-nav-signup { color: var(--gold) !important; font-weight: 600 !important; }

.kb-auth-section { padding: 48px 0 64px; }
.kb-auth-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    max-width: 960px; margin: 0 auto; width: min(100% - 32px, 960px);
}
.kb-auth-visual h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin-bottom: 12px; }
.kb-auth-visual p { color: var(--text-secondary); max-width: 400px; }
.kb-auth-perks { list-style: none; margin-top: 24px; }
.kb-auth-perks li {
    padding: 10px 0 10px 28px; position: relative; font-family: 'DM Sans', sans-serif; font-size: 14px;
}
.kb-auth-perks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.kb-auth-card-lg { width: 100%; max-width: 420px; margin: 0 auto; box-shadow: 0 12px 40px rgba(15,21,35,0.08); }
.kb-auth-card-lg h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin-bottom: 4px; }
.kb-auth-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.kb-auth-card-lg .kb-field { margin-bottom: 14px; }
.kb-auth-switch { margin-top: 20px; font-size: 14px; color: var(--text-secondary); text-align: center; }
.kb-auth-switch a { color: var(--gold); font-weight: 600; }

.kb-account-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kb-booking-list { display: flex; flex-direction: column; gap: 12px; }
.kb-booking-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
    padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; box-shadow: 0 1px 3px rgba(15,21,35,0.04);
}
.kb-booking-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kb-booking-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kb-empty-state { text-align: center; padding: 48px 24px; background: var(--bg-card); border-radius: 6px; border: 1px solid var(--border); }
.kb-empty-state p { color: var(--text-secondary); margin-bottom: 16px; }

.kb-booking-panel-premium { box-shadow: 0 8px 32px rgba(15,21,35,0.08); border-radius: 6px; }
.kb-panel-eyebrow { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.kb-panel-rate { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.kb-panel-rate strong { color: var(--text-primary); font-size: 20px; }
.kb-btn-reserve { font-size: 13px; padding: 14px; }
.kb-checkout-signup { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.kb-checkout-signup a { color: var(--gold); font-weight: 600; }
.kb-book-widget-compact .kb-book-widget-fields { grid-template-columns: 1fr; }
.kb-book-widget-compact .kb-datepicker-popover { width: 100%; }

@media (max-width: 900px) {
    .kb-book-widget-fields { grid-template-columns: 1fr; }
    .kb-steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .kb-auth-split { grid-template-columns: 1fr; }
    .kb-booking-row { grid-template-columns: 1fr; }
    .kb-booking-row-meta, .kb-booking-row-actions { align-items: flex-start; }
    .kb-hero-premium { min-height: auto; padding: 40px 0 48px; }
    .kb-search-grid { grid-template-columns: 1fr 1fr; }
    .kb-apartment-layout, .kb-checkout-layout { grid-template-columns: 1fr; }
    .kb-booking-panel { position: static; }
    .kb-admin-shell { grid-template-columns: 1fr; }
    .kb-admin-sidebar {
        display: none; position: fixed; inset: 64px 0 auto 0; z-index: 60;
        border-right: none; border-bottom: 1px solid var(--border);
    }
    .kb-admin-sidebar.open { display: block; }
    .kb-admin-nav-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
    .kb-container { width: min(100% - 24px, var(--max-w)); }
    .kb-nav-toggle { display: flex; flex-direction: column; }
    .kb-nav {
        display: none; position: fixed; inset: var(--nav-height) 0 0 0;
        background: rgba(255,255,255,0.98); flex-direction: column; align-items: stretch;
        padding: 24px; gap: 12px; z-index: 40;
        border-top: 1px solid var(--border);
    }
    .kb-nav.open { display: flex; }
    .kb-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
    .kb-search-grid { grid-template-columns: 1fr; }
    .kb-hero { padding: 40px 0 24px; }
    .kb-admin-main { padding: 16px; }
    .kb-admin-two-col, .kb-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .kb-btn, .kb-btn-outline { width: 100%; }
}

/* ── Auth pages (Roamwise / Expedia-style) ── */
.kb-auth-roam {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.kb-auth-header {
    height: var(--nav-height); display: flex; align-items: center; justify-content: space-between;
    padding: 0 34px; border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.96); position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(12px);
}
.kb-auth-header-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Cormorant Garamond', serif; font-weight: 600;
    font-size: 1.2rem; color: var(--text-primary); letter-spacing: -0.02em;
}
.kb-auth-header-logo { width: 48px; height: 40px; object-fit: contain; object-position: left center; }
.kb-auth-header-nav { display: flex; align-items: center; gap: 18px; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; }
.kb-auth-header-nav a { color: var(--text-secondary); font-weight: 600; }
.kb-auth-header-nav a:hover { color: var(--text-primary); }
.kb-auth-header-cta { color: var(--gold) !important; font-weight: 700 !important; }

.kb-auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(430px, 0.9fr);
}

.kb-auth-story {
    position: relative; min-height: calc(100vh - var(--nav-height));
    display: flex; align-items: flex-end; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(9,20,39,0.02), rgba(9,20,39,0.72)),
        var(--story-image) center/cover no-repeat;
}
.kb-auth-story-copy {
    position: relative; z-index: 2; width: min(720px, 88%);
    margin: 0 0 54px 54px; color: #fff;
}
.kb-auth-story-kicker {
    margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.12em;
    font-family: 'DM Sans', sans-serif; font-size: 0.76rem; font-weight: 800;
    color: #C4B5FD;
}
.kb-auth-story-copy h1 {
    margin: 0; max-width: 650px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5.5vw, 5.2rem); line-height: 0.96; letter-spacing: -0.04em; font-weight: 500;
}
.kb-auth-story-copy > p {
    max-width: 560px; margin: 20px 0 0; font-size: 1.02rem; line-height: 1.65;
    color: rgba(255,255,255,0.84); font-family: 'Instrument Sans', sans-serif; font-weight: 300;
}
.kb-auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.kb-auth-benefit {
    padding: 8px 11px; border-radius: 999px;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 700;
}

.kb-auth-panel {
    min-height: calc(100vh - var(--nav-height)); display: grid; place-items: center;
    padding: 42px 34px; background: var(--bg-primary);
}
.kb-auth-panel-inner { width: min(100%, 500px); }

.kb-auth-intro { margin-bottom: 26px; }
.kb-auth-intro-eyebrow {
    margin: 0 0 10px; color: var(--gold);
    font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.kb-auth-intro h2 {
    margin: 0; font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.8vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.05;
}
.kb-auth-intro p {
    margin: 12px 0 0; color: var(--text-secondary); line-height: 1.58;
    font-family: 'Instrument Sans', sans-serif; font-size: 15px;
}

.kb-auth-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.kb-auth-field { margin-bottom: 15px; }
.kb-auth-field-full { grid-column: 1 / -1; }
.kb-auth-field label {
    display: block; margin-bottom: 7px;
    font-family: 'DM Sans', sans-serif; font-size: 0.86rem; font-weight: 700;
}
.kb-auth-optional { font-weight: 500; color: var(--text-muted); font-size: 0.8rem; }
.kb-auth-input-wrap { position: relative; }
.kb-auth-field input,
.kb-auth-field select {
    width: 100%; min-height: 48px; padding: 0 13px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text-primary); font-family: 'Instrument Sans', sans-serif;
    outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kb-auth-input-wrap input { padding-right: 64px; }
.kb-auth-field input:focus,
.kb-auth-field select:focus {
    border-color: var(--gold-border);
    box-shadow: 0 0 0 3px var(--gold-muted);
}
.kb-auth-pw-toggle {
    position: absolute; top: 50%; right: 9px; transform: translateY(-50%);
    border: 0; background: none; color: var(--gold);
    font-family: 'DM Sans', sans-serif; font-weight: 700; cursor: pointer; padding: 6px; font-size: 0.85rem;
}
.kb-auth-hint {
    margin: 6px 0 0; font-family: 'DM Sans', sans-serif; font-size: 0.76rem; color: var(--text-muted);
}
.kb-auth-meter {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px;
}
.kb-auth-meter span { height: 4px; border-radius: 999px; background: #e3e8ef; }
.kb-auth-meter[data-score="1"] span:nth-child(-n+1),
.kb-auth-meter[data-score="2"] span:nth-child(-n+2),
.kb-auth-meter[data-score="3"] span:nth-child(-n+3),
.kb-auth-meter[data-score="4"] span:nth-child(-n+4) { background: var(--gold); }

.kb-auth-terms {
    display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px;
    font-family: 'DM Sans', sans-serif; font-size: 0.83rem; line-height: 1.45; color: var(--text-secondary);
}
.kb-auth-terms input { width: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.kb-auth-terms a { color: var(--gold); font-weight: 700; text-decoration: none; }

.kb-auth-submit {
    width: 100%; min-height: 50px; border: 0; border-radius: var(--radius);
    background: var(--gold); color: #FFFFFF;
    font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 0.92rem;
    letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.kb-auth-submit:hover { background: var(--gold-light); transform: translateY(-1px); }

.kb-auth-form-note {
    margin: 10px 0 0; text-align: center; color: var(--text-muted);
    font-family: 'DM Sans', sans-serif; font-size: 0.76rem; line-height: 1.45;
}
.kb-auth-member-note {
    margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border);
    font-family: 'DM Sans', sans-serif; font-size: 0.84rem; line-height: 1.55; color: var(--text-secondary);
}
.kb-auth-member-note strong { color: var(--text-primary); }
.kb-auth-member-note a { color: var(--gold); font-weight: 700; text-decoration: none; }

@media (max-width: 980px) {
    .kb-auth-page { grid-template-columns: 1fr; }
    .kb-auth-story { min-height: 420px; }
    .kb-auth-story-copy { margin: 0 24px 32px; width: auto; }
    .kb-auth-panel { min-height: auto; }
}
@media (max-width: 620px) {
    .kb-auth-header { padding: 0 18px; }
    .kb-auth-header-nav a:first-child { display: none; }
    .kb-auth-story { min-height: 360px; }
    .kb-auth-story-copy h1 { font-size: 2.7rem; }
    .kb-auth-panel { padding: 30px 18px 40px; }
    .kb-auth-form-grid { grid-template-columns: 1fr; }
    .kb-auth-field-full { grid-column: auto; }
}
