/* ==========================================================================
   Identidade: verde-água (marca) + coral (destaque) + amarelo (alegria)
   ========================================================================== */
:root {
  --bg: #F7F4EF; --bg-2: #EFEAE2; --card: #FFFFFF; --text: #1F2433; --muted: #6B7080; --line: #E8E2D8;
  --primary: #0E8C88; --primary-dark: #0A6E6B; --primary-soft: #DDF3F0; --primary-grad: linear-gradient(135deg, #2BC4B1 0%, #0B7A80 100%);
  --coral: #FF7A5C; --coral-dark: #E85F41; --coral-soft: #FFE8E1;
  --sun: #FFC75F; --sun-soft: #FFF4DB;
  --lilac: #8B6CEF; --lilac-soft: #EFEAFF;
  --sky: #3B82F6; --sky-soft: #E3EEFF;
  --ok: #16A34A; --ok-soft: #DCFCE7; --warn: #B45309; --warn-soft: #FEF3C7; --danger: #DC2626; --danger-soft: #FEE2E2;
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31,36,51,.05), 0 4px 16px rgba(31,36,51,.06);
  --shadow-lg: 0 8px 30px rgba(31,36,51,.12);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.staff { background:
  radial-gradient(circle at 100% 0, rgba(43,196,177,.10), transparent 420px),
  radial-gradient(circle at 0 100%, rgba(255,122,92,.07), transparent 420px), var(--bg); background-attachment: fixed; }
a { color: var(--primary-dark); text-underline-offset: 2px; }
h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .75rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 800; margin: 1.75rem 0 .75rem; }
h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 .5rem; }
small, .muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }
.narrow { max-width: 580px; margin: 0 auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ic.lg { width: 1.5em; height: 1.5em; }

/* --------------------------------------------------------------- topo */
.top { background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 800; font-size: 1.08rem; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { height: 38px; width: 38px; object-fit: contain; border-radius: 11px; }
.nav { display: flex; gap: 4px; flex: 1; margin-left: 12px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; transition: .15s; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a.on { color: var(--primary-dark); background: var(--primary-soft); }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary, .more summary:hover { background: var(--bg-2); color: var(--text); }
.more .menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: 8px; display: grid; animation: pop .14s ease-out; }
.more .menu a, .more .menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text);
  background: none; border: 0; text-align: left; font: inherit; font-weight: 600; cursor: pointer; width: 100%; }
.more .menu a .ic, .more .menu button .ic { color: var(--muted); }
.more .menu a:hover, .more .menu button:hover { background: var(--bg); }
.more .menu hr { margin: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.wa { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; background: var(--bg); }
.wa .ic { color: #25D366; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9CA3AF; display: inline-block; flex: none; }
.dot.on { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.2); } .dot.off { background: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }

/* barra inferior no celular */
.bottom { display: none; }
@media (max-width: 760px) {
  .nav, .top .new-btn, .top .wa span.lbl { display: none; }
  .top .wrap { justify-content: space-between; }
  body.staff { padding-bottom: 84px; }
  .bottom { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); z-index: 20; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
  .bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; font-size: .74rem; font-weight: 700; text-decoration: none; color: var(--muted); border-radius: 12px; }
  .bottom a .ic { width: 24px; height: 24px; }
  .bottom a.on { color: var(--primary-dark); }
  .bottom a.on .ic { background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; width: 46px; box-sizing: content-box; }
  .bottom a.plus .ic { color: #fff; background: var(--coral); border-radius: 50%; width: 26px; height: 26px; padding: 9px; margin-top: -22px;
    box-shadow: 0 6px 16px rgba(255,122,92,.45); box-sizing: content-box; }
}

/* --------------------------------------------------------------- blocos */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack-cards > .card + .card, .narrow > .card + .card, .narrow > form.card + .card, .card + form.card, form.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 14px; }
.grid > .card { margin: 0; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 2px 0 0; color: var(--muted); }

/* números do painel */
.stat-card { display: flex; gap: 14px; align-items: center; }
.stat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat-ic .ic { width: 24px; height: 24px; }
.stat-ic.teal { background: var(--primary-soft); color: var(--primary-dark); }
.stat-ic.coral { background: var(--coral-soft); color: var(--coral-dark); }
.stat-ic.sun { background: var(--sun-soft); color: #B7791F; }
.stat-ic.green { background: #DCFCE7; color: #15803D; }
.stat-ic.red { background: var(--danger-soft); color: var(--danger); }
.stat { font-size: 1.55rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.stat-label { font-size: .85rem; color: var(--muted); font-weight: 700; }

/* --------------------------------------------------------------- botões e formulários */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 10px 20px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s, border-color .15s; }
.btn:hover { border-color: #D4CCBF; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary { background: var(--primary-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(14,140,136,.28); }
.btn.primary:hover { box-shadow: 0 8px 20px rgba(14,140,136,.35); }
.btn.coral { background: var(--coral); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(255,122,92,.32); }
.btn.coral:hover { background: var(--coral-dark); }
.btn.danger { color: var(--danger); border-color: #F5C7C7; background: #fff; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ok { background: linear-gradient(135deg, #22C55E, #15803D); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(22,163,74,.28); }
.btn.wa-btn { background: #25D366; border-color: #25D366; color: #053B1C; }
.btn.big { min-height: 56px; font-size: 1.08rem; width: 100%; border-radius: 14px; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { width: 40px; height: 40px; padding: 0; min-height: 0; border-radius: 12px; }
label { display: block; font-weight: 800; margin-bottom: 6px; font-size: .95rem; }
label.inline { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.field { margin-bottom: 16px; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 500; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=search], input[type=file], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #FFFDFA; color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 90px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #D4CCBF; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,140,136,.15); background: #fff; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.code-input { font-size: 2rem; letter-spacing: .45em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 44px; min-height: 54px; border-radius: 14px; box-shadow: var(--shadow); }

/* opções grandes */
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text); transition: .15s; }
.choice:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(14,140,136,.12); }
.choice .grow { flex: 1; min-width: 0; }
.choice .price { font-weight: 800; white-space: nowrap; color: var(--primary-dark); }
.choice > .ic:last-child { color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { position: relative; margin: 0; }
.slot input { position: absolute; opacity: 0; }
.slot span, a.slot { display: block; text-align: center; padding: 12px 4px; border: 1.5px solid var(--line); border-radius: 12px;
  font-weight: 800; background: var(--card); cursor: pointer; text-decoration: none; color: var(--text); transition: .15s; font-variant-numeric: tabular-nums; }
.slot input:checked + span { background: var(--primary-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(14,140,136,.3); }
a.slot:hover, .slot span:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); }
.slot input:focus-visible + span { box-shadow: 0 0 0 4px rgba(14,140,136,.2); }

/* avatar do pet */
.avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 1.05rem; color: #fff; }
.avatar.sm { width: 34px; height: 34px; border-radius: 11px; font-size: .9rem; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.6rem; }
.av-0 { background: linear-gradient(135deg, #2BC4B1, #0B7A80); } .av-1 { background: linear-gradient(135deg, #FF9A7B, #FF6A4D); }
.av-2 { background: linear-gradient(135deg, #FFD37A, #F5A524); } .av-3 { background: linear-gradient(135deg, #A78BFA, #7C5CE8); }
.av-4 { background: linear-gradient(135deg, #60A5FA, #2F6FE0); } .av-5 { background: linear-gradient(135deg, #F472B6, #DB2777); }

/* selos e avisos */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; line-height: 1.4; }
.tag .ic { width: 13px; height: 13px; }
.tag.online { background: var(--sky-soft); color: #1D4ED8; border-color: #C6D9FB; }
.tag.warn { background: var(--sun-soft); color: #92400E; border-color: #F8DD94; }
.tag.danger { background: var(--danger-soft); color: #B91C1C; border-color: #F5C7C7; }
.tag.ok { background: var(--ok-soft); color: #15803D; border-color: #B5E8C6; }
.tag.pkg { background: var(--lilac-soft); color: #6D4FD8; border-color: #DCD1FC; }
.tag.pickup { background: var(--coral-soft); color: var(--coral-dark); border-color: #FFD0C4; }
.st-pendente { background: var(--sun-soft); color: #92400E; border-color: #F8DD94; }
.st-agendado { background: var(--sky-soft); color: #1D4ED8; border-color: #C6D9FB; }
.st-em_atendimento { background: var(--lilac-soft); color: #6D4FD8; border-color: #DCD1FC; }
.st-pronto { background: var(--ok-soft); color: #15803D; border-color: #B5E8C6; }
.st-entregue { background: #ECEAE6; color: #4B4F5C; }
.st-cancelado, .st-nao_compareceu { background: var(--danger-soft); color: #B91C1C; border-color: #F5C7C7; }
.flash { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 14px; margin-bottom: 14px; background: var(--ok-soft); color: #14532D; font-weight: 600;
  border: 1px solid #B5E8C6; animation: pop .2s ease-out; }
.flash.erro { background: var(--danger-soft); color: #7F1D1D; border-color: #F5C7C7; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; background: var(--sun-soft); color: #78350F; border: 1px solid #F8DD94; font-weight: 600; }
.alert .ic { margin-top: 2px; }
.alert.danger { background: var(--danger-soft); color: #7F1D1D; border-color: #F5C7C7; }
.note-important { display: flex; gap: 6px; align-items: flex-start; background: var(--danger-soft); color: #991B1B; padding: 7px 10px; border-radius: 10px; font-size: .88rem; font-weight: 700; }
.note-important .ic { margin-top: 2px; width: 15px; height: 15px; }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; color: #D4CCBF; display: block; margin: 0 auto 6px; }

/* --------------------------------------------------------------- quadro do painel */
.board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; }
@media (max-width: 980px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.col { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 20px; padding: 12px; min-height: 140px; position: relative; overflow: hidden; }
.col::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--col, var(--primary)); }
.col h3 { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; font-size: .95rem; }
.col h3 .count { background: var(--col-soft, var(--bg)); color: var(--col-text, var(--muted)); border-radius: 999px; padding: 1px 10px; font-size: .8rem; }
.col h3 .ttl { display: flex; gap: 8px; align-items: center; }
.col h3 .ttl .ic { color: var(--col); }
.col.c-agendado { --col: #3B82F6; --col-soft: var(--sky-soft); --col-text: #1D4ED8; }
.col.c-em_atendimento { --col: #8B6CEF; --col-soft: var(--lilac-soft); --col-text: #6D4FD8; }
.col.c-pronto { --col: #22C55E; --col-soft: var(--ok-soft); --col-text: #15803D; }
.col.c-entregue { --col: #A8A29E; --col-soft: #ECEAE6; --col-text: #4B4F5C; }
.appt { background: var(--card); border-radius: 14px; padding: 12px; border: 1px solid var(--line); margin-bottom: 10px; box-shadow: 0 1px 2px rgba(31,36,51,.04);
  transition: transform .15s ease, box-shadow .15s ease; }
.appt:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.appt .head { display: flex; gap: 10px; align-items: center; }
.appt .head .grow { flex: 1; min-width: 0; }
.appt .when { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.appt a.title { font-weight: 800; text-decoration: none; color: var(--text); font-size: 1.02rem; }
.appt a.title:hover { color: var(--primary-dark); }
.appt .sub { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.appt .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.appt .btn { width: 100%; margin-top: 10px; }
.appt .note-important { margin-top: 8px; }
.pending-box { border: 0; background: linear-gradient(135deg, #FFF4DB, #FFE8E1); box-shadow: var(--shadow); margin-bottom: 18px; }
.pending-box h2 { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.pending-box h2 .ic { color: var(--coral-dark); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 180px; }

/* --------------------------------------------------------------- agenda */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--bg-2); padding: 4px; border-radius: 12px; }
.seg a { padding: 7px 16px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: .92rem; }
.seg a.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.week { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 10px; overflow-x: auto; }
@media (max-width: 760px) { .week { grid-template-columns: 1fr; } }
.week .day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 130px; }
.week .day.today { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,140,136,.12); }
.week .day.closed { background: repeating-linear-gradient(45deg, #F3EFE8, #F3EFE8 8px, #EFEAE2 8px, #EFEAE2 16px); }
.day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.day-head a.d { font-weight: 800; text-decoration: none; color: var(--text); }
.day-head .num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 10px; margin-left: 4px; }
.today .day-head .num { background: var(--primary-grad); color: #fff; }
.mini { display: block; padding: 7px 9px; border-radius: 10px; margin-bottom: 6px; text-decoration: none; color: var(--text); font-size: .86rem;
  border-left: 4px solid var(--sky); background: var(--bg); transition: .15s; }
.mini:hover { background: var(--primary-soft); }
.mini.st-em_atendimento { border-left-color: var(--lilac); } .mini.st-pronto { border-left-color: var(--ok); }
.mini.st-entregue { border-left-color: #A8A29E; } .mini.st-pendente { border-left-color: var(--sun); }
.mini.st-cancelado, .mini.st-nao_compareceu { opacity: .5; text-decoration: line-through; border-left-color: var(--danger); }
.timeline { position: relative; }
.timeline .appt { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; margin-bottom: 10px; }
.timeline .when-col { text-align: center; padding-right: 12px; border-right: 2px dashed var(--line); }
.timeline .when-col b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .timeline .appt { grid-template-columns: 62px 1fr; } .timeline .appt .side { grid-column: 1 / -1; } }
.timeline .appt.dim { opacity: .55; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: .8rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover td, table tr:hover td { background: #FCFAF6; }
.table-wrap { overflow-x: auto; padding: 6px 12px; }
.right { text-align: right; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 6px; border-radius: 6px; background: var(--line); transition: .3s; }
.steps i.on { background: var(--primary-grad); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.price-grid { display: grid; grid-template-columns: 50px 1fr 1fr; gap: 8px; align-items: center; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request#slots, .htmx-request #slots { opacity: .5; }

/* --------------------------------------------------------------- perfil (cliente/pet) */
.profile { display: flex; gap: 16px; align-items: center; padding: 20px; background: var(--primary-grad); color: #fff; border: 0; position: relative; overflow: hidden; }
.profile::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; opacity: .14;
  background: url("/static/paw-white.svg") center / contain no-repeat; transform: rotate(-18deg); }
.profile h1 { margin: 0; color: #fff; }
.profile a { color: #fff; }
.profile .muted, .profile small { color: rgba(255,255,255,.85); }
.profile .avatar { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.profile .btn { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; }
.profile .btn:hover { background: rgba(255,255,255,.28); }
.pkg-card { background: linear-gradient(135deg, #F5F1FF, #fff); border-color: #E4DBFD; }
.meter { height: 8px; background: #E9E3FB; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #A78BFA, #7C5CE8); border-radius: 99px; }

/* --------------------------------------------------------------- páginas públicas e login */
body.public { background: var(--bg); }
.hero { background: var(--primary-grad); color: #fff; text-align: center; padding: 26px 16px 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .09; background: url("/static/paw-white.svg") 0 0 / 56px repeat; transform: rotate(-12deg) scale(1.4); }
.hero > * { position: relative; }
.hero .logo { width: 68px; height: 68px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.18); background: #fff; object-fit: contain; }
.hero h1 { color: #fff; margin: 10px 0 2px; font-size: 1.7rem; }
.hero p { margin: 0; opacity: .9; font-weight: 600; }
.hero .art { display: block; width: min(320px, 86%); margin: 6px auto -4px; }
.hero-wave { display: block; width: 100%; height: 34px; margin-top: -1px; }
.public-body { margin-top: -6px; }
.public-body .card { box-shadow: var(--shadow-lg); }
.perks { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 18px 0 4px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.perks span { display: inline-flex; align-items: center; gap: 6px; }
.perks .ic { color: var(--primary); }
.public-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 26px 0 10px; }
.big-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; }
.big-icon .ic { width: 38px; height: 38px; }
.big-icon.ok { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 10px rgba(34,197,94,.08); }
.big-icon.wait { background: var(--sun-soft); color: #B7791F; box-shadow: 0 0 0 10px rgba(255,199,95,.15); }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--primary-grad); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; position: relative; overflow: hidden; text-align: center; }
.login-art::before { content: ""; position: absolute; inset: 0; opacity: .08; background: url("/static/paw-white.svg") 0 0 / 64px repeat; transform: rotate(-12deg) scale(1.4); }
.login-art > * { position: relative; }
.login-art img.art { width: min(420px, 90%); }
.login-art h2 { font-size: 1.8rem; margin: 18px 0 6px; color: #fff; }
.login-art p { margin: 0; opacity: .9; max-width: 380px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-form .box { width: 100%; max-width: 380px; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { padding: 28px 20px 18px; } .login-art img.art { width: 240px; } .login-art h2 { font-size: 1.35rem; margin-top: 8px; }
  .login-form { align-items: flex-start; padding-top: 24px; }
}
