@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600&family=Manrope:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
  --brand: #8E5572;
  --brand-ink: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --brand-line: color-mix(in srgb, var(--brand) 28%, white);
  --brand-deep: color-mix(in srgb, var(--brand) 82%, black);
  --ink: #17151C;
  --ink-2: #4A4653;
  --muted: #8A8592;
  --line: #ECE8EF;
  --bg: #FAF8F6;
  --card: #FFFFFF;
  --ok: #1F8A5B; --ok-bg: #E7F5EE;
  --warn: #B26A00; --warn-bg: #FFF4E0;
  --danger: #C0392B; --danger-bg: #FDECEA;
  --info: #3159C9; --info-bg: #EAF0FD;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23,21,28,.04), 0 8px 24px rgba(23,21,28,.06);
  --shadow-lg: 0 24px 60px rgba(23,21,28,.14);
  --sidebar: 260px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, sans-serif;
  --side-bg: #17151C; --side-ink: #CFCAD6; --side-mute: #8F8899;
  --hero-a: color-mix(in srgb, var(--brand) 55%, #F3C98B); --hero-b: color-mix(in srgb, var(--brand) 70%, #1b1020); --hero-bg: #1B1520; --accent: #F3D3B0;
  --input-bg: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ic { flex-shrink: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.serif { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hide-mobile { }
.stack > * + * { margin-top: 1rem; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-line); color: var(--brand-deep); background: var(--brand-soft); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-sm { padding: .42rem .8rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-mp { background: #009EE3; color: #fff; box-shadow: 0 6px 18px rgba(0,158,227,.3); }
.btn-mp:hover { background: #0087c2; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Formulários ---------- */
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.input, select.input, textarea.input { width: 100%; padding: .72rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--input-bg); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.input[type=color] { padding: .25rem; height: 46px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }

/* ---------- Alertas e badges ---------- */
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-erro { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #F1EFF3; color: var(--muted); }
.badge-brand { background: var(--brand-soft); color: var(--brand-deep); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card-title { font-size: 1.02rem; font-weight: 600; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-side { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }

.kpi { padding: 1.2rem 1.3rem; }
.kpi-label { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi-label .ic { color: var(--brand); }
.kpi-value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-top: .35rem; letter-spacing: -0.02em; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; margin: 0 -1.4rem; padding: 0 1.4rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .6rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.inline { display: inline; }

/* ---------- Painel (app shell) ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: var(--side-bg); color: var(--side-ink); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; z-index: 50; transition: transform .25s; }
.sidebar-brand { display: flex; align-items: center; gap: .7rem; padding: 1.4rem 1.3rem 1.2rem; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #F3C98B)); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-brand strong { color: #fff; font-size: .98rem; display: block; line-height: 1.2; }
.sidebar-brand span { font-size: .75rem; color: var(--side-mute); }
.nav { list-style: none; padding: .5rem .8rem; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #6E6878; padding: 1rem .7rem .4rem; }
.nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 10px; font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active { background: color-mix(in srgb, var(--brand) 26%, transparent); color: #fff; }
.nav a.active .ic { color: color-mix(in srgb, var(--brand) 40%, white); }
.sidebar-foot { padding: 1rem 1.1rem 1.3rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: .7rem; font-size: .85rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .85rem; }
.sidebar-foot .who { flex: 1; min-width: 0; }
.sidebar-foot .who strong { color: #fff; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.sidebar-foot a.out { color: #8F8899; padding: .4rem; border-radius: 8px; }
.sidebar-foot a.out:hover { color: #fff; background: rgba(255,255,255,.06); }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topbar { display: none; }
.content { max-width: 1240px; margin: 0 auto; padding: 2.2rem 2.2rem 4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: .25rem; }
.overlay { display: none; }

.share { display: flex; align-items: center; gap: .6rem; background: var(--brand-soft); border: 1px dashed var(--brand-line); padding: .55rem .6rem .55rem 1rem; border-radius: 999px; font-size: .85rem; color: var(--brand-deep); max-width: 100%; }
.share code { font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .time { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.timeline .who strong { display: block; font-weight: 600; }
.timeline .who span { font-size: .84rem; color: var(--muted); }

.mp-card { display: flex; gap: 1.2rem; align-items: center; }
.mp-logo { width: 56px; height: 56px; border-radius: 16px; background: #009EE3; display: grid; place-items: center; color: #fff; flex-shrink: 0; }

.day-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.day-tabs a { flex: 0 0 auto; text-align: center; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); min-width: 64px; }
.day-tabs a small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day-tabs a b { font-size: 1.05rem; }
.day-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.day-tabs a.active small { color: #BDB7C6; }

/* ---------- Login / landing ---------- */
.landing { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.landing-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at -10% -10%, var(--hero-a), transparent 60%), radial-gradient(900px 700px at 110% 110%, var(--hero-b), transparent 60%), var(--hero-bg); color: #fff; padding: 3rem 4rem; display: flex; flex-direction: column; justify-content: space-between; }
.landing-hero .brand { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: 1.1rem; }
.landing-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.landing-hero h1 em { font-style: italic; color: var(--accent); }
.landing-hero p.lead { color: rgba(255,255,255,.75); font-size: 1.08rem; max-width: 46ch; margin-top: 1.2rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; max-width: 560px; }
.feature { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: rgba(255,255,255,.82); }
.feature .ic { color: var(--accent); margin-top: 2px; }
.landing-form { display: grid; place-items: center; padding: 3rem 2rem; }
.login-box { width: 100%; max-width: 400px; }
.login-box h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Agendamento público ---------- */
.book-body { background: var(--bg); }
.book-hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; padding: 2.4rem 1.25rem 5.5rem; text-align: center; position: relative; }
.book-hero .logo-mark { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 1rem; font-size: 1.8rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); border: 3px solid rgba(255,255,255,.25); }
.book-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -0.02em; }
.book-hero p { color: rgba(255,255,255,.82); margin-top: .35rem; font-size: .95rem; }
.book-meta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: .9rem; font-size: .85rem; color: rgba(255,255,255,.85); }
.book-meta span { display: inline-flex; gap: .35rem; align-items: center; }
.book-wrap { max-width: 640px; margin: -4rem auto 3rem; padding: 0 1rem; position: relative; }
.book-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 1.6rem; }
.steps { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.steps span.on { background: var(--brand); }
.step { display: none; animation: fade .3s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: -0.01em; }
.svc { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; margin-bottom: .7rem; }
.svc:hover { border-color: var(--brand-line); }
.svc input { display: none; }
.svc.sel { border-color: var(--brand); background: var(--brand-soft); }
.svc .svc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; }
.svc.sel .svc-icon { background: var(--brand); color: #fff; }
.svc .svc-info { flex: 1; min-width: 0; }
.svc .svc-info strong { display: block; }
.svc .svc-info span { font-size: .82rem; color: var(--muted); }
.svc .svc-price { font-weight: 700; white-space: nowrap; }
.dates { display: flex; gap: .55rem; overflow-x: auto; padding: .2rem .1rem .6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.date { flex: 0 0 66px; scroll-snap-align: start; text-align: center; padding: .7rem .3rem; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; background: var(--card); font: inherit; color: var(--ink); transition: all .2s; }
.date small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.date b { display: block; font-size: 1.35rem; font-family: var(--font-display); font-weight: 600; }
.date i { font-style: normal; font-size: .7rem; color: var(--muted); }
.date.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.date.sel small, .date.sel i { color: rgba(255,255,255,.85); }
.date:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .55rem; margin-top: 1rem; min-height: 60px; }
.slot { padding: .7rem .3rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-weight: 600; cursor: pointer; transition: all .15s; color: var(--ink); }
.slot:hover { border-color: var(--brand-line); }
.slot.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-opt { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; margin-bottom: .7rem; transition: all .2s; }
.pay-opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt strong { display: block; }
.pay-opt span { font-size: .82rem; color: var(--muted); }
.summary { background: var(--bg); border-radius: 16px; padding: 1rem 1.1rem; margin: 1rem 0; font-size: .9rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.summary div span:first-child { color: var(--muted); }
.summary .total { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .7rem; font-weight: 700; font-size: 1.05rem; }
.step-nav { display: flex; gap: .7rem; margin-top: 1.4rem; }
.step-nav .btn { flex: 1; }
.powered { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 1.4rem; }
.result { text-align: center; padding: 1rem .5rem; }
.result .big-ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; }
.result .big-ic.ok { background: var(--ok-bg); color: var(--ok); }
.result .big-ic.warn { background: var(--warn-bg); color: var(--warn); }
.result .big-ic.err { background: var(--danger-bg); color: var(--danger); }
.result h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 1rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modal ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: rgba(23,21,28,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 100; }
.modal.open { display: flex; display: -webkit-flex; }
body.modal-aberto { overflow: hidden; }
.modal-box { background: var(--card); border-radius: 20px; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 1.6rem; box-shadow: var(--shadow-lg); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-side { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; }
  .landing-hero { padding: 2rem 1.5rem 2.5rem; }
  .features { display: none; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .overlay.open { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.4); z-index: 40; }
  .main { margin-left: 0; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .topbar button { background: none; border: 0; padding: .3rem; cursor: pointer; color: var(--ink); }
  .content { padding: 1.4rem 1rem 3rem; }
  .page-head h1 { font-size: 1.6rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}
@media (max-width: 520px) { .row, .row-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } .kpi-value { font-size: 1.5rem; } .timeline li { grid-template-columns: 54px 1fr; } .timeline li .actions { grid-column: 1 / -1; justify-content: flex-start; } }

@media print { .sidebar, .topbar, .no-print { display: none !important; } .main { margin: 0; } .card { box-shadow: none; } }

/* =====================================================================
   TEMAS  ·  body[data-tema]
   salao (Rosé) · barbearia (Navalha) · estetica (Spa) · noir (Noir)
   ===================================================================== */

/* refinamentos gerais */
.page-head h1, .book-hero h1, .login-box h2, .landing-hero h1 { font-weight: 600; }
.kpi-label { font-family: var(--font-body); }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; opacity: .8; }
.book-hero::after { content: ""; position: absolute; left: 50%; bottom: 3.6rem; width: 54px; height: 1px; background: currentColor; opacity: .35; transform: translateX(-50%); }
.book-hero .eyebrow { display: block; margin-bottom: .6rem; }

/* ---------- Rosé · salões femininos ---------- */
body[data-tema="salao"] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --bg: #FBF6F3; --card: #FFFFFF; --line: #EFE4DF;
  --ink: #2B1E22; --ink-2: #5A474D; --muted: #9A878C;
  --side-bg: #2B1E22; --side-ink: #E6D6D3; --side-mute: #A8908F;
  --hero-a: color-mix(in srgb, var(--brand) 60%, #F6D7C9); --hero-b: color-mix(in srgb, var(--brand) 75%, #2B1E22); --hero-bg: #3A262C; --accent: #F2CDBF;
  --radius: 20px;
}
body[data-tema="salao"] .book-hero { background: radial-gradient(700px 320px at 20% 0%, color-mix(in srgb, var(--brand) 55%, #F6D7C9), transparent 70%), linear-gradient(165deg, color-mix(in srgb, var(--brand) 92%, #2B1E22) 0%, color-mix(in srgb, var(--brand) 55%, #2B1E22) 100%); }
body[data-tema="salao"] .book-hero h1, body[data-tema="salao"] .page-head h1 { font-size: 2.4rem; font-weight: 500; font-style: italic; }
body[data-tema="salao"] .btn { letter-spacing: .02em; }

/* ---------- Navalha · barbearias ---------- */
body[data-tema="barbearia"] {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --brand-ink: #15130F;
  --side-bg: #0F0E0C; --side-ink: #CFC6B6; --side-mute: #7D7568;
  --hero-a: color-mix(in srgb, var(--brand) 40%, #0F0E0C); --hero-b: #000; --hero-bg: #12100D; --accent: var(--brand);
  --bg: #F5F2EC; --line: #E6E0D5; --ink: #15130F; --ink-2: #4A453C; --muted: #8A8274;
  --radius: 10px; --radius-sm: 6px;
}
body[data-tema="barbearia"] .btn { border-radius: 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; }
body[data-tema="barbearia"] .btn-primary { box-shadow: none; }
body[data-tema="barbearia"] .btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, white); }
body[data-tema="barbearia"] .logo-mark { border-radius: 6px; background: var(--brand); color: #15130F; }
body[data-tema="barbearia"] .nav a { border-radius: 4px; }
body[data-tema="barbearia"] .nav a.active { background: transparent; color: var(--brand); box-shadow: inset 2px 0 0 var(--brand); }
body[data-tema="barbearia"] .nav a.active .ic { color: var(--brand); }
body[data-tema="barbearia"] .page-head h1 { text-transform: none; }
/* público escuro */
body.book-body[data-tema="barbearia"] {
  --bg: #0F0E0C; --card: #191714; --line: #2C2924; --ink: #F1EBE0; --ink-2: #CFC6B6; --muted: #8E8577;
  --input-bg: #12110F; --brand-soft: color-mix(in srgb, var(--brand) 12%, #191714); --brand-line: color-mix(in srgb, var(--brand) 45%, #191714); --brand-deep: var(--brand);
  --ok-bg: #12261C; --warn-bg: #2A2212; --danger-bg: #2B1614; --info-bg: #141C2E;
  background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), #0F0E0C;
}
body.book-body[data-tema="barbearia"] .book-hero { background: transparent; color: #F1EBE0; padding-bottom: 4.5rem; }
body.book-body[data-tema="barbearia"] .book-hero h1 { font-size: 2.4rem; letter-spacing: .01em; }
body.book-body[data-tema="barbearia"] .book-hero .eyebrow { color: var(--brand); opacity: 1; }
body.book-body[data-tema="barbearia"] .book-hero::after { background: var(--brand); opacity: .9; }
body.book-body[data-tema="barbearia"] .book-wrap { margin-top: -2.5rem; }
body.book-body[data-tema="barbearia"] .book-card { border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
body.book-body[data-tema="barbearia"] .svc, body.book-body[data-tema="barbearia"] .pay-opt, body.book-body[data-tema="barbearia"] .date, body.book-body[data-tema="barbearia"] .slot { border-radius: 8px; border-width: 1px; }
body.book-body[data-tema="barbearia"] .slot.sel { background: var(--brand); border-color: var(--brand); color: #15130F; }
body.book-body[data-tema="barbearia"] .date.sel { color: #15130F; }
body.book-body[data-tema="barbearia"] .date.sel small, body.book-body[data-tema="barbearia"] .date.sel i { color: rgba(21,19,15,.75); }
body.book-body[data-tema="barbearia"] .svc.sel .svc-icon { color: #15130F; }
body.book-body[data-tema="barbearia"] .summary { background: #12110F; border: 1px solid var(--line); }
body.book-body[data-tema="barbearia"] .btn-ghost { color: var(--ink-2); }
body.book-body[data-tema="barbearia"] .powered { color: #6F675B; }
body.book-body[data-tema="barbearia"] select.input option { background: #191714; }

/* ---------- Spa · estética ---------- */
body[data-tema="estetica"] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --bg: #F6F5F0; --card: #FFFFFF; --line: #E5E6DD;
  --ink: #1F2A24; --ink-2: #4B5750; --muted: #8C958F;
  --side-bg: #FFFFFF; --side-ink: #4B5750; --side-mute: #9AA39C;
  --hero-a: color-mix(in srgb, var(--brand) 45%, #EDE6D6); --hero-b: color-mix(in srgb, var(--brand) 80%, #1F2A24); --hero-bg: #2E3B33; --accent: #E9E1CC;
  --radius: 22px; --shadow: 0 1px 2px rgba(31,42,36,.03), 0 10px 30px rgba(31,42,36,.05);
}
body[data-tema="estetica"] .sidebar { border-right: 1px solid var(--line); }
body[data-tema="estetica"] .sidebar-brand strong { color: var(--ink); }
body[data-tema="estetica"] .nav-section { color: #A9B1AB; }
body[data-tema="estetica"] .nav a:hover { background: var(--brand-soft); color: var(--ink); }
body[data-tema="estetica"] .nav a.active { background: var(--brand-soft); color: var(--brand-deep); }
body[data-tema="estetica"] .nav a.active .ic { color: var(--brand); }
body[data-tema="estetica"] .sidebar-foot { border-top-color: var(--line); }
body[data-tema="estetica"] .sidebar-foot .who strong { color: var(--ink); }
body[data-tema="estetica"] .avatar { background: var(--brand-soft); color: var(--brand-deep); }
body[data-tema="estetica"] .sidebar-foot a.out:hover { color: var(--ink); background: var(--brand-soft); }
body[data-tema="estetica"] .book-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 22%, #F6F5F0) 0%, #F6F5F0 100%); color: var(--ink); }
body[data-tema="estetica"] .book-hero p, body[data-tema="estetica"] .book-meta { color: var(--ink-2); }
body[data-tema="estetica"] .book-hero .logo-mark { border-color: #fff; border-radius: 50%; }
body[data-tema="estetica"] .book-hero h1 { font-size: 2.5rem; font-weight: 500; letter-spacing: .01em; }
body[data-tema="estetica"] .book-card { box-shadow: 0 20px 60px rgba(31,42,36,.08); }
body[data-tema="estetica"] .slot.sel { background: var(--brand); border-color: var(--brand); }
body[data-tema="estetica"] .day-tabs a.active { background: var(--brand); border-color: var(--brand); }

/* ---------- Noir · salões premium ---------- */
body[data-tema="noir"] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --brand-ink: #111;
  --bg: #F4F1EC; --line: #E4DED5; --ink: #111111; --ink-2: #47423C; --muted: #8B847A;
  --side-bg: #0B0B0B; --side-ink: #D9D2C7; --side-mute: #7E776D;
  --hero-a: color-mix(in srgb, var(--brand) 35%, #0B0B0B); --hero-b: #000; --hero-bg: #0B0B0B; --accent: var(--brand);
  --radius: 4px; --radius-sm: 2px;
}
body[data-tema="noir"] .btn { border-radius: 0; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; font-weight: 500; }
body[data-tema="noir"] .btn-primary { box-shadow: none; }
body[data-tema="noir"] .logo-mark { border-radius: 50%; background: transparent; border: 1px solid var(--brand); color: var(--brand); }
body[data-tema="noir"] .nav a.active { background: rgba(255,255,255,.04); color: var(--brand); }
body[data-tema="noir"] .nav a.active .ic { color: var(--brand); }
body[data-tema="noir"] .badge { border-radius: 2px; }
body.book-body[data-tema="noir"] {
  --bg: #0B0B0B; --card: #121212; --line: #262626; --ink: #F3EEE6; --ink-2: #CBC3B7; --muted: #8A8379;
  --input-bg: #0E0E0E; --brand-soft: color-mix(in srgb, var(--brand) 10%, #121212); --brand-line: color-mix(in srgb, var(--brand) 40%, #121212); --brand-deep: var(--brand);
  --ok-bg: #12241A; --warn-bg: #262012; --danger-bg: #281513; --info-bg: #131B2B;
  background: #0B0B0B;
}
body.book-body[data-tema="noir"] .book-hero { background: transparent; color: #F3EEE6; padding-bottom: 4.5rem; }
body.book-body[data-tema="noir"] .book-hero h1 { font-size: 2.8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
body.book-body[data-tema="noir"] .book-hero .eyebrow { color: var(--brand); opacity: 1; }
body.book-body[data-tema="noir"] .book-hero::after { background: var(--brand); opacity: .8; }
body.book-body[data-tema="noir"] .book-hero .logo-mark { border-radius: 50%; border: 1px solid var(--brand); background: transparent; color: var(--brand); box-shadow: none; }
body.book-body[data-tema="noir"] .book-wrap { margin-top: -2.5rem; }
body.book-body[data-tema="noir"] .book-card { border-radius: 2px; box-shadow: none; }
body.book-body[data-tema="noir"] .svc, body.book-body[data-tema="noir"] .pay-opt, body.book-body[data-tema="noir"] .date, body.book-body[data-tema="noir"] .slot, body.book-body[data-tema="noir"] .summary, body.book-body[data-tema="noir"] .svc .svc-icon { border-radius: 2px; border-width: 1px; }
body.book-body[data-tema="noir"] .summary { background: #0E0E0E; border: 1px solid var(--line); }
body.book-body[data-tema="noir"] .slot.sel, body.book-body[data-tema="noir"] .date.sel { background: var(--brand); border-color: var(--brand); color: #111; }
body.book-body[data-tema="noir"] .date.sel small, body.book-body[data-tema="noir"] .date.sel i { color: rgba(17,17,17,.7); }
body.book-body[data-tema="noir"] .svc.sel .svc-icon { color: #111; }
body.book-body[data-tema="noir"] select.input option { background: #121212; }

/* ---------- Seletor de tema (Configurações) ---------- */
.tema-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.tema-opt { position: relative; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .2s, transform .15s; background: var(--card); }
.tema-opt:hover { transform: translateY(-1px); }
.tema-opt input { position: absolute; opacity: 0; }
.tema-opt.sel { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.tema-prev { height: 86px; display: flex; flex-direction: column; justify-content: flex-end; padding: .7rem .8rem; gap: .35rem; }
.tema-prev b { font-size: 1.15rem; line-height: 1; }
.tema-prev i { display: block; width: 46px; height: 7px; border-radius: 4px; }
.tema-info { padding: .6rem .8rem .7rem; }
.tema-info strong { display: block; font-size: .9rem; }
.tema-info span { font-size: .76rem; color: var(--muted); }
.tp-salao { background: linear-gradient(160deg, #B76E79, #5E3540); color: #fff; } .tp-salao b { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; } .tp-salao i { background: #F2CDBF; }
.tp-barbearia { background: #0F0E0C; color: #F1EBE0; } .tp-barbearia b { font-family: 'Playfair Display', serif; } .tp-barbearia i { background: #C9A15A; border-radius: 1px; }
.tp-estetica { background: linear-gradient(180deg, #DDE3D6, #F6F5F0); color: #1F2A24; } .tp-estetica b { font-family: 'Cormorant Garamond', serif; font-weight: 500; } .tp-estetica i { background: #7D8F74; }
.tp-noir { background: #0B0B0B; color: #F3EEE6; } .tp-noir b { font-family: 'Cormorant Garamond', serif; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; font-size: 1rem; } .tp-noir i { background: #CDA882; border-radius: 0; height: 2px; }
@media (max-width: 520px) { .tema-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Landing ---------- */
.landing-body .landing-hero h1 { font-weight: 500; letter-spacing: -0.01em; max-width: 16ch; }
.landing-body .landing-hero h1 em { color: var(--brand); }
.landing-body .landing-form { background: #F4F1EC; }
.landing-body .login-box h2 { font-size: 2.4rem; font-weight: 500; }
.tema-strip { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.2rem; }
.tema-strip span { padding: .5rem .9rem; font-size: .82rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); }
.tema-strip .tp-noir { border-color: #CDA882; color: #CDA882; }

/* =====================================================================
   MOBILE / APP  (mobile-first refinements, safe areas, bottom tabs)
   ===================================================================== */
html, body { overscroll-behavior-y: none; }
body { -webkit-tap-highlight-color: transparent; }
.tabbar { display: none; }
@media (max-width: 900px) {
  body { font-size: 15px; }
  .input, select.input, textarea.input { font-size: 16px; min-height: 48px; } /* evita zoom no iOS */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .topbar { padding: calc(.7rem + env(safe-area-inset-top)) 1rem .7rem; backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--card) 88%, transparent); }
  .topbar .tb-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
  .topbar .tb-brand .logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; }
  .topbar .tb-brand strong { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .content { padding: 1.1rem 1rem calc(96px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 1.1rem; align-items: flex-start; }
  .page-head h1 { font-size: 1.85rem !important; }
  .page-head > div:last-child:not(:first-child) { width: 100%; display: flex; gap: .5rem; flex-wrap: wrap; }
  .page-head > div:last-child:not(:first-child) .btn, .page-head > .btn, .page-head > a.btn { flex: 1; }
  .card { padding: 1.1rem; border-radius: calc(var(--radius) - 2px); }
  .grid { gap: .85rem; }
  .grid[style*="grid-template-columns"], .grid-side { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 1rem; }
  .kpi-label { font-size: .68rem; letter-spacing: .05em; }
  .kpi-value { font-size: 1.55rem; }
  [style*="grid-template-columns:140px 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:140px 1fr 1fr"] > :first-child { grid-column: 1 / -1; }
  .share { flex-wrap: wrap; border-radius: 16px; padding: .7rem .8rem; }
  .share code { flex: 1 1 100%; }
  .share .btn { flex: 1; }

  /* tabelas viram cartões */
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  .table-wrap table, .card > table { display: block; }
  table thead { display: none; }
  table tbody { display: grid; gap: .6rem; }
  table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .9rem; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  table td { display: block; padding: .15rem 0; border: 0; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
  table td::before { content: attr(data-label); display: block; font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .1rem; }
  table td[data-label=""]::before { display: none; }
  table td:first-child { grid-column: 1 / -1; font-size: .98rem; }
  table td:first-child::before { display: none; }
  table td.actions, table td:last-child:has(.btn), table td:last-child:has(form) { grid-column: 1 / -1; justify-content: flex-start; padding-top: .5rem; border-top: 1px dashed var(--line); margin-top: .3rem; }
  table td:last-child:has(.btn)::before, table td:last-child:has(form)::before { display: none; }
  table td .actions { justify-content: flex-start; }
  table td.empty, table tr:has(td.empty) { grid-template-columns: 1fr; border: 0; background: transparent; }
  table td[colspan] { grid-column: 1 / -1; }

  /* modal vira bottom sheet */
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; padding: 1.1rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); animation: sheet .28s cubic-bezier(.2,.8,.2,1); }
  .modal-box::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 1rem; }
  @keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

  /* barra de abas */
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font: inherit; font-size: .66rem; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer; }
  .tabbar .active { color: var(--brand-deep); }
  .tabbar .active .ic { color: var(--brand); }
  .sidebar { padding-top: env(safe-area-inset-top); width: min(84vw, 300px); box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .sidebar-foot { padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); }

  /* login */
  .landing { min-height: 100dvh; display: flex; flex-direction: column; }
  .landing-hero { padding: calc(1.6rem + env(safe-area-inset-top)) 1.5rem 1.8rem; gap: 1.2rem; }
  .landing-hero .lead, .landing-body .tema-strip, .landing-body .tema-strip + p, .landing-hero > p.small { display: none; }
  .landing-hero h1 { font-size: 2.1rem; }
  .landing-form { flex: 1; align-items: start; padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); }
  .landing-body .login-box h2 { font-size: 2rem; }

  /* página pública */
  .book-hero { padding-top: calc(2rem + env(safe-area-inset-top)); }
  .book-wrap { padding: 0 .75rem; margin-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  .book-card { padding: 1.2rem; }
  .step-nav { position: sticky; bottom: 0; background: var(--card); padding: .8rem 0 calc(.2rem + env(safe-area-inset-bottom)); margin-top: 1rem; z-index: 2; }
  .step-nav .btn-ghost { flex: 0 0 52px; }
  .svc { padding: .85rem .9rem; gap: .8rem; }
  .svc .svc-icon { width: 40px; height: 40px; }
  .slots { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) { .slots { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: 1fr; } }
@media (display-mode: standalone) { .powered { display: none; } }

/* ===== v6: assinatura, cadastro, páginas públicas ===== */
.plano-status { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; border-left: 4px solid var(--brand); }
.plano-status.plano-carencia { border-left-color: var(--warn); }
.plano-status.plano-bloqueado { border-left-color: var(--danger); }
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.planos-grid.compacto { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.plano-opt { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.plano-opt input { margin-top: .3rem; accent-color: var(--brand); }
.plano-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.plano-preco { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; margin: .2rem 0; }
.plano-preco small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .15rem; }
.pay-box { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column; }
.pay-box .card-title { display: flex; align-items: center; gap: .45rem; }
.pay-box .btn { margin-top: auto; }
.onboarding .ob-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: .9rem; }
.onboarding .ob-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.ob-list { list-style: none; display: grid; gap: .55rem; }
.ob-list li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; }
.ob-list li a { text-decoration: underline; text-underline-offset: 3px; }
.ob-list li.ok a { text-decoration: line-through; color: var(--muted); }
.ob-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; }
.ob-list li.ok .ob-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.cta-teste { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(0,0,0,.08); display: grid; gap: .6rem; text-align: center; font-size: .88rem; color: var(--muted); }

.doc-body { background: #F7F4EF; min-height: 100vh; display: flex; flex-direction: column; }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); background: #0B0B0B; color: #fff; position: sticky; top: 0; z-index: 5; }
.doc-top .brand { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; letter-spacing: .05em; }
.doc-top nav { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.doc-top nav a:not(.btn) { color: rgba(255,255,255,.75); }
.doc-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem); }
.doc { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 4vw, 3rem); line-height: 1.7; }
.doc h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 500; line-height: 1.1; margin-bottom: .4rem; }
.doc h2 { font-size: 1.08rem; font-weight: 700; margin: 1.8rem 0 .5rem; }
.doc p, .doc li { color: #3a3532; }
.doc ul, .doc ol { padding-left: 1.3rem; display: grid; gap: .35rem; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.4rem clamp(1rem, 4vw, 3rem); background: #0B0B0B; color: rgba(255,255,255,.55); font-size: .82rem; }
.doc-foot .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.doc-foot a { color: rgba(255,255,255,.8); }
.doc-foot a:hover { color: var(--brand); }

.cad-wrap { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.cad-intro { padding-top: 1.5rem; }
.cad-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.05; margin: .8rem 0 1.4rem; }
.cad-list { list-style: none; display: grid; gap: .8rem; font-size: 1rem; }
.cad-list li { display: flex; gap: .6rem; align-items: center; }
.cad-list svg { color: var(--brand); flex: none; }
.cad-form { position: relative; }

.precos { background: #F7F4EF; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); text-align: center; }
.precos h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; margin: .6rem 0 .4rem; }
.precos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 1.2rem; margin-top: 2.2rem; text-align: left; }
.preco-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem; position: relative; }
.preco-card.destaque { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.preco-card .badge { position: absolute; top: 1.2rem; right: 1.2rem; }
.preco-card h3 { font-size: 1.1rem; font-weight: 700; }
.preco-card ul { list-style: none; display: grid; gap: .55rem; margin: .8rem 0 1.4rem; font-size: .92rem; }
.preco-card li { display: flex; gap: .5rem; align-items: center; }
.preco-card li svg { color: var(--brand); flex: none; }
.preco-card .btn { margin-top: auto; }
.landing-body .doc-foot { margin: 0; }

@media (max-width: 900px) {
  .cad-wrap { grid-template-columns: 1fr; }
  .cad-intro { padding-top: 0; }
  .cad-intro h1 { font-size: 2.1rem; margin-bottom: 1rem; }
  .doc-top nav a:not(.btn) { display: none; }
  .doc-foot { flex-direction: column; align-items: flex-start; padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
  .pay-box .btn { width: 100%; }
}
.planos-grid.compacto .plano-preco { font-size: 1.25rem; white-space: nowrap; }
.planos-grid.compacto .plano-opt { padding: .8rem; min-width: 0; }

.btn-ghost.active { background: var(--ink, #1f1b24); color: #fff; border-color: transparent; }

/* ---------- Flix · marca AgendaFlix (preto e vermelho) ---------- */
.wordmark { height: 30px; width: auto; display: block; }
.doc-top .wordmark { height: 26px; }
.landing-hero .brand .wordmark { height: 38px; }
.tp-flix { background: linear-gradient(160deg, #141414 40%, #3a0003); color: #fff; } .tp-flix b { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: .06em; font-weight: 400; font-size: 1.3rem; color: #E50914; } .tp-flix i { background: #E50914; border-radius: 2px; }
.tema-strip .tp-flix { border-color: #E50914; color: #fff; background: #E50914; }
body[data-tema="flix"] {
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --brand-ink: #fff;
  --bg: #F3F3F3; --card: #FFFFFF; --line: #E3E3E3;
  --ink: #141414; --ink-2: #3F3F3F; --muted: #7C7C7C;
  --side-bg: #000; --side-ink: #E5E5E5; --side-mute: #8C8C8C;
  --hero-a: color-mix(in srgb, var(--brand) 60%, #000); --hero-b: #000; --hero-bg: #141414; --accent: var(--brand);
  --radius: 8px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.07);
}
body[data-tema="flix"] .page-head h1, body[data-tema="flix"] .login-box h2, body[data-tema="flix"] .landing-hero h1, body[data-tema="flix"] .book-hero h1, body[data-tema="flix"] .precos h2 { font-weight: 400; letter-spacing: .02em; line-height: 1; }
body[data-tema="flix"] .page-head h1 { font-size: 2.3rem; }
body[data-tema="flix"] .btn { border-radius: 4px; font-weight: 700; letter-spacing: .01em; }
body[data-tema="flix"] .btn-primary { background: var(--brand); color: #fff; box-shadow: none; }
body[data-tema="flix"] .btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, black); }
body[data-tema="flix"] .logo-mark { border-radius: 6px; background: #141414; color: var(--brand); font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; font-size: 1.5rem; }
body[data-tema="flix"] .nav a { border-radius: 4px; }
body[data-tema="flix"] .nav a.active { background: rgba(229,9,20,.14); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
body[data-tema="flix"] .nav a.active .ic { color: var(--brand); }
body[data-tema="flix"] .kpi-value { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .02em; }
body[data-tema="flix"] .badge { border-radius: 3px; }
/* Landing e login escuros, como uma tela de streaming */
body.landing-body[data-tema="flix"] {
  --bg: #000; --card: #181818; --line: #333; --ink: #fff; --ink-2: #D2D2D2; --muted: #8C8C8C;
  --input-bg: #262626; --brand-soft: rgba(229,9,20,.12); --brand-line: rgba(229,9,20,.45);
  --ok-bg: #0F2A1C; --warn-bg: #2A2212; --danger-bg: #2B1214; --info-bg: #141C2E;
  background: #000; color: #fff;
}
body.landing-body[data-tema="flix"] .landing-hero { background: radial-gradient(900px 520px at 0% 0%, rgba(229,9,20,.38), transparent 62%), radial-gradient(700px 600px at 110% 110%, rgba(229,9,20,.16), transparent 60%), linear-gradient(180deg, #141414, #000); }
body.landing-body[data-tema="flix"] .landing-hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); max-width: 12ch; }
body.landing-body[data-tema="flix"] .landing-hero h1 em { font-style: normal; color: var(--brand); }
body.landing-body[data-tema="flix"] .landing-form { background: #000; }
body.landing-body[data-tema="flix"] .login-box { background: rgba(20,20,20,.92); border: 1px solid #262626; border-radius: 8px; padding: 2.2rem 2rem; }
body.landing-body[data-tema="flix"] .login-box h2 { font-size: 2.6rem; }
body.landing-body[data-tema="flix"] .input { background: var(--input-bg); border-color: #3a3a3a; color: #fff; }
body.landing-body[data-tema="flix"] .input::placeholder { color: #8C8C8C; }
body.landing-body[data-tema="flix"] .btn-ghost { color: #fff; border-color: #444; background: transparent; }
body.landing-body[data-tema="flix"] .btn-dark { background: #fff; color: #000; }
body.landing-body[data-tema="flix"] .cta-teste span { color: #B3B3B3; }
body.landing-body[data-tema="flix"] .feature .ic { color: var(--brand); }
body.landing-body[data-tema="flix"] .precos { background: #000; color: #fff; }
body.landing-body[data-tema="flix"] .preco-card { background: #181818; border-color: #2a2a2a; color: #fff; }
body.landing-body[data-tema="flix"] .preco-card.destaque { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 50px rgba(229,9,20,.18); }
body.landing-body[data-tema="flix"] .eyebrow { color: var(--brand); opacity: 1; }
body.doc-body[data-tema="flix"] .doc-top { background: #000; border-bottom: 1px solid #1f1f1f; }
/* Página pública do salão com o tema Flix */
body.book-body[data-tema="flix"] {
  --bg: #141414; --card: #1C1C1C; --line: #2E2E2E; --ink: #fff; --ink-2: #D2D2D2; --muted: #8C8C8C;
  --input-bg: #222; --brand-soft: color-mix(in srgb, var(--brand) 14%, #1C1C1C); --brand-line: color-mix(in srgb, var(--brand) 50%, #1C1C1C); --brand-deep: var(--brand);
  --ok-bg: #0F2A1C; --warn-bg: #2A2212; --danger-bg: #2B1214; --info-bg: #141C2E;
}
body.book-body[data-tema="flix"] .book-hero { background: radial-gradient(800px 380px at 50% 0%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%), #000; color: #fff; padding-bottom: 4.5rem; }
body.book-body[data-tema="flix"] .book-hero h1 { font-size: 3rem; }
body.book-body[data-tema="flix"] .book-hero .eyebrow { color: var(--brand); opacity: 1; }
body.book-body[data-tema="flix"] .book-wrap { margin-top: -2.5rem; }
body.book-body[data-tema="flix"] .book-card { border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
body.book-body[data-tema="flix"] .slot.sel, body.book-body[data-tema="flix"] .date.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
body.book-body[data-tema="flix"] .summary { background: #101010; border: 1px solid var(--line); }
body.book-body[data-tema="flix"] select.input option { background: #1C1C1C; }
body.book-body[data-tema="flix"] .powered { color: #6f6f6f; }
@media (max-width: 860px) { body.landing-body[data-tema="flix"] .login-box { padding: 1.6rem 1.2rem; border: 0; background: transparent; } .landing-hero .brand .wordmark { height: 30px; } }

/* Diálogo de confirmação próprio (substitui o confirm/alert do navegador, que falha em alguns WebViews) */
.ga-dlg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.ga-dlg-box { background: var(--card, #fff); color: var(--ink, #111); border-radius: 16px; width: 100%; max-width: 400px; padding: 1.4rem 1.3rem 1.1rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.ga-dlg-box p { margin: 0 0 1.2rem; font-size: 1rem; line-height: 1.45; }
.ga-dlg-act { display: flex; gap: .6rem; justify-content: flex-end; }

/* Dentro do app Android: popup alinhado ao topo e rolando a camada inteira (evita a folha de baixo sumir fora da tela) */
html.em-app .modal { align-items: flex-start; justify-content: center; padding: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.em-app .modal-box { border-radius: 18px; max-height: none; overflow: visible; animation: none; margin: 0 auto; width: 100%; max-width: 560px; padding: 1.1rem 1.1rem 1.3rem; }
html.em-app .modal-box::before { display: none; }
html.em-app .ga-dlg { align-items: flex-start; padding-top: 30vh; }
