/* ==========================================================================
   Bookora - design system
   ========================================================================== */

:root {
    --bg: #f5f6fb;
    --surface: #ffffff;
    --surface-2: #f1f3fa;
    --surface-3: #e9ecf6;
    --ink: #101828;
    --ink-2: #344054;
    --muted: #667085;
    --line: #e4e7ec;
    --line-strong: #d0d5dd;
    --primary: #5b5bd6;
    --primary-600: #4a4ac4;
    --primary-700: #3d3da6;
    --primary-050: #eef0ff;
    --primary-100: #e0e3ff;
    --accent: #12b76a;
    --accent-050: #e8f8ef;
    --warn: #f79009;
    --warn-050: #fef4e6;
    --danger: #f04438;
    --danger-050: #fdecea;
    --info: #2e90fa;
    --info-050: #eaf4ff;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 10px 28px rgba(16, 24, 40, .08);
    --shadow-lg: 0 24px 64px rgba(16, 24, 40, .16);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sidebar: 268px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -.02em;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; display: block; }
small { font-size: .82rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--line); margin: 1.25rem 0; }

/* Utilities ---------------------------------------------------------------- */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.is-hidden { display: none !important; }

/* Buttons ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: .68rem 1.15rem;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    text-align: center;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(91, 91, 214, .22); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d2939; color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #d92d20; color: #fff; }
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: #0e9f5d; color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .82rem; border-radius: var(--radius-xs); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-icon { padding: .45rem .6rem; }

/* Badges ------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .6rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: capitalize;
    background: var(--surface-3);
    color: var(--ink-2);
    white-space: nowrap;
}
.badge-ok { background: var(--accent-050); color: #067647; }
.badge-info { background: var(--info-050); color: #175cd3; }
.badge-warn { background: var(--warn-050); color: #b54708; }
.badge-danger { background: var(--danger-050); color: #b42318; }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-primary { background: var(--primary-050); color: var(--primary-700); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Alerts ------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert-success { background: var(--accent-050); border-color: #b6e8ce; color: #05603a; }
.alert-error { background: var(--danger-050); border-color: #f9c4c0; color: #912018; }
.alert-info { background: var(--info-050); border-color: #c7e0ff; color: #175cd3; }
.alert-warn { background: var(--warn-050); border-color: #fadfb0; color: #93370d; }
.alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.alert-close { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; line-height: 1; opacity: .6; padding: 0 .2rem; }
.alert-close:hover { opacity: 1; }

/* Cards -------------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 1.5rem;
}
.card-lg { padding: 2rem; }
.card-tight { padding: 1.1rem 1.25rem; }
.card-flat { box-shadow: none; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.card-header h2, .card-header h3 { font-size: 1.1rem; }
.card-header p { margin: .2rem 0 0; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; }
.card-sub { color: var(--muted); font-size: .86rem; margin: .2rem 0 0; }
.card-footer { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }

/* Stat cards --------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-value { font-size: 1.9rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stat-foot { font-size: .82rem; color: var(--muted); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-050); color: var(--primary); font-weight: 700; }

/* Forms -------------------------------------------------------------------- */
.form-group { margin-bottom: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
label, .label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.label-hint { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
    width: 100%;
    font-family: inherit;
    font-size: .93rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: .62rem .8rem;
    transition: border-color .15s ease, box-shadow .15s ease;
    min-height: 42px;
}
.textarea { min-height: 108px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 91, 214, .16);
}
.input::placeholder, .textarea::placeholder { color: #98a2b3; }
.input.error, .select.error, .textarea.error { border-color: var(--danger); }
.field-error { color: #b42318; font-size: .8rem; margin-top: .32rem; }
.form-help { color: var(--muted); font-size: .8rem; margin-top: .32rem; }
.checkbox, .radio { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.checkbox input, .radio input { width: 16px; height: 16px; accent-color: var(--primary); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem .9rem; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .18s ease; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(18px); }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.input-group .btn { border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix .input { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.input-suffix .suffix { display: inline-flex; align-items: center; padding: 0 .8rem; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; background: var(--surface-2); color: var(--muted); font-size: .85rem; }

/* Tables ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
    text-align: left;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 600;
    padding: .7rem .9rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table-actions { display: flex; align-items: center; gap: .4rem; justify-content: flex-end; }
.table .name-cell { font-weight: 600; color: var(--ink); }
.table .name-cell small { display: block; font-weight: 400; color: var(--muted); }
.cell-sub { color: var(--muted); font-size: .8rem; }

/* Empty state -------------------------------------------------------------- */
.empty { text-align: center; padding: 2.75rem 1.5rem; color: var(--muted); }
.empty-icon { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto .85rem; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--primary); font-size: 1.4rem; }
.empty h3 { margin-bottom: .35rem; }
.empty p { margin-bottom: 1rem; }

/* Pagination --------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.pagination-links { display: flex; gap: .4rem; }
.pagination a, .pagination span.current { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0 .7rem; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; }
.pagination span.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* Public site header ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(228, 231, 236, .8); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--primary), #8b5cf6); color: #fff; font-weight: 800; font-size: .98rem; box-shadow: 0 6px 14px rgba(91, 91, 214, .3); }
.site-nav { display: flex; align-items: center; gap: .25rem; margin-right: auto; }
.site-nav a { color: var(--ink-2); font-size: .9rem; font-weight: 500; padding: .5rem .75rem; border-radius: var(--radius-xs); }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: .45rem .6rem; cursor: pointer; color: var(--ink); }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; background: radial-gradient(1200px 600px at 15% -10%, #e9e9ff 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #e6f7ef 0%, transparent 55%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: var(--primary-050); color: var(--primary-700); font-weight: 600; font-size: .78rem; padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1.1rem; letter-spacing: .02em; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { background: linear-gradient(120deg, var(--primary), #9b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); font-size: .85rem; }
.hero-meta strong { color: var(--ink); }

.hero-preview { position: relative; }
.preview-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.4rem; transform: rotate(-1deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.preview-slot { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-xs); margin-bottom: .5rem; font-size: .88rem; }
.preview-slot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.preview-slot.active { border-color: var(--primary); background: var(--primary-050); }
.preview-badge { margin-left: auto; font-size: .72rem; color: var(--primary); font-weight: 600; }

/* Sections ----------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-head { max-width: 640px; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin-top: .75rem; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-xs); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--primary-050); color: var(--primary); font-size: 1.15rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: .45rem; font-size: 1.03rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.step-item h4 { margin-bottom: .15rem; }
.step-item p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Walkthrough ("how it works") --------------------------------------------- */
.section-alt { background: linear-gradient(180deg, #ffffff 0%, #f6f7fd 100%); border-block: 1px solid var(--line); }
.walkthrough { display: grid; gap: 3rem; }
.walk-row { display: grid; grid-template-columns: 1.02fr .98fr; gap: 2.75rem; align-items: center; }
.walk-row.reverse .walk-media { order: 2; }
.walk-media { position: relative; }
.walk-media img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.walk-step { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-700); background: var(--primary-050); padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.walk-body h3 { font-size: 1.32rem; margin-bottom: .55rem; }
.walk-body > p { color: var(--muted); margin-bottom: 0; }
.tick-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.tick-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); font-size: .92rem; }
.tick-list li::before { content: "\2713"; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-050); color: #067647; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; margin-top: .1rem; }

/* Trust strip -------------------------------------------------------------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.trust-item .ico { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-050); color: var(--primary); }
.trust-item strong { display: block; color: var(--ink); font-size: .92rem; }
.trust-item span { display: block; color: var(--muted); font-size: .8rem; }

/* Pricing ------------------------------------------------------------------ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.75rem; box-shadow: var(--shadow-xs); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.price-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.price-tagline { color: var(--muted); font-size: .86rem; margin: .2rem 0 1.25rem; min-height: 2.4em; }
.price-amount { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .25rem; }
.price-amount .amount { font-size: 2.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-amount .period { color: var(--muted); font-size: .86rem; }
.price-yearly { color: var(--muted); font-size: .8rem; margin-bottom: 1.25rem; }
.price-features { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.price-features li { display: flex; gap: .55rem; align-items: flex-start; color: var(--ink-2); }
.price-features li::before { content: "✓"; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-050); color: #067647; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; margin-top: .12rem; }
.price-card .btn { margin-top: auto; }
.price-alt { display: block; text-align: center; font-size: .8rem; color: var(--muted); margin-top: .6rem; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #0c1220; color: #98a2b3; padding: 3.5rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer p { font-size: .88rem; color: #98a2b3; }
.footer-col h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
.footer-col a { display: block; color: #98a2b3; font-size: .88rem; padding: .22rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; flex-wrap: wrap; }

/* Auth layout -------------------------------------------------------------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-aside { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 0% 0%, #6d6df0 0%, transparent 55%), linear-gradient(160deg, #191934, #2a2a5c 55%, #4b3ea8); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside .brand { color: #fff; }
.auth-aside h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; max-width: 22rem; }
.auth-aside p { color: rgba(255, 255, 255, .72); max-width: 24rem; }
.auth-points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.auth-points li { display: flex; gap: .65rem; align-items: center; color: rgba(255, 255, 255, .9); font-size: .92rem; }
.auth-points li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; overflow-y: auto; }
.auth-card { width: min(420px, 100%); }
.auth-card .brand { display: none; margin-bottom: 1.5rem; }
.auth-title { margin-bottom: .35rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-foot { margin-top: 1.5rem; text-align: center; font-size: .88rem; color: var(--muted); }
.auth-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .83rem; color: var(--muted); margin-top: 1.25rem; }

/* Dashboard shell ---------------------------------------------------------- */
.app-shell { min-height: 100vh; display: flex; background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 60; transform: translateX(0); transition: transform .22s ease; }
.sidebar-brand { height: 70px; display: flex; align-items: center; padding: 0 1.25rem; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem .75rem 1.5rem; }
.sidebar-group { margin-bottom: 1.15rem; }
.sidebar-label { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #98a2b3; padding: .35rem .75rem; }
.sidebar-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: var(--radius-xs); color: var(--ink-2); font-size: .9rem; font-weight: 500; margin-bottom: .12rem; }
.sidebar-link:hover { background: var(--surface-2); color: var(--ink); }
.sidebar-link.active { background: var(--primary-050); color: var(--primary-700); font-weight: 600; }
.sidebar-link .ico { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: currentColor; flex: 0 0 auto; }
.sidebar-link .pill { margin-left: auto; background: var(--warn-050); color: #b54708; font-size: .7rem; font-weight: 700; padding: .08rem .45rem; border-radius: 999px; }
.sidebar-foot { border-top: 1px solid var(--line); padding: .9rem 1rem; flex: 0 0 auto; }
.sidebar-user { display: flex; align-items: center; gap: .65rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-050); color: var(--primary-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.sidebar-user .who { min-width: 0; }
.sidebar-user .who strong { display: block; font-size: .85rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .who span { display: block; font-size: .74rem; color: var(--muted); text-transform: capitalize; }

.app-main { flex: 1; min-width: 0; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.app-topbar { height: 70px; flex: 0 0 auto; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0 1.75rem; position: sticky; top: 0; z-index: 30; }
.app-topbar h1 { font-size: 1.1rem; letter-spacing: -.01em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.sidebar-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-xs); padding: .42rem .55rem; cursor: pointer; color: var(--ink); }
.app-content { padding: 1.9rem 1.75rem 3rem; width: 100%; max-width: 1340px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head h1 { font-size: 1.65rem; }
.page-head p { color: var(--muted); margin: .35rem 0 0; font-size: .92rem; }
.page-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.sidebar-overlay { display: none; }

/* Dashboard widgets -------------------------------------------------------- */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.quick-action { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .88rem; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.quick-action:hover { border-color: var(--primary); color: var(--primary-700); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.quick-action .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-050); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.quick-action small { font-weight: 400; color: var(--muted); font-size: .78rem; }

.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .name { font-weight: 600; color: var(--ink); font-size: .9rem; }
.list-item .meta { color: var(--muted); font-size: .8rem; }
.list-item .time-chip { font-weight: 600; color: var(--ink); font-size: .82rem; background: var(--surface-2); border-radius: 8px; padding: .3rem .55rem; white-space: nowrap; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.3rem; border-left: 2px solid var(--line); margin-left: .35rem; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .2rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
.timeline .tl-title { font-size: .88rem; font-weight: 600; color: var(--ink); }
.timeline .tl-meta { font-size: .78rem; color: var(--muted); }

.banner { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.banner-warn { background: var(--warn-050); border-color: #fadfb0; }
.banner-ok { background: var(--accent-050); border-color: #b6e8ce; }
.banner .grow { flex: 1; }

/* Public booking ----------------------------------------------------------- */
.booking-hero { background: radial-gradient(900px 400px at 10% 0%, #ececff 0%, transparent 60%), #fff; border-bottom: 1px solid var(--line); padding: 2.75rem 0 2.25rem; }
.booking-hero-inner { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.booking-logo { width: 50px; height: 50px; border-radius: 14px; background: var(--primary-050); color: var(--primary-700); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; }
.booking-logo-img { width: 50px; height: 50px; max-width: 50px; max-height: 50px; border-radius: 14px; object-fit: contain; background: #fff; padding: 3px; box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.booking-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-top: .4rem; }

/* White-label booking shell */
.booking-hero.has-cover { background: linear-gradient(180deg, rgba(15, 23, 42, .58), rgba(15, 23, 42, .68)), var(--biz-cover) center/cover no-repeat; border-bottom-color: transparent; padding: 3.5rem 0 3rem; }
.booking-hero.has-cover h1, .booking-hero.has-cover strong { color: #fff; }
.booking-hero.has-cover .booking-meta { color: rgba(255, 255, 255, .88); }
.booking-hero.has-cover .booking-logo { background: rgba(255, 255, 255, .16); color: #fff; }
.booking-site { background: var(--surface-2); min-height: 100vh; display: flex; flex-direction: column; }
.booking-site main { flex: 1; }
.booking-site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 1.15rem 0; }
.booking-site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }

.booking-shell { padding: 2.5rem 0 4rem; }
.booking-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 1.75rem; align-items: start; }
.booking-steps { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bstep { display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.bstep .n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: .74rem; }
.bstep.active { color: var(--primary-700); }
.bstep.active .n { background: var(--primary); color: #fff; }
.bstep.done { color: var(--accent); }
.bstep.done .n { background: var(--accent-050); color: #067647; }
.bstep-sep { width: 22px; height: 1px; background: var(--line-strong); }

.choice-grid { display: grid; gap: .65rem; }
.choice { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .95rem 1.05rem; cursor: pointer; font-family: inherit; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.choice:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.choice.selected { border-color: var(--primary); background: var(--primary-050); box-shadow: 0 0 0 3px rgba(91, 91, 214, .12); }
.choice .grow { flex: 1; min-width: 0; }
.choice .title { font-weight: 600; color: var(--ink); font-size: .94rem; }
.choice .sub { font-size: .82rem; color: var(--muted); margin-top: .12rem; }
.choice .price { font-weight: 700; color: var(--ink); font-size: .95rem; white-space: nowrap; }
.choice .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; }
.choice.selected .check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px #fff; }
.choice-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: 0 0 auto; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: .5rem; }
.slot { padding: .6rem .4rem; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--surface); font-family: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.slot:hover { border-color: var(--primary); color: var(--primary); }
.slot.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot[disabled] { background: var(--surface-2); color: #98a2b3; cursor: not-allowed; border-color: var(--line); }

.booking-summary { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.summary-total .val { font-size: 1.35rem; font-weight: 800; color: var(--ink); }

.confirm-mark { width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent-050); color: #067647; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; font-weight: 800; }
.confirm-title { font-size: 1.7rem; margin-bottom: .35rem; }
.confirm-ref { display: inline-flex; flex-direction: column; gap: .15rem; margin: .5rem 0 0; padding: .6rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.confirm-ref strong { font-size: 1.05rem; letter-spacing: .04em; color: var(--ink); }

/* Calendar ----------------------------------------------------------------- */
.calendar { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.calendar-head h3 { font-size: 1.02rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-dow { padding: .5rem; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.calendar-day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .4rem .45rem; font-size: .8rem; position: relative; background: var(--surface); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.out { background: #fbfbfe; color: #98a2b3; }
.calendar-day.today { background: var(--primary-050); }
.calendar-day .dnum { font-weight: 700; color: var(--ink-2); font-size: .78rem; margin-bottom: .3rem; }
.calendar-day.today .dnum { color: var(--primary-700); }
.calendar-day.out .dnum { color: #b4bcc9; }
.cal-events { display: grid; gap: .2rem; }
.cal-event { display: block; border-radius: 5px; padding: .16rem .32rem; font-size: .68rem; font-weight: 600; line-height: 1.3; background: var(--primary-050); color: var(--primary-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.st-confirmed { background: var(--info-050); color: #175cd3; }
.cal-event.st-completed { background: var(--accent-050); color: #067647; }
.cal-event.st-cancelled { background: var(--danger-050); color: #b42318; text-decoration: line-through; }
.cal-event.st-no_show { background: var(--surface-3); color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: .75rem 1.1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.cal-legend .key { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--primary-050); }
.cal-legend .swatch.s2 { background: var(--info-050); }
.cal-legend .swatch.s3 { background: var(--accent-050); }
.cal-legend .swatch.s4 { background: var(--danger-050); }

/* Installer ---------------------------------------------------------------- */
.install-shell { min-height: 100vh; padding: 3rem 1rem 4rem; background: radial-gradient(1000px 500px at 50% -10%, #e8e8ff 0%, transparent 55%), var(--bg); }
.install-wrap { width: min(880px, 100%); margin: 0 auto; }
.install-head { text-align: center; margin-bottom: 2rem; }
.install-head .brand { justify-content: center; margin-bottom: 1rem; }
.install-head h1 { font-size: 1.85rem; margin-bottom: .4rem; }
.install-head p { color: var(--muted); }
.install-steps { display: flex; gap: .25rem; margin-bottom: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem; }
.install-step { flex: 1; text-align: center; padding: .48rem .4rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.install-step.done { color: #067647; background: var(--accent-050); }
.install-step.current { color: #fff; background: var(--primary); }
.install-card { margin-bottom: 1.25rem; }
.install-card .card-header h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.install-badge { font-size: .7rem; font-weight: 700; background: var(--accent-050); color: #067647; padding: .12rem .5rem; border-radius: 999px; }
.install-badge.pending { background: var(--surface-3); color: var(--muted); }
.install-tips { font-size: .82rem; color: var(--muted); background: var(--surface-2); border-radius: var(--radius-sm); padding: .85rem 1rem; margin-top: .9rem; }
.install-tips code { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: .05rem .3rem; }

/* Checkout redirect / status ---------------------------------------------- */
.centered-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.center-card { width: min(520px, 100%); text-align: center; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--primary-100); border-top-color: var(--primary); animation: spin 900ms linear infinite; margin: 0 auto 1.25rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Status colors for appointment rows -------------------------------------- */
.tone-pending { color: #b54708; }
.tone-confirmed { color: #175cd3; }
.tone-completed { color: #067647; }
.tone-cancelled { color: #b42318; }
.tone-no_show { color: var(--muted); }

/* Availability schedule ---------------------------------------------------- */
.week-row { display: grid; grid-template-columns: 96px 1fr 1fr 110px; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.week-row:last-child { border-bottom: 0; }
.week-row .day-name { font-weight: 600; color: var(--ink); font-size: .88rem; }
.week-row .input { min-height: 38px; padding: .4rem .6rem; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .form-group { margin: 0; }
.inline-form .input, .inline-form .select { min-height: 38px; padding: .4rem .6rem; }

/* Tabs --------------------------------------------------------------------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab { padding: .6rem .9rem; font-size: .89rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary-700); border-bottom-color: var(--primary); }

/* Filters ------------------------------------------------------------------ */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.filters .form-group { margin: 0; }
.filters .input, .filters .select { min-height: 38px; padding: .42rem .65rem; font-size: .86rem; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-preview { max-width: 520px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .price-card.featured { transform: none; }
    .booking-layout { grid-template-columns: 1fr; }
    .booking-summary { position: static; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-card .brand { display: inline-flex; }
    .walk-row { grid-template-columns: 1fr; gap: 1.75rem; }
    .walk-row.reverse .walk-media { order: 0; }
    .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .site-nav { display: none; }
    .site-nav.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .75rem 1rem 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); gap: .15rem; }
    .nav-toggle { display: inline-flex; }
    .header-actions .btn-ghost { display: none; }
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 50; }
    .app-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .app-topbar { padding: 0 1rem; }
    .app-content { padding: 1.4rem 1rem 3rem; }
    .week-row { grid-template-columns: 80px 1fr 1fr; }
    .week-row .day-off { grid-column: 2 / -1; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 2rem, 1180px); }
    .hero { padding: 3.5rem 0 3rem; }
    .section { padding: 3rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .calendar-day { min-height: 76px; }
    .cal-event { font-size: .62rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .trust-strip { grid-template-columns: 1fr; }
    .header-actions .btn-signup { display: none; }
    .install-steps { flex-wrap: wrap; border-radius: var(--radius-sm); }
    .install-step { flex: 1 1 45%; }
    .card { padding: 1.15rem; }
    .app-topbar h1 { font-size: .98rem; }
}

@media print {
    .sidebar, .app-topbar, .site-header, .site-footer, .no-print { display: none !important; }
    .app-main { margin-left: 0; }
    body { background: #fff; }
}