:root {
    --app-sidebar: #08111f;
    --app-sidebar-active: #132b52;
    --app-accent: #1e4b8f;
    --app-border: #dde4ec;
    --app-canvas: #f5f7fa;
}

[data-bs-theme="dark"] {
    --app-border: #2b3748;
    --app-canvas: #101722;
}

body { background: var(--app-canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.btn-primary { --bs-btn-bg: #173b73; --bs-btn-border-color: #173b73; --bs-btn-hover-bg: #102f60; --bs-btn-hover-border-color: #102f60; --bs-btn-active-bg: #0c284f; --bs-btn-active-border-color: #0c284f; --bs-btn-disabled-bg: #173b73; --bs-btn-disabled-border-color: #173b73; }
.bg-primary { background-color: #173b73 !important; }.text-primary { color: #173b73 !important; }.form-check-input:checked { background-color: #173b73; border-color: #173b73; }
.min-w-0 { min-width: 0; }
.app-shell { min-height: 100vh; }
.sidebar,
.sidebar.offcanvas-lg { --bs-offcanvas-width: 240px; --bs-offcanvas-bg: #081a33; --bs-offcanvas-color: #dce7f5; width: 240px; color: #dce7f5 !important; color-scheme: dark; background-color: #081a33 !important; background-image: none !important; border: 0; }
.sidebar .sidebar-brand { display: flex !important; background-color: #081a33 !important; }
.sidebar .sidebar-nav, .sidebar .sidebar-footer { color: #dce7f5; }
.sidebar-brand { min-height: 64px; padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-link { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark, .avatar { display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--app-accent); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: .75rem; }
.brand-link strong, .brand-link small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-link strong { font-size: .9rem; }.brand-link small { color: #8290a3; font-size: .68rem; margin-top: .1rem; }
.sidebar-label { padding: 1.6rem 1rem .55rem; color: #71819a; font-size: .65rem; letter-spacing: .13em; }
.sidebar-nav { padding: 0 .5rem; }
.sidebar-link { display: flex; align-items: center; gap: .7rem; padding: .68rem .75rem; margin-bottom: .15rem; border-radius: .35rem; color: #bed0e7; font-size: .83rem; text-decoration: none; transition: background .15s, color .15s; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #fff; background: var(--app-sidebar-active); box-shadow: inset 3px 0 0 var(--app-accent); }
.sidebar-icon { width: 1.15rem; text-align: center; color: #9cc7f8; }
.sidebar-footer { position: absolute; inset: auto .9rem 1rem; }
.app-content { min-width: 0; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1.25rem; background: var(--bs-body-bg); border-bottom: 1px solid var(--app-border); }
.topbar-title { margin: 0; font-size: 1rem; font-weight: 650; }.topbar-subtitle { color: var(--bs-secondary-color); font-size: .72rem; }
.profile-button { display: flex; align-items: center; gap: .65rem; border: 0; color: var(--bs-body-color); background: transparent; padding: .2rem .35rem; }
.profile-button::after { margin-left: .25rem; }.profile-button strong, .profile-button small { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-button strong { font-size: .8rem; }.profile-button small { color: var(--bs-secondary-color); font-size: .67rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; font-size: .76rem; }
.page-content { padding: 1.25rem; }.card { border-color: var(--app-border); box-shadow: 0 1px 2px rgba(15,23,42,.025); }.card-header { border-color: var(--app-border); }
.stat-card { overflow: hidden; }.stat-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 10%, transparent); }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem 0; border-bottom: 1px solid var(--app-border); font-size: .875rem; }
.booking-chart { height: 210px; display: flex; align-items: end; justify-content: space-around; gap: .75rem; padding-top: 1rem; }
.chart-item { height: 100%; min-width: 32px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: .4rem; }
.chart-bar-wrap { height: 150px; width: min(42px, 70%); display: flex; align-items: end; }.chart-bar { display: block; width: 100%; min-height: 8px; border-radius: 5px 5px 2px 2px; background: var(--bs-primary); }
.chart-value { font-size: .72rem; font-weight: 650; }.chart-label { color: var(--bs-secondary-color); font-size: .68rem; }.empty-state { padding: 3rem 1rem; text-align: center; color: var(--bs-secondary-color); }
.table thead th { padding: .8rem 1rem; color: var(--bs-secondary-color); background: color-mix(in srgb, var(--bs-body-bg) 88%, var(--bs-secondary-bg)); font-size: .67rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.table tbody td { padding: .8rem 1rem; font-size: .82rem; }
.status-badge { color: #fff !important; background-color: var(--app-accent) !important; }
.push-toggle[data-push-state="active"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 14%, transparent); }
.push-toggle[data-push-state="unsupported"], .push-toggle[data-push-state="denied"] { opacity: .65; }
.auth-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 5rem 2rem 2rem; background: #edf2f8; }
.auth-home-link { position: absolute; z-index: 2; top: 1.5rem; left: 2rem; display: flex; align-items: center; gap: .7rem; color: #10233f; text-decoration: none; }
.auth-shell { width: min(1180px, 100%); min-height: min(760px, calc(100vh - 7rem)); display: grid; grid-template-columns: minmax(0, .93fr) minmax(420px, 1.07fr); overflow: hidden; border: 1px solid rgba(16,35,30,.08); border-radius: 28px; background: var(--bs-body-bg); box-shadow: 0 28px 80px rgba(15, 35, 29, .13); }
.auth-form-panel { display: grid; place-items: center; padding: 3rem clamp(2rem, 5vw, 5rem); }
.auth-form-wrap { width: 100%; max-width: 455px; }
.auth-tabs { display: inline-flex; gap: .35rem; margin-bottom: 2.5rem; padding: .3rem; border-radius: 10px; background: var(--bs-tertiary-bg); }
.auth-tabs a { min-width: 88px; padding: .55rem .9rem; border-radius: 8px; color: var(--bs-secondary-color); font-size: .88rem; font-weight: 650; text-align: center; text-decoration: none; }
.auth-tabs a.active { color: var(--bs-body-color); background: var(--bs-body-bg); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.auth-kicker { display: block; margin-bottom: .55rem; color: var(--app-accent); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.auth-title { margin-bottom: .65rem; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 750; letter-spacing: -.035em; }
.auth-form-wrap .form-label { font-size: .84rem; font-weight: 650; }
.auth-form-wrap .form-control { min-height: 46px; }
.auth-form-wrap .form-control-lg { min-height: 52px; font-size: .95rem; }
.password-field { position: relative; }.password-field .form-control { padding-right: 3rem; }
.password-field button { position: absolute; top: 50%; right: .55rem; display: grid; width: 36px; height: 36px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 8px; color: var(--bs-secondary-color); background: transparent; font-size: 1rem; }
.password-field button:hover, .password-field button:focus-visible { color: var(--app-accent); background: var(--bs-tertiary-bg); outline: none; }
.auth-form-wrap .btn-primary { font-size: .95rem; }
.auth-switch { margin: 1.35rem 0 0; color: var(--bs-secondary-color); font-size: .88rem; text-align: center; }
.auth-switch a { color: var(--app-accent); font-weight: 700; text-decoration: none; }
.auth-story { position: relative; min-height: 620px; background-position: center 42%; background-size: cover; color: #fff; }
.auth-story-content { position: absolute; inset: auto clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); }
.auth-eyebrow { display: inline-flex; margin-bottom: 1.1rem; padding: .4rem .75rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.12); font-size: .72rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(10px); }
.auth-story h2 { margin-bottom: 1rem; font-size: clamp(2.5rem, 4.3vw, 4.4rem); font-weight: 750; line-height: .98; letter-spacing: -.055em; }
.auth-story p { max-width: 520px; color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.7; }
.auth-points { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin: 1.5rem 0 1.8rem; font-size: .8rem; }
.auth-story small { color: rgba(255,255,255,.55); }

.landing-body { --landing-ink: #10233f; --landing-primary: #173b73; color: var(--landing-ink); background: #f6f8fc; }
.landing-nav { position: absolute; z-index: 10; inset: 0 0 auto; padding: 1.25rem 0; }
.landing-brand { display: flex; align-items: center; gap: .7rem; color: var(--landing-ink); text-decoration: none; }
.landing-hero { position: relative; overflow: hidden; min-height: 780px; display: flex; align-items: center; padding: 8rem 0 5rem; background: radial-gradient(circle at 8% 20%, rgba(45,105,185,.15), transparent 30%), linear-gradient(135deg, #f6f9fd, #e8eef7); }
.landing-hero::after { content: ''; position: absolute; width: 420px; height: 420px; right: -210px; bottom: -210px; border: 70px solid rgba(23,59,115,.08); border-radius: 50%; }
.landing-badge { display: inline-flex; margin-bottom: 1.5rem; padding: .45rem .8rem; border: 1px solid rgba(23,59,115,.22); border-radius: 999px; color: var(--landing-primary); background: rgba(255,255,255,.62); font-size: .76rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.landing-hero h1 { max-width: 670px; margin-bottom: 1.4rem; font-size: clamp(3rem, 6.2vw, 5.9rem); font-weight: 780; line-height: .98; letter-spacing: -.065em; }
.landing-lead { max-width: 610px; margin-bottom: 2rem; color: #53625d; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.75; }
.landing-trust { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 2rem; color: #67736f; font-size: .78rem; }
.landing-trust span::before { content: '✓'; margin-right: .4rem; color: var(--landing-primary); font-weight: 800; }
.landing-photo-wrap { position: relative; width: min(520px, 88%); height: 570px; margin-left: auto; }
.landing-photo-wrap::before { content: ''; position: absolute; inset: 2.5rem -2rem -2rem 3rem; border-radius: 220px 220px 26px 26px; background: #c9d6e9; transform: rotate(4deg); }
.landing-photo-wrap img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; border-radius: 220px 220px 26px 26px; filter: saturate(.9) contrast(.98); box-shadow: 0 25px 70px rgba(16,38,75,.2); }
.landing-floating-card { position: absolute; z-index: 2; left: -4rem; bottom: 2.5rem; width: 240px; padding: 1.1rem 1.2rem; border: 1px solid rgba(255,255,255,.7); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(16,38,75,.18); backdrop-filter: blur(12px); }
.landing-floating-card strong, .landing-floating-card span { display: block; }.landing-floating-card strong { margin-bottom: .25rem; }.landing-floating-card span { color: #65716d; font-size: .78rem; line-height: 1.5; }
.landing-features { padding: 6.5rem 0; background: #fff; }
.landing-section-heading { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.landing-section-heading > span { color: var(--landing-primary); font-size: .73rem; font-weight: 750; letter-spacing: .12em; }
.landing-section-heading h2 { margin: .8rem 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 750; letter-spacing: -.045em; }
.landing-section-heading p { color: #687570; line-height: 1.7; }
.landing-feature-card { height: 100%; padding: 2rem; border: 1px solid #e4eae6; border-radius: 18px; background: #fbfcfa; transition: transform .2s, box-shadow .2s; }
.landing-feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16,38,75,.08); }
.landing-feature-card > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 2.6rem; border-radius: 50%; color: #fff; background: var(--landing-primary); font-size: .73rem; font-weight: 750; }
.landing-feature-card h3 { margin-bottom: .7rem; font-size: 1.2rem; font-weight: 720; }.landing-feature-card p { margin: 0; color: #6a7672; font-size: .9rem; line-height: 1.7; }
.landing-footer { padding: 1.7rem 0; color: #7a8581; background: #0d1d18; font-size: .82rem; }.landing-footer a { color: #c1d1cb; text-decoration: none; }
.landing-admin-preview { width: 100%; max-height: 440px; object-fit: cover; object-position: center; }
.language-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(16,35,63,.16); border-radius: 9px; background: rgba(255,255,255,.65); }
.language-switch form { display: flex; margin: 0; }
.language-switch button { min-width: 30px; padding: .3rem .45rem; border: 0; border-radius: 6px; color: #657083; background: transparent; font-size: .68rem; font-weight: 750; }
.language-switch button.active { color: #fff; background: #173b73; }
.admin-language-switch { background: var(--bs-tertiary-bg); }
.landing-pricing { padding: 6.5rem 0; background: #f3f6fb; }
.landing-price-card { position: relative; height: 100%; padding: 2rem; border: 1px solid #dce4ef; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(16,38,75,.05); }
.landing-price-card.featured { border-color: #315d9e; box-shadow: 0 20px 50px rgba(23,59,115,.15); }
.landing-price-label { position: absolute; top: 1rem; right: 1rem; padding: .35rem .55rem; border-radius: 999px; color: #fff; background: #173b73; font-size: .62rem; font-weight: 750; letter-spacing: .08em; }
.landing-price-duration { margin-bottom: .65rem; color: #315d9e !important; font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.landing-price-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.landing-price-card > p { min-height: 48px; color: #687570; font-size: .88rem; line-height: 1.65; }
.landing-price-value { margin-bottom: 1rem; color: #10233f; font-size: 2.35rem; font-weight: 780; letter-spacing: -.04em; }
.landing-price-value small { margin-right: .3rem; font-size: .85rem; font-weight: 700; }
.subscription-plan-card { border-top: 3px solid var(--app-accent); }
.subscription-price { margin: 1rem 0; color: var(--bs-body-color); font-size: 1.8rem; font-weight: 750; }
.subscription-active-pill { display: flex; flex-direction: column; padding: .65rem 1rem; border: 1px solid #b9d8c5; border-radius: 10px; color: #155b34; background: #eefaf2; font-size: .78rem; }
.subscription-active-pill span { font-weight: 750; text-transform: uppercase; }
.paypal-checkout-card { overflow: hidden; border-color: #bfd4ed; background: linear-gradient(135deg, color-mix(in srgb, var(--bs-body-bg) 93%, #dceeff), var(--bs-body-bg)); }
.paypal-wordmark { color: #003087; font-size: 1.45rem; font-weight: 800; font-style: italic; letter-spacing: -.04em; }
.subscription-divider { display: flex; align-items: center; gap: 1rem; margin: 2rem 0; color: var(--bs-secondary-color); font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.subscription-divider::before, .subscription-divider::after { content: ''; height: 1px; flex: 1; background: var(--app-border); }
.booking-mode-option { display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem; border: 2px solid var(--app-border); border-radius: 16px; cursor: pointer; }
.booking-mode-option:has(input:checked) { border-color: var(--app-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 12%, transparent); }
.booking-mode-option.always-active { border-color: #198754; box-shadow: 0 0 0 3px color-mix(in srgb, #198754 10%, transparent); cursor: default; }
.booking-mode-option > input { position: absolute; opacity: 0; pointer-events: none; }
.booking-mode-option strong, .booking-mode-option small { display: block; }.booking-mode-option small { color: var(--bs-secondary-color); line-height: 1.55; }
.booking-mode-preview { height: 170px; display: grid; gap: .45rem; padding: 1rem; border-radius: 12px; background: var(--bs-tertiary-bg); }
.list-preview { grid-template-rows: repeat(3, 1fr); }.list-preview i { border-left: 4px solid var(--app-accent); border-radius: 7px; background: var(--bs-body-bg); }
.calendar-preview { grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(2, 1fr); }.calendar-preview i { border-radius: 5px; background: var(--bs-body-bg); }.calendar-preview i:nth-child(4), .calendar-preview i:nth-child(10) { background: color-mix(in srgb, var(--app-accent) 35%, var(--bs-body-bg)); }
.suspended-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at top, #e4ecf8, #f5f7fa 55%); }
.suspended-card { width: min(560px, 100%); padding: clamp(2rem, 6vw, 4rem); border: 1px solid #dbe3ef; border-radius: 24px; background: #fff; box-shadow: 0 25px 70px rgba(16,38,75,.12); text-align: center; }
.suspended-icon { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 1.4rem; border-radius: 50%; color: #8a3c15; background: #fff0e8; font-size: 2rem; font-weight: 800; }

@media (min-width: 992px) {
    .app-shell { display: grid; grid-template-columns: 240px minmax(0,1fr); }
    .sidebar { position: sticky; top: 0; height: 100vh; }
    .topbar { position: sticky; top: 0; z-index: 1020; }
    .page-content { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .topbar-subtitle { display: none; }.theme-toggle { padding-inline: .65rem; }.page-content { padding: 1rem; }
    .auth-page { padding: 4.8rem .8rem .8rem; }.auth-home-link { top: 1.1rem; left: 1rem; }.auth-shell { border-radius: 18px; }.auth-form-panel { padding: 2rem 1.25rem; }.auth-tabs { margin-bottom: 2rem; }
    .landing-nav { padding: 1rem 0; }.landing-hero { min-height: auto; padding: 7rem 0 4rem; }.landing-hero h1 { font-size: 3rem; }.landing-photo-wrap { width: 92%; height: 430px; margin: 1rem auto 0; }.landing-floating-card { left: -1rem; bottom: 1rem; }.landing-features { padding: 4.5rem 0; }
}

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }.auth-story { min-height: 500px; order: 2; }.auth-form-panel { min-height: 620px; }
    .landing-photo-wrap { margin-right: auto; }.landing-floating-card { left: -1rem; }
}
