/* =========================================================
   Agenda Sim — Verde esmeralda + Off-white + Grafite
   ========================================================= */
:root {
  --emerald-900: #04382a;
  --emerald-800: #065440;
  --emerald-700: #087356;
  --emerald: #0b8a66;          /* principal */
  --emerald-500: #12a57b;
  --emerald-300: #6fd3b0;
  --emerald-100: #dcf3ea;
  --emerald-50: #eef9f4;

  --offwhite: #f7f4ee;
  --offwhite-2: #efebe2;
  --paper: #fffdf9;

  --graphite-900: #16181b;
  --graphite: #24272c;
  --graphite-700: #33373e;
  --graphite-500: #5c616a;
  --graphite-300: #a3a7ad;
  --line: #e2ddd2;

  --gold: #c9a45c;
  --danger: #c2413b;
  --warning: #c98a1b;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(22, 24, 27, .18);
  --shadow-lg: 0 30px 60px -25px rgba(4, 56, 42, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--offwhite);
  color: var(--graphite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--serif); }
.muted { color: var(--graphite-500); }
.hidden { display: none !important; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 138, 102, .7); }
.btn-primary:hover { background: var(--emerald-700); }
.btn-dark { background: var(--graphite); color: var(--offwhite); }
.btn-dark:hover { background: var(--graphite-900); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--graphite); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-light { background: var(--offwhite); color: var(--emerald-900); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800));
  color: #fff; box-shadow: 0 6px 14px -6px rgba(11, 138, 102, .8);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo span em { font-style: normal; color: var(--emerald); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-size: .95rem; color: var(--graphite-700); font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--emerald); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--offwhite); padding: 1rem 16px 1.5rem; gap: .25rem; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .75rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 6rem; }
.hero::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px;
  background: radial-gradient(circle, rgba(18, 165, 123, .18), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
  background: var(--emerald-100); color: var(--emerald-800); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 4px rgba(18, 165, 123, .2); }
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05; letter-spacing: -.02em; margin: 1.25rem 0 1.25rem; color: var(--graphite-900);
}
.hero h1 em { font-style: italic; color: var(--emerald); }
.hero p.lead { font-size: 1.15rem; color: var(--graphite-500); max-width: 520px; }
.hero-actions { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--graphite-900); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--graphite-500); }

.hero-card {
  background: var(--graphite); color: var(--offwhite); border-radius: 28px; padding: 1.75rem;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero-card::after {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 120px; height: 120px; border-radius: 28px;
  background: var(--emerald); z-index: -1;
}
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.hc-head h3 { font-size: 1rem; font-weight: 600; }
.hc-head small { color: var(--graphite-300); font-size: .8rem; }
.hc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-bottom: 1.25rem; }
.hc-day { text-align: center; padding: .55rem 0; border-radius: 12px; background: var(--graphite-700); font-size: .75rem; }
.hc-day b { display: block; font-size: 1rem; }
.hc-day.active { background: var(--emerald); }
.hc-slot {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); margin-bottom: .5rem;
}
.hc-slot .time { font-weight: 700; font-size: .9rem; color: var(--emerald-300); min-width: 48px; }
.hc-slot .info { flex: 1; font-size: .85rem; }
.hc-slot .info small { display: block; color: var(--graphite-300); font-size: .75rem; }
.hc-slot .tag { font-size: .7rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(111, 211, 176, .15); color: var(--emerald-300); }
.hc-slot.free { border-style: dashed; border-color: rgba(111, 211, 176, .35); }

@media (max-width: 900px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card::after { display: none; }
}

/* ---------- Seções ---------- */
section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1; letter-spacing: -.015em; margin: .75rem 0; color: var(--graphite-900);
}
.section-head p { color: var(--graphite-500); font-size: 1.05rem; }
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--emerald); }

/* Tabs */
.tabs { display: inline-flex; padding: .3rem; background: var(--offwhite-2); border-radius: 999px; gap: .25rem; margin: 0 auto 2.5rem; }
.tabs-wrap { text-align: center; }
.tab {
  padding: .6rem 1.3rem; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font-weight: 600; font-size: .9rem; color: var(--graphite-500); transition: all .2s;
}
.tab.active { background: var(--graphite); color: var(--offwhite); }

/* Serviços */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: .75rem;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--emerald-300); }
.service-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--emerald-50); color: var(--emerald);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; color: var(--graphite-900); }
.service-card p { font-size: .9rem; color: var(--graphite-500); flex: 1; }
.service-meta { display: flex; justify-content: space-between; align-items: center; padding-top: .75rem; border-top: 1px dashed var(--line); }
.price { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--emerald-800); }
.duration { font-size: .8rem; color: var(--graphite-500); display: inline-flex; align-items: center; gap: .3rem; }
.duration svg { width: 14px; height: 14px; }

/* Como funciona */
.how { background: var(--graphite); color: var(--offwhite); border-radius: 36px; margin: 0 16px; }
.how .section-head h2 { color: var(--offwhite); }
.how .section-head p { color: var(--graphite-300); }
.how .kicker { color: var(--emerald-300); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { padding: 1.75rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2.6rem; color: var(--emerald-300); line-height: 1; display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--graphite-300); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .how { border-radius: 24px; } }

/* Profissionais */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.pro-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.9rem; color: #fff; font-weight: 600;
  background: linear-gradient(140deg, var(--emerald-500), var(--emerald-900));
  box-shadow: 0 0 0 5px var(--emerald-50);
}
.avatar.alt { background: linear-gradient(140deg, var(--graphite-500), var(--graphite-900)); box-shadow: 0 0 0 5px var(--offwhite-2); }
.pro-card h3 { font-size: 1.05rem; color: var(--graphite-900); }
.pro-card p { font-size: .85rem; color: var(--graphite-500); }

/* Depoimentos */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .75rem; }
.quote p { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--graphite-700); margin-bottom: 1rem; }
.quote footer { font-size: .85rem; font-weight: 600; }
.quote footer span { display: block; font-weight: 400; color: var(--graphite-500); }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900)); color: var(--offwhite);
  border-radius: 32px; padding: 4rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; bottom: -200px;
  border: 60px solid rgba(255, 255, 255, .06);
}
.cta h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; font-weight: 600; }
.cta p { color: var(--emerald-100); margin-top: .5rem; }
@media (max-width: 760px) { .cta { flex-direction: column; align-items: flex-start; padding: 2.5rem 1.5rem; } }

/* Info / contato */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.info-card { display: flex; gap: 1rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card .service-icon { flex-shrink: 0; }
.info-card h4 { font-size: .95rem; margin-bottom: .2rem; }
.info-card p { font-size: .9rem; color: var(--graphite-500); }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--graphite-900); color: var(--graphite-300); padding: 3.5rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--graphite-700); }
.footer .logo { color: var(--offwhite); }
.footer h5 { color: var(--offwhite); font-size: .85rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.footer ul { list-style: none; display: grid; gap: .4rem; font-size: .9rem; }
.footer a:hover { color: var(--emerald-300); }
.footer-bottom { padding-top: 1.5rem; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--emerald); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 40;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   AGENDAMENTO
   ========================================================= */
.booking-page { padding: 2.5rem 0 4rem; }
.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } }

.progress { display: flex; gap: .5rem; margin-bottom: 2rem; }
.progress .p-step { flex: 1; }
.progress .bar { height: 5px; border-radius: 5px; background: var(--offwhite-2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--emerald); transition: width .4s; }
.progress .p-step.done .bar i, .progress .p-step.current .bar i { width: 100%; }
.progress .p-step.current .bar i { background: var(--emerald-500); }
.progress label { display: block; font-size: .75rem; margin-top: .45rem; color: var(--graphite-300); font-weight: 600; }
.progress .p-step.current label, .progress .p-step.done label { color: var(--graphite-700); }
@media (max-width: 560px) { .progress label { display: none; } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 2rem; }
@media (max-width: 560px) { .panel { padding: 1.25rem; border-radius: 18px; } }
.panel h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--graphite-900); margin-bottom: .3rem; }
.panel > p.muted { margin-bottom: 1.5rem; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .85rem; }
.choice {
  text-align: left; background: var(--offwhite); border: 1.5px solid var(--line); border-radius: 16px; padding: 1.1rem;
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; display: flex; gap: .9rem; align-items: center;
}
.choice:hover { border-color: var(--emerald-300); }
.choice.selected { border-color: var(--emerald); background: var(--emerald-50); box-shadow: 0 0 0 3px rgba(11, 138, 102, .12); }
.choice .avatar { width: 52px; height: 52px; font-size: 1.15rem; margin: 0; box-shadow: none; flex-shrink: 0; }
.choice .c-body { flex: 1; min-width: 0; }
.choice h4 { font-size: .98rem; color: var(--graphite-900); }
.choice small { color: var(--graphite-500); font-size: .8rem; display: block; }
.choice .c-price { font-weight: 700; color: var(--emerald-800); font-size: .95rem; }
.cat-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--graphite-500); font-weight: 700; margin: 1.5rem 0 .75rem; }
.cat-title:first-child { margin-top: 0; }

/* Calendário */
.cal { margin-bottom: 1.5rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal-head h3 { font-size: 1.05rem; }
.cal-nav { display: flex; gap: .4rem; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--emerald); color: var(--emerald); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--graphite-300); text-transform: uppercase; padding-bottom: .3rem; }
.cal-day {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: var(--offwhite);
  display: grid; place-items: center; cursor: pointer; font-weight: 600; font-size: .92rem; transition: all .15s;
}
.cal-day:hover:not([disabled]) { border-color: var(--emerald); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--emerald-300); }
.cal-day.selected { background: var(--emerald); color: #fff; }
.cal-day[disabled] { background: transparent; color: var(--graphite-300); cursor: not-allowed; font-weight: 400; }
.cal-day.empty { visibility: hidden; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot {
  padding: .7rem 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer;
  font-weight: 600; font-size: .9rem; transition: all .15s;
}
.slot:hover { border-color: var(--emerald); color: var(--emerald); }
.slot.selected { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.slots-empty { padding: 1.5rem; text-align: center; background: var(--offwhite); border-radius: 14px; color: var(--graphite-500); font-size: .9rem; }

/* Formulários */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--graphite-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--offwhite);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(11, 138, 102, .12); background: var(--paper); }
.field .hint { font-size: .75rem; color: var(--graphite-500); margin-top: .3rem; }
.field.error input { border-color: var(--danger); }

.step-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Resumo lateral */
.summary { position: sticky; top: 96px; background: var(--graphite); color: var(--offwhite); border-radius: 24px; padding: 1.75rem; }
.summary h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 1.25rem; }
.sum-row { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sum-row .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(111, 211, 176, .12); color: var(--emerald-300); display: grid; place-items: center; flex-shrink: 0; }
.sum-row .ic svg { width: 18px; height: 18px; }
.sum-row small { display: block; color: var(--graphite-300); font-size: .75rem; }
.sum-row b { font-weight: 600; font-size: .95rem; }
.sum-row.empty b { color: var(--graphite-500); font-weight: 400; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1.25rem; }
.sum-total strong { font-family: var(--serif); font-size: 1.8rem; color: var(--emerald-300); }
@media (max-width: 960px) { .summary { position: static; order: -1; } }

/* Sucesso */
.success { text-align: center; padding: 2rem 0 1rem; }
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--emerald-100); color: var(--emerald);
  display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
.success-icon svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ticket { margin: 1.75rem auto 0; max-width: 420px; text-align: left; background: var(--offwhite); border: 1.5px dashed var(--emerald-300); border-radius: 18px; padding: 1.25rem 1.5rem; }
.ticket-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; }
.ticket-row span { color: var(--graphite-500); }
.code-badge { font-family: ui-monospace, monospace; font-size: 1.4rem; letter-spacing: .18em; font-weight: 700; color: var(--emerald-800); }

/* Alertas / toast */
.alert { padding: .9rem 1.1rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1rem; }
.alert-info { background: var(--emerald-50); color: var(--emerald-800); border: 1px solid var(--emerald-100); }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid #f3d1cf; }
.alert-warn { background: #fbf3e3; color: #8a5d0b; border: 1px solid #f0e0bd; }

.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--graphite-900); color: var(--offwhite); padding: .9rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .9rem; animation: toastIn .3s ease; display: flex; gap: .6rem; align-items: center; }
.toast.ok::before { content: "✓"; color: var(--emerald-300); font-weight: 700; }
.toast.err::before { content: "!"; color: #ff8a84; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.demo-banner { background: var(--graphite); color: var(--emerald-300); text-align: center; font-size: .8rem; padding: .45rem 16px; }

/* =========================================================
   PAINEL ADMIN
   ========================================================= */
.admin-body { background: var(--offwhite); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background:
  radial-gradient(circle at 20% 10%, rgba(18, 165, 123, .16), transparent 45%),
  radial-gradient(circle at 90% 90%, rgba(36, 39, 44, .12), transparent 45%), var(--offwhite); }
.login-card { width: min(420px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 2.5rem 2rem; box-shadow: var(--shadow); }
.login-card .logo { justify-content: center; margin-bottom: 1.5rem; }
.login-card h1 { font-family: var(--serif); font-size: 1.8rem; text-align: center; font-weight: 600; }
.login-card p { text-align: center; margin-bottom: 1.75rem; }
.login-card .field { margin-bottom: 1rem; }

.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--graphite-900); color: var(--graphite-300); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1.75rem; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { color: var(--offwhite); padding: 0 .5rem; }
.side-nav { display: grid; gap: .25rem; }
.side-nav button {
  display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: 12px; border: 0; background: transparent;
  color: var(--graphite-300); cursor: pointer; font-weight: 500; font-size: .92rem; text-align: left; transition: background .15s, color .15s;
}
.side-nav button svg { width: 19px; height: 19px; }
.side-nav button:hover { background: var(--graphite); color: var(--offwhite); }
.side-nav button.active { background: var(--emerald); color: #fff; }
.sidebar .side-foot { margin-top: auto; display: grid; gap: .5rem; }
.sidebar .side-foot a, .sidebar .side-foot button { font-size: .85rem; color: var(--graphite-300); background: none; border: 0; cursor: pointer; text-align: left; padding: .5rem .9rem; border-radius: 10px; }
.sidebar .side-foot a:hover, .sidebar .side-foot button:hover { color: var(--offwhite); background: var(--graphite); }

.main { padding: 2rem 2.25rem 3rem; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.main-head h1 { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--graphite-900); }
.main-head p { color: var(--graphite-500); font-size: .9rem; }
.admin-topbar { display: none; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 100; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: .9rem 16px; background: var(--graphite-900); color: var(--offwhite); position: sticky; top: 0; z-index: 60; }
  .admin-topbar .menu-toggle { display: block; color: var(--offwhite); }
  .main { padding: 1.5rem 16px 3rem; }
}

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem; }
.kpi small { font-size: .8rem; color: var(--graphite-500); font-weight: 500; }
.kpi strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--graphite-900); line-height: 1.2; margin-top: .25rem; }
.kpi.accent { background: var(--emerald); border-color: var(--emerald); }
.kpi.accent small { color: var(--emerald-100); }
.kpi.accent strong { color: #fff; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2 { font-size: 1.1rem; color: var(--graphite-900); }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { padding: .55rem .85rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--offwhite); font-size: .88rem; }

.table-wrap { overflow-x: auto; margin: 0 -1.5rem; padding: 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--graphite-500); font-weight: 700; padding: .7rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .85rem .75rem; border-bottom: 1px solid var(--offwhite-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
td .sub { display: block; font-size: .78rem; color: var(--graphite-500); }
.badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.badge.confirmado { background: var(--emerald-100); color: var(--emerald-800); }
.badge.concluido { background: #e6e7e9; color: var(--graphite-700); }
.badge.cancelado { background: #fbeceb; color: var(--danger); }
.badge.faltou { background: #fbf3e3; color: #8a5d0b; }
.badge.ativo { background: var(--emerald-100); color: var(--emerald-800); }
.badge.inativo { background: #e6e7e9; color: var(--graphite-500); }
.row-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--graphite-500); }

/* Linha do tempo do dia */
.timeline { display: grid; gap: .5rem; }
.tl-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: var(--offwhite); border-left: 4px solid var(--emerald); }
.tl-item.cancelado { border-left-color: var(--danger); opacity: .6; }
.tl-item.concluido { border-left-color: var(--graphite-300); }
.tl-item .t { font-weight: 700; font-size: 1rem; color: var(--graphite-900); }
.tl-item .d b { display: block; font-size: .95rem; }
.tl-item .d small { color: var(--graphite-500); font-size: .8rem; }
@media (max-width: 560px) { .tl-item { grid-template-columns: 52px 1fr; } .tl-item .badge { grid-column: 2; justify-self: start; } }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(22, 24, 27, .55); backdrop-filter: blur(3px); z-index: 150; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--paper); border-radius: 22px; width: min(540px, 100%); max-height: 90vh; overflow: auto; padding: 1.75rem; box-shadow: var(--shadow-lg); }
.modal h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 1.25rem; }
.modal .form-grid { margin-bottom: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; }

.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.check-list label { display: flex; gap: .5rem; align-items: center; font-size: .88rem; font-weight: 500; padding: .45rem .6rem; border-radius: 8px; background: var(--offwhite); cursor: pointer; }
.check-list input { accent-color: var(--emerald); width: 16px; height: 16px; }
.days-pick { display: flex; gap: .35rem; flex-wrap: wrap; }
.days-pick label { cursor: pointer; }
.days-pick input { display: none; }
.days-pick span { display: inline-block; padding: .5rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; }
.days-pick input:checked + span { background: var(--emerald); border-color: var(--emerald); color: #fff; }
