/* Painel do profissional — Grafite e Cobre */
.i { width: 20px; height: 20px; flex: none; }
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: var(--graphite);
  background-image: linear-gradient(160deg, rgba(255,255,255,.035) 0 30%, transparent 30% 62%, rgba(255,255,255,.025) 62% 100%);
  color: #c4c9d0; padding: 1.4rem .9rem 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .2rem;
}
.side .logo { padding: 0 .6rem 1.6rem; }
.side a.nav { display: flex; align-items: center; gap: .85rem; color: #c4c9d0; text-decoration: none; padding: .7rem .8rem; border-radius: 10px; font-weight: 550; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.nav.active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--copper); }
.side a.nav.active .i { color: var(--copper); }
.side .spacer { flex: 1; }
.est-card { display: flex; align-items: center; gap: .7rem; padding: .9rem .6rem .2rem; border-top: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.est-card .av { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--copper); color: var(--copper); display: grid; place-items: center; flex: none; }
.est-card .av .i { width: 20px; height: 20px; }
.est-card .nm { display: block; font-weight: 650; font-size: .92rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-card .sb { display: block; font-size: .78rem; color: #a3a9b2; }
.est-card > span:nth-child(2) { flex: 1; min-width: 0; }
.est-card:hover .nm { text-decoration: underline; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 2rem; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font-size: 1.35rem; }
.topbar h1.greet { font-size: 1.6rem; letter-spacing: -.02em; }
.topbar .sub { color: var(--muted); font-size: .95rem; margin-top: .15rem; }
.topbar .right { display: flex; align-items: center; gap: .6rem; }
.topbar .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--copper); border: 2px solid var(--surface); }
.icon-btn.avatar { background: var(--graphite); color: #fff; border-color: var(--graphite); font-weight: 700; font-size: .95rem; }
.content { padding: 1.5rem 2rem 6rem; max-width: 1320px; }

/* Menus suspensos (notificações e perfil) */
.pop { position: fixed; z-index: 60; width: min(360px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(31,34,38,.16); overflow: hidden; }
.pop header { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.pop .list { max-height: 420px; overflow: auto; }
.pop .row-n { display: flex; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; }
.pop .row-n:hover { background: var(--copper-tint); }
.pop .row-n.new { background: #fffaf6; }
.pop .row-n .ic { flex: none; }
.pop .row-n .t1 { font-weight: 600; font-size: .92rem; }
.pop .row-n .t2 { font-size: .82rem; color: var(--muted); }
.pop .empty { padding: 1.5rem 1rem; }
.pop .menu a, .pop .menu button { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; color: var(--ink); text-decoration: none; background: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; }
.pop .menu a:hover, .pop .menu button:hover { background: var(--copper-tint); }
.pop .menu .i { color: var(--muted); }

.trial-bar { background: var(--copper-tint); color: #6b3a17; padding: .55rem 2rem; font-size: .9rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid var(--copper-soft); }
.trial-bar.danger { background: var(--red-soft); color: var(--red); }

.bottom-nav { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: .75rem 1rem; flex-wrap: wrap; gap: .6rem; }
  .topbar .actions { flex-wrap: nowrap; }
  .topbar .actions .btn { min-height: 38px; padding: 0 .75em; font-size: .875rem; }
  .topbar h1 { font-size: 1.15rem; }
  .topbar h1.greet { font-size: 1.3rem; }
  .topbar .sub { font-size: .85rem; }
  .icon-btn { width: 38px; height: 38px; }
  .content { padding: 1rem 1rem 6.5rem; }
  .trial-bar { padding: .55rem 1rem; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .55rem 0 .5rem; font-size: .72rem; font-weight: 600;
    color: var(--muted); text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .bottom-nav .active { color: var(--copper-strong); }
}

/* Cartões com ícone (tela Hoje) */
.ic { width: 40px; height: 40px; border-radius: 50%; background: var(--copper-tint); color: var(--copper-strong); display: grid; place-items: center; flex: none; }
.ic .i { width: 20px; height: 20px; }
.ic.sm { width: 32px; height: 32px; }
.ic.sm .i { width: 17px; height: 17px; }
.card-h { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.card-h h2 { margin: 0; font-size: 1.12rem; }
.card-h .note { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.card-h p { margin: .1rem 0 0; color: var(--muted); font-size: .85rem; }
.dash-top { display: grid; grid-template-columns: 1.35fr 1.05fr .85fr; gap: 1rem; align-items: stretch; }
.dash-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; align-items: start; margin-top: 1rem; }
.dash-top > *, .dash-bottom > * { min-width: 0; }
@media (max-width: 1150px) { .dash-top { grid-template-columns: 1fr 1fr; } .dash-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .dash-bottom { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .dash-top { grid-template-columns: 1fr; } }
.sec-h { display: flex; align-items: center; gap: .6rem; margin: 1.75rem 0 .8rem; }
.sec-h h2 { margin: 0; font-size: 1.15rem; }
.sec-h .i { color: var(--copper); width: 24px; height: 24px; }
.kpi-i { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.kpi-i .label { margin: 0; }
.empty-art { color: var(--copper); width: 64px; height: 64px; margin: 0 auto .6rem; display: block; }
.btn .i { width: 18px; height: 18px; }
.occ-big { font-size: 1.6rem; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; margin: .25rem 0 .5rem; }
.meter.copper > i { background: var(--copper); }
.month-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.month-row:first-of-type { border-top: 0; }
.month-row .i { color: var(--muted); width: 20px; height: 20px; }
.month-row span { flex: 1; }
.linechart { width: 100%; height: auto; display: block; }
.linechart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }

/* Indicadores */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.kpi .label { font-size: .85rem; color: var(--muted); }
.kpi .value { white-space: nowrap; font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .1rem; }
.kpi .sub { font-size: .8rem; color: var(--muted); }
.kpi.pos .value { color: var(--ok); }
.kpi.neg .value { color: var(--red); }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; align-items: start; }
.grid-2 > * { min-width: 0; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .75rem; }
.section-title h2 { margin: 0; }
.stack > * + * { margin-top: 1rem; }

/* Linha do dia — o elemento de assinatura do produto */
.day-list { list-style: none; margin: 0; padding: 0; }
.day-item { display: grid; grid-template-columns: 74px 1fr auto; gap: .9rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.day-item:first-child { border-top: 0; }
.day-item .t { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.day-item .t small { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: .25rem; }
.day-item .who { font-weight: 650; }
.day-item .what { font-size: .875rem; color: var(--muted); }
.day-item.done .t { color: var(--muted); }
.day-item.now { background: linear-gradient(90deg, var(--copper-soft), transparent 70%); margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; border-top-color: transparent; }
.day-item:hover .who { text-decoration: underline; }

/* Gráfico de barras simples */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: .5rem; }
.bars .bar { flex: 1; background: var(--copper-soft); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
.bars .bar.today { background: var(--copper); }
.bars .bar.has { background: var(--graphite-3); }
.bars-labels { display: flex; gap: 4px; font-size: .7rem; color: var(--muted); margin-top: .3rem; }
.bars-labels span { flex: 1; text-align: center; }

.meter { height: 10px; background: #eceef1; border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--copper); }

/* Tabelas */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .925rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .825rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #fafbfa; white-space: nowrap; }
td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--copper-tint); }

.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar input, .toolbar select { width: auto; min-width: 0; }
.toolbar .grow { flex: 1; min-width: 180px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 0 .9rem; min-height: 40px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--graphite); color: #fff; }

/* Agenda — dia */
.cal-day { display: grid; grid-template-columns: 56px 1fr; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-hours { border-right: 1px solid var(--line); }
.cal-hours div { height: 64px; font-size: .75rem; color: var(--muted); text-align: right; padding: 2px 6px 0 0; font-variant-numeric: tabular-nums; }
.cal-col { position: relative; }
.cal-col .hl { height: 64px; border-top: 1px solid #edf1ef; }
.cal-col .hl:first-child { border-top: 0; }
.cal-col .off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f3f5f4 0 6px, #eceff0 6px 12px); }
.cal-col .blk { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f7ecd8 0 6px, #f2e3c6 6px 12px); font-size: .75rem; color: #7a5a1f; padding: 2px 8px; }
.cal-ev { position: absolute; left: 6px; right: 6px; border-radius: 6px; padding: 4px 8px; font-size: .8rem; overflow: hidden; cursor: pointer; border-left: 4px solid var(--copper); background: var(--copper-soft); color: var(--ink); line-height: 1.3; }
.cal-ev strong { display: block; font-size: .85rem; }
.cal-ev.completed { border-left-color: var(--muted); background: #eef1ef; color: var(--ink-2); }
.cal-ev.no_show { border-left-color: var(--red); background: var(--red-soft); }
.cal-ev.cancelled { display: none; }
.cal-ev .paid { position: absolute; top: 4px; right: 6px; font-size: .7rem; font-weight: 700; color: var(--ok); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 2; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.cal-cols { display: grid; }
.cal-head { display: grid; border-bottom: 1px solid var(--line); background: #fafbfa; }
.cal-head div { padding: .5rem; font-size: .85rem; font-weight: 650; text-align: center; border-left: 1px solid var(--line); }
.cal-head div.today { color: var(--copper-strong); }

/* Agenda — mês */
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-month .wd { padding: .5rem; font-size: .8rem; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); background: #fafbfa; }
.cal-month .cell { min-height: 92px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: .4rem .5rem; cursor: pointer; font-size: .8rem; }
.cal-month .cell:nth-child(7n + 1) { border-left: 0; }
.cal-month .cell.out { background: #fafbfa; color: #a5b0aa; }
.cal-month .cell.today .d { background: var(--copper-strong); color: #fff; border-radius: 50%; }
.cal-month .d { display: inline-grid; place-items: center; width: 26px; height: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cal-month .cnt { display: block; margin-top: .25rem; color: var(--copper-strong); font-weight: 650; }
@media (max-width: 640px) { .cal-month .cell { min-height: 58px; padding: .25rem; } .cal-month .cnt { font-size: .7rem; } }

/* Horários: escolha de slot */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: .4rem; }
.slots button { min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.slots button:hover { border-color: var(--copper); }
.slots button.on { background: var(--copper-strong); color: #fff; border-color: var(--copper-strong); }

.schedule-row { display: grid; grid-template-columns: 130px repeat(4, minmax(0, 1fr)); gap: .5rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.schedule-row:first-of-type { border-top: 0; }
.schedule-row.off input[type="time"] { opacity: .4; }
@media (max-width: 700px) {
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .schedule-row .check { grid-column: 1 / -1; }
}
.schedule-head { display: grid; grid-template-columns: 130px repeat(4, minmax(0, 1fr)); gap: .5rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .schedule-head { display: none; } }

.list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .meta { font-size: .85rem; color: var(--muted); }

.copy-box { display: flex; gap: .5rem; }
.copy-box input { font-weight: 550; color: var(--ink); font-size: .9rem; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--surface); }
.plan.best { border: 2px solid var(--copper); }
.plan .price { font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }

/* Autenticação */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--graphite); color: #d6dae0; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .quote { font-size: 1.6rem; line-height: 1.3; font-weight: 600; color: #fff; max-width: 22ch; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-form .card { border: 0; background: transparent; padding: 0; width: min(400px, 100%); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

.steps { display: flex; gap: .4rem; margin-bottom: 1.5rem; }
.steps i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--copper); }
.svc-pick { display: grid; gap: .5rem; }
.svc-pick label { display: grid; grid-template-columns: auto 1fr 90px 80px; gap: .6rem; align-items: center; font-weight: 500; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .6rem; background: var(--surface); }
.svc-pick input[type="text"] { min-height: 36px; padding: .3em .5em; }
@media (max-width: 520px) { .svc-pick label { grid-template-columns: auto 1fr; } .svc-pick label input[type="text"] { grid-column: 2; } }
