/* ArcaBarber — identidade visual r2 (design/handoff "identidade", revisão 2): azul-noite e cinzas
   frios como moldura fixa; a cor de destaque de cada barbearia é o recheio (botões de ação, cartão
   Agendar). Slate (#64748B/#CBD5E1) substitui o antigo latão. Libre Baskerville (títulos; itálico =
   "da barbearia") · Saira Condensed (rótulos e números) · Manrope (texto). Mobile-first; WCAG AA. */

:root {
    /* ---- Tema claro ---- */
    --bg: #F1F5F9;
    --surface: #FFFFFF;
    --surface-2: #E2E8F0;
    --line-soft: #D8DFE8;
    --line-strong: #94A3B8;
    --ink: #0F172A;
    --ink-2: #475569;
    --ink-3: #94A3B8;
    --slate: #64748B;         /* foco, ícones, estrelas e gráficos sobre fundo claro */
    --slate-light: #CBD5E1;   /* destaque sobre fundo escuro: contador, botão claro, "Barber" */
    --primary-hover: #1E293B;
    --primary-pressed: #020617;
    --on-dark: #F8FAFC;
    --on-dark-2: #94A3B8;
    --dark-line: #334155;
    --dark-active: #1E293B;
    --header-bg: #0F172A;

    --success: #059669; --success-bg: #ECFDF5; --success-text: #065F46; --success-line: #A7F3D0;
    --warning: #64748B; --warning-bg: #F1F5F9; --warning-text: #334155; --warning-line: #CBD5E1;
    --danger: #DC2626;  --danger-bg: #FEF2F2;  --danger-text: #991B1B;  --danger-line: #FECACA;
    --info: #2563EB;    --info-bg: #EFF6FF;    --info-text: #1E40AF;

    /* Cor da barbearia: calculada em runtime por arca.applyTheme (contraste garantido). */
    --accent: var(--brand-accent, #7C3AED);
    --on-accent: var(--brand-on-accent, #FFFFFF);
    --accent-text: var(--brand-accent-text, #6D28D9);
    --accent-hover: color-mix(in oklch, var(--accent) 92%, #000);
    --accent-pressed: color-mix(in oklch, var(--accent) 84%, #000);

    /* Apelidos dos nomes antigos (estilos inline nas telas continuam válidos). */
    --paper: var(--surface);
    --cream: var(--bg);
    --line: var(--line-soft);
    --muted: var(--ink-2);
    --ink-soft: var(--ink-2);
    --gold: var(--slate-light);
    --gold-strong: var(--slate);
    --wine: var(--accent-text);

    --font-display: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
    --font-label: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --shadow-bar: 0 -6px 24px rgba(15, 23, 42, .08);
    --shadow-dialog: 0 12px 40px rgba(15, 23, 42, .18);
    --shadow-drawer: 12px 0 40px rgba(0, 0, 0, .35);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-h: 0px;

    color-scheme: light;
}

/* Tema escuro: pelo sistema, a menos que o app force o claro (data-theme="light"); ou forçado (data-theme="dark"). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme=light]) {
        --bg: #020617;
        --surface: #0F172A;
        --surface-2: #1E293B;
        --line-soft: #334155;
        --line-strong: #475569;
        --ink: #F8FAFC;
        --ink-2: #94A3B8;
        --ink-3: #94A3B8;
        --slate: #CBD5E1;
        --primary-hover: #E2E8F0;
        --primary-pressed: #CBD5E1;
        --header-bg: #0F172A;
        --success: #34D399; --success-bg: #052E24; --success-text: #A7F3D0; --success-line: #065F46;
        --warning: #94A3B8; --warning-bg: #1E293B; --warning-text: #CBD5E1; --warning-line: #475569;
        --danger: #F87171;  --danger-bg: #2A1215;  --danger-text: #FECACA;  --danger-line: #7F1D1D;
        --info: #60A5FA;    --info-bg: #0B1B3A;    --info-text: #BFDBFE;
        --accent: var(--brand-accent-dark, #8B5CF6);
        --on-accent: var(--brand-on-accent-dark, #FFFFFF);
        --accent-text: var(--brand-accent-text-dark, #A78BFA);
        color-scheme: dark;
    }
}

:root[data-theme=dark] {
    --bg: #020617;
    --surface: #0F172A;
    --surface-2: #1E293B;
    --line-soft: #334155;
    --line-strong: #475569;
    --ink: #F8FAFC;
    --ink-2: #94A3B8;
    --ink-3: #94A3B8;
    --slate: #CBD5E1;
    --primary-hover: #E2E8F0;
    --primary-pressed: #CBD5E1;
    --header-bg: #0F172A;
    --success: #34D399; --success-bg: #052E24; --success-text: #A7F3D0; --success-line: #065F46;
    --warning: #94A3B8; --warning-bg: #1E293B; --warning-text: #CBD5E1; --warning-line: #475569;
    --danger: #F87171;  --danger-bg: #2A1215;  --danger-text: #FECACA;  --danger-line: #7F1D1D;
    --info: #60A5FA;    --info-bg: #0B1B3A;    --info-text: #BFDBFE;
    --accent: var(--brand-accent-dark, #8B5CF6);
    --on-accent: var(--brand-on-accent-dark, #FFFFFF);
    --accent-text: var(--brand-accent-text-dark, #A78BFA);
    color-scheme: dark;
}

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

html, body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 400; }
h1:focus { outline: none; }
p { margin: 0 0 .5rem; }

/* ---------- Tipografia ---------- */

.display { font-family: var(--font-display); font-style: italic; font-size: 40px; line-height: 42px; }
.title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 30px; }
h1.title { margin-bottom: 1rem; }
.title--accent { color: var(--ink); }
.title--card { font-family: var(--font-display); font-size: 21px; line-height: 24px; }
.label, .section-label {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.section-label { display: block; margin: 1.5rem 0 .6rem; }
.num { font-family: var(--font-label); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; line-height: 18px; }
.caption { font-size: 12px; line-height: 17px; font-weight: 500; color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.signature { font-family: var(--font-display); font-size: 12px; color: var(--ink-3); text-align: center; margin: 1.5rem 0 .5rem; }
.signature em { color: var(--slate); }

a { color: var(--accent-text); text-underline-offset: 3px; }

/* ---------- Estrutura ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(32px + var(--safe-bottom) + var(--bottom-nav-h)); }
.page--narrow { max-width: 440px; }
.customer-shell { --bottom-nav-h: 0px; }
.customer-shell.has-bottom-nav { --bottom-nav-h: 78px; }
.customer-shell .page { max-width: 560px; }

.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 140px; }
.row--tight > * { flex: 0 0 auto; }
.card-row { display: flex; align-items: center; gap: 12px; }
.card-row .grow, .grow { flex: 1; min-width: 0; }
.card-row .icon { color: var(--slate); flex: 0 0 auto; }

/* ---------- Cabeçalho ---------- */

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: calc(56px + var(--safe-top));
    padding: var(--safe-top) 16px 0;
    background: var(--header-bg);
    color: var(--on-dark);
}
.app-header .brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; flex: 1; }
.app-header .brand img, .brand-mark {
    width: 32px; height: 32px; border-radius: 8px; object-fit: contain; flex: 0 0 auto; background: var(--surface-2);
}
.brand-mark {
    display: grid; place-items: center;
    background: var(--accent); color: var(--on-accent);
    font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 18px;
}
.app-header .brand-name {
    font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-header .page-title { font-family: var(--font-display); font-size: 22px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header .actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 10px;
    background: none; border: 0; color: inherit; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgb(255 255 255 / .06); }
.btn-header {
    height: 40px; padding: 0 14px; border-radius: 8px;
    border: 1.5px solid var(--ink-2); color: var(--on-dark); background: transparent;
    font: 600 14px var(--font-body); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer;
}
.counter {
    position: absolute; top: 5px; right: 4px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--slate-light); color: #0F172A;
    font: 700 11px/18px var(--font-label); text-align: center;
}

/* ---------- Barra inferior (cliente) ---------- */

.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 8px 8px calc(8px + var(--safe-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line-soft);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 52px; border-radius: 10px;
    color: var(--ink-2); text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.2;
}
.bottom-nav a.active { color: var(--ink); font-weight: 700; }
@media (min-width: 1024px) {
    .bottom-nav { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border: 1px solid var(--line-soft); border-bottom: 0; border-radius: 14px 14px 0 0; }
}

/* ---------- Menu lateral / gaveta (equipe) ---------- */

.staff-shell { min-height: 100vh; }
.side-menu {
    display: flex; flex-direction: column;
    width: 264px; padding: calc(20px + var(--safe-top)) 12px calc(20px + var(--safe-bottom));
    background: #0F172A; color: #D8DFE8;
    overflow-y: auto;
    /* Rola normalmente (roda, toque, teclado), mas sem a barra visível sobre o azul-noite. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.side-menu::-webkit-scrollbar { display: none; }
.side-menu__top { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; }
.side-menu__name { font-family: var(--font-display); font-style: italic; font-size: 18px; color: #F8FAFC; line-height: 1.1; }
.side-menu__sub { font-size: 11px; color: #94A3B8; line-height: 1.3; }
.side-menu__group {
    font: 600 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase;
    color: #94A3B8; padding: 14px 10px 4px;
}
.side-menu a, .side-menu button.menu-item {
    display: flex; align-items: center; gap: 10px;
    min-height: 40px; padding: 0 10px; border-radius: 8px;
    color: #D8DFE8; text-decoration: none; font: 500 14px var(--font-body);
    background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.side-menu a:hover, .side-menu button.menu-item:hover { background: rgb(255 255 255 / .05); }
.side-menu a.active { background: var(--dark-active); color: #F8FAFC; font-weight: 700; }
.side-menu a .icon, .side-menu button.menu-item .icon { color: inherit; }
.side-menu .menu-count {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: #CBD5E1; color: #0F172A; font: 700 11px/20px var(--font-label); text-align: center;
}
.side-menu .signature { margin-top: auto; padding-top: 20px; color: #94A3B8; }
.side-menu .signature em { color: #CBD5E1; }
.side-menu .collapse-btn { margin-left: auto; color: #94A3B8; }

.staff-main { min-width: 0; }
.staff-topbar {
    display: none; align-items: center; gap: 12px;
    height: 64px; padding: 0 28px;
    background: var(--surface); border-bottom: 1px solid var(--line-soft);
}
.staff-topbar .page-title { font-family: var(--font-display); font-size: 26px; flex: 1; }
.avatar-initials {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--ink);
    font: 600 13px var(--font-label); letter-spacing: .04em;
}
.staff-content { padding: 16px 16px calc(96px + var(--safe-bottom)); }
.staff-content .page { padding: 0 0 24px; max-width: 1100px; margin: 0; }

.drawer-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .55); animation: fade .2s ease-out; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 41; width: 300px; max-width: 86vw; box-shadow: var(--shadow-drawer); animation: slide-in .24s cubic-bezier(.2, .8, .2, 1); }
.drawer.side-menu a, .drawer.side-menu button.menu-item { min-height: 44px; font-size: 15px; }
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1024px) {
    .staff-shell { display: grid; grid-template-columns: 264px 1fr; }
    .staff-shell.collapsed { grid-template-columns: 72px 1fr; }
    .staff-shell > .side-menu { position: sticky; top: 0; height: 100vh; }
    .staff-shell.collapsed .side-menu { width: 72px; }
    .staff-shell.collapsed .side-menu .hide-collapsed { display: none; }
    /* Recolhido (72 px) marca e botão não cabem lado a lado: empilha, e o "reabrir" fica sempre visível. */
    .staff-shell.collapsed .side-menu__top { flex-direction: column; gap: 8px; padding: 0 0 14px; }
    .staff-shell.collapsed .side-menu .collapse-btn { margin: 0; }
    .staff-shell.collapsed .side-menu a, .staff-shell.collapsed .side-menu button.menu-item { justify-content: center; padding: 0; }
    .staff-shell .app-header.staff-mobile-header { display: none; }
    .staff-topbar { display: flex; }
    .staff-content { padding: 28px; }
}
@media (max-width: 1023.98px) {
    .staff-shell > .side-menu { display: none; }
}

/* ---------- Cartões ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
@media (min-width: 1024px) { .staff-content .card { padding: 20px 24px; } }
.card--dark { background: #0F172A; color: #F8FAFC; border-color: #0F172A; }

.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }

/* ---------- Formulários ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field small { font-size: 12px; line-height: 17px; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font: 400 15px var(--font-body);
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
}
textarea, .field textarea { min-height: 72px; line-height: 1.5; }
::placeholder { color: var(--ink-3); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, select:focus, textarea:focus {
    outline: 3px solid var(--slate);
    outline-offset: 2px;
    border: 2px solid var(--ink);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
    background: var(--surface-2); border-color: var(--line-soft); color: var(--ink-3);
}
.field .error, .field-error { color: var(--danger); font-size: 12px; font-weight: 600; }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: 0 0 auto; }

/* ---------- Botões ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    font: 600 14px var(--font-body);
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
    -webkit-user-select: none; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background: var(--line-soft); border-color: var(--line-soft); color: var(--ink-3); cursor: not-allowed; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-primary:active:not(:disabled) { background: var(--primary-pressed); }

.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); }
.btn-accent:active:not(:disabled) { background: var(--accent-pressed); }

.btn-ghost, .btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover:not(:disabled), .btn-secondary:hover:not(:disabled) { border-color: var(--ink); }
.btn-ghost:active:not(:disabled), .btn-secondary:active:not(:disabled) { background: var(--surface-2); }

.btn-link {
    background: none; border: 0; color: var(--accent-text);
    min-height: 44px; padding: 0 8px; font-weight: 600;
}
.btn-link:hover:not(:disabled) { text-decoration: underline; }
.btn-link:active:not(:disabled) { background: var(--surface-2); }
.btn-link:disabled { background: none; color: var(--ink-3); }
.btn-link.small { min-height: 36px; font-size: 13px; }

.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger-outline { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-link--danger { color: var(--danger); }

.btn-clear { background: var(--slate-light); color: #0F172A; font-weight: 700; }
.btn-clear:hover:not(:disabled) { background: #E2E8F0; }
.btn-on-dark { background: transparent; color: #F8FAFC; border-color: #475569; }
.btn-light { background: #F8FAFC; color: #0F172A; }

.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; }
.btn-lg { min-height: 52px; }

.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--slate); border-top-color: transparent;
    animation: spin .8s linear infinite; flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Selos ---------- */

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    font: 600 11px/1.2 var(--font-label);
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--surface-2);
    color: var(--ink-2);
    white-space: nowrap;
}
.badge--ok, .badge--success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-line); }
.badge--off, .badge--neutral { background: var(--surface-2); color: var(--ink-2); border-color: var(--line-soft); }
.badge--warning { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-line); }
.badge--danger, .stock-badge--low { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-line); }
.badge--dark { background: #0F172A; color: #F8FAFC; border-color: #0F172A; }
.badge--slate { background: var(--slate); color: #0F172A; border-color: var(--slate); }
.badge--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.badge--done { background: var(--success); color: #FFFFFF; border-color: var(--success); }
.badge--noshow { background: var(--danger); color: #FFFFFF; border-color: var(--danger); }

/* ---------- Alertas ---------- */

.alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--danger);
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 14px; line-height: 1.45;
    margin-bottom: 12px;
}
.alert > .icon { color: var(--danger); margin-top: 1px; }
.alert--warning { border-left-color: var(--warning); background: var(--warning-bg); color: var(--warning-text); }
.alert--warning > .icon { color: var(--warning); }
.alert--ok, .alert--success { border-left-color: var(--success); background: var(--success-bg); color: var(--success-text); }
.alert--ok > .icon, .alert--success > .icon { color: var(--success); }
.alert--info { border-left-color: var(--info); background: var(--info-bg); color: var(--info-text); }
.alert--info > .icon { color: var(--info); }
.alert--compact { font-size: 12px; padding: 10px 12px; }
.alert a { color: inherit; font-weight: 600; }

/* ---------- Banner (instalar / lembretes) ---------- */

.banner {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; border-radius: 12px;
    background: #0F172A; color: #F8FAFC;
    margin: 12px 0;
}
.banner > .icon { color: #CBD5E1; }
.banner__text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.banner__text strong { display: block; font-weight: 700; }
.banner__text span { color: #94A3B8; }
.banner .btn { min-height: 36px; padding: 0 12px; }
.banner .banner__dismiss { background: none; border: 0; color: #94A3B8; font: 13px var(--font-body); cursor: pointer; min-height: 44px; }
.banner--outline { background: transparent; border: 1px solid #334155; }

/* ---------- Diálogo ---------- */

.dialog-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); animation: fade .15s ease-out; }
.dialog { width: 100%; max-width: 420px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-dialog); }
.dialog h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.dialog p { font-size: 14px; color: var(--ink-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ---------- Checklist, horários semanais, logo ---------- */

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist .done { color: var(--success); }
.checklist .todo { color: var(--ink-2); }

.schedule-day { display: grid; grid-template-columns: 5.5rem 1fr; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.schedule-day:last-child { border-bottom: 0; }
.schedule-ranges { display: flex; flex-direction: column; gap: 6px; }
.schedule-range { display: flex; gap: 6px; align-items: center; }
.schedule-range input { width: 7rem; }

.logo-preview { max-height: 96px; max-width: 100%; border-radius: 12px; background: var(--surface-2); }
.upload-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 96px; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: 12px;
    background: repeating-linear-gradient(135deg, var(--bg) 0 8px, var(--surface-2) 8px 16px);
    font-size: 13px; color: var(--ink-2); position: relative; cursor: pointer; text-align: center;
}
.upload-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Plataforma (/ e /cadastro) ---------- */

.hero {
    background: #0F172A;
    color: #F8FAFC;
    padding: calc(56px + var(--safe-top)) 20px 48px;
    text-align: center;
}
.hero .title { font-size: 32px; line-height: 1.15; }
.logotype { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: .02em; color: #F8FAFC; }
.logotype em { color: #CBD5E1; }
.logotype--light { color: #0F172A; }
.logotype--light em { color: #64748B; }
.logotype-rule { display: flex; align-items: center; gap: 12px; width: 220px; margin: 12px auto 0; }
.logotype-rule::before, .logotype-rule::after { content: ""; flex: 1; height: 1px; background: #64748B; }
.logotype-rule span { font: 600 12px var(--font-label); letter-spacing: .32em; text-transform: uppercase; color: #CBD5E1; }
.logotype--light + .logotype-rule span { color: #64748B; }

/* ---------- C1 Início da barbearia ---------- */

.tenant-hero { background: var(--header-bg); color: #F8FAFC; padding: 20px 20px 36px; }
.tenant-hero__kicker { font: 600 12px var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: #CBD5E1; }
.tenant-hero__name { font-family: var(--font-display); font-style: italic; font-size: 40px; line-height: 42px; margin: 6px 0 8px; }
.tenant-hero__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #94A3B8; }
.tenant-hero__meta .stars .on { color: #CBD5E1; }
.tenant-home { margin-top: -16px; padding: 0 16px 16px; }
.welcome { max-width: 560px; margin: 0 auto; }

.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry-card {
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 132px; padding: 16px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s ease-out, border-color .15s ease-out;
}
.entry-card:hover { border-color: var(--line-strong); }
.entry-card:active { transform: scale(.98); }
.entry-card .icon { color: var(--slate); }
.entry-card .label { font: 600 17px var(--font-label); letter-spacing: .04em; color: inherit; }
.entry-card--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.entry-card--primary .icon { color: var(--on-accent); }
.home-products { margin-top: 12px; }
.install-card { margin-top: 12px; }

/* ---------- Vitrine ---------- */

.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-bottom: 4px; text-decoration: none; font-weight: 600; font-size: 14px; }
.unit-name { font-family: var(--font-display); font-size: 19px; margin: 0 0 2px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.icon { color: var(--slate); flex: 0 0 auto; }
.btn .icon, .entry-card--primary .icon, .app-header .icon, .bottom-nav .icon { color: inherit; }
.placeholder-img { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--bg) 6px 12px); }

/* ---------- C6 Agendar ---------- */

.booking { padding-bottom: calc(150px + var(--safe-bottom)); }
.step-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line-soft);
    background: var(--surface);
    margin-bottom: 10px;
}
.step-card > .icon { color: var(--slate); }
.step-card .step-label { display: block; font: 600 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.step-card .step-value { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.step-card .btn-link { min-height: 40px; }
.step-card.locked { background: var(--surface-2); }
.step-card.locked > .icon, .step-card.locked .lock { color: var(--ink-2); }

.option {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    width: 100%; padding: 12px 14px;
    font: inherit; text-align: left; color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px;
    cursor: pointer; min-height: 48px;
}
.option:hover { border-color: var(--ink); }
.option:active { background: var(--surface-2); }
.option-check { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.option-check:last-of-type { border-bottom: 0; }

.slots-card .slots-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.slots-card .slots-head .icon { color: var(--slate); }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day {
    flex: 0 0 46px; height: 60px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    font: inherit; color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: 10px;
    cursor: pointer;
}
.day .day-name { font-size: 11px; font-weight: 600; text-transform: uppercase; line-height: 1.2; }
.day .day-num { font: 600 20px/1.1 var(--font-label); font-variant-numeric: tabular-nums; }
.day.selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day:disabled { background: var(--surface-2); color: var(--line-strong); cursor: not-allowed; }
@media (min-width: 720px) { .day { flex-basis: 56px; height: 64px; } }

.slot-date { font-weight: 600; font-size: 14px; margin: 10px 0; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; transition: opacity .15s ease-out; }
@media (min-width: 720px) { .slot-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 340px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
.slot {
    min-height: 44px;
    font: 600 16px var(--font-label);
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
}
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot.selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.slot:disabled { background: var(--surface-2); border-color: var(--surface-2); color: var(--line-strong); text-decoration: line-through; cursor: not-allowed; }

.booking-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.booking-total > span:first-child { font-size: 13px; color: var(--ink-2); }
.booking-total strong { font: 600 20px var(--font-label); font-variant-numeric: tabular-nums; }
.booking-total .muted { font: 500 20px var(--font-label); }

.policy-notice {
    display: flex; align-items: flex-start; gap: 12px; margin: 12px 0;
    padding: 12px 14px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line-soft);
}
.policy-notice .icon { flex: none; color: var(--slate); margin-top: 1px; }
.policy-notice div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.policy-notice strong { font-size: 14px; line-height: 1.35; color: var(--ink); }
.policy-notice span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }

.confirm-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 12px 16px calc(12px + var(--safe-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line-soft);
    box-shadow: var(--shadow-bar);
}
.confirm-bar > * { max-width: 528px; margin-left: auto; margin-right: auto; }
.confirm-bar .btn { min-height: 52px; }
/* O botão é inline-flex: sem virar bloco, a margem automática não o centraliza no computador. */
.confirm-bar > .btn { display: flex; width: 100%; }

/* C6 Confirmação — tela inteira escura */
.confirmation-screen {
    position: fixed; inset: 0; z-index: 35; overflow-y: auto;
    background: #0F172A; color: #F8FAFC;
    padding: calc(12px + var(--safe-top)) 0 calc(34px + var(--safe-bottom));
}
.confirmation-screen .inner { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.confirmation-screen .close { display: flex; justify-content: flex-end; }
.confirmation-check { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #CBD5E1; color: #CBD5E1; display: grid; place-items: center; margin: 12px 0 18px; }
.confirmation-title { font-family: var(--font-display); font-style: italic; font-size: 36px; line-height: 1.05; margin: 0 0 10px; }
.confirmation-when { font: 600 26px var(--font-label); text-transform: uppercase; color: #CBD5E1; letter-spacing: .02em; margin-bottom: 20px; }
.summary-card { background: #F1F5F9; color: #0F172A; border-radius: 14px; padding: 16px; font-size: 14px; }
.summary-card .line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary-card .line span:first-child { color: #475569; }
.summary-card .total { border-top: 1px solid #D8DFE8; margin-top: 8px; padding-top: 10px; align-items: baseline; }
.summary-card .total strong { font: 600 18px var(--font-label); }
.summary-card .note { font-size: 12px; color: #475569; margin: 6px 0 0; }
.confirmation-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- C11 Meus agendamentos ---------- */

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-head .title { margin: 0; }
.chip-action {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
    font: 600 13px var(--font-body); cursor: pointer; text-decoration: none;
}
.offer-card {
    background: #0F172A; color: #F8FAFC;
    border: 1.5px solid #64748B; border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.offer-card .offer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-card .offer-kicker { font: 600 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: #CBD5E1; }
.offer-card .offer-timer { background: #CBD5E1; color: #0F172A; border-radius: 999px; padding: 3px 8px; font: 700 11px var(--font-label); font-variant-numeric: tabular-nums; }
.offer-card .offer-title { font-family: var(--font-display); font-style: italic; font-size: 22px; margin: 8px 0 6px; }
.offer-card .offer-detail { font-size: 14px; color: #D8DFE8; }
.offer-card .offer-actions { display: flex; gap: 8px; margin-top: 12px; }
.offer-card .offer-actions .btn-clear { flex: 1; }

.appt-card .appt-when { font: 600 20px var(--font-label); font-variant-numeric: tabular-nums; }
.appt-card .appt-price { font: 600 16px var(--font-label); font-variant-numeric: tabular-nums; }
.appt-card .appt-actions { display: flex; gap: 8px; margin-top: 10px; }
.appt-card .appt-actions .btn { min-height: 44px; }
.history-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.history-item:last-child { border-bottom: 0; }
.order-thumb { width: 44px; height: 44px; border-radius: 8px; flex: 0 0 auto; object-fit: cover; }

/* ---------- Estrelas ---------- */

.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.stars .star-row { display: inline-flex; gap: 1px; color: var(--slate); }
.stars .on { color: var(--slate); }
.stars .avg { font: 600 16px var(--font-label); color: var(--ink); }
.stars--input { display: flex; gap: 4px; }
.stars--input button { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; padding: 0; color: var(--line-strong); cursor: pointer; }
.stars--input button.on { color: var(--slate); }
.stars--small button { width: 36px; height: 36px; }
.review-form textarea { width: 100%; }

/* ---------- Segmentado e chips ---------- */

.segmented { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; margin: 8px 0 14px; }
.segmented button { flex: 1; min-height: 40px; padding: 0 12px; font: 600 14px var(--font-body); border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .15); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); font: 600 13px var(--font-body); cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.report-unit { margin-bottom: 8px; max-width: 100%; }

/* ---------- Agenda do barbeiro ---------- */

.staff { padding-bottom: calc(96px + var(--safe-bottom)); }
.agenda-toolbar { display: flex; align-items: center; gap: 8px; }
.agenda-toolbar .grow { flex: 1; text-align: center; font: 600 16px var(--font-label); letter-spacing: .04em; text-transform: uppercase; }
.agenda-day { margin-bottom: 20px; }
.agenda-item { border-left: 4px solid var(--ink); }
.agenda-item.is-done { background: var(--success-bg); border-color: var(--success-line); border-left-color: var(--success); }
.agenda-item.is-noshow { opacity: .8; }
.agenda-item.is-noshow .agenda-time { text-decoration: line-through; }
.agenda-item.is-hold { border: 1.5px dashed var(--line-strong); color: var(--ink-2); background: transparent; }
.agenda-time { display: flex; flex-direction: column; font: 600 18px var(--font-label); font-variant-numeric: tabular-nums; min-width: 3.6rem; }
.agenda-time small { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.agenda-actions { margin-top: 10px; }
.agenda-actions .btn { flex: 1 1 0; min-height: 40px; }
.agenda-block {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; margin-bottom: 12px;
    border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 14px;
}
.agenda-block .icon { color: var(--ink-2); }
.manual-booking { border: 1.5px solid var(--ink); }
.fab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--line-soft); box-shadow: var(--shadow-bar); }
@media (min-width: 1024px) { .fab-bar { left: 264px; } .staff-shell.collapsed .fab-bar { left: 72px; } }

/* ---------- Notificações ---------- */

.bell { position: relative; }
.bell-dot { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--slate-light); color: #0F172A; font: 700 11px/18px var(--font-label); text-align: center; }
.notification {
    display: flex; align-items: flex-start; gap: 12px;
    width: 100%; padding: 12px 4px; font: inherit; text-align: left;
    background: none; border: 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; color: var(--ink);
}
.notification:last-child { border-bottom: 0; }
.notification .icon { margin-top: 2px; }
.notification.unread { font-weight: 600; }
.notification.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--slate); margin-top: 8px; flex: 0 0 auto; }
.notification:not(.unread) { color: var(--ink-2); }
.notification:not(.unread)::before { content: ""; width: 8px; flex: 0 0 auto; }
.push-optin { margin: 12px 0; }

/* ---------- KPI, gráficos ---------- */

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px; margin: 10px 0 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi .label { font-size: 11px; }
.kpi strong { font: 600 28px/32px var(--font-label); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.kpi--danger strong { color: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 120px; overflow-x: auto; }
.bar { flex: 1 0 12px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar span { width: 100%; background: var(--line-soft); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar.is-top span, .bar:hover span { background: var(--slate); }
.bar small { font-size: 11px; color: var(--ink-2); }
.meter { height: 6px; background: var(--surface-2); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--slate); }
.dist-row { display: grid; grid-template-columns: 2.5rem 1fr 2rem; align-items: center; gap: 8px; margin: 4px 0; }
.dist-row > span:first-child { font: 600 14px var(--font-label); }
.dist-row .meter { margin: 0; height: 8px; border-radius: 4px; }
.dist-row .meter span { background: var(--slate); }
.as-link { width: 100%; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.as-link.selected { background: var(--surface-2); }

/* ---------- Produtos ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.product-card img, .product-card .img-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.product-card .price { font: 600 18px var(--font-label); font-variant-numeric: tabular-nums; }
.product-card.is-out { opacity: .7; }
.product-card select { max-width: 100%; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--line-strong); border-radius: 8px; }
.stepper .btn { min-height: 44px; width: 44px; padding: 0; border: 0; background: none; color: var(--ink); }
.stepper span { font: 600 18px var(--font-label); min-width: 2ch; text-align: center; }
.product-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.file-label { position: relative; overflow: hidden; cursor: pointer; }
.file-label input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Esqueleto ---------- */

.skeleton {
    display: block; border-radius: 4px; height: 14px; margin: 8px 0;
    background: linear-gradient(90deg, var(--surface-2) 0, var(--bg) 40%, var(--surface-2) 80%);
    background-size: 800px 100%;
    animation: shimmer 1.4s linear infinite;
}
.skeleton--title { height: 22px; width: 55%; }
.skeleton--block { height: 72px; border-radius: 12px; }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }

/* ---------- Boot / splash / erros ---------- */

.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: #0F172A; color: #F8FAFC; position: relative; }
.boot-ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.boot-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #334155; border-top-color: #CBD5E1; animation: spin 1.1s linear infinite; }
.boot-icon { width: 80px; height: 80px; border-radius: 20px; display: grid; place-items: center; background: #0F172A; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 44px; color: #CBD5E1; overflow: hidden; }
.boot-icon img { width: 100%; height: 100%; object-fit: cover; }
.boot-name { font-family: var(--font-display); font-style: italic; font-size: 32px; min-height: 40px; }
.boot .signature { position: absolute; bottom: calc(44px + var(--safe-bottom)); left: 0; right: 0; margin: 0; }
.boot .signature em { color: #CBD5E1; }

#blazor-error-ui {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 44px calc(14px + var(--safe-bottom)) 16px;
    background: #0F172A; color: #F8FAFC; font-size: 14px;
}
#blazor-error-ui .reload { color: #CBD5E1; font-weight: 600; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 12px; }

.blazor-error-boundary { padding: 12px 14px; background: var(--danger-bg); color: var(--danger-text); border-radius: 10px; border-left: 3px solid var(--danger); }
.blazor-error-boundary::after { content: "Ocorreu um erro nesta parte da tela."; }

/* ---------- Acessibilidade ---------- */

a:focus-visible, button:focus-visible, .btn:focus-visible, .slot:focus-visible, .day:focus-visible,
.chip:focus-visible, .option:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible {
    outline: 3px solid var(--slate);
    outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .skeleton { animation: none; }
}

.icon.flip { transform: scaleX(-1); }
/* No computador o título da tela já está no topo da área de conteúdo (menu lateral). */
@media (min-width: 1024px) {
    .staff-content .page > h1.title:first-child,
    .staff-content .page > .card-row:first-child > h1.title,
    .staff-content .page > .back-link:first-child { display: none; }
    .staff-content .page > .back-link:first-child + h1.title { display: none; }
}
.slot-date::first-letter { text-transform: uppercase; }

/* ---------- Divulgação: link e QR code ---------- */
.share-link { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.share-link__url {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2);
    font-size: 14px; font-weight: 600; color: var(--ink);
}
.share-link__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.share-link__url .icon { flex: none; color: var(--slate); }
.share-link__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-link__actions .btn { flex: 1 1 auto; }
.share-card__body { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.share-card__qr, .share-dialog__qr { flex: none; padding: 8px; background: #FFFFFF; border: 1px solid var(--line-soft); border-radius: 12px; line-height: 0; }
.share-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.share-dialog__head h2 { margin: 0; }
.share-dialog__qr { width: fit-content; margin: 14px auto; }
.qr-code { display: block; max-width: 100%; height: auto; }

/* ---------- Cartaz A4 com o QR (tela Marca) — paleta r2 ---------- */
.qr-poster {
    box-sizing: border-box; width: 210mm; height: 297mm; padding: 16mm 18mm 12mm;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #0F172A; color: #F8FAFC; font-family: var(--font-body);
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    /* Papel não tem tema escuro: sempre a cor original da barbearia, nunca a variação clareada. */
    --accent: var(--brand-accent, #7C3AED);
    --on-accent: var(--brand-on-accent, #FFFFFF);
}
.qr-poster__head { display: flex; flex-direction: column; align-items: center; gap: 4mm; }
.qr-poster__logo { width: 22mm; height: 22mm; border-radius: 5mm; object-fit: cover; background: #FFFFFF; }
.qr-poster__initial {
    display: grid; place-items: center; width: 22mm; height: 22mm; border-radius: 5mm;
    background: var(--accent); color: var(--on-accent);
    font: italic 700 40pt/1 var(--font-display);
}
.qr-poster__kicker { font: 600 11pt var(--font-label); letter-spacing: .28em; text-transform: uppercase; color: #CBD5E1; }
.qr-poster__name { font: italic 400 34pt/1.1 var(--font-display); color: #F8FAFC; max-width: 170mm; }
.qr-poster__cta { margin: 12mm 0 10mm; font: 400 22pt/1.2 var(--font-display); color: #F8FAFC; }
.qr-poster__qr {
    padding: 7mm; border-radius: 7mm; background: #FFFFFF; line-height: 0;
    box-shadow: 0 0 0 1.5mm #1E293B, 0 0 0 1.9mm #334155;
}
.qr-poster__qr .qr-code { width: 104mm; height: 104mm; }
.qr-poster__pill {
    margin-top: 7mm; padding: 2.5mm 7mm; border-radius: 999px;
    background: var(--accent); color: var(--on-accent);
    font: 700 13pt var(--font-body);
}
.qr-poster__steps {
    display: flex; justify-content: center; gap: 8mm; margin: 10mm 0 0; padding: 0; list-style: none;
    font-size: 11pt; color: #CBD5E1;
}
.qr-poster__steps li { display: flex; align-items: center; gap: 2.5mm; }
.qr-poster__steps span {
    display: grid; place-items: center; width: 7mm; height: 7mm; border-radius: 50%;
    border: .4mm solid #475569; font: 700 10pt var(--font-label); color: #F8FAFC;
}
.qr-poster__url { margin-top: auto; font: 600 14pt var(--font-label); letter-spacing: .04em; color: #CBD5E1; }
.qr-poster__sig { margin-top: 3mm; font: 400 10pt var(--font-display); color: #94A3B8; }
.qr-poster__sig em { color: #CBD5E1; }

/* Prévia na tela: o mesmo cartaz, reduzido a 40%. */
.poster-preview {
    width: calc(210mm * .4); height: calc(297mm * .4); margin: 0 auto; overflow: hidden;
    border-radius: 8px; box-shadow: var(--shadow-dialog);
}
.poster-preview .qr-poster { transform: scale(.4); transform-origin: top left; }

.print-only { display: none; }
@media print {
    @page { size: A4 portrait; margin: 0; }
    html, body { background: #0F172A !important; }
    body * { visibility: hidden; }
    .print-only, .print-only * { visibility: visible; }
    .print-only { display: block; position: fixed; inset: 0; }
}

/* Seletor "Agenda de: Fulano" no menu lateral (gerente/dono) — handoff: 40 px, borda #334155. */
.pro-picker {
    position: relative; display: flex; align-items: center; gap: 8px;
    height: 40px; margin: 0 0 6px; padding: 0 30px 0 10px;
    border: 1px solid #334155; border-radius: 8px; color: #F8FAFC; font-size: 13px; cursor: pointer;
}
.pro-picker .icon { flex: none; color: #CBD5E1; }
.pro-picker__label { flex: none; color: #D8DFE8; }
.pro-picker select {
    appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; height: 100%;
    padding: 0; border: 0; background: none; color: inherit; font: 700 13px var(--font-body); cursor: pointer;
    text-overflow: ellipsis;
}
.pro-picker select option { color: #0F172A; }
.pro-picker::after {
    content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
    border-right: 1.75px solid #94A3B8; border-bottom: 1.75px solid #94A3B8; transform: rotate(45deg); pointer-events: none;
}
.pro-picker:focus-within { outline: 3px solid #64748B; outline-offset: 2px; }
.pro-picker select:focus { outline: none; }

/* Cartão de link/QR: no celular o QR vai para cima e os botões ocupam a largura toda. */
.share-card__body { justify-content: center; }
.share-card__body > .stack { flex: 1 1 260px; }

/* Botão de tema (sol/lua): no cabeçalho; nas telas sem cabeçalho, flutua no canto superior direito. */
.theme-toggle--floating {
    position: fixed; z-index: 30;
    top: calc(12px + var(--safe-top)); right: 12px;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: 999px;
    box-shadow: var(--shadow-dialog);
}
.theme-toggle--floating:hover { background: var(--surface-2); }
.staff-topbar .icon-btn:hover { background: var(--surface-2); }

/* Lista de recursos da página inicial da plataforma: respiro nas bordas, itens separados por linha
   fina e ícone num quadrado slate — lê como lista, não como parágrafo corrido. */
.feature-list { display: flex; flex-direction: column; margin: 0; padding: 8px 20px; list-style: none; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.feature-list li + li { border-top: 1px solid var(--line-soft); }
.feature-list .feature-icon {
    flex: none; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface-2); color: var(--slate);
}
.feature-list .feature-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feature-list strong { font-size: 15px; line-height: 1.35; }
.feature-list .feature-text > span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 640px) { .feature-list { padding: 8px 28px; } }
.customer-shell .page--features { max-width: 660px; padding-top: 24px; }

/* ---------- LGPD: documentos, aceite, aviso e Meus dados ---------- */
.legal { max-width: 720px; }
.customer-shell .page.legal { max-width: 720px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-family: var(--font-display); font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--ink); }
.legal ul { padding-left: 20px; margin: 0 0 8px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-text); }
.legal-lead { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); }
.legal-footer { margin-top: 28px; }

.legal-links { display: flex; justify-content: center; gap: 8px; padding: 8px 0 16px; font-size: 12px; color: var(--ink-3); }
.legal-links a { color: var(--ink-2); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
.side-menu .legal-links { justify-content: flex-start; padding: 6px 0 0; }
.side-menu .legal-links a { color: #94A3B8; }

.check--terms { align-items: flex-start; min-height: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.check--terms input { margin-top: 1px; }
.check--terms a { color: var(--accent-text); font-weight: 600; }

/* Aviso de primeiro acesso: faixa escura presa ao rodapé, acima da barra inferior. */
.privacy-notice {
    position: fixed; z-index: 35; left: 12px; right: 12px;
    bottom: calc(12px + var(--safe-bottom) + var(--bottom-nav-h));
    display: flex; align-items: center; gap: 12px;
    max-width: 560px; margin: 0 auto; padding: 12px 14px;
    background: #0F172A; color: #F8FAFC; border: 1px solid #334155; border-radius: 12px;
    box-shadow: var(--shadow-dialog); animation: fade .2s ease-out;
}
.privacy-notice .icon { flex: none; color: #CBD5E1; }
.privacy-notice p { margin: 0; flex: 1; font-size: 13px; line-height: 1.45; color: #F8FAFC; }
.privacy-notice a { color: #CBD5E1; font-weight: 600; white-space: nowrap; }
.has-bottom-nav .privacy-notice { bottom: calc(84px + var(--safe-bottom)); }

.data-list { display: grid; gap: 0; margin: 0; }
.data-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.data-list > div:last-child { border-bottom: 0; }
.data-list dt { color: var(--ink-2); font-size: 14px; }
.data-list dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; }
.danger-zone { border-color: var(--danger-line); }
.danger-zone .label { color: var(--danger-text); }
.consequences { margin: 0; padding-left: 18px; }
.consequences li { margin-bottom: 4px; }
.deleted-card { text-align: center; align-items: center; }
.deleted-card .icon { color: var(--success); }
.data-link { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.data-link:hover { color: var(--ink); text-decoration: underline; }

/* "Confirme seu e-mail" (cadastro e login do dono) */
.check-email { text-align: center; align-items: center; margin-top: 8px; }
.check-email__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); color: var(--slate); }
.check-email h2 { font-family: var(--font-display); font-size: 22px; margin: 4px 0 0; }
.check-email p { margin: 0; color: var(--ink-2); }
.check-email p strong { color: var(--ink); }
.check-email .btn, .check-email .alert { width: 100%; }
