/* =========================================================================
   BarberKut — design system v2
   Same palette (night green, brass, chalk); everything else refined:
   own type pair (Fraunces for display, Geist for interface and figures),
   solid surfaces with hairlines instead of glass and glow, quiet controls,
   brass only for the main action and the active state, inverted chalk for
   selection. Loaded last on every page, so it settles every older rule.
   ========================================================================= */

@font-face {
    font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("/vendor/fonts/fraunces.woff2") format("woff2-variations"), url("/vendor/fonts/fraunces.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
    src: url("/vendor/fonts/fraunces-italic.woff2") format("woff2-variations"), url("/vendor/fonts/fraunces-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("/vendor/fonts/geist.woff2") format("woff2-variations"), url("/vendor/fonts/geist.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Surfaces, darkest to lightest. The page itself is --night. */
    --surface-0: #0c1612;
    --surface-1: #14221d;
    --surface-2: #1a2a24;
    --surface-3: #24372f;
    --well: rgba(3, 9, 7, 0.32);
    --line: rgba(var(--ink-rgb), 0.08);
    --line-2: rgba(var(--ink-rgb), 0.13);
    --line-3: rgba(var(--ink-rgb), 0.2);
    --text-2: #c2bfb5;
    --text-3: #8f968e;
    --accent-hi: #cdb283;
    --accent-soft: rgba(185, 150, 91, 0.12);
    --accent-line: rgba(185, 150, 91, 0.38);
    --inv-bg: var(--chalk);
    --inv-text: var(--night);
    --btn-primary: linear-gradient(180deg, #d0b78c 0%, #b9965b 100%);
    --btn-primary-hover: linear-gradient(180deg, #d8c199 0%, #c2a066 100%);
    --btn-primary-edge: #9e7d46;
    --btn-primary-text: #13201b;
    --shadow-pop: 0 30px 80px -28px rgba(0, 0, 0, 0.85);
    --r-sm: 8px;
    --r: 10px;
    --r-md: 12px;
    --r-lg: 16px;

    --bg-card: var(--surface-1);
    --bg-elevated: var(--surface-2);
    --border: var(--line);
    --border-strong: var(--line-3);
    --radius: var(--r);
    --radius-lg: var(--r-lg);
    --glow: none;
    --success: #6cc191;
    --danger: #e5707a;
    --sheet-bg: var(--surface-2);
    --bar-bg: rgba(12, 22, 18, 0.9);
    --st-done: #6cc191;
    --st-danger: #e5707a;
    --chart-grid: rgba(var(--ink-rgb), 0.07);
    --chart-soft: color-mix(in srgb, var(--chart-main) 58%, var(--surface-1));
}
:root[data-theme="light"] {
    --surface-0: #faf9f6;
    --surface-1: #ffffff;
    --surface-2: #ffffff;
    --surface-3: #ffffff;
    --well: #ffffff;
    --line: rgba(20, 35, 29, 0.085);
    --line-2: rgba(20, 35, 29, 0.13);
    --line-3: rgba(20, 35, 29, 0.2);
    --text-2: #4f5d56;
    --text-3: #67726c;
    --accent-hi: #8a6a2f;
    --accent-soft: rgba(138, 106, 47, 0.09);
    --accent-line: rgba(138, 106, 47, 0.35);
    --bg: #f4f2ed;
    --night: #f4f2ed;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --border: var(--line);
    --border-strong: var(--line-3);
    --sheet-bg: #ffffff;
    --bar-bg: rgba(250, 249, 246, 0.92);
    --shadow-card: 0 1px 2px rgba(20, 35, 29, 0.05), 0 6px 18px -10px rgba(20, 35, 29, 0.14);
    --shadow-pop: 0 30px 70px -26px rgba(20, 35, 29, 0.35);
    --chart-grid: rgba(20, 35, 29, 0.07);
    --success: #1f8150;
    --danger: #b8392d;
    --st-done: #1f8150;
    --st-danger: #b8392d;
}

/* ---------- Base type ---------- */
html, body { font-family: var(--font-body); font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; }
body { line-height: 1.55; letter-spacing: -0.003em; }
h1, h2, .display {
    font-family: var(--font-display); font-weight: 460; font-optical-sizing: auto;
    letter-spacing: -0.022em; line-height: 1.04; text-wrap: balance;
}
h1 { font-weight: 440; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 400; color: var(--accent-hi); }
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.012em; }
p { color: var(--text-2); }
.muted { color: var(--text-2); }
small, .hint { color: var(--text-3); }
.eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
::selection { background: rgba(185, 150, 91, 0.32); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { text-underline-offset: 3px; }

/* Brand: "Barber" upright, "Kut" in brass italic. */
.brand, .footer-brand, .owner-sidebar .brand strong, .m-brand strong {
    font-family: var(--font-display) !important; font-weight: 600 !important; letter-spacing: -0.025em !important;
}
.owner-sidebar .brand > div > span { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.brand-accent { font-style: italic; font-weight: 480; color: var(--accent-hi); margin-left: 0.02em; }
.brand { font-size: 1.5rem; gap: 10px; }
.brand img { height: 28px; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--r); padding: 10px 18px; min-height: 42px; gap: 8px;
    font-family: var(--font-body); font-weight: 560; font-size: 0.9rem; letter-spacing: -0.006em; line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--btn-primary); color: var(--btn-primary-text); border: 1px solid var(--btn-primary-edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover { background: var(--btn-primary-hover); filter: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line-3); color: var(--text); }
.btn-ghost:hover { background: rgba(var(--ink-rgb), 0.05); border-color: rgba(var(--ink-rgb), 0.32); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.84rem; border-radius: var(--r-sm); }
.btn-danger { border-radius: var(--r); border-color: color-mix(in srgb, var(--danger) 70%, transparent); color: var(--danger); background: transparent; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.btn-danger-solid { background: #c4473f; border: 1px solid #a83a33; color: #fff; }
:root[data-theme="light"] .btn-primary { color: var(--btn-primary-text); }
:root[data-theme="light"] .btn-ghost { background: #ffffff; border-color: var(--line-3); }
:root[data-theme="light"] .btn-ghost:hover { border-color: rgba(20, 35, 29, 0.35); background: #ffffff; }

/* ---------- Forms ---------- */
label { font-size: 0.82rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-bottom: 7px; }
input, select, textarea {
    background: var(--well); border: 1px solid var(--line-2); border-radius: var(--r);
    padding: 11px 13px; font-size: 0.95rem; color: var(--text);
}
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 150, 91, 0.2); }
select:not([multiple]):not([size]) {
    -webkit-appearance: none; appearance: none; padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f968e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}
:root[data-theme="light"] :is(input, select, textarea) { background-color: var(--well); border-color: var(--line-2); }
:root[data-theme="light"] input:is(:hover, :focus), :root[data-theme="light"] select:is(:hover, :focus), :root[data-theme="light"] textarea:is(:hover, :focus) { border-color: var(--line-3); }
:root[data-theme="light"] :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 106, 47, 0.16); }
:root[data-theme="light"] select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367726c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
}
select option, select optgroup { background: var(--surface-2); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* Escolha entre opções (pagar no local / Pix): linhas iguais, uma bolinha à esquerda */
.pay-options { display: grid; gap: 8px; }
.pay-option {
    display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; min-height: 64px;
    background: var(--well); border: 1px solid var(--line-2); border-radius: var(--r);
    cursor: pointer; user-select: none; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pay-option:hover { border-color: var(--line-3); }
.pay-option input[type="radio"] {
    -webkit-appearance: none; appearance: none; flex: none; display: grid; place-content: center;
    width: 20px; height: 20px; min-width: 20px; margin: 0; padding: 0; border-radius: 50%;
    background: transparent; border: 2px solid var(--line-3); box-shadow: none;
}
.pay-option input[type="radio"]::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
    transform: scale(0); transition: transform 0.12s ease;
}
.pay-option input[type="radio"]:checked { border-color: var(--accent); }
.pay-option input[type="radio"]:checked::before { transform: scale(1); }
.pay-option input[type="radio"]:focus { box-shadow: none; }
.pay-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--well)); }
.pay-option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(185, 150, 91, 0.2); }
.pay-option .pay-text { display: grid; gap: 2px; min-width: 0; }
.pay-option .pay-text strong { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.pay-option .pay-text small { font-size: 0.8rem; color: var(--text-3); line-height: 1.3; }
.form-error, .form-success { border-radius: var(--r); font-size: 0.9rem; }
.form-error { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: #f2b8bd; }
.form-success { background: color-mix(in srgb, var(--success) 10%, transparent); border-color: color-mix(in srgb, var(--success) 55%, transparent); color: #b7e3c8; }
.input-shell > svg { stroke: var(--text-3); stroke-width: 1.6; width: 18px; height: 18px; }

/* ---------- Public header ---------- */
.site-header { background: rgba(12, 22, 18, 0.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%); }
.site-header .container { height: 64px; }
.site-nav { gap: 26px; }
.site-nav a { font-weight: 500; font-size: 0.9rem; color: var(--text-2); border-bottom-width: 1.5px; padding: 4px 0; }
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav-links { gap: 8px; }
.nav-links .btn { min-height: 38px; padding: 8px 15px; font-size: 0.86rem; }
.nav-toggle { border-radius: var(--r) !important; border-color: var(--line-2) !important; background: transparent !important; }
@media (max-width: 760px) {
    .site-menu:not([hidden]) { background: var(--surface-0); border-bottom-color: var(--line-2); }
    .site-menu nav a { font-family: var(--font-display); font-weight: 460; font-size: 1.35rem; letter-spacing: -0.015em; border-bottom-color: var(--line); }
    .site-menu nav a.active { color: var(--accent-hi); }
    .site-header .container { min-height: 60px; }
}
@media (max-width: 540px) {
    .site-header .nav-links .btn { min-height: 38px; padding: 8px 10px; font-size: 0.74rem; }
}

/* ---------- Hero and the search window ---------- */
.hero h1, .home-hero h1 { font-weight: 400; letter-spacing: -0.032em; line-height: 0.98; }
.home-hero h1 { font-size: clamp(2.9rem, 5.6vw, 5.1rem); }
.hero p.lead { color: rgba(var(--ink-rgb), 0.74); font-size: 1.06rem; line-height: 1.6; }
.glass, .card.glass-card, .search-window, .auth-card, .share-qr {
    background: rgba(12, 22, 18, 0.8); border: 1px solid var(--line-2); border-radius: var(--r-lg);
    backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.search-window { padding: 26px 26px 24px; }
.search-window h2, .auth-card h2 { font-size: 1.75rem; font-weight: 460; letter-spacing: -0.022em; margin-bottom: 18px; }
.search-window input, .auth-card input { background: rgba(3, 9, 7, 0.4); }
@media (max-width: 760px) {
    .home-page .home-hero h1 { font-size: clamp(2.5rem, 10vw, 3.3rem); line-height: 1; letter-spacing: -0.035em; }
    .mobile-home-section { background: var(--night); border-top-color: var(--line); }
    .mobile-home-section .search-window h2 { font-size: 1.6rem; }
}

/* ---------- Sections ---------- */
main > section h2, .section-title h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 440; letter-spacing: -0.028em; line-height: 1.02; }
.section-title { margin-bottom: 24px; align-items: flex-end; }
.section-title a { font-size: 0.88rem; font-weight: 500; color: var(--text-2); }
.section-title a:hover { color: var(--text); }

/* ---------- Cards ---------- */
.card, body.owner-theme .card, body.owner-theme .glass-card {
    background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.card h3 { font-size: 1rem; margin-bottom: 14px; }
.empty-state { color: var(--text-3); font-size: 0.92rem; }

/* Shop card: banner, round photo on its edge, the name in the display face. */
.shop-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.shop-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 28px 50px -30px rgba(0, 0, 0, 0.85); }
.shop-card .thumb::after { background: linear-gradient(180deg, transparent 50%, rgba(10, 18, 15, 0.5)); }
.shop-card .avatar { border: 3px solid var(--surface-1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); width: 60px; height: 60px; margin-top: -30px; }
.shop-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.38rem; letter-spacing: -0.018em; line-height: 1.1; margin-bottom: 4px; }
.shop-card .city { color: var(--text-3); font-size: 0.86rem; }
.shop-card .price-tag { color: var(--accent-hi); font-weight: 600; font-size: 0.88rem; }
.rating { color: var(--accent-hi); font-weight: 600; }

/* Shop page */
.shop-cover::after { background: linear-gradient(180deg, transparent 40%, var(--night) 100%); }
.shop-header .logo-wrap { border-width: 4px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.shop-header .shop-id h1 { font-weight: 460; letter-spacing: -0.03em; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.shop-meta { color: var(--text-2); font-size: 0.92rem; }
.tag { border-radius: 99px; border-color: var(--line-2); background: transparent; font-size: 0.8rem; color: var(--text-2); }
.amenity { background: transparent; border-color: var(--line-2); font-size: 0.88rem; padding: 8px 14px; }
.amenity svg, .amenity-ic svg { stroke-width: 1.6; }
.amenity-ic { background: transparent; border-color: var(--line-2); }
.gallery-grid img, .ig-tile iframe { border-radius: var(--r-md); border-color: var(--line); }
.review-reply { border-left-width: 2px; background: rgba(var(--ink-rgb), 0.03); }

/* Services */
.service-list { gap: 8px; }
.service-row { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.service-row:hover { border-color: var(--line-3); }
.service-row.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.service-row .info h4 { font-weight: 600; font-size: 0.98rem; }
.service-row .info .meta { color: var(--text-3); font-size: 0.85rem; }
.service-row .price { color: var(--text); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; }
.svc-thumb { border-radius: var(--r-sm); }

/* ---------- Booking: steps, days, times ---------- */
.steps { gap: 6px; }
.step-pill { border-radius: 99px; padding: 6px 13px; font-size: 0.8rem; font-weight: 500; color: var(--text-3); background: transparent; border: 1px solid var(--line-2); }
.step-pill.active { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; font-weight: 600; }
.step-pill.done { color: var(--text-2); border-color: var(--line-2); }
.step-pill.done::before { content: "✓"; margin-right: 6px; color: var(--accent); font-weight: 700; }
.date-picker { gap: 6px; }
.date-chip { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 0.84rem; min-width: 62px; padding: 9px 12px; }
.date-chip:hover { border-color: var(--line-3); }
.date-chip.selected { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; font-weight: 600; }
.slot-grid { gap: 6px; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.slot-btn { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 6px; font-size: 0.92rem; font-weight: 500; }
.slot-btn:hover { border-color: var(--line-3); }
.slot-btn.selected { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; font-weight: 600; }
.summary-box { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); }
.summary-row { font-size: 0.92rem; color: var(--text-2); }
.summary-row strong { font-weight: 600; }

/* ---------- Dialogs, confirm, toasts ---------- */
.modal { background: rgba(5, 10, 8, 0.62); }
.modal.open { backdrop-filter: blur(6px) saturate(110%); -webkit-backdrop-filter: blur(6px) saturate(110%); }
.modal-window {
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px;
    box-shadow: var(--shadow-pop); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.modal-head { margin-bottom: 20px; }
.modal-head h2 { font-size: 1.7rem; font-weight: 460; letter-spacing: -0.022em; }
.modal-close { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 1.15rem; }
.modal-close:hover { color: var(--text); border-color: var(--line-3); background: rgba(var(--ink-rgb), 0.04); }
.ui-confirm { background: rgba(5, 10, 8, 0.66); }
.ui-confirm-box { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-pop); }
.ui-confirm-box h3 { font-family: var(--font-display); font-weight: 480; font-size: 1.4rem; letter-spacing: -0.02em; }
.ui-confirm-icon { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.ui-confirm-icon svg { stroke: var(--danger); }
.ui-toast { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 500; font-size: 0.9rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); }
.ui-toast.error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
:root[data-theme="light"] .ui-toast { background: #14231d; color: #f4efe4; border-color: transparent; }
.share-modal { background: var(--surface-2); border-color: var(--line-2); border-radius: 18px; }
.share-close { border-radius: var(--r-sm); border-color: var(--line-2); }
.bk-install { background: var(--surface-2); border-color: var(--line-2); border-radius: var(--r-lg); }

/* "Instalar app": a plain brass button, no sweeping shine or pulsing halo. */
.install-btn { border-radius: var(--r); background: var(--btn-primary); color: var(--btn-primary-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.35); animation: none; font-weight: 600; }
.install-btn::after { display: none; }
.install-btn svg { animation: none; }
.install-fab { border-radius: 99px; background: var(--btn-primary); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.7); }

/* Push notice card */
.push-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.push-card .pc-ic { background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); width: 40px; height: 40px; color: var(--accent); }
.push-card .pc-tx strong { font-weight: 600; font-size: 0.95rem; }
.push-card .pc-tx span { color: var(--text-3); font-size: 0.86rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-0); border-top: 1px solid var(--line); color: var(--text-3); }
.site-footer .container { color: var(--text-3); font-size: 0.86rem; }
.site-footer .footer-brand { font-size: 1.3rem; color: var(--text); }
.footer-share { border-radius: var(--r); border-color: var(--line-2); font-weight: 500; }

/* ---------- Auth ---------- */
.auth-copy h1 { font-weight: 400; letter-spacing: -0.035em; line-height: 1; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.auth-foot { border-top-color: var(--line); color: var(--text-3); }
.auth-foot a { color: var(--accent-hi); font-weight: 500; text-decoration-color: var(--accent-line); }
.google-or { color: var(--text-3); }
.google-or::before, .google-or::after { background: var(--line-2); }

/* ---------- Tables, badges ---------- */
th, td { border-bottom-color: var(--line); }
th { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.status-badge, .badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 99px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.005em; white-space: nowrap; line-height: 1.5;
}
.status-badge::before, .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge { background: rgba(var(--ink-rgb), 0.07); color: var(--text-2); }
.status-badge.confirmed, .badge.ok { background: color-mix(in srgb, var(--success) 13%, transparent); color: var(--success); }
.status-badge.pending, .badge.warn { background: var(--accent-soft); color: var(--accent-hi); }
.status-badge.completed, .badge.blue { background: rgba(var(--ink-rgb), 0.07); color: var(--text-2); }
.status-badge.cancelled { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
:root[data-theme="light"] .status-badge.confirmed { color: var(--success); }
:root[data-theme="light"] .status-badge.pending { color: var(--accent-hi); }
:root[data-theme="light"] .status-badge.cancelled { color: var(--danger); }

/* =========================================================================
   Panels (owner, barber, customer)
   ========================================================================= */
body.owner-theme { font-size: 15px; background: var(--bg); }
body.owner-theme h1 { font-family: var(--font-display); font-weight: 460; font-size: clamp(1.95rem, 2.6vw, 2.4rem); letter-spacing: -0.027em; line-height: 1.06; }
body.owner-theme h2 { font-family: var(--font-display); font-weight: 470; letter-spacing: -0.02em; }
body.owner-theme h3, body.owner-theme h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.012em; }

/* Sidebar */
.owner-sidebar { width: 256px; background: var(--surface-0); border-right: 1px solid var(--line); }
.owner-sidebar a.brand { padding: 20px 18px 18px 20px; border-bottom: 1px solid var(--line); margin: 0 0 6px; gap: 11px; border-radius: 0; }
.owner-sidebar a.active { box-shadow: none; }
.owner-sidebar .brand img { width: 34px; height: 34px; }
body.owner-theme .owner-sidebar .brand strong { font-size: 1.3rem; line-height: 1.1; }
.owner-sidebar .brand span { color: var(--text-3); font-size: 0.76rem; letter-spacing: 0; }
.brand-theme { top: 24px; width: 30px; height: 30px; border-color: var(--line-2); color: var(--text-3); }
body.owner-theme .owner-sidebar .group { margin: 10px 16px 0; padding: 16px 6px 6px; border-top: 1px solid var(--line); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.15em; color: var(--text-3); }
.owner-sidebar .nav { position: relative; margin: 1px 10px; padding: 8px 12px; gap: 11px; border-radius: var(--r-sm); font-size: 0.895rem; font-weight: 450; color: var(--text-2); }
.owner-sidebar button.nav { width: calc(100% - 20px); }
.owner-sidebar .nav-hub-toggle { width: calc(100% - 20px) !important; }
.owner-sidebar .nav svg { width: 17px; height: 17px; stroke-width: 1.65; color: var(--text-3); transition: color 0.15s ease; }
.owner-sidebar .nav:hover { color: var(--text); background: rgba(var(--ink-rgb), 0.04); }
.owner-sidebar .nav:hover svg { color: var(--text-2); }
.owner-sidebar .nav.active { color: var(--text); background: rgba(var(--ink-rgb), 0.065); font-weight: 560; }
.owner-sidebar .nav.active svg { color: var(--accent); }
.owner-sidebar a.nav.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.owner-sidebar .nav-hub-toggle.active { background: transparent; }
.owner-sidebar .nav-sub { margin: 2px 10px 6px 30px; }
.owner-sidebar .nav-sub-link { padding: 6px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 1px solid var(--line-2); color: var(--text-2); font-size: 0.86rem; }
.owner-sidebar .nav-sub-link:hover { background: rgba(var(--ink-rgb), 0.04); color: var(--text); }
.owner-sidebar .nav-sub-link.on { color: var(--text); font-weight: 560; background: rgba(var(--ink-rgb), 0.05); border-left: 2px solid var(--accent); padding-left: 11px; }
.owner-sidebar .foot { border-top: 1px solid var(--line); padding-top: 8px; }
.bk-can-install .owner-sidebar .nav.install-nav { color: var(--accent-hi); }
:root[data-theme="light"] .owner-sidebar { background: var(--surface-0); border-right-color: var(--line); }
:root[data-theme="light"] .owner-sidebar .nav:hover, :root[data-theme="light"] .owner-sidebar .nav-sub-link:hover { background: rgba(20, 35, 29, 0.04); }
:root[data-theme="light"] .owner-sidebar .nav.active { background: rgba(20, 35, 29, 0.06); }
:root[data-theme="light"] .owner-sidebar .nav-hub-toggle.active { background: transparent; }
:root[data-theme="light"] .owner-sidebar .nav-sub-link.on { background: rgba(20, 35, 29, 0.05); }

.owner-main { padding: 34px 44px 72px; }
@media (min-width: 901px) and (max-width: 1200px) { .owner-main { padding: 28px 28px 64px; } }

/* Page head */
.page-head { margin-bottom: 24px; align-items: flex-end; gap: 16px; }
.page-head p { color: var(--text-2); margin-top: 6px; font-size: 0.95rem; }
.page-head h1 { margin-bottom: 0; }
.top-actions { align-items: center; margin-bottom: 4px; }

/* Panels */
.panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 16px; }
.panel-head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); gap: 12px; }
.panel-head h3 { border-left: 0; padding-left: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.16rem; letter-spacing: -0.015em; line-height: 1.2; }
.panel-head a { color: var(--text-2); font-size: 0.82rem; font-weight: 500; }
.panel-head a:hover { color: var(--accent-hi); }
.panel-head .muted, .panel-head small { font-size: 0.8rem; color: var(--text-3); }
:root[data-theme="light"] :is(.panel, .item-card, body.owner-theme .card) { box-shadow: var(--shadow-card); }

/* Key figures: one strip, cells divided by hairlines. */
.stat-grid { gap: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; }
.stat {
    background: transparent; border: 0; border-radius: 0; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line);
    padding: 18px 20px 17px; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 0;
}
.stat > div:last-child { min-width: 0; }
.stat .ico { width: auto; height: auto; background: none; border-radius: 0; color: var(--text-3); padding-top: 2px; }
.stat.blue .ico { background: none; color: var(--text-3); }
.stat .ico svg { width: 16px; height: 16px; stroke-width: 1.7; }
.stat .k { font-size: 0.78rem; font-weight: 500; color: var(--text-2); line-height: 1.3; }
body.owner-theme .stat .v { font-family: var(--font-body); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.035em; line-height: 1.15; margin: 6px 0 3px; }
.stat .s { font-size: 0.76rem; color: var(--text-3); line-height: 1.35; }
:root[data-theme="light"] .stat-grid { box-shadow: var(--shadow-card); }
:root[data-theme="light"] .stat { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
@media (min-width: 761px) {
    .cust-home .stat { border: 0; text-align: center; align-items: center; flex-direction: column-reverse; }
    .cust-home .stat .ico { display: none; }
}
@media (max-width: 900px) {
    .stat { padding: 14px 14px 13px; flex-direction: row-reverse; align-items: flex-start; }
    body.owner-theme .stat .v { font-size: 1.3rem; }
}

/* Chips under the greeting */
.chips { gap: 6px; }
.chip { padding: 5px 11px; border-radius: 99px; background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-size: 0.8rem; font-weight: 500; }
.chip.red { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hi); }
.chip.red::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-edit { color: var(--text-2); }
.chip-edit:hover { color: var(--text); border-color: var(--line-3); }

/* Greeting */
.greet-name, .hello em { font-style: italic; font-weight: 420; color: var(--accent-hi); }
.greet-logo { border: 1px solid var(--line-3); }
.greet-edit { background: var(--surface-3); color: var(--text); border: 2px solid var(--bg); box-shadow: none; }
:root[data-theme="light"] .greet-edit { background: #14231d; color: #f4efe4; }

/* Next client */
.next-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; }
.next-card h2 { font-weight: 480; letter-spacing: -0.022em; }
.next-card .eyebrow { color: var(--accent-hi); }
.next-card .when { background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.next-card .when b { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.04em; }
.avatar { border: 1px solid var(--line-3); background: rgba(var(--ink-rgb), 0.05); color: var(--text-3); }
.by { background: transparent; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 16px; }
.by small { color: var(--text-3); font-size: 0.64rem; letter-spacing: 0.14em; }
.by strong { color: var(--text); font-weight: 600; }
:root[data-theme="light"] .next-card { box-shadow: var(--shadow-card); }

/* Lists */
.row-item { background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 13px 4px; }
.row-item:last-child { border-bottom: 0; }
.row-item.next { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 6px; }
.row-item .end .t { font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.list-item { border-bottom-color: var(--line); }
.tag { border-radius: 99px; }
body.owner-theme .tag { background: var(--accent-soft); color: var(--accent-hi); border: 0; font-weight: 500; }

/* Tables */
.tbl { font-size: 0.9rem; }
.tbl th { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { border-bottom: 1px solid var(--line); padding: 13px 12px; }
.tbl tbody tr { transition: background 0.12s ease; }
@media (min-width: 641px) { .tbl tbody tr:hover td { background: rgba(var(--ink-rgb), 0.025); } }
.tbl td.r { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .tbl tr { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); }
    .tbl td::before { color: var(--text-3); font-weight: 500; }
}

/* Toolbars and switches */
.toolbar input, .toolbar select { padding-top: 9px; padding-bottom: 9px; }
.seg.small, .vt-seg, body.owner-theme .seg, .tabs {
    background: rgba(var(--ink-rgb), 0.045); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 2px;
}
.seg.small button, .vt-seg button, body.owner-theme .seg button, .tabs button {
    border-radius: 7px; color: var(--text-2); font-weight: 500; transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.seg.small button:hover:not(.on), .vt-seg button:hover:not(.on), body.owner-theme .seg button:hover:not(.on) { color: var(--text); }
.seg.small button.on, .vt-seg button.on, body.owner-theme .seg button.on, .tabs button.on {
    background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
:root[data-theme="light"] :is(.seg.small, .vt-seg, body.owner-theme .seg, .tabs) { background: #ebe8e1; border-color: transparent; }
:root[data-theme="light"] :is(.seg.small, .vt-seg, body.owner-theme .seg, .tabs) button.on { background: #ffffff; box-shadow: 0 1px 2px rgba(20, 35, 29, 0.14), 0 0 0 1px rgba(20, 35, 29, 0.04); }

/* Hub tabs (phones): underlined, not filled. */
.subtabs { gap: 2px; border-bottom: 1px solid var(--line); padding: 0; margin-bottom: 18px; }
.subtabs a { background: transparent !important; border-radius: 0; padding: 10px 12px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a:hover:not(.on) { background: transparent; color: var(--text); }
.subtabs a.on { color: var(--text) !important; border-bottom-color: var(--accent); font-weight: 600; }

/* Selection chips (professional filter, comforts, payment methods): selected reads inverted. */
body.owner-theme .pro-chip { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; font-size: 0.86rem; padding: 7px 14px; }
body.owner-theme .pro-chip:hover { color: var(--text); border-color: var(--line-3); }
body.owner-theme .pro-chip.on { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; font-weight: 600; }
.amenity-opt { border-color: var(--line-2); background: transparent; font-weight: 500; }
.amenity-opt[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; }
body.owner-theme .pay-pills button { border-radius: var(--r); border-color: var(--line-2); background: transparent; font-weight: 500; }
body.owner-theme .pay-pills button.on { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; }

/* Agenda: day strip, timeline, cards */
body.owner-theme .strip { gap: 8px; }
body.owner-theme .day { background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
body.owner-theme .day:hover { border-color: var(--line-3); }
body.owner-theme .day b { font-weight: 600; letter-spacing: -0.02em; }
body.owner-theme .day small { color: var(--text-3); font-weight: 500; text-transform: capitalize; }
body.owner-theme .day.on { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; box-shadow: none; }
body.owner-theme .day.on small { color: var(--inv-text); opacity: 0.7; font-weight: 600; }
body.owner-theme .day i { background: var(--accent); }
body.owner-theme .day.on i { background: var(--accent); }
body.owner-theme .round { border-color: var(--line-2); background: transparent; }
body.owner-theme .round:hover { border-color: var(--line-3); }
body.owner-theme .tl { border-color: var(--line); background: var(--surface-1); border-radius: var(--r-lg); }
body.owner-theme .tl-row { border-top-color: rgba(var(--ink-rgb), 0.035); }
body.owner-theme .tl-row.hour { border-top-color: var(--line); }
body.owner-theme .tl-row span { color: var(--text-3); font-variant-numeric: tabular-nums; }
body.owner-theme .tl-row.hour span { color: var(--text-2); font-weight: 600; }
body.owner-theme .blk { border-radius: 10px; }
body.owner-theme .blk:not(.lock) { background: color-mix(in srgb, var(--c) 11%, var(--surface-1)); }
body.owner-theme .closed-bar { background: transparent; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-3); }
body.owner-theme .appt-card { background: var(--surface-1); border: 1px solid var(--line); border-left: 2px solid var(--c); border-radius: var(--r-md); }
body.owner-theme .appt-card:hover { background: var(--surface-2); }
:root[data-theme="light"] body.owner-theme .appt-card { box-shadow: var(--shadow-card); }
body.owner-theme .blocked-head h4 { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--text-3); }
body.owner-theme .det-card { background: rgba(var(--ink-rgb), 0.035); border-radius: var(--r-md); }
body.owner-theme .det-card.line { background: transparent; border-color: var(--line); }
body.owner-theme .det-label { color: var(--text-3); font-size: 0.66rem; letter-spacing: 0.12em; }
body.owner-theme .det-badge, body.owner-theme .pay-status { border-radius: 99px; font-weight: 600; }
body.owner-theme .det-services { border-radius: var(--r-md); }
body.owner-theme .det-total b { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
body.owner-theme .perk { background: rgba(var(--ink-rgb), 0.035); border-radius: var(--r); }
body.owner-theme .svc-pick { border-color: var(--line); border-radius: var(--r-md); }
body.owner-theme .svc-pick .svc-opt b { color: var(--text); font-weight: 600; }

/* Item cards (services, products, packages, team) */
.cards-grid { gap: 12px; }
.item-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; gap: 6px; }
.item-card h4 { font-size: 1rem; }
.item-card .price { color: var(--text); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Ranked bars */
.bar-row .bar-label { font-weight: 500; }
.bar-row .bar-val { color: var(--text-2); font-size: 0.85rem; }
.bar-row .bar-track, .bar-track { height: 6px; background: rgba(var(--ink-rgb), 0.07); }
.bar-fill { background: var(--chart-main); }

/* Notices */
.sub-banner { border-radius: var(--r-md); background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hi); font-weight: 500; }
.sub-banner.bad { background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
.load-error { background: var(--surface-3); border-color: color-mix(in srgb, var(--danger) 55%, transparent); border-radius: var(--r-md); }
.owner-main.loading::after { width: 22px; height: 22px; margin-left: -11px; border-width: 2px; }

/* Customer panel */
.quick-grid { gap: 12px; }
.quick { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 0.2s ease; }
.quick:hover { border-color: var(--line-3); }
.quick .ic { width: 42px; height: 42px; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); }
.quick .ic svg { stroke: var(--accent); stroke-width: 1.6; }
.quick strong { font-weight: 600; }
.quick span { color: var(--text-3); font-size: 0.86rem; }
.empty-hero { border: 1px solid var(--line); background: var(--surface-1); border-radius: var(--r-lg); }
.empty-hero svg { stroke-width: 1.4; }
.empty-hero h2 { font-weight: 470; }
.shop-chip { border-color: var(--line); border-radius: var(--r-md); background: var(--surface-1); }
.shop-chip:hover { border-color: var(--line-3); }
.avatar-edit img { border: 1px solid var(--line-3); }
.avatar-edit button { background: var(--surface-3); color: var(--text); border: 2px solid var(--bg); }
:root[data-theme="light"] .avatar-edit button { background: #14231d; color: #f4efe4; }
:root[data-theme="light"] :is(.quick, .shop-tile, .shop-chip, .empty-hero) { background: #ffffff; box-shadow: var(--shadow-card); }

/* Date and time pickers */
.bk-cal-panel { background: var(--surface-2); border-color: var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }
.bk-cal-title { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.015em; }
.bk-cal-nav button { width: 34px; height: 34px; border-radius: var(--r-sm); border-color: var(--line-2); background: transparent; }
.bk-cal-week span { color: var(--text-3); font-weight: 600; }
.bk-cal-days button.today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-hi); }
.bk-cal-days button.on, .bk-cal-grid button.on, .bk-time-grid button.on { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; box-shadow: none; }
.bk-cal-grid button, .bk-time-grid button { border-radius: var(--r); border-color: var(--line); background: transparent; font-weight: 500; }
.bk-time-part { border-radius: var(--r-md); font-weight: 600; letter-spacing: -0.03em; }
.bk-cal-link { color: var(--accent-hi); font-weight: 600; }

/* Phone app shell */
@media (max-width: 900px) {
    .owner-main { padding: 18px 16px calc(98px + env(safe-area-inset-bottom)); }
    body.owner-theme h1 { font-size: 1.85rem; }
    .m-top { background: var(--bar-bg); border-bottom: 1px solid var(--line); }
    .m-brand strong { font-size: 1.12rem; }
    .m-role { color: var(--text-3); font-size: 0.6rem; letter-spacing: 0.16em; font-weight: 600; }
    .m-icon { border-radius: var(--r); border-color: var(--line-2); }
    .m-tabs { background: var(--bar-bg); border-top: 1px solid var(--line); }
    .m-tab { font-size: 0.68rem; font-weight: 500; gap: 4px; }
    .m-tab svg { width: 22px; height: 22px; stroke-width: 1.6; }
    .m-tab.on { color: var(--text); font-weight: 600; }
    .m-tab.on svg { color: var(--accent); }
    .m-fab { background: var(--btn-primary); color: var(--btn-primary-text); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
    .m-sheet-panel { background: var(--surface-2); border-radius: 20px 20px 0 0; border-top-color: var(--line-2); }
    .m-sheet-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.015em; }
    .m-tile { font-weight: 500; color: var(--text-2); }
    .m-tile i { border-radius: 16px; background: var(--surface-1); border: 1px solid var(--line); color: var(--text-2); }
    .m-tile.on { color: var(--text); }
    .m-tile.on i { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
    .m-action { border-radius: var(--r-md); border-color: var(--line); background: var(--surface-1); }
    .m-action i { background: transparent; border: 1px solid var(--line-2); border-radius: var(--r); }
    .modal-window { border-radius: 20px 20px 0 0; }
    .panel { padding: 16px; }
    :root[data-theme="light"] .m-tile i { background: #ffffff; }
}

/* ---------- Charts ---------- */
.chart .axis text { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .cross { stroke: rgba(var(--ink-rgb), 0.3); stroke-dasharray: 3 3; }
.chart .cap { fill: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.chart .cap.lbl { fill: var(--text-3); }
.chart .cap.lbl.hl { fill: var(--text); font-weight: 600; }
.chart .bar.soft { fill: var(--chart-soft); }
.chart-legend { font-size: 0.8rem; color: var(--text-2); gap: 18px; }
.chart-tip { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.75); font-size: 0.82rem; }
.chart-tip .d { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.chart-tip .row b { font-weight: 600; }
.chart-table summary { color: var(--text-3); font-weight: 500; font-size: 0.8rem; }
.chart-table summary:hover { color: var(--text-2); }
.chart-table th { font-size: 0.68rem; }
.hero-figure .n { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.045em; font-size: clamp(2.6rem, 5vw, 3.3rem); }
.hero-figure .l { color: var(--text-3); font-size: 0.9rem; }
.donut-wrap .donut-center { font-size: 9.5px; letter-spacing: 0.14em; fill: var(--text-3); font-weight: 600; }
.donut-wrap .donut-value { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.donut-legend { gap: 10px; }
.donut-legend .it { font-size: 0.88rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.donut-legend .it:last-child { border-bottom: 0; padding-bottom: 0; }
.donut-legend .it i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .it small { color: var(--text-3); }
.donut-legend .it b { font-weight: 600; }
.tx-list { gap: 0; }
.tx { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 13px 4px; }
.tx:last-child { border-bottom: 0; }
.tx strong { font-weight: 600; font-size: 0.94rem; }
.tx .amt { font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.tx .amt::before { content: "+ "; color: var(--success); font-weight: 600; }
.tx .sub { color: var(--text-3); }
.tx .pill { background: rgba(var(--ink-rgb), 0.06); color: var(--text-2); font-weight: 500; }
.tx .pill.pro { background: var(--accent-soft); color: var(--accent-hi); }
:root[data-theme="light"] .chart-tip { background: #ffffff; box-shadow: 0 16px 36px -14px rgba(20, 35, 29, 0.3); }

/* ---------- Vitrine preview keeps the site's dark look ---------- */
.vp-dark {
    --surface-0: #0c1612; --surface-1: #14221d; --surface-2: #1a2a24; --surface-3: #24372f; --well: rgba(3, 9, 7, 0.32);
    --line: rgba(244, 239, 228, 0.08); --line-2: rgba(244, 239, 228, 0.13); --line-3: rgba(244, 239, 228, 0.2);
    --text-2: #c2bfb5; --text-3: #8f968e; --accent-hi: #cdb283; --accent-soft: rgba(185, 150, 91, 0.12); --accent-line: rgba(185, 150, 91, 0.38);
    --inv-bg: #f4efe4; --inv-text: #101c18; --bg-card: #14221d; --bg-elevated: #1a2a24;
    border-radius: var(--r-lg); border-color: var(--line-2);
}
.vt-canvas h1, body.owner-theme .vt-canvas h1 { font-family: var(--font-display); font-weight: 460; letter-spacing: -0.03em; line-height: 1.02; }
.vt-canvas h2 { font-family: var(--font-display); font-weight: 450; letter-spacing: -0.025em; }
.vt-chip { border-radius: var(--r-sm); font-weight: 500; }
.vt-cam { background: var(--surface-3); color: #f4efe4; border-color: var(--night); }
.vt-cover { border-radius: var(--r-md); }

/* Loyalty card text in the house sans (its own display lettering stays). */


/* Map: shop card on the pin and the free-time search follow the same surfaces. */
.leaflet-container { font-family: var(--font-body); }

/* Plans page price */
.plan .price { font-family: var(--font-body) !important; font-weight: 600 !important; letter-spacing: -0.045em; }

/* Row actions in tables stay quiet; a destructive one shows its colour on hover. */
.tbl .btn-danger { border-color: var(--line-3); color: var(--text-2); }
.tbl .btn-danger:hover { border-color: color-mix(in srgb, var(--danger) 70%, transparent); color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
/* Shop names keep the display face inside the panels too (Vitrine preview, booking tiles). */
body.owner-theme .shop-card h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.018em; }

/* ---------- Page-specific pieces, brought onto the same system ---------- */
.svc-card, .prod-card, .pkg-buy-card { border-radius: var(--r-lg); border-color: var(--line); }
:root[data-theme="light"] :is(.svc-card, .prod-card) { box-shadow: var(--shadow-card); }
.svc-card-price, .prod-card-price, .pkg-buy-price { color: var(--text); font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.svc-photo-box, .prod-photo-box { border-radius: var(--r-md); border-color: var(--line-3); }
.chip-btn.on, .pkg-any-btn.on { background: var(--inv-bg); border-color: transparent; color: var(--inv-text); }
.pkg-svc-check { background: var(--inv-bg); color: var(--inv-text); }
.rv-big { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
body.owner-theme .appt .time { font-weight: 600; letter-spacing: -0.02em; }
body.owner-theme .appt .when { background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.cc-stats div, .cc-perk { background: rgba(var(--ink-rgb), 0.035); border-radius: var(--r); }
.cc-stats b { font-weight: 600; letter-spacing: -0.02em; }

/* Public appointment page (link sent to the customer) */
.ap-card { border-radius: var(--r-lg); border-color: var(--line-2); background: rgba(12, 22, 18, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ap-date { background: var(--inv-bg); color: var(--inv-text); border-radius: var(--r-md); }
.ap-state { font-weight: 600; letter-spacing: 0.02em; }
.ap-state.ok, .ap-confirmed { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.ap-state.off { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.ap-confirmed { border-radius: var(--r-md); }
.ap-reply { border-left-width: 2px; }
.stars button { border-radius: var(--r); }

/* Fidelidade: a quiet highlighted entry in the Serviços menu: hairline brass frame, brass star, no fill or motion. */
.owner-sidebar .nav-sub-premium {
    display: flex; align-items: center; gap: 11px; margin: 8px 0 4px -14px; padding: 9px 12px; border-radius: var(--r);
    text-decoration: none; color: var(--text); background: var(--accent-soft); border: 1px solid var(--accent-line);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.owner-sidebar .nav-sub-premium:hover { background: rgba(185, 150, 91, 0.18); border-color: var(--accent); }
.owner-sidebar .nav-sub-premium svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.owner-sidebar .nav-sub-premium span { display: flex; flex-direction: column; font-size: 0.88rem; font-weight: 560; line-height: 1.2; letter-spacing: -0.01em; }
.owner-sidebar .nav-sub-premium small { color: var(--text-3); font-size: 0.7rem; font-weight: 450; letter-spacing: 0; }
.owner-sidebar .nav-sub-premium.on { border-color: var(--accent); background: rgba(185, 150, 91, 0.2); }
.owner-sidebar .nav-sub-premium.on svg { fill: var(--accent); }
.subtabs a[href="/dono/fidelidade"] { color: var(--accent-hi) !important; font-weight: 600; }

/* Dropdown lists (partials.js): the site's own list instead of the browser's. */
select.bk-sel-open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185, 150, 91, 0.2); }
.bk-sel-list {
    position: fixed; z-index: 2500; overflow-y: auto; padding: 5px; border-radius: var(--r-md);
    background: var(--surface-2); border: 1px solid var(--line-3); box-shadow: var(--shadow-pop);
    scrollbar-width: thin; scrollbar-color: rgba(var(--ink-rgb), 0.2) transparent;
}
.bk-sel-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 11px; border-radius: var(--r-sm);
    color: var(--text-2); font-size: 0.92rem; line-height: 1.3; cursor: pointer; user-select: none;
}
.bk-sel-opt svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.bk-sel-opt.act { background: rgba(var(--ink-rgb), 0.07); color: var(--text); }
.bk-sel-opt.on { color: var(--text); font-weight: 560; }
.bk-sel-opt.on svg { opacity: 1; }
.bk-sel-opt.off { opacity: 0.4; cursor: default; }
.bk-sel-group { padding: 10px 11px 5px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 640px) { .bk-sel-opt { padding: 12px 12px; font-size: 1rem; } }

/* "Atende em casa": pill on the shop card and the card on the shop page. */
.home-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-hi); font-size: .78rem; font-weight: 600; }
.home-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-pill + .amenity-icons { margin-top: 10px; }
.home-card { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-1); max-width: 640px; }
.home-card .home-ic { width: 46px; height: 46px; flex: none; border-radius: var(--r); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.home-card .home-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-card .home-tx { display: grid; gap: 3px; min-width: 0; }
.home-card .home-tx strong { font-size: 1.02rem; font-weight: 600; }
.home-card .home-tx span { color: var(--text-2); font-size: .92rem; }
.home-card .home-tx em { font-style: normal; color: var(--text-3); font-size: .88rem; margin-top: 4px; }

/* Two-option switch (booking page: "Na barbearia | Em casa"). */
.mode-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(var(--ink-rgb), .045); border: 1px solid var(--line); }
.mode-switch button { border: 0; border-radius: 7px; padding: 8px 18px; background: transparent; color: var(--text-2); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: color .15s ease, background .15s ease; }
.mode-switch button:hover:not([aria-pressed="true"]) { color: var(--text); }
.mode-switch button[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-text); font-weight: 600; }
