/* =====================================================================
   CeTech Barber — Design System v2 (escuro premium, estilo app)
   ===================================================================== */
:root {
    --bg: #09090B;
    --bg-2: #0E0E12;
    --surface: #141418;
    --surface-2: #1B1B21;
    --surface-3: #24242C;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #F7F5F0;
    --dim: #A1A1AA;
    --faint: #6B6B74;
    --accent: #F5B82E;
    --accent-2: #FFD36B;
    --accent-rgb: 245, 184, 46;
    --on-accent: #141005;
    --accent-soft: rgba(var(--accent-rgb), 0.12);
    --accent-line: rgba(var(--accent-rgb), 0.35);
    --success: #22C55E;
    --success-soft: rgba(34, 197, 94, 0.12);
    --danger: #EF4444;
    --danger-soft: rgba(239, 68, 68, 0.12);
    --wa: #25D366;
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.65);
    --shadow-gold: 0 10px 30px -8px rgba(var(--accent-rgb), 0.45);
    --glass: rgba(14, 14, 18, 0.72);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    font-feature-settings: "tnum" 1;
}
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(var(--accent-rgb),.07), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(var(--accent-rgb),.04), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Animação de entrada ---------- */
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.anim > * { animation: up .45s var(--ease) both; }
.anim > *:nth-child(2) { animation-delay: .04s; } .anim > *:nth-child(3) { animation-delay: .08s; }
.anim > *:nth-child(4) { animation-delay: .12s; } .anim > *:nth-child(5) { animation-delay: .16s; }
.anim > *:nth-child(6) { animation-delay: .2s; }  .anim > *:nth-child(n+7) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .anim > * { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); }
.eyebrow.accent { color: var(--accent); }
.muted { color: var(--dim); }
.small { font-size: 0.84rem; }
.money { font-weight: 800; color: var(--accent); white-space: nowrap; }
.money.green { color: var(--success); }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ---------- Superfícies ---------- */
.card {
    position: relative;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 40%, rgba(255,255,255,.02)) border-box;
    border: 1px solid transparent;
    border-radius: var(--r-lg);
    padding: 20px;
}
.card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 1.3px;
    text-transform: uppercase; color: var(--dim); margin-bottom: 14px;
}
.card-title i { color: var(--accent); }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }

/* ---------- Grades ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 20px; border-radius: 14px;
    font-size: 0.9rem; font-weight: 800;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .2s, opacity .15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), var(--shadow-gold);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-3); }
.btn-danger { background: var(--danger-soft); color: #fca5a5; border-color: rgba(239,68,68,.25); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-wa { background: var(--wa); color: #05200e; box-shadow: 0 10px 28px -10px rgba(37,211,102,.6); }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 0.98rem; border-radius: 16px; padding: 0 24px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.8rem; border-radius: 11px; }
.btn[disabled], .btn.disabled { opacity: .4; pointer-events: none; box-shadow: none; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); color: var(--dim);
    border: 1px solid var(--border); cursor: pointer; font-size: 0.92rem;
    transition: .15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.ok:hover  { background: var(--success); border-color: var(--success); color: #fff; }
.icon-btn.bad:hover { background: var(--danger);  border-color: var(--danger);  color: #fff; }
.icon-btn.wa:hover  { background: var(--wa);      border-color: var(--wa);      color: #fff; }
.icon-btn.on-img { background: rgba(9,9,11,.55); border-color: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .label { font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
    width: 100%; height: 50px; padding: 0 16px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 14px;
    font-family: inherit; font-size: 0.96rem; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--bg); }
.field input::placeholder, .input::placeholder { color: var(--faint); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .9rem; pointer-events: none; }
.input-icon > input { padding-left: 44px !important; }
.help { font-size: 0.76rem; color: var(--faint); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; }
input[type=file] { display: none; }
select { color-scheme: dark; }

/* ---------- Badges / chips ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
    font-size: 0.66rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
    background: var(--surface-2); color: var(--dim); white-space: nowrap;
}
.badge.pendente  { background: var(--accent-soft);  color: var(--accent); }
.badge.concluido { background: var(--success-soft); color: var(--success); }
.badge.faltou    { background: var(--danger-soft);  color: #f87171; }
.badge.cancelado { background: rgba(113,113,122,.16); color: var(--faint); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--success); box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.dot.off { background: var(--danger); box-shadow: 0 0 0 4px rgba(239,68,68,.15); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
    background: var(--surface); color: var(--dim); border: 1px solid var(--border); transition: .15s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); color: #111; border-color: var(--text); }

.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.segmented a { padding: 7px 14px; border-radius: 10px; font-size: .8rem; font-weight: 700; color: var(--dim); }
.segmented a.active { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* ---------- Avisos ---------- */
.alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.alert {
    padding: 13px 16px; border-radius: 14px; font-size: 0.9rem; font-weight: 600;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; gap: 10px; animation: up .35s var(--ease);
}
.alert-success, .alert-sucesso { background: var(--success-soft); color: #86efac; border-color: rgba(34,197,94,.25); }
.alert-danger, .alert-erro     { background: var(--danger-soft);  color: #fca5a5; border-color: rgba(239,68,68,.25); }
.alert-warning, .alert-info    { background: rgba(245,184,46,.12);  color: #fde68a; border-color: rgba(245,184,46,.25); }

.empty { text-align: center; padding: 44px 20px; color: var(--dim); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.empty i { font-size: 2rem; opacity: .35; margin-bottom: 12px; display: block; }

/* ---------- Avatar / imagens ---------- */
.avatar {
    width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; overflow: hidden;
    background: var(--surface-2); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    border: 1px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.thumb { width: 64px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.capa-prev {
    aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; cursor: pointer;
    border: 1px dashed var(--border-strong); background: var(--bg-2);
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.capa-prev.wide { aspect-ratio: 16 / 7; }
.capa-prev img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Switch ---------- */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; border-radius: 999px; cursor: pointer; background: var(--surface-3); border: 1px solid var(--border-strong); transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: var(--dim); transition: .2s var(--ease); }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); background: var(--on-accent); }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.list-row:last-child { border-bottom: none; }

.footer-note { text-align: center; color: var(--faint); font-size: 0.74rem; padding: 32px 16px 28px; }
.footer-note a { color: var(--accent); font-weight: 700; }

/* =====================================================================
   PAINEL (dono e barbeiro)
   ===================================================================== */
.adm-side { display: none; }
.adm-top {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.adm-top .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.adm-top .brand img { width: 32px; height: 32px; border-radius: 9px; }
.adm-main { padding: 22px 16px 112px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head h1 { font-size: 1.55rem; font-weight: 800; }
.adm-head p { color: var(--dim); font-size: 0.92rem; margin-top: 2px; }

.adm-tabbar {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(var(--n, 6), 1fr);
    padding: 7px; border-radius: 22px; border: 1px solid var(--border-strong);
    background: var(--glass); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: var(--shadow);
}
.adm-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.6rem; font-weight: 700; color: var(--faint); padding: 7px 0; border-radius: 15px; transition: .15s; }
.adm-tabbar a i { font-size: 1.05rem; }
.adm-tabbar a.active { color: var(--accent); background: var(--accent-soft); }

@media (min-width: 960px) {
    .adm-top, .adm-tabbar { display: none; }
    .adm-side {
        display: flex; flex-direction: column; gap: 4px;
        position: fixed; top: 12px; bottom: 12px; left: 12px; width: 248px;
        padding: 22px 14px; border-radius: 24px; overflow-y: auto;
        background: var(--bg-2); border: 1px solid var(--border);
    }
    .adm-side .logo { padding: 2px 10px 22px; }
    .adm-side .logo img { height: 50px; width: auto; }
    .adm-side .shop {
        display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0 0 14px;
        border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
    }
    .adm-side .shop img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
    .adm-side .shop b { font-size: .86rem; display: block; line-height: 1.2; }
    .adm-side .shop span { font-size: .72rem; color: var(--faint); }
    .adm-side a.nav {
        display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
        color: var(--dim); font-weight: 600; font-size: 0.92rem; transition: .15s;
    }
    .adm-side a.nav i { width: 20px; text-align: center; }
    .adm-side a.nav:hover { background: var(--surface); color: var(--text); }
    .adm-side a.nav.active { background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
    .adm-side .spacer { flex: 1; }
    .adm-main { margin-left: 272px; padding: 34px 40px 50px; }
    .adm-main > .inner { max-width: 1180px; margin: 0 auto; }
    .adm-head h1 { font-size: 2rem; }
}

.kpi { padding: 18px 20px; overflow: hidden; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); margin-bottom: 12px; font-size: .9rem; }
.kpi .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.kpi .value.green { color: var(--success); }
.kpi .value.accent { color: var(--accent); }
.kpi .label { color: var(--dim); font-size: .8rem; font-weight: 600; margin-top: 2px; }
.kpi.hero { background: linear-gradient(140deg, rgba(var(--accent-rgb),.18), rgba(var(--accent-rgb),.02) 60%) padding-box, linear-gradient(160deg, var(--accent-line), rgba(255,255,255,.03)) border-box; }

.ag-item { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.ag-hora { text-align: right; padding-top: 16px; font-weight: 800; color: var(--text); font-size: 0.95rem; }
.ag-hora small { display: block; color: var(--faint); font-weight: 600; font-size: .7rem; }
.ag-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 14px 16px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.ag-card::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.ag-card.concluido::before { background: var(--success); }
.ag-card.faltou::before { background: var(--danger); }
.ag-card.cancelado { opacity: .55; } .ag-card.cancelado::before { background: var(--faint); }
.ag-card .who { font-weight: 800; }
.ag-card .what { color: var(--dim); font-size: 0.86rem; }
.ag-actions { display: flex; gap: 8px; align-items: center; }

/* Folha (modal de baixo, estilo app) */
.sheet-bg { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.open { display: flex; }
.sheet {
    width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
    background: var(--bg-2); border: 1px solid var(--border-strong); border-bottom: none;
    border-radius: 26px 26px 0 0; padding: 10px 20px 24px; animation: sheetUp .3s var(--ease);
}
.sheet::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--surface-3); margin: 0 auto 14px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 26px; border-bottom: 1px solid var(--border-strong); } }

/* =====================================================================
   PÁGINA DA BARBEARIA (cliente) — estilo app
   ===================================================================== */
.app { max-width: 1120px; margin: 0 auto; padding-bottom: 120px; }
.px { padding-left: 16px; padding-right: 16px; }

.cover { position: relative; height: 210px; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,11,.35) 0%, rgba(9,9,11,0) 35%, rgba(9,9,11,.6) 75%, var(--bg) 100%); }
.cover .top { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.cover .top .row { gap: 8px; }

.shop { position: relative; z-index: 3; margin-top: -54px; }
.shop .logo {
    width: 92px; height: 92px; border-radius: 26px; overflow: hidden;
    border: 3px solid var(--bg); background: var(--surface-2); box-shadow: var(--shadow);
}
.shop .logo img { width: 100%; height: 100%; object-fit: cover; }
.shop h1 { font-size: 1.6rem; font-weight: 800; margin-top: 12px; line-height: 1.15; }
.shop .slogan { color: var(--dim); font-size: .95rem; margin-top: 2px; }
.shop .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .86rem; color: var(--dim); align-items: center; }
.shop .meta b { color: var(--text); }
.quick { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 10px; margin-top: 18px; }
.quick a {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
    font-size: .76rem; font-weight: 700; color: var(--dim); transition: .15s;
}
.quick a i { font-size: 1.15rem; color: var(--text); }
.quick a:hover { border-color: var(--border-strong); color: var(--text); }

.tabs {
    position: sticky; top: 0; z-index: 40; margin-top: 22px;
    display: flex; gap: 4px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none;
    background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
    flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; border: none; cursor: pointer;
    background: transparent; color: var(--dim); font-weight: 700; font-size: .88rem; transition: .15s;
}
.tabs button.active { background: var(--text); color: #111; }
.tab-pane { display: none; padding-top: 20px; }
.tab-pane.active { display: block; }

.section { margin-bottom: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.2rem; font-weight: 800; }

/* Meu horário */
.meu {
    position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px;
    background: linear-gradient(140deg, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),.03) 65%) padding-box, linear-gradient(150deg, var(--accent-line), rgba(255,255,255,.04)) border-box;
    border: 1px solid transparent;
}
.meu .titulo { font-weight: 800; font-size: 1.06rem; margin: 6px 0 10px; }
.meu .when { display: flex; align-items: center; gap: 14px; }
.meu .cal { width: 54px; text-align: center; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--border-strong); flex-shrink: 0; }
.meu .cal span { display: block; background: var(--accent); color: var(--on-accent); font-size: .62rem; font-weight: 800; padding: 3px 0; text-transform: uppercase; }
.meu .cal b { display: block; font-size: 1.35rem; padding: 4px 0 5px; }

/* Cards de serviço */
.servicos-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .servicos-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.servico-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg);
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.02)) border-box;
    border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s;
}
.servico-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.servico-card .capa { aspect-ratio: 16 / 11; background: var(--surface-2); overflow: hidden; position: relative; }
.servico-card .capa img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.servico-card:hover .capa img { transform: scale(1.05); }
.servico-card .capa .sem-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--accent); background: radial-gradient(circle, rgba(var(--accent-rgb),.16), transparent 65%), linear-gradient(135deg, #1B1B21, #0B0B0F); }
.servico-card .tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(9,9,11,.7); backdrop-filter: blur(8px); font-size: .7rem; font-weight: 700; }
.servico-card .add {
    position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: var(--shadow-gold); font-size: .9rem;
}
.servico-card .corpo { padding: 12px 14px 14px; }
.servico-card .nome { font-weight: 800; font-size: .98rem; line-height: 1.25; }
.servico-card .sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: .82rem; color: var(--dim); }

/* Profissionais */
.equipe { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .equipe { grid-template-columns: repeat(4, 1fr); } }
.prof {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 12px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer; transition: .2s var(--ease);
}
.prof .avatar { width: 80px; height: 80px; border-radius: 50%; font-size: 1.7rem; border: 2px solid var(--border-strong); }
.prof .nome { font-weight: 800; }
.prof:hover { border-color: var(--border-strong); }
label.prof { position: relative; }
label.prof input { display: none; }
label.prof .ok { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: transparent; transition: .15s; }
label.prof:has(input:checked) { border-color: var(--accent); background: linear-gradient(160deg, rgba(var(--accent-rgb),.12), transparent); }
label.prof:has(input:checked) .avatar { border-color: var(--accent); }
label.prof:has(input:checked) .ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Sobre */
.horarios-lista .list-row.hoje { color: var(--accent); font-weight: 800; }
.mapa { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); height: 220px; background: var(--surface); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) brightness(.95) contrast(.9); }
.contato { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.contato .ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contato .k { font-size: 0.66rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.contato .v { font-weight: 700; font-size: 0.92rem; }

/* Barra fixa de baixo */
.bottom-bar {
    position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 640px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 22px; border: 1px solid var(--border-strong);
    background: var(--glass); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: var(--shadow); animation: up .4s var(--ease);
}
.bottom-bar .info { min-width: 0; }
.bottom-bar .info .k { font-size: .72rem; color: var(--dim); font-weight: 600; }
.bottom-bar .info .v { font-weight: 800; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Topo dos passos */
.appbar {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
}
.appbar .titulo { flex: 1; min-width: 0; }
.appbar .titulo b { display: block; font-size: 1rem; line-height: 1.2; }
.appbar .titulo span { font-size: .76rem; color: var(--dim); }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; width: 120px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }

.opcao {
    display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: .15s; user-select: none;
}
.opcao .mini { width: 52px; height: 40px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.opcao .mini img { width: 100%; height: 100%; object-fit: cover; }
.opcao .check { width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0; border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: transparent; font-size: .72rem; transition: .15s; }
.opcao.on { border-color: var(--accent); background: linear-gradient(160deg, rgba(var(--accent-rgb),.1), transparent); }
.opcao.on .check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.datebar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.datebar::-webkit-scrollbar { display: none; }
.datebar a {
    flex: 0 0 auto; width: 64px; text-align: center; padding: 10px 0; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border); color: var(--dim); transition: .15s;
}
.datebar a .d { display: block; font-size: 1.25rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.datebar a .w { font-size: 0.64rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.datebar a.active { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-gold); }
.datebar a.active .d { color: var(--on-accent); }
.datebar a.fechado { opacity: .4; }

.slots-group { margin-bottom: 16px; }
.slots-group .eyebrow { margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slots label { cursor: pointer; }
.slots input { display: none; }
.slots span { display: block; text-align: center; padding: 12px 0; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; transition: .15s; }
.slots label:hover span { border-color: var(--border-strong); }
.slots input:checked + span { background: var(--text); color: #111; border-color: var(--text); transform: scale(1.03); }

.resumo .linha { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 0.92rem; }
.resumo .linha span:first-child { color: var(--dim); }
.resumo .total { border-top: 1px dashed var(--border-strong); margin-top: 6px; padding-top: 12px; font-size: 1.05rem; font-weight: 800; }

.layout-2 > * + * { margin-top: 22px; }
.sticky-col { position: static; }
@media (min-width: 900px) {
    .px { padding-left: 32px; padding-right: 32px; }
    .cover { height: 300px; border-radius: 0 0 32px 32px; }
    .shop { display: grid; grid-template-columns: auto 1fr auto; gap: 0 22px; align-items: end; margin-top: -70px; }
    .shop .logo { width: 128px; height: 128px; border-radius: 32px; grid-row: span 2; }
    .shop h1 { font-size: 2.2rem; margin-top: 0; }
    .shop .quick { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; display: flex; }
    .shop .quick a { flex-direction: row; padding: 10px 14px; font-size: .84rem; }
    .shop .quick a i { font-size: 1rem; }
    .tabs { padding-left: 32px; padding-right: 32px; top: 0; }
    .layout-2 { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
    .layout-2 > * + * { margin-top: 0; }
    .sticky-col { position: sticky; top: 84px; }
    .hide-desktop { display: none !important; }
    .bottom-bar.mobile-only { display: none; }
}
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

/* Confirmação */
.sucesso-box { max-width: 480px; margin: 0 auto; text-align: center; padding-top: 30px; }
.sucesso-box .ok {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px;
    background: radial-gradient(circle, rgba(34,197,94,.25), rgba(34,197,94,.06)); color: var(--success);
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
    border: 1px solid rgba(34,197,94,.35); animation: pop .5s var(--ease);
}
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.ticket { text-align: left; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); }
.ticket .head { padding: 16px 18px; background: linear-gradient(140deg, rgba(var(--accent-rgb),.16), transparent); border-bottom: 1px dashed var(--border-strong); display: flex; gap: 14px; align-items: center; }
.ticket .body { padding: 8px 18px 14px; }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card .brand img { height: 56px; }

/* Lista de serviços no painel */
.servico { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.servico .ico { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.servico .info { flex: 1; min-width: 0; }
.servico .nome { font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.servico .ag-actions, .servico .thumb { flex-shrink: 0; }

/* Conteúdo largo (barra de dias) não pode estourar as colunas */
.layout-2 > *, .stack > *, .section { min-width: 0; }

/* Cartão fidelidade */
.selos { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px; margin: 14px 0; }
.selos span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--surface-3); font-size: .8rem; }
.selos span.on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---------- Tour guiado do painel ---------- */
.tour { position: fixed; inset: 0; z-index: 9000; }
.tour-bg { position: absolute; inset: 0; }
.tour-foco { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.72), 0 0 0 2px var(--accent);
    transition: all .3s var(--ease, ease); pointer-events: none; }
.tour.sem-alvo .tour-foco { width: 0 !important; height: 0 !important; top: 50% !important; left: 50% !important; box-shadow: 0 0 0 9999px rgba(0,0,0,.72); }
.tour-balao { position: fixed; width: min(340px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 16px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: tourIn .25s ease;
    transition: top .3s var(--ease, ease), left .3s var(--ease, ease); }
.tour.sem-alvo .tour-balao { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.tour-cont { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tour-balao h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.tour-balao p { font-size: .9rem; line-height: 1.5; color: var(--dim); }
.tour-nunca { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .8rem; color: var(--dim); cursor: pointer; }
.tour-nunca input { accent-color: var(--accent); width: 16px; height: 16px; }
.tour-acoes { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tour-pular { background: none; border: 0; color: var(--dim); font-size: .85rem; cursor: pointer; padding: 6px 0; }
.tour-pular:hover { color: var(--text); }
@keyframes tourIn { from { opacity: 0; transform: translateY(6px); } }
.tour.sem-alvo .tour-balao { animation: none; }

/* ---------- Caixa, produtos, avaliações, campanhas, lista de espera ---------- */
.subnav { display: flex; width: fit-content; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.plano-ico { font-size: .62rem; color: var(--accent); }
.estoque-baixo { color: #f87171; font-weight: 700; }
.estrelas { color: #FBBF24; display: inline-flex; gap: 2px; font-size: .85rem; }
.estrelas .fa-regular { color: var(--faint); }
.estrelas.grande { font-size: 1.7rem; gap: 6px; justify-content: center; }
.nota-loja { color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.nota-loja .fa-star { color: #FBBF24; }
.logo-av { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); }
.logo-av img { width: 100%; height: 100%; object-fit: cover; }
.estrelas-input { display: flex; flex-direction: row-reverse; justify-content: center; gap: 8px; }
.estrelas-input input { position: absolute; opacity: 0; pointer-events: none; }
.estrelas-input label { font-size: 2.4rem; color: var(--surface-3); cursor: pointer; transition: transform .12s, color .12s; }
.estrelas-input label:hover, .estrelas-input label:hover ~ label,
.estrelas-input input:checked ~ label { color: #FBBF24; }
.estrelas-input label:active { transform: scale(.9); }
.formas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.formas label { cursor: pointer; text-transform: none; letter-spacing: normal; }
.formas input { position: absolute; opacity: 0; pointer-events: none; }
.formas span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: 12px;
    border: 1px solid var(--border-strong); background: var(--surface); font-weight: 700; font-size: .85rem; transition: .15s;
    text-transform: none; letter-spacing: normal; color: var(--text); }
.formas input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
a.list-row { color: inherit; }
a.list-row:hover b:first-child { color: var(--accent); }

.chip-check, .field .chip-check { cursor: pointer; text-transform: none; letter-spacing: normal; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .8rem; font-weight: 700; color: var(--dim); transition: .15s; }
.chip-check input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.clube-card { border: 1px solid rgba(var(--accent-rgb), .35); background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), transparent 60%), var(--surface); }
.clube-card .preco { font-size: 1.6rem; font-weight: 800; }
