/* Cores principais: mude aqui ou pelo painel em Configurações */
:root {
  --primary: #db2777;
  --accent: #0d9488;
  --on-primary: #fff;
  --on-accent: #0b1220;
  --primary-dark: color-mix(in srgb, var(--primary) 72%, black);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, white);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, white);
  --ink: #0b1220;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #5d6478;
  --border: #e3e7f0;
  --danger: #e11d48;
  --warning: #d97706;
  --success: #059669;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 12px 32px -12px rgba(11, 18, 32, .14);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 32, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h3 { font-weight: 700; letter-spacing: -.01em; }
::selection { background: color-mix(in srgb, var(--primary) 22%, white); }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .12s, background .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.btn-sm { padding: .45em .95em; font-size: .85rem; }
.btn-danger { background: var(--danger); color: #fff; }
/* Ação principal do atendimento (Iniciar) */
.btn-go { background: #16a34a; color: #fff; box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .7); white-space: nowrap; }
.btn-go:hover { background: #15803d; }

/* Marca */
.brand { display: flex; align-items: center; gap: .6em; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  /* Logo da plataforma: sempre o mesmo azul de img/logo-mark.svg, não segue a cor da empresa */
  background: linear-gradient(145deg, #f472b6, #db2777 45%, #9d174d);
  box-shadow: 0 6px 16px -6px rgba(219, 39, 119, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.brand-mark svg { width: 100%; height: 100%; }
.by-vendor { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.powered { text-align: center; color: var(--muted); font-size: .85rem; margin: 32px 0 16px; }
.powered a { color: inherit; font-weight: 700; text-decoration: none; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .94rem; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

/* Hero (fundo escuro) */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; color: #fff; background:
  radial-gradient(700px 420px at 88% 8%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 70%),
  radial-gradient(520px 360px at 70% 100%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
  radial-gradient(600px 400px at 0% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%), var(--ink); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, black, transparent 75%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -.035em; line-height: 1.04; }
.hero h1 span { background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 55%, white), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.72); max-width: 540px; }
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.hero .eyebrow::before { background: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 26px; }
.hero .btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.hero .btn-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.hero .btn { padding: .95em 1.7em; font-size: 1rem; }
.hero-badges { display: flex; gap: 10px 22px; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: .92rem; font-weight: 500; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .7rem; font-weight: 800; background: var(--accent); color: var(--on-accent); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 64px 0 96px; } }

.mock-stage { position: relative; }
.mock { position: relative; background: var(--surface); color: var(--text); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid rgba(255,255,255,.6); transform: rotate(1.2deg); }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 800; }
.mock-head .muted { font-weight: 600; font-size: .85rem; }
.mock-head .muted::first-letter { text-transform: uppercase; }
.mock-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 16px; text-align: center; font-size: .78rem; font-weight: 700; }
.mock-days div { padding: 9px 0; border-radius: 10px; background: var(--bg); color: var(--muted); }
.mock-days .on { background: var(--primary); color: var(--on-primary); }
.mock-slot { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 8px; font-size: .9rem; font-weight: 600; }
.mock-slot b { color: var(--success); font-size: .8rem; background: color-mix(in srgb, var(--success) 12%, white); padding: 2px 10px; border-radius: 999px; }
.mock-slot .muted { font-size: .8rem; font-weight: 500; }
.mock-toast { position: absolute; left: -28px; bottom: -26px; z-index: 2; display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--text); border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; animation: float 5s ease-in-out infinite; }
.mock-toast i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-style: normal; font-weight: 800; }
.mock-toast small { display: block; color: var(--muted); }
.mock-pill { position: absolute; right: -14px; top: -18px; z-index: 2; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: .8rem; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-lg); transform: rotate(4deg); }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .mock { transform: none; } .mock-toast { left: 8px; } .mock-pill { right: 8px; } }
@media (prefers-reduced-motion: reduce) { .mock-toast { animation: none; } html { scroll-behavior: auto; } }

/* Seções */
.section { padding: 96px 0; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-title h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -.03em; }
.section-title p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature:nth-child(4n+2) .icon, .feature:nth-child(4n+3) .icon { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 75%, black); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.3rem; }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::before { content: 'Mais escolhido'; position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--on-accent); font-size: .74rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan.featured li { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.plan.featured .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 16px; letter-spacing: -.03em; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 26px; flex: 1; }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; font-size: .95rem; }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; font-size: .7rem; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.plan.featured li::before { background: var(--accent); color: var(--on-accent); }

.faq { max-width: 800px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 6px 28px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

.cta { position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 72px 32px; text-align: center; background:
  radial-gradient(500px 300px at 100% 100%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%),
  linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.03em; }
.cta p { opacity: .85; max-width: 560px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta .btn { padding: 1em 1.9em; font-size: 1rem; }

footer { padding: 40px 0; color: rgba(255,255,255,.6); font-size: .9rem; background: var(--ink); margin-top: 96px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* Formulários */
label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: .78em .95em; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--border)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; }
.hidden { display: none !important; }

/* Página de agendamento */
.booking-wrap { max-width: 740px; margin: 40px auto; }
.booking-wrap > div > h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.03em; }
.booking-step { margin-bottom: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.booking-step h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.booking-step h3 .n { width: 30px; height: 30px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: .9rem; font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { text-align: left; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; font-weight: 600; color: inherit; transition: border-color .15s, background .15s, transform .12s; }
.choice:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.choice small { color: var(--muted); display: block; font-weight: 500; }
.choice-grid-4 { grid-template-columns: repeat(4, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; font-weight: 600; color: inherit; }
.chip.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; font-weight: 700; color: inherit; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
.slot:hover { border-color: var(--primary); color: var(--primary); }
.slot.selected { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: 0 0 auto; width: 70px; padding: 11px 0; text-align: center; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s; }
.day:hover:not(:disabled) { border-color: var(--primary); }
.day small { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.day b { font-size: 1.25rem; font-weight: 800; }
.day.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.day.selected small { color: #fff; opacity: .7; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.success-box { text-align: center; padding: 44px 24px; }
.success-box .check { width: 72px; height: 72px; border-radius: 22px; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px; box-shadow: 0 14px 30px -12px var(--success); }

/* Painel */
.admin { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); color: var(--text); border-right: 1px solid var(--border); padding: 22px 14px 18px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar .brand { margin: 0 8px 26px; font-size: 1.05rem; }
.sidebar .brand-text > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav button { display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: .93rem; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .15s, color .15s; }
.sidebar nav button svg { width: 19px; height: 19px; flex: none; }
.sidebar nav button:hover { background: var(--bg); color: var(--text); }
.sidebar nav button.active { background: var(--primary-soft); color: var(--primary); }
.sidebar nav #logout { margin-top: auto; }
.main { padding: 32px 36px; min-width: 0; }
.main h1 { font-size: 1.9rem; letter-spacing: -.03em; }
.main h2 { font-size: 1.2rem; letter-spacing: -.015em; }
.main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.main-head h1 { margin-bottom: .1em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 18px; overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 20px; top: 0; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--primary); }
.stat:nth-child(2)::before { background: var(--accent); }
.stat:nth-child(3)::before { background: var(--success); }
.stat:nth-child(4)::before { background: var(--warning); }
.stat .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; background: color-mix(in srgb, var(--bg) 60%, white); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--bg) 55%, white); }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.agendado { background: color-mix(in srgb, var(--primary) 10%, white); color: color-mix(in srgb, var(--primary) 85%, black); }
.badge.confirmado { background: #e0f2fe; color: #0369a1; }
.badge.concluido { background: #dcfce7; color: #15803d; }
.badge.cancelado { background: #f1f3f7; color: #64748b; }
.badge.faltou { background: #ffe4e6; color: var(--danger); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: end; }
.toolbar > * { width: auto; }
.bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); min-width: 2px; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 52px; height: 44px; padding: 4px; }
.hours-table input { min-width: 96px; }

.modal-bg { position: fixed; inset: 0; background: rgba(11, 18, 32, .5); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s ease-out; }
.modal { background: var(--surface); border-radius: 24px; padding: 28px; width: min(540px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal h3 { margin-bottom: 18px; font-size: 1.3rem; letter-spacing: -.02em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px; z-index: 60; box-shadow: var(--shadow-lg); font-weight: 600; animation: pop .18s ease-out; }
.toast.err { background: var(--danger); }

.side-user { color: var(--muted); font-size: .8rem; padding: 14px 12px 0; margin-top: 10px; border-top: 1px solid var(--border); display: block; overflow-wrap: anywhere; }
.banner { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 14px; padding: 13px 18px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.link-box { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: 14px; padding: 9px 10px 9px 14px; overflow-wrap: anywhere; }
.link-box code { flex: 1; font-size: .9rem; color: var(--primary-dark); }
/* Foto do profissional */
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--primary-soft); color: var(--primary); font-weight: 800; line-height: 1; vertical-align: middle; }
.avatar-any { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 75%, black); font-size: 1.2rem; }
.prof-chip { display: inline-flex; align-items: center; gap: 8px; }
.photo-field { display: flex; align-items: center; gap: 16px; }
.photo-field > span { flex: 0 0 auto; display: inline-flex; }
.photo-field > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-field label.btn { margin: 0; }
.photo-field small { flex-basis: 100%; }
.choice-prof { display: flex; align-items: center; gap: 12px; }
.check-label { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: .93rem; }
.check-label input { width: 18px; height: 18px; flex: none; }

.legal { max-width: 780px; padding: 48px 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; }
.legal p, .legal li { color: #39404f; }
.legal mark { background: #fef3c7; padding: 0 4px; border-radius: 4px; }

/* Login e cadastro */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(600px 400px at 90% 0%, color-mix(in srgb, var(--primary) 50%, transparent), transparent 70%),
  radial-gradient(500px 360px at 0% 100%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), var(--ink); }
.auth-wrap .card { width: min(420px, 100%); border: 0; border-radius: 26px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-wrap .card h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.auth-wrap .card .btn { padding: .9em 1.4em; }

.tabbar { display: none; }
.sheet-list { display: flex; flex-direction: column; margin: 0 -4px; }
.sheet-list button { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--border); font: inherit; font-weight: 600; color: var(--text); text-align: left; padding: 15px 4px; cursor: pointer; }
.sheet-list button span { color: var(--muted); font-size: 1.3rem; line-height: 1; }
.sheet-list .sheet-danger { color: var(--danger); border-bottom: 0; }

/* ---------- Celular: painel ---------- */
@media (max-width: 860px) {
  input, select, textarea { font-size: 16px; } /* evita o zoom automático do iPhone */

  .admin { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 15; height: auto; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); border-right: 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); overflow: visible; }
  .sidebar .brand { margin: 0; font-size: 1rem; }
  .sidebar .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .sidebar nav, .side-user { display: none; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: 4px 4px env(safe-area-inset-bottom);
  }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; font: inherit; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 6px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 999px; transition: background .15s; }
  .tabbar button.active { color: var(--primary); font-weight: 800; }
  .tabbar button.active svg { background: var(--primary-soft); }

  .main { padding: 18px 14px calc(150px + env(safe-area-inset-bottom)); }
  .main h1 { font-size: 1.55rem; margin-bottom: .15em; }
  .main h2 { font-size: 1.1rem; margin-top: 8px; }
  .main-head { margin-bottom: 16px; }
  .main-head .muted { font-size: .9rem; margin: 0; }
  /* Botão "+ Novo …" vira botão flutuante acima da barra inferior */
  .main-head > .btn-primary {
    position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 19;
    padding: .95em 1.4em; box-shadow: 0 14px 28px -8px color-mix(in srgb, var(--primary) 65%, transparent);
  }

  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .stat { padding: 16px 14px 14px; }
  .stat::before { left: 14px; }
  .stat .v { font-size: 1.45rem; }
  .stat .l { font-size: .78rem; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .card { padding: 20px 16px; }
  .banner { font-size: .9rem; padding: 12px 14px; }
  .banner .btn { width: 100%; }
  .link-box { flex-wrap: wrap; }
  .link-box code { flex-basis: 100%; font-size: .85rem; }
  .link-box .btn { flex: 1; }

  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .toolbar > * { width: 100%; min-width: 0 !important; }
  .toolbar > .btn, .toolbar > input, .toolbar > div:only-child { grid-column: 1 / -1; }

  /* Tabelas viram cartões (o nome da coluna vem de data-label, posto pelo painel.js) */
  .table-wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
  .table-wrap tbody tr:hover { background: var(--surface); }
  .table-wrap td { display: flow-root; border: 0; padding: 5px 0; white-space: normal; text-align: right; overflow-wrap: anywhere; }
  .table-wrap td::before { content: attr(data-label); float: left; margin-right: 12px; color: var(--muted); font-size: .78rem; font-weight: 700; padding-top: 2px; }
  .table-wrap td:empty { display: none; }
  .table-wrap td:first-child { text-align: left; font-weight: 700; font-size: 1.02rem; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
  .table-wrap td[data-label=""], .table-wrap td[colspan] { text-align: left; }
  .table-wrap td:first-child::before, .table-wrap td[data-label=""]::before { display: none; }
  .table-wrap td[data-label=""]:last-child:not(:first-child) { padding-top: 10px; }
  .table-wrap td[data-label=""] .btn { flex: 1; }
  .table-wrap td input:not([type=checkbox]), .table-wrap td select { width: auto; max-width: 62%; }
  .hours-table input { min-width: 0; }
  .table-wrap td:first-child .prof-chip { gap: 12px; }
  /* Horários: abre/fecha e intervalo lado a lado */
  .hours-table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .hours-table td { text-align: left; }
  .hours-table td:first-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .hours-table td::before { float: none; display: block; margin: 0 0 4px; }
  .hours-table td:nth-child(2) { grid-column: 1 / -1; text-align: right; }
  .hours-table td:nth-child(2)::before { float: left; margin: 0; }
  .hours-table td:nth-child(2) input { width: 22px; height: 22px; }
  .hours-table td input:not([type=checkbox]) { width: 100%; max-width: none; }
  #hoursForm > .btn { width: 100%; }

  /* Cartão de agendamento: hora em destaque à esquerda */
  .table-wrap tr.appt { display: grid; grid-template-columns: 62px 1fr; column-gap: 12px; align-items: start;
    grid-template-areas: "date date" "time client" "time service" "time prof" ". notes" "status status" "wa wa"; }
  .table-wrap tr.appt td { text-align: left; padding: 2px 0; border: 0; margin: 0; font-size: .95rem; font-weight: 400; }
  .table-wrap tr.appt td::before { display: none; }
  .table-wrap tr.appt .c-date { grid-area: date; font-size: .76rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .07em; padding-bottom: 8px; }
  .table-wrap tr.appt .c-time { grid-area: time; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
  .table-wrap tr.appt .c-client { grid-area: client; font-weight: 700; }
  .table-wrap tr.appt .c-service { grid-area: service; }
  .table-wrap tr.appt .c-prof { grid-area: prof; color: var(--muted); font-size: .88rem; }
  .table-wrap tr.appt .c-notes { grid-area: notes; color: var(--muted); font-style: italic; }
  .table-wrap tr.appt .c-status { grid-area: status; padding-top: 10px; }
  .table-wrap tr.appt .c-wa { grid-area: wa; padding-top: 10px; }
  .table-wrap tr.appt .c-status select { width: 100% !important; max-width: none; }
  .table-wrap tr.appt .c-status .btn-go, .table-wrap tr.appt .c-status [data-finish] { flex: 1; width: 100%; padding: .85em; }
  .table-wrap tr.appt .c-wa > div { flex-wrap: wrap; }
  .table-wrap tr.appt .c-wa .btn { flex: 1; padding: .6em; }
  .table-wrap tr.appt .c-wa small { flex-basis: 100%; }

  /* Formulários em janela viram painel que sobe de baixo */
  .modal-bg { place-items: end stretch; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; padding: 28px 16px 0; animation: sheet-up .22s ease-out; }
  .modal::before { content: ''; position: absolute; left: 50%; transform: translate(-50%, -16px); width: 40px; height: 4px; border-radius: 4px; background: var(--border); }
  .modal { position: relative; }
  .modal-actions { position: sticky; bottom: 0; background: var(--surface); margin: 8px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); flex-wrap: wrap; }
  .modal-actions .btn { flex: 1; }
  .modal > :last-child:not(form) { margin-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .modal .table-wrap tr { padding: 10px 12px; }

  .toast { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); text-align: center; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Celular: site e página de agendamento ---------- */
@media (max-width: 600px) {
  .nav .container { height: 62px; }
  .brand { font-size: 1.08rem; }
  .by-vendor { font-size: .56rem; letter-spacing: .03em; white-space: nowrap; }
  .hero { padding: 44px 0 116px; }
  .hero .btn { white-space: nowrap; padding: .95em 1.2em; }
  .hero-actions .btn { flex: 1; }
  .section { padding: 64px 0; }
  .cta { padding: 48px 20px; border-radius: 22px; }
  .faq { padding: 2px 18px; }
  .auth-wrap .card { padding: 26px 20px; }

  .booking-wrap { margin: 20px auto 40px; }
  .booking-step { padding: 18px 16px; margin-bottom: 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .choice { padding: 15px 16px; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .slot { padding: 12px 0; }
  .days { scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .days::-webkit-scrollbar { display: none; }
  .day { scroll-snap-align: start; width: 64px; }
  #confirm { width: 100%; padding: 1em; }
  .success-box .btn { width: 100%; }
}

/* ---------- Convite para o app (página /agendar) ---------- */
.app-promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 22px; border-radius: var(--radius); background: var(--ink); border: 0; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.app-promo-icon img { border-radius: 11px; display: block; }
.app-promo > span:nth-child(2) { flex: 1; line-height: 1.3; }
.app-promo small { display: block; color: rgba(255,255,255,.65); font-size: .85rem; }
.app-promo-go { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .85rem; padding: .5em 1.1em; border-radius: 999px; }
.app-done { background: var(--primary-soft); border-radius: 16px; padding: 18px; margin: 18px 0 8px; }
.app-done p { margin: 4px 0 12px; }

/* ---------- App do cliente (/app/<slug>) ---------- */
.capp { min-height: 100vh; }
.capp-head { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); color: var(--text); border-bottom: 1px solid var(--border); font-size: 1.05rem; letter-spacing: -.01em; }
.capp-head .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.capp-tag { margin-left: auto; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.capp-main { width: min(560px, 100%); margin: 0 auto; padding: 20px 16px calc(100px + env(safe-area-inset-bottom)); }
.capp-main h2 { font-size: 1.25rem; margin-top: 6px; }
.capp-hero { padding: 8px 0 16px; }
.capp-hero h1 { font-size: 1.8rem; letter-spacing: -.03em; margin-bottom: .2em; }
.capp-big { width: 100%; padding: 1em; margin-bottom: 10px; font-size: 1rem; }
.capp-note { font-size: .88rem; text-align: center; }
.capp-back { background: none; border: 0; font: inherit; color: var(--primary); font-weight: 700; padding: 4px 0 12px; cursor: pointer; }
.capp-danger { color: var(--danger); }
.capp-empty { text-align: center; margin-bottom: 14px; }
.capp-appt { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(11, 18, 32, .04); }
.capp-appt.past { opacity: .7; }
.capp-appt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.capp-appt-top > span:first-child::first-letter { text-transform: uppercase; }
.capp-appt-main { display: flex; align-items: center; gap: 16px; }
.capp-time { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; padding: 6px 12px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.capp-appt-main div { display: flex; flex-direction: column; line-height: 1.35; }
.capp-appt-main small { font-size: .85rem; }
.capp-appt .prof-chip { font-size: .9rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }
.capp-history { margin-top: 18px; }
.capp-history summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--muted); }
.capp-install { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px; border-radius: var(--radius); background: var(--ink); color: #fff; border: 0; box-shadow: var(--shadow); }
.capp-install img { border-radius: 11px; flex: 0 0 auto; }
.capp-install > div { flex: 1; line-height: 1.3; }
.capp-install small { display: block; color: rgba(255,255,255,.65); font-size: .85rem; }
.capp-install .capp-x { color: rgba(255,255,255,.6); }
.capp-share { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 5px; font-size: .7rem; vertical-align: -3px; }
.capp-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.capp-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 4px 4px env(safe-area-inset-bottom); }
.capp-tabs.hidden { display: none; }
.capp.own-app .capp-tabs { grid-template-columns: repeat(3, 1fr); }
.capp-head-logo { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--border); }
.capp-powered { text-align: center; font-size: .78rem; color: var(--muted); margin: 26px 0 8px; }
.capp-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; font: inherit; font-size: .7rem; font-weight: 600; color: var(--muted); padding: 6px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.capp-tabs svg { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 999px; transition: background .15s; }
.capp-tabs button.active { color: var(--primary); font-weight: 800; }
.capp-tabs button.active svg { background: var(--primary-soft); }
.capp .toast { left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); text-align: center; }
.capp .choice-grid { grid-template-columns: 1fr; }
.capp .choice-grid-4 { grid-template-columns: repeat(2, 1fr); }
.capp .slots { grid-template-columns: repeat(4, 1fr); }
.capp .days { scrollbar-width: none; }
.capp #confirm { width: 100%; padding: 1em; }
.capp .booking-step { padding: 18px 16px; }
.capp-center { text-align: center; }
.capp-logo { border-radius: 26px; box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--primary) 70%, transparent); margin: 12px auto 18px; display: block; }
.capp-center h1 { font-size: 1.7rem; }
.capp-pending { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.capp-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.capp-company { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 10px; padding: 16px 18px; }
.capp-company b { flex: 1; }
.capp-go { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.capp-company-head { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.capp-company-head div { display: flex; flex-direction: column; line-height: 1.3; }
.capp-company-head small { font-size: .82rem; }
.capp-mycompany { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; }
.capp-mycompany-head { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.capp-mycompany-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.capp-small { font-size: .85rem; margin: 8px 0 0; }
.capp-result { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.capp-result b { flex: 1; }
.capp-help { margin-top: 14px; }
.capp-help summary { cursor: pointer; color: var(--primary); font-weight: 700; text-align: center; padding: 6px 0; }
.capp-appt-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.capp-appt-actions .btn { flex: 1; }
.capp-cancel { color: var(--danger); width: auto; }

/* Site: público (negócio x cliente) e faixa do app */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: -56px; margin-bottom: 10px; position: relative; z-index: 2; }
.audience-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.audience-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.audience-card b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.audience-card small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.audience-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.audience-card + .audience-card .audience-icon { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 75%, black); }
.audience-icon svg { width: 26px; height: 26px; }
.audience-go { margin-left: auto; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--text); font-weight: 800; transition: background .15s, color .15s; }
.audience-card:hover .audience-go { background: var(--primary); color: var(--on-primary); }
@media (max-width: 720px) { .audience { grid-template-columns: 1fr; margin-top: -48px; } }

.app-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; color: #fff; border-radius: 28px; padding: 48px; background:
  radial-gradient(420px 300px at 100% 0%, color-mix(in srgb, var(--primary) 60%, transparent), transparent 70%), var(--ink); }
.app-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.03em; }
.app-band .muted { color: rgba(255,255,255,.7); }
.app-band .eyebrow { color: #fff; background: rgba(255,255,255,.1); }
.app-band a:not(.btn) { color: #fff; }
.app-band-how { font-size: .9rem; margin: 0; }
.app-band-note { font-size: .92rem; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.2); color: rgba(255,255,255,.75); }
.app-band-qr { text-align: center; }
.app-band-qr small { display: block; margin-top: 10px; color: rgba(255,255,255,.6) !important; }
.app-band-qr #appQr { background: #fff; padding: 14px; border-radius: 20px; display: inline-block; box-shadow: var(--shadow-lg); }
.app-band-qr #appQr img, .app-band-qr #appQr canvas { display: block; }
@media (max-width: 760px) { .app-band { grid-template-columns: 1fr; padding: 30px 22px; } .app-band-qr { display: none; } }

/* Aviso do login (ex.: pedir o código de duas etapas) */
.auth-info { background: var(--primary-soft); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }

/* Mostrar/ocultar senha */
.pw-wrap { position: relative; display: block; flex: 1; min-width: 0; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--primary); }
.pw-eye:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.pw-eye svg { width: 20px; height: 20px; }

/* Cartão do estabelecimento (página de agendamento e app) */
.biz-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; }
.biz-logo { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); flex: none; background: #fff; }
.biz-text { min-width: 0; display: grid; gap: 4px; }
.biz-name { font-size: 1.15rem; letter-spacing: -.01em; }
.biz-text p { margin: 0; }
.biz-desc { color: var(--text); }
.biz-addr { color: var(--muted); font-size: .9rem; }
.biz-links { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; font-weight: 700; }
.biz-links span { color: var(--muted); }
.biz-compact { border: 0; padding: 0; margin: 0; }
.biz-compact .biz-logo { width: 46px; height: 46px; border-radius: 12px; }
.capp-company-head { flex-direction: column; align-items: stretch; gap: 6px; }
.capp-company-head .biz-card { flex-direction: row; }
.capp-company-head .biz-text { display: grid; }
.logo-empty { width: 72px; height: 72px; border-radius: 16px; border: 1.5px dashed var(--border); display: grid; place-items: center; font-size: .75rem; color: var(--muted); text-align: center; }

/* Salvar no calendário */
.done-cal { display: grid; gap: 8px; justify-items: center; margin: 16px 0; }
.cal-links { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.capp-cal { margin-top: 8px; font-size: .9rem; }
.capp-cal summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.capp-cal .cal-links { justify-content: flex-start; margin-top: 8px; }

/* Agenda em grade */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--border) 60%, var(--bg)); }
.seg button { font: inherit; font-weight: 700; font-size: .86rem; padding: .45em 1.1em; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(11, 18, 32, .14); }
.cal-toolbar { align-items: center; }
.cal-nav { display: flex; gap: 6px; align-items: center; }
.cal-nav input { width: auto; }
.cal-title { font-size: 1.2rem; margin: 4px 0 14px; }
.cal-title::first-letter { text-transform: uppercase; }
.cal-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cal { min-width: calc(56px + var(--cols) * var(--colmin)); }
.cal-head, .cal-body { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(var(--colmin), 1fr)); }
.cal-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--border); }
.cal-colhead { padding: 12px 10px; font-size: .88rem; font-weight: 600; border-left: 1px solid var(--border); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-colhead.today { color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }
.cal-times { position: relative; }
.cal-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .72rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-times span:first-child { transform: none; }
.cal-col { position: relative; border-left: 1px solid var(--border); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, var(--border) 0 1px, transparent 1px calc(var(--hour) / 2), color-mix(in srgb, var(--border) 50%, transparent) calc(var(--hour) / 2) calc(var(--hour) / 2 + 1px), transparent calc(var(--hour) / 2 + 1px) var(--hour)); }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f3f5f9 0 6px, #eaeef4 6px 12px); pointer-events: none; display: flex; align-items: flex-start; justify-content: center; }
.cal-off span { font-size: .72rem; color: var(--muted); padding-top: 6px; font-weight: 700; }
.cal-block { background: repeating-linear-gradient(135deg, #ffe9ec 0 6px, #ffdfe4 6px 12px); }
.cal-block span { color: var(--danger); }
.cal-appt { position: absolute; left: 4px; right: 4px; z-index: 2; text-align: left; font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.25; padding: 4px 8px; border-radius: 10px; border: 0; border-left: 4px solid var(--st); background: color-mix(in srgb, var(--st) 13%, white); color: var(--text); cursor: pointer; overflow: hidden; --st: var(--primary); transition: box-shadow .15s; }
.cal-appt small { display: block; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-appt:hover, .cal-appt:focus-visible { box-shadow: 0 6px 16px -6px rgba(11, 18, 32, .35); outline: none; }
.cal-appt.st-confirmado { --st: #0284c7; }
.cal-appt.st-concluido { --st: var(--success); }
.cal-appt.st-faltou { --st: var(--danger); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 4; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.cal-legend { font-size: .85rem; margin-top: 10px; }

/* Detalhes do agendamento */
.appt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 16px; border-radius: 16px; background: var(--bg); }
.appt-facts dt { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.appt-facts dd { margin: 2px 0 0; font-weight: 700; }
.appt-facts select { width: auto; }
.appt-move { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.appt-move summary { cursor: pointer; font-weight: 700; color: var(--primary); margin-bottom: 10px; }

/* Folgas, feriados e serviços */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.holiday-list { display: grid; gap: 8px; margin-bottom: 12px; }
.holiday-list .check-label { align-items: flex-start; font-weight: 400; }
.who-does { border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 16px; display: grid; gap: 8px; }
.who-does legend { font-weight: 700; padding: 0 4px; }
.who-list { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-left: 4px; }
@media (max-width: 860px) {
  .cal-toolbar { grid-template-columns: minmax(0, 1fr); }
  .cal-toolbar .seg { display: flex; }
  .cal-toolbar .seg button { flex: 1; }
  .cal-nav input { flex: 1; min-width: 0; width: auto; }
}
@media (max-width: 600px) { .appt-facts { grid-template-columns: 1fr; } }
.auth-back { display: block; text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .9rem; font-weight: 700; text-decoration: none; }
.auth-back:hover { text-decoration: underline; }

/* Cartão de crédito (prévia) */
.cc-demo { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, black); font-size: .82rem; font-weight: 700; padding: 8px 12px; border-radius: 10px; margin: -6px 0 16px; }
.cc-card { position: relative; aspect-ratio: 1.586; max-width: 340px; margin: 0 auto 20px; border-radius: 18px; padding: 20px 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #334155, #0b1220); box-shadow: 0 18px 40px -18px rgba(11, 18, 32, .7); transition: background .3s; overflow: hidden; }
.cc-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cc-card.cc-visa { background: linear-gradient(135deg, #db2777, #1a2f8f); }
.cc-card.cc-master { background: linear-gradient(135deg, #0d9488, #b4231a); }
.cc-card.cc-elo { background: linear-gradient(135deg, #111827, #3f3f46); }
.cc-card.cc-amex { background: linear-gradient(135deg, #0ea5e9, #0f5f8a); }
.cc-card.cc-hipercard { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.cc-card.cc-diners { background: linear-gradient(135deg, #64748b, #1e293b); }
.cc-card-top { display: flex; justify-content: space-between; align-items: center; }
.cc-card-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #d4a017); }
.cc-card-num { font-size: 1.3rem; letter-spacing: .12em; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-card-bottom { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; font-weight: 600; }
.cc-card-bottom small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.cc-card-bottom span { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-section { font-weight: 800; margin: 8px 0 10px; }
.cc-lock { font-size: .8rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.cc-saved { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.cc-saved > div { flex: 1; min-width: 0; }
.cc-saved small { display: block; }
.cc-chip { font-size: .72rem; font-weight: 800; color: #fff; padding: 6px 10px; border-radius: 8px; background: #334155; white-space: nowrap; }
.cc-chip.cc-visa { background: #db2777; } .cc-chip.cc-master { background: #0d9488; } .cc-chip.cc-elo { background: #111827; }
.cc-chip.cc-amex { background: #0ea5e9; } .cc-chip.cc-hipercard { background: #dc2626; }
.cc-small { font-size: .85rem; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; font-size: .88rem; }
.cc-split > div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.cc-split ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 520px) { .cc-split { grid-template-columns: 1fr; } .cc-card-num { font-size: 1.05rem; } }
