/* ─── TACCTO Design System ─────────────────────────────────────────────── */
:root {
  --bg:          #F8FAFC;
  --surface:     #FFFFFF;
  --ink:         #111827;
  --muted:       #64748B;
  --line:        #E2E8F0;
  --blue:        #2563EB;
  --blue-light:  #DBEAFE;
  --blue-dark:   #1D4ED8;
  --indigo:      #4F46E5;
  --violet:      #7C3AED;
  --cyan:        #06B6D4;
  --navy:        #172554;
  --blue-ink:    #FFFFFF;
  --ok:          #166534;
  --ok-bg:       #DCFCE7;
  --err:         #991B1B;
  --err-bg:      #FEE2E2;
  --shadow-sm:   0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:   0 4px 16px rgba(15,23,42,.09);
  --shadow-lg:   0 12px 40px rgba(15,23,42,.12);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 999px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: 1.35rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-size: .92em; font-family: 'Menlo', 'Consolas', monospace; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.top, .foot, .wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(110deg, var(--navy), #1E3A8A 58%, #312E81);
  border-bottom: 1px solid rgba(255,255,255,.12);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand:hover { opacity: .85; text-decoration: none; }
.brand-img {
  height: 62px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.site-nav a {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.site-nav a:hover { color: #FFFFFF; background: rgba(255,255,255,.12); }
/* botão do Pro no topo: fixo, sem animação (spec 003, RN-01) */
.header-actions > .nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(165,243,252,.78);
  border-radius: 9px;
  color: #FFFFFF;
  background: rgba(255,255,255,.13);
  box-shadow: 0 4px 14px rgba(6,182,212,.18), inset 0 1px rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-weight: 700;
}
.header-actions > .nav-cta span { font-size: 1.05rem; line-height: 1; }
.header-actions > .nav-cta:hover {
  border-color: #A5F3FC;
  background: rgba(6,182,212,.32);
  box-shadow: 0 5px 20px rgba(6,182,212,.32), inset 0 1px rgba(255,255,255,.24);
  text-decoration: none;
}
.header-actions > .nav-cta:focus-visible { outline: 2px solid #A5F3FC; outline-offset: 2px; }
.menu-toggle { display: none; }
.menu-toggle:focus-visible,
.site-nav a:focus-visible,
.site-nav .linkish:focus-visible { outline: 2px solid #A5F3FC; outline-offset: 2px; }
.linkish {
  display: inline;
  background: none;
  border: 0;
  color: rgba(255,255,255,.88);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.linkish:hover { color: #FFFFFF; background: rgba(255,255,255,.12); }
.inline { display: inline; }

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    height: 74px;
    padding: 6px 0;
  }

  .top {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    min-height: 74px;
    gap: 8px;
  }

  .brand {
    flex: none;
  }

  .brand-img {
    height: 54px;
  }

  .header-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .header-actions > .nav-cta {
    margin-left: 0;
    padding: 7px 8px;
    font-size: .68rem;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    flex: none;
    margin-left: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    color: #FFFFFF;
    background: rgba(255,255,255,.08);
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    border-color: rgba(165,243,252,.7);
    background: rgba(255,255,255,.16);
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: var(--navy);
    box-shadow: 0 12px 28px rgba(15,23,42,.24);
  }

  .site-nav.is-open {
    display: flex;
    flex: 0 0 100%;
    margin-bottom: 8px;
  }
  .site-nav a,
  .site-nav .linkish {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    font-size: .9rem;
    text-align: left;
  }
  .site-nav form.inline { display: block; }
  .site-nav .linkish { font-size: .9rem; }
  .site-nav a:hover,
  .site-nav .linkish:hover { background: rgba(255,255,255,.12); }
}

/* ─── Main / Footer ──────────────────────────────────────────────────────── */
/* Uma "}" sobrando antes desta regra fazia o navegador descartá-la, e o conteúdo
   ficava colado no header. A página pública sempre foi exibida sem esse espaço
   e continua assim (constituição C-04). */
.wrap { padding: 32px 0 72px; }
main.wrap { flex: 1 0 auto; }
.pub-body > main.wrap { padding-top: 0; padding-bottom: 0; }
.site-footer {
  width: 100%;
  margin-top: auto;
  background: var(--navy);
  color: rgba(255,255,255,.78);
  border-top: 3px solid var(--cyan);
}
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
  padding: 30px 0 34px;
  font-size: .9rem;
}
.footer-contact p { margin: 0; }
.footer-brand {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
}
.footer-brand span {
  margin-left: 5px;
  color: #A5F3FC;
  font-size: .75rem;
  font-weight: 500;
}
.footer-tagline { margin-top: 3px !important; }
.footer-support { margin-top: 16px !important; }
.footer-support a,
.legal-links a { color: #A5F3FC; }
.footer-support a:hover,
.legal-links a:hover { color: #FFFFFF; }
.legal-links h2 {
  margin: 0 0 9px;
  color: #FFFFFF;
  font-size: .92rem;
  letter-spacing: 0;
}
.legal-links ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}
.legal-links li { padding-left: 2px; }

@media (max-width: 640px) {
  .foot {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 0 30px;
  }
}

/* ─── Flash messages ──────────────────────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin: 0 0 16px;
  font-size: .93rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flash::before { font-size: 1rem; flex: none; }
.flash.ok    { background: var(--ok-bg);  color: var(--ok);  border: 1px solid #BBF7D0; }
.flash.ok::before { content: "✓"; }
.flash.error { background: var(--err-bg); color: var(--err); border: 1px solid #FECACA; }
.flash.error::before { content: "✕"; }
.flash.info  { background: var(--blue-light); color: var(--blue-dark); border: 1px solid #BFDBFE; }
.flash.info::before { content: "ℹ"; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--bg); border-color: #D1D5DB; box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--blue-ink);
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn.primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
}

.btn.primary:focus-visible,
.btn.ghost:focus-visible,
.top nav a:focus-visible,
.linkish:focus-visible {
  outline: 3px solid rgba(6,182,212,.45);
  outline-offset: 2px;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--blue);
}
.btn.ghost:hover { background: var(--blue-light); }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}
.card.tight { padding: 20px; }

/* ─── Plan comparison ──────────────────────────────────────────────────── */
.plan-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}
.plan-lede { max-width: 480px; margin: 10px 0 0; color: var(--muted); font-size: 1.02rem; }
.plan-current-badge,
.plan-state,
.plan-mark {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--muted);
  background: var(--surface);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-card {
  position: relative;
  min-height: 390px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan-card-pro {
  border-color: #93C5FD;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FBFF 72%, #EFF6FF 100%);
  box-shadow: 0 12px 32px rgba(37,99,235,.13);
}
.plan-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.plan-kicker { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.plan-state { min-height: 26px; padding: 3px 9px; color: var(--ok); background: var(--ok-bg); border-color: #BBF7D0; font-size: .7rem; }
.plan-mark { min-height: 26px; padding: 3px 9px; color: var(--blue-dark); background: var(--blue-light); border-color: #BFDBFE; font-size: .7rem; letter-spacing: .08em; }
.plan-card h2 { margin-bottom: 12px; font-size: 1.55rem; }
.plan-price { margin: 0; color: var(--ink); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.plan-price span { margin-left: 4px; color: var(--muted); font-size: .92rem; font-weight: 600; letter-spacing: 0; }
.plan-description { min-height: 50px; margin: 10px 0 0; color: var(--muted); }
.plan-divider { height: 1px; margin: 22px 0 18px; background: var(--line); }
.plan-features { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.plan-features li { position: relative; padding-left: 26px; color: #334155; font-size: .94rem; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.plan-pro-ribbon { position: absolute; top: 0; right: 24px; padding: 5px 11px; border-radius: 0 0 8px 8px; color: #FFFFFF; background: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plan-action { width: 100%; margin-top: 24px; }
.plan-coming-soon { margin: 10px 0 0; color: var(--blue-dark); font-size: .82rem; text-align: center; }
.plan-back { margin: 22px 0 0; }
.plan-action { margin-top: 24px; }
.plan-checkout { padding: 16px; border: 1px solid #BFDBFE; border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.plan-checkout-heading { display: grid; gap: 3px; margin-bottom: 14px; }
.plan-checkout-heading strong { color: var(--ink); font-size: .95rem; }
.plan-checkout-heading span, .plan-secure-note { color: var(--muted); font-size: .78rem; }
.plan-form { display: grid; gap: 10px; }
.plan-form label { gap: 3px; font-size: .78rem; }
.plan-form label span { color: var(--muted); font-size: .72rem; font-weight: 400; }
.plan-form input, .plan-form select { min-height: 42px; background: #FFFFFF; }
.plan-submit { width: 100%; margin-top: 4px; }
.plan-secure-note { margin: 12px 0 0; text-align: center; }
.plan-pending { display: grid; gap: 5px; padding: 14px; border: 1px solid #FCD34D; border-radius: var(--radius-md); background: #FFFBEB; color: #92400E; }
.plan-pending strong { font-size: .9rem; }
.plan-pending p { margin: 0; color: #A16207; font-size: .78rem; line-height: 1.45; }
.plan-reset-form { margin-top: 10px; }
.plan-reset-form .btn { width: 100%; }
@media (max-width: 700px) {
  .plan-hero { align-items: flex-start; flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; padding: 24px; }
}

/* ─── Taccto Pro explainer ────────────────────────────────────────────── */
.pro-page { --pro-green: #166534; --pro-mint: #DCFCE7; }
.pro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .75fr);
  gap: 48px;
  align-items: center;
  padding: 34px 0 46px;
  border-bottom: 1px solid var(--line);
}
.pro-hero h1 { max-width: 680px; margin: 10px 0 16px; font-size: clamp(2rem, 5vw, 3.1rem); }
.pro-hero-lede { max-width: 66ch; margin: 0; color: #475569; font-size: 1.05rem; line-height: 1.75; }
.pro-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pro-price-note { margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
.pro-hero-aside { padding: 25px; border-left: 4px solid var(--pro-green); background: #F0FDF4; }
.pro-aside-label { display: block; margin-bottom: 16px; color: var(--pro-green); font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.pro-hero-aside strong { display: block; max-width: 24ch; font-size: 1.35rem; line-height: 1.35; }
.pro-hero-aside ul, .pro-fit ul { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.pro-hero-aside li, .pro-fit li { position: relative; padding-left: 24px; color: #334155; }
.pro-hero-aside li::before, .pro-fit li::before { position: absolute; left: 0; color: var(--pro-green); content: "✓"; font-weight: 800; }
.pro-explainer, .pro-comparison { padding: 48px 0; border-bottom: 1px solid var(--line); }
.pro-section-heading { max-width: 720px; margin-bottom: 26px; }
.pro-section-heading h2, .pro-fit h2, .pro-final-cta h2 { margin: 8px 0 10px; font-size: 1.8rem; }
.pro-section-heading > p:last-child, .pro-final-cta p:last-child { max-width: 70ch; margin: 0; color: var(--muted); line-height: 1.7; }
.pro-benefit-list { border-top: 1px solid var(--line); }
.pro-benefit { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pro-benefit-number { color: var(--pro-green); font-size: .82rem; font-weight: 800; }
.pro-benefit h3 { margin: 0 0 6px; font-size: 1.08rem; }
.pro-benefit p { max-width: 72ch; margin: 0; color: var(--muted); line-height: 1.7; }
.pro-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 28px rgba(15,23,42,.07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.pro-table { width: 100%; border-collapse: collapse; text-align: left; }
.pro-table th, .pro-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pro-table thead th { color: #FFFFFF; background: #172554; font-size: .82rem; }
.pro-table thead th:last-child { background: var(--pro-green); }
.pro-table tbody th { width: 42%; font-size: .9rem; font-weight: 650; }
.pro-table td { color: #475569; font-size: .88rem; }
.pro-table tbody td:last-child { background: rgba(22,101,52,.045); }
.pro-table tbody tr:last-child th, .pro-table tbody tr:last-child td { border-bottom: 0; }
.pro-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 48px 0; border-bottom: 1px solid var(--line); }
.pro-fit ul { margin: 0; }
.pro-final-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 32px; margin-top: 38px; border-left: 4px solid var(--pro-green); background: #F0FDF4; }
.pro-final-cta .btn { flex: none; }
@media (max-width: 700px) {
  .pro-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 16px; }
  .pro-hero-aside { padding: 20px; }
  .pro-explainer, .pro-comparison, .pro-fit { padding: 34px 0; }
  .pro-section-heading h2, .pro-fit h2, .pro-final-cta h2 { font-size: 1.45rem; }
  .pro-table-wrap {
    overflow: visible;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(6,182,212,.13), rgba(255,255,255,.48) 52%, rgba(22,163,74,.12));
    box-shadow: 0 14px 30px rgba(15,23,42,.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .pro-table { display: block; min-width: 0; }
  .pro-table thead { position: static; display: block; width: auto; height: auto; padding: 0; overflow: visible; clip: auto; white-space: normal; border: 0; }
  .pro-table thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-table thead th { padding: 10px 12px; font-size: .72rem; }
  .pro-table thead th:first-child { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .pro-table thead th:nth-child(2) { background: #172554; }
  .pro-table tbody { display: grid; gap: 0; }
  .pro-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.22);
  }
  .pro-table tbody tr:last-child { border-bottom: 0; }
  .pro-table tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding: 11px 13px 7px;
    border-bottom: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.3);
    font-size: .86rem;
    line-height: 1.4;
  }
  .pro-table tbody td {
    display: block;
    min-width: 0;
    padding: 10px 12px 12px;
    border: 0;
    font-size: .82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .pro-table tbody td + td { border-left: 1px solid rgba(22,101,52,.14); }
  .pro-table tbody td:last-child { color: #14532D; background: rgba(22,101,52,.07); }
  .pro-fit { grid-template-columns: 1fr; gap: 12px; }
  .pro-final-cta { align-items: flex-start; flex-direction: column; padding: 24px; }
}
.center { text-align: center; }

.legal-page { width: min(760px, 100%); margin: 0 auto; padding: 8px 0 36px; }
.legal-page ul { max-width: 68ch; margin: 0 0 12px; padding-left: 20px; color: #475569; line-height: 1.7; }
.legal-page table { width: 100%; max-width: 68ch; border-collapse: collapse; margin: 8px 0 16px; font-size: .9rem; }
.legal-page th, .legal-page td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: #334155; }
.legal-page th { background: var(--bg); }
.legal-table-wrap { max-width: 100%; overflow-x: auto; }
.footer-contact .footer-legal { margin-top: 8px; font-size: .8125rem; line-height: 1.5; }
/* no celular, cada linha da tabela vira um bloco com o nome do campo (sem rolagem lateral) */
@media (max-width: 640px) {
  .legal-page table, .legal-page tbody, .legal-page tr, .legal-page td { display: block; width: 100%; }
  .legal-page thead { display: none; }
  .legal-page tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
  .legal-page td { border: 0; border-bottom: 1px solid var(--line); }
  .legal-page td:last-child { border-bottom: 0; }
  .legal-page td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--ink); font-size: .8125rem; font-weight: 700; }
}
.legal-consent { margin: 4px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.plan-summary { margin: 4px 0 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); color: #334155; font-size: .875rem; line-height: 1.5; }
.plan-summary-title { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.plan-summary ul { margin: 0 0 8px; padding-left: 18px; }
.plan-summary p { margin: 0; }
.legal-page h1 { margin-bottom: 6px; }
.legal-page h2 { margin: 30px 0 8px; font-size: 1.12rem; }
.legal-page p { max-width: 68ch; color: #475569; line-height: 1.7; }
.legal-page .legal-updated { margin: 0 0 26px; color: var(--muted); font-size: .82rem; }
.legal-page .legal-note { margin-top: 34px; padding: 14px 16px; border-left: 3px solid var(--blue); color: var(--muted); background: var(--blue-light); font-size: .84rem; }
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .8rem; }

/* ─── Como funciona ─────────────────────────────────────────────────────── */
.how-page { max-width: 1080px; margin: 0 auto; padding: 12px 0 46px; }
.how-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  gap: 56px;
  align-items: center;
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--line);
}
.how-hero h1, .how-hero h2 { max-width: 580px; margin: 10px 0 18px; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; }
.how-lede, .how-lede-secondary { max-width: 58ch; color: #475569; font-size: 1.05rem; line-height: 1.7; }
.how-lede { margin: 0 0 10px; }
.how-lede-secondary { margin: 0; }
.how-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.how-preview { padding: 22px 24px 16px; border-radius: 8px; background: #EAF4F1; }
.how-preview-label { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #245448; font-size: .78rem; font-weight: 700; }
.how-preview-label span { display: grid; place-items: center; width: 27px; aspect-ratio: 1; border-radius: 50%; color: #fff; background: #217565; font-size: .68rem; }
.how-phone { width: min(100%, 310px); margin: 0 auto; padding: 8px; border: 2px solid #233A42; border-radius: 26px; background: #233A42; box-shadow: 0 15px 28px rgba(25,55,61,.16); }
.how-phone-camera { width: 48px; height: 5px; margin: 2px auto 8px; border-radius: 8px; background: #60747A; }
.how-phone-content { min-height: 264px; padding: 20px 16px 16px; border-radius: 17px; background: #fff; text-align: center; }
.how-profile-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; margin: 0 auto 8px; border-radius: 50%; color: #fff; background: #217565; font-size: 1.05rem; font-weight: 800; }
.how-phone-name { margin: 0; color: #172B32; font-size: .98rem; font-weight: 750; }
.how-phone-description { margin: 4px 0 18px; color: #64757A; font-size: .68rem; }
.how-example-link { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 7px; padding: 0 9px; border: 1px solid #DCE6E5; border-radius: 6px; color: #263E43; font-size: .68rem; font-weight: 650; text-align: left; }
.how-example-link span { display: grid; place-items: center; width: 21px; aspect-ratio: 1; border-radius: 5px; color: #fff; background: #217565; font-size: .65rem; }
.how-google-link span { background: #B54735; }
.how-instagram-link span { background: #A43C78; }
.how-example-link b { margin-left: auto; color: #217565; font-size: .85rem; }
.how-preview-note { margin: 12px 0 0; color: #526B67; font-size: .7rem; text-align: center; }
.how-steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 52px 0; border-bottom: 1px solid var(--line); }
.how-section-heading h1, .how-section-heading h2, .how-access h2 { margin: 8px 0; font-size: 1.9rem; line-height: 1.15; }
.how-section-heading > p:last-child { max-width: 38ch; margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.how-step-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-step-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.how-step-list li:first-child { padding-top: 0; }
.how-step-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.how-step-number { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid #A8CEC5; border-radius: 50%; color: #1D6659; font-size: .85rem; font-weight: 750; }
.how-step-list h3, .how-access-options h3 { margin: 0 0 4px; font-size: .98rem; }
.how-step-list p, .how-access-options p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.how-video { padding: 42px 0; border-bottom: 1px solid var(--line); }
.how-video-heading { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.how-video-heading h2 { margin: 8px 0; font-size: 1.9rem; }
.how-video-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.how-video-player { display: block; width: min(100%, 900px); aspect-ratio: 16 / 9; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #172554; object-fit: contain; box-shadow: 0 14px 32px rgba(23,37,84,.14); }
.how-share { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; padding: 38px 30px; border-left: 4px solid #217565; background: #EAF4F1; }
.how-share h2 { max-width: 17ch; margin: 8px 0 0; font-size: 1.75rem; line-height: 1.2; }
.how-share-copy > p { margin: 0 0 10px; color: #405B56; font-size: .92rem; line-height: 1.65; }
.how-share-url { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; margin-top: 16px; padding: 13px 15px; border: 1px solid #C6DDD6; border-radius: 6px; background: #fff; }
.how-share-url span { color: #526B67; font-size: .74rem; font-weight: 650; }
.how-share-url code { overflow-wrap: anywhere; color: #174E45; font-size: .88rem; font-weight: 700; }
.how-share-url small { grid-column: 2; color: #64757A; font-size: .72rem; }
.how-access { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.how-access-options { display: grid; gap: 0; }
.how-access-options article { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.how-access-options article:first-child { padding-top: 0; }
.how-access-options article:last-child { padding-bottom: 0; border-bottom: 0; }
.how-access-symbol { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 8px; color: #145548; background: #D8EEE7; font-size: .76rem; font-weight: 800; }
.how-qr-symbol { color: #8E422D; background: #F6E4D9; }
.how-faq { max-width: 760px; padding: 46px 0; }
.how-faq > h2 { margin: 0 0 14px; font-size: 1.35rem; }
.how-faq-list { border-top: 1px solid var(--line); }
.how-faq-list details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.how-faq-list summary { color: var(--ink); font-size: .92rem; font-weight: 650; cursor: pointer; }
.how-faq-list p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.how-final-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 30px; border-left: 4px solid #217565; background: #EAF4F1; }
.how-final-cta h2 { margin: 0 0 5px; font-size: 1.3rem; }
.how-final-cta p { margin: 0; color: #526B67; font-size: .9rem; }
@media (max-width: 760px) {
  .how-page { padding-top: 0; }
  .how-hero { grid-template-columns: 1fr; gap: 30px; padding: 28px 0 36px; }
  .how-hero h1, .how-hero h2 { font-size: 2.55rem; }
  .how-preview { width: min(100%, 440px); justify-self: center; }
  .how-steps, .how-access { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .how-video { padding: 34px 0; }
  .how-video-heading h2 { font-size: 1.6rem; }
  .how-share { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .how-section-heading h1, .how-section-heading h2, .how-access h2 { font-size: 1.6rem; }
  .how-final-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; color: var(--ink); }
label .hint-label { font-weight: 400; color: var(--muted); font-size: .83rem; }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input:not([type]),
textarea,
select {
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  padding: 0 14px;
  font: inherit;
  font-size: .95rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.35);
}
.appearance-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.appearance-block {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #F8FAFC;
}
.appearance-block [hidden] {
  display: none !important;
}
.appearance-block-title {
  margin: 0;
  font-size: .98rem;
  letter-spacing: 0;
}
.appearance-choice legend {
  padding: 0;
  font-size: .9rem;
  font-weight: 600;
}
.appearance-options {
  display: flex;
  gap: 10px;
}
.appearance-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
}
.appearance-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
}
.appearance-option input { accent-color: var(--blue); }
.remove-background-form {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}
.current-background {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  background: #F0FDF4;
  color: var(--ok);
  font-size: .8rem;
  font-weight: 600;
}
.current-background img {
  width: 56px;
  height: 40px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(22,101,52,.18);
}
.background-file-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.background-file-control [hidden] {
  display: none !important;
}
.logo-file-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-file-control [hidden] {
  display: none !important;
}
.replace-background-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: .84rem;
}
.remove-background-button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  color: var(--err);
  border-color: #FECACA;
  background: #FFF7F7;
  box-shadow: none;
}
.remove-background-button:hover {
  color: #7F1D1D;
  border-color: #FCA5A5;
  background: var(--err-bg);
}

@media (max-width: 640px) {
  .appearance-block {
    gap: 12px;
    padding: 13px;
    border-radius: 12px;
  }
  .appearance-choice {
    gap: 6px;
  }
  .appearance-choice + .btn.primary {
    margin-top: -4px;
  }
  .remove-background-form {
    margin-top: 0;
  }
  .remove-background-form .hint-label {
    font-size: .76rem;
  }
}
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  color: var(--blue);
  font-weight: 700;
}

/* ─── Home ───────────────────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
  min-height: 540px;
  padding: 42px 0 48px;
  isolation: isolate;
}
main.wrap:has(.home-hero) { padding-top: 10px; }
.home-hero-copy { position: relative; z-index: 1; }
.home-hero h1 {
  max-width: 560px;
  margin: 10px 0 20px;
  font-size: clamp(2.7rem, 5.7vw, 4.7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.06em;
}
.home-hero h1 span {
  display: inline-block;
  color: var(--blue-dark);
}
.home-hero .lede {
  max-width: 535px;
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.68;
}
.home-hero .lede-secondary { margin-bottom: 24px; }
.home-hero .actions { margin: 0; align-items: center; }
.home-cta {
  min-height: 56px;
  padding: 0 24px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(37,99,235,.25);
}
.home-cta span { font-size: 1.25rem; line-height: 1; }
.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.hero-note strong { color: var(--ink); }
.home-hero-visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  border-radius: 18px;
  background: #E8EEF8;
  box-shadow: 0 18px 42px rgba(15,23,42,.12);
}
.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.22);
}
.preview-window {
  position: relative;
  z-index: 1;
  width: min(86%, 420px);
  overflow: hidden;
  border: 1px solid #D7DFEC;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 35px rgba(15,23,42,.16);
}
.preview-browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid #E2E8F0; background: #F8FAFC; color: #64748B; font-size: .64rem; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; }
.browser-dots i:first-child { background: #FB7185; }
.browser-dots i:nth-child(2) { background: #FBBF24; }
.browser-dots i:nth-child(3) { background: #34D399; }
.browser-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-lock { color: #22C55E; font-size: .55rem; }
.preview-page { padding: 28px 28px 20px; color: var(--ink); }
.preview-profile { display: flex; align-items: center; gap: 12px; }
.preview-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 1.1rem; font-weight: 800; }
.preview-profile strong, .preview-profile span { display: block; }
.preview-profile strong { font-size: .95rem; }
.preview-profile div span { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.preview-online { margin-left: auto; color: #22C55E; font-size: .72rem; }
.preview-intro { margin: 24px 0 14px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.preview-links { display: grid; gap: 8px; }
.preview-links span { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #E2E8F0; border-radius: 8px; color: #334155; font-size: .75rem; font-weight: 600; box-shadow: 0 2px 5px rgba(15,23,42,.04); }
.preview-links b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; background: var(--blue); font-size: .72rem; }
.preview-links b.is-google { background: #F1F3F4; }
.preview-links b.is-instagram { background: #C13584; }
.preview-links b.is-whatsapp { background: #16A34A; }
.preview-links b img { display: block; width: 15px; height: 15px; }
.preview-brand { display: block; width: 13px; height: 13px; background: currentColor; mask: var(--brand-icon) center / contain no-repeat; -webkit-mask: var(--brand-icon) center / contain no-repeat; }
.preview-links em { margin-left: auto; color: var(--blue); font-style: normal; font-size: 1rem; }
.preview-footer { display: flex; justify-content: space-between; margin-top: 20px; color: #64748B; font-size: .6rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.home-digital {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 48px;
  align-items: center;
  padding: 54px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-digital h2 { max-width: 540px; margin: 8px 0 14px; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; }
.home-digital h2 span { color: var(--blue); }
.home-digital-copy > p:not(.eyebrow):not(.digital-links) { max-width: 570px; margin: 0 0 10px; color: var(--muted); line-height: 1.65; }
.digital-links { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; color: var(--ink); font-size: .85rem; }
.digital-links i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.digital-url { padding: 24px; border: 1px solid #BFDBFE; border-radius: 14px; background: linear-gradient(145deg, #EFF6FF, #F5F3FF); box-shadow: 0 12px 28px rgba(37,99,235,.08); }
.digital-url-label, .digital-url-note { display: block; color: var(--muted); font-size: .78rem; }
.digital-url strong { display: block; overflow-wrap: anywhere; margin: 12px 0; color: var(--blue-dark); font-size: clamp(1rem, 2vw, 1.25rem); }

@keyframes home-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .steps li { animation: none; }
}
.home-steps {
  padding: 42px 0 8px;
  border-top: 1px solid var(--line);
}
.steps-heading { display: block; }
.steps-heading .eyebrow { margin: 0; }
.steps-heading h2 { margin: 8px 0 0; font-size: 1.65rem; }
.steps-heading p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 859px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .home-hero-copy { max-width: 680px; }
  .home-hero-visual { width: min(100%, 560px); justify-self: center; }
  .home-digital { grid-template-columns: 1fr; gap: 24px; }
}

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 36px;
}
.hero-logo-img {
  display: block;
  max-height: 72px;
  width: auto;
}
.hero-slogan {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: .01em;
}
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 28px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  counter-reset: steps;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  counter-increment: steps;
  animation: home-copy-in .6s ease-out both;
}
.steps li:nth-child(1) { animation-delay: .12s; }
.steps li:nth-child(2) { animation-delay: .22s; }
.steps li:nth-child(3) { animation-delay: .32s; }
.steps li strong {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.steps li strong::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 700;
  flex: none;
}
.steps span { color: var(--muted); font-size: .9rem; padding-left: 38px; }

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.plate-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.plate-stats { margin: 8px 0 0; font-size: .9rem; color: var(--ink); }
.plate-stats strong { font-weight: 700; }
.plate-stats-period { color: var(--muted); }
.plate-stats-upsell { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.plate-stats-upsell a,
.plate-stats-link { font-weight: 600; color: var(--blue-dark); }
.plate-stats-link { display: inline-block; margin-top: 4px; font-size: .82rem; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.code {
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0;
  font-size: .95rem;
  font-family: 'Menlo', 'Consolas', monospace;
}
.status { margin: 2px 0 0; font-size: .83rem; color: var(--muted); }
.status.activated { color: var(--ok); }
.status.disabled  { color: var(--err); }

/* ─── Split layout ───────────────────────────────────────────────────────── */
.split { display: grid; gap: 16px; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

/* ─── Admin ──────────────────────────────────────────────────────────────── */
.admin h1 { margin-bottom: 20px; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.stats span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
}
.stats span.stat-activated { background: var(--ok-bg); color: var(--ok); border-color: #BBF7D0; }
.stats span.stat-disabled  { background: var(--err-bg); color: var(--err); border-color: #FECACA; }
.stats span.stat-available { background: var(--blue-light); color: var(--blue-dark); border-color: #BFDBFE; }

.table-wrap {
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg); }
th {
  text-align: left;
  padding: 11px 14px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #F8FAFC; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.plain { padding-left: 18px; }
.wrap-gap { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ─── Admin display detail ──────────────────────────────────────────────── */
.meta { display: grid; gap: 10px; margin: 16px 0; }
.meta div { display: grid; gap: 2px; }
.meta dt { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.meta dd { margin: 0; overflow-wrap: anywhere; font-size: .95rem; }
.qr-preview {
  width: 160px;
  background: var(--surface);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin: 16px 0;
}

/* ─── Public page (display ativo) ───────────────────────────────────────── */
.public-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.public-page .eyebrow { margin-bottom: 8px; }
.public-page h1 {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  margin-bottom: 32px;
  color: var(--ink);
}

.profile-layout { max-width: 430px; margin: 0 auto; padding: 20px 0 42px; }
.profile-public-body > .pub-header, .profile-public-body > .site-header { display: none; }
.profile-hero { display: grid; justify-items: center; gap: 6px; text-align: center; }
.profile-avatar { width: 82px; height: 82px; padding: 3px; object-fit: contain; border: 3px solid var(--theme, var(--blue)); border-radius: 50%; background: var(--theme, var(--blue)); box-shadow: 0 0 0 4px rgba(37,99,235,.10), 0 8px 18px rgba(15,23,42,.11); }
img.profile-avatar { display: block; width: min(140px, calc(100vw - 48px)); height: auto; max-height: 150px; margin-bottom: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
img.profile-avatar-pro { width: min(420px, calc(100vw - 48px)); max-height: 450px; }
.profile-avatar-fallback { display: grid; place-items: center; color: #FFFFFF; font-size: 2rem; font-weight: 800; }
.profile-hero h1 { margin: 0; color: var(--profile-name-color, var(--ink)); font-size: clamp(1.55rem, 6vw, 2rem); line-height: 1.1; }
.profile-hero .profile-description { max-width: 34ch; margin: 0; color: var(--profile-description-color, var(--muted)); font-size: .92rem; line-height: 1.5; }
.profile-socials { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 18px; color: var(--profile-icon-color, var(--muted)); }
.profile-socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--profile-icon-color, var(--muted)); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.profile-socials a:hover { opacity: .72; text-decoration: none; }
.profile-social-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: inherit; background: transparent !important; }
.profile-social-icon .profile-brand-icon { display: block; width: 18px; height: 18px; background: currentColor; mask: var(--brand-icon) center / contain no-repeat; -webkit-mask: var(--brand-icon) center / contain no-repeat; }
.profile-social-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-social-icon.type-google svg { stroke: none; }
.profile-social-icon.type-google text { fill: currentColor; font-family: Arial, sans-serif; font-size: 15px; font-weight: 800; }
.profile-social-icon.type-google { background: transparent; }
.profile-social-icon.type-instagram, .profile-link-icon.type-instagram { background: #C13584; }
.profile-social-icon.type-whatsapp, .profile-link-icon.type-whatsapp, .profile-link-icon.type-whatsapp_group { background: #16A34A; }
.profile-social-icon.type-tiktok, .profile-link-icon.type-tiktok { background: #111827; }
/* spec 013: no Perfil, todos os banners num carrossel só, na proporção da pilha que existia (casos de borda) */
.banner-carousel.profile-banner-carousel { aspect-ratio: 16 / 8; margin: 0 0 18px; border-radius: 16px; }
.profile-banner-carousel .banner-slide { cursor: zoom-in; }
.profile-links { display: grid; gap: 10px; }
.profile-link-card { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; cursor: pointer; transition: transform .16s, border-color .16s, box-shadow .16s; }
.profile-link-card:hover { border-color: #93C5FD; box-shadow: 0 6px 16px rgba(15,23,42,.09); text-decoration: none; transform: translateY(-1px); }
.profile-link-card > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; flex: 1; }
.profile-link-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.profile-link-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .76rem; }
.profile-link-card b { color: var(--muted); font-size: 1.35rem; font-weight: 400; }
.profile-link-card .profile-copy-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--bg); font-size: 0; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.profile-link-card .profile-copy-icon:hover { color: #166534; background: #F0FDF4; border-color: #86EFAC; }
.profile-link-card .profile-copy-icon.copied { color: #166534; background: #DCFCE7; border-color: #86EFAC; }
.profile-link-card .profile-copy-icon.copy-failed { color: #B91C1C; background: #FEF2F2; border-color: #FCA5A5; }
.profile-link-card.copied { background: #F0FDF4; border-color: #86EFAC; }
.profile-link-card.copy-failed { background: #FEF2F2; border-color: #FCA5A5; }
.action-card.copied { border-color: #86EFAC; background: #F0FDF4; }
.copy-pix-button.copy-failed { color: #B91C1C; background: #FEF2F2; border-color: #FCA5A5; }
.profile-copy-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-link-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; color: #FFFFFF; background: var(--blue); box-shadow: inset 0 -3px 0 rgba(15,23,42,.13); }
.profile-link-icon .profile-brand-icon { width: 23px; height: 23px; display: block; background: currentColor; mask: var(--brand-icon) center / contain no-repeat; -webkit-mask: var(--brand-icon) center / contain no-repeat; }
.profile-link-icon svg { width: 23px; height: 23px; }
.profile-link-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-link-icon.type-google svg { stroke: none; }
.profile-link-icon.type-google text { fill: currentColor; font-family: Arial, sans-serif; font-size: 17px; font-weight: 800; }
.profile-link-icon.type-contact { background: #0EA5E9; }
.profile-link-icon.type-pix { background: #16A34A; }
.profile-link-icon.type-wifi { background: #F59E0B; }
.profile-link-icon.type-address { background: #DC2626; }
.profile-link-icon.type-google { background: #F1F3F4; }
.profile-link-icon.type-site, .profile-link-icon.type-custom { background: #2563EB; }
.profile-link-icon.type-ifood { background: #EA580C; }
.profile-link-icon.type-cardapio { background: #0F766E; }
.profile-footer.is-on-dark { color: #CBD5E1; }
.profile-footer { margin: 26px 0 0; color: #56657A; font-size: .64rem; font-weight: 800; letter-spacing: .22em; text-align: center; }

.action-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  margin: 8px 0;
  text-decoration: none;
  color: var(--ink);
  min-height: 72px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: box-shadow .18s ease, border-color .18s;
  cursor: pointer;
}
.action-card:hover {
  box-shadow: 0 3px 8px rgba(15, 23, 42, .07);
  border-color: #BFDBFE;
  text-decoration: none;
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.google-icon  { background: #F1F3F4; }
.insta-icon   { background: #FDF0F7; }

.action-text  { flex: 1; min-width: 0; display: grid; gap: 3px; overflow: hidden; }
.action-text:not(:has(em)) { align-content: center; }
.action-text strong { font-size: .98rem; font-weight: 600; }
.action-text em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--muted);
  font-style: normal;
  font-size: .84rem;
}

.action-arrow {
  font-size: 1.5rem;
  color: var(--line);
  line-height: 1;
  flex: none;
  transition: color .15s;
}
.action-card:hover .action-arrow { color: var(--blue); }

.action-card input,
.action-card button { position: relative; z-index: 1; }

.contact-card {
  text-decoration: none;
}

.address-card {
  cursor: pointer;
}

.pix-card,
.router-card {
  position: relative;
  cursor: pointer;
}

.pix-card.copied,
.router-card.copied {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.map-chooser-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 40;
}

.map-chooser {
  position: fixed;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  background: var(--surface, #fff);
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .18);
  z-index: 41;
  display: grid;
  gap: 8px;
}

.map-chooser[hidden],
.map-chooser-backdrop[hidden] {
  display: none;
}

.map-chooser-title {
  font-weight: 600;
  margin: 0 0 4px;
  text-align: center;
  color: var(--ink);
}

.map-chooser-option,
.map-chooser-cancel {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  font-size: .95rem;
  cursor: pointer;
  text-align: center;
}

.map-chooser-option:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.map-chooser-cancel {
  margin-top: 4px;
  color: var(--muted);
}

.copy-pix-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  flex: none;
}
.copy-pix-button:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  transform: translateY(-1px);
}
.copy-pix-button.copied {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

.banner-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.banner-slide {
  display: none;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  cursor: pointer;
}
.banner-slide.is-active {
  display: block;
}
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.banner-nav.prev { left: 12px; }
.banner-nav.next { right: 12px; }
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}
.banner-dots { gap: 0; }
.banner-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.banner-dot::before {
  content: "";
  position: absolute;
  inset: 7.5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 1px rgba(15,23,42,.25);
}
.banner-dot.is-active::before { inset: 7.5px 2px; background: #fff; }
.banner-nav:focus-visible, .banner-dot:focus-visible { outline: 3px solid #fff; outline-offset: -3px; box-shadow: 0 0 0 5px rgba(15,23,42,.6); }
.banner-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.banner-modal.is-open { display: flex; }
.banner-slide:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -6px; box-shadow: inset 0 0 0 6px rgba(15,23,42,.6); }
.banner-modal-close:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.banner-modal img {
  max-width: min(90vw, 820px);
  max-height: 90vh;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.banner-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.banner-list {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.banner-item {
  display: grid;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}
.banner-item img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}
.banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.banner-meta span {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pub-footer {
  margin-top: 48px;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}
.pub-footer a { color: var(--muted); }
.pub-footer a:hover { color: var(--blue); text-decoration: none; }

/* ─── Public states (não configurada / não encontrada) ───────────────────── */
.pub-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.pub-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--blue-light);
  color: var(--blue);
  font-size: 1.8rem;
  display: grid;
  place-items: center;
}
.public h1 { margin-bottom: 10px; }
.public p  { color: var(--muted); margin-bottom: 0; }
.public .btn { margin-top: 24px; }

/* ─── Edit layout ─────────────────────────────────────────────────────── */
.edit-layout {
  display: grid;
  gap: 28px;
  align-items: start;
  grid-template-columns: 1fr;
}
.edit-preview-col {
  position: static;
  order: 1;
  padding: 8px 0;
}
.edit-preview-locked {
  order: 1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.edit-preview-locked h2 { margin-bottom: 8px; font-size: 1.1rem; }
.edit-preview-locked p { color: var(--muted); }
.edit-preview-locked .btn { margin-top: 8px; }
.edit-forms { min-width: 0; }

/* ─── Step wizard (editar display) ──────────────────────────────────────── */
.step-nav {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex-wrap: wrap;
}
.step-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, color .15s, background .15s;
}
.step-nav-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .75rem;
  flex: none;
  color: var(--muted);
}
.step-nav-item.active {
  border-color: var(--blue);
  color: var(--ink);
  background: var(--blue-light);
}
.step-nav-item.active .step-nav-dot {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.step-nav-item.done .step-nav-dot {
  border-color: var(--blue);
  color: var(--blue);
}
.custom-url-card {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
}
.custom-url-card h2 { margin: 0 0 8px; font-size: 1.12rem; }
.custom-url-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.custom-url-kicker { color: var(--blue-dark) !important; font-weight: 700; }
.custom-url-form { display: grid; gap: 10px; margin-top: 16px; }
.custom-url-input { display: flex; align-items: center; min-height: 46px; overflow: hidden; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.custom-url-input > span { padding-left: 12px; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.custom-url-input input { min-width: 0; min-height: 44px; flex: 1; border: 0; border-radius: 0; padding-left: 4px; box-shadow: none; }
.custom-url-input input:focus { box-shadow: none; }
.custom-url-preview { margin-top: 2px !important; }
.custom-url-preview strong, .custom-url-current { color: var(--blue-dark); overflow-wrap: anywhere; }
.custom-url-status { min-height: 20px; margin-bottom: 0 !important; font-size: .82rem !important; font-weight: 600; }
.custom-url-status.is-valid { color: var(--ok) !important; }
.custom-url-status.is-invalid { color: var(--err) !important; }
.custom-url-used { background: #F8FAFC; border-color: var(--line); }
.custom-url-used .custom-url-current { display: block; margin: 12px 0 14px; font-size: .92rem; }
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 24px;
}
.step-actions .btn.primary { text-align: center; }

/* ─── Radio cards (identidade) ───────────────────────────────────────────── */
.section-title { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  background: var(--surface);
  transition: border-color .15s, background .15s;
  user-select: none;
}
.radio-card input[type="radio"] { display: none; }
.radio-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
  transition: border-color .15s, background .15s;
}
.radio-card.active {
  border-color: var(--blue);
  background: var(--blue-light);
}
.radio-card.active .radio-dot {
  border-color: var(--blue);
  background: var(--blue);
}
.identity-panel { margin-top: 4px; }
.layout-choice-block { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; border: 0; }
.layout-choice-block legend { margin-bottom: 2px; color: var(--ink); font-size: .9rem; font-weight: 700; }
.layout-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.layout-choice { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; min-height: 80px; padding: 9px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; }
.layout-choice:has(input:checked) { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 2px rgba(37,99,235,.08); }
.layout-choice input { position: absolute; opacity: 0; pointer-events: none; }
.layout-choice > span:last-child { display: grid; gap: 3px; }
.layout-choice strong { color: var(--ink); font-size: .84rem; }
.layout-choice small, .layout-choice-locked small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.layout-choice-preview { display: grid; align-content: center; justify-items: center; gap: 4px; width: 58px; height: 62px; padding: 7px; overflow: hidden; border-radius: 10px; background: #172554; }
.layout-choice-preview i { display: block; width: 18px; height: 18px; border: 2px solid #A5B4FC; border-radius: 50%; background: #F8FAFC; }
.layout-choice-preview em { display: block; width: 30px; height: 4px; border-radius: 99px; background: #67E8F9; }
.layout-choice-preview b { display: block; width: 38px; height: 7px; border: 1px solid rgba(255,255,255,.55); border-radius: 4px; background: rgba(255,255,255,.14); }
.layout-choice-preview.classic { background: #F8FAFC; }
.layout-choice-preview.classic i { display: none; }
.layout-choice-preview.classic b { border-color: #CBD5E1; background: #FFFFFF; }
.layout-choice-preview.profile { background: linear-gradient(145deg, #172554, #164E63); }
.layout-choice-locked { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.layout-choice-locked > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.layout-choice-locked strong { color: var(--ink); font-size: .84rem; }
.layout-lock-mark { padding: 5px 7px; border-radius: 6px; color: var(--blue-dark); background: var(--blue-light); font-size: .65rem; font-weight: 800; letter-spacing: .06em; }
.layout-choice-locked a { color: var(--blue); font-size: .78rem; font-weight: 700; white-space: nowrap; }

/* ─── Preview phone ──────────────────────────────────────────────────────── */
.edit-preview-col { position: static; }
.preview-phone {
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06);
  width: min(300px, 100%);
  max-width: 300px;
  margin: 0 auto;
}
.preview-screen {
  --prev-theme: #2563EB;
  background-color: var(--preview-bg-color, var(--bg));
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  padding: 28px 18px 24px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prev-pub-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px;
  border-radius: 14px;
  color: #FFFFFF;
  text-align: center;
}
.prev-header-name { font-weight: 700; overflow-wrap: anywhere; }
.prev-header-logo-img { max-height: 42px; max-width: 100%; object-fit: contain; }
.prev-profile-identity { display: none; justify-items: center; gap: 5px; padding: 0 0 2px; text-align: center; }
.preview-profile-mode .prev-profile-identity { display: grid; }
.preview-profile-mode .prev-pub-header { display: none; }
.prev-profile-identity strong { max-width: 100%; overflow-wrap: anywhere; color: var(--preview-name-color, var(--ink)); font-size: 1rem; }
.prev-profile-avatar { width: 54px; height: 54px; padding: 2px; object-fit: contain; border: 2px solid var(--prev-theme, var(--blue)); border-radius: 50%; background: var(--prev-theme, var(--blue)); }
img.prev-profile-avatar { display: block; width: min(96px, 100%); height: auto; max-height: 74px; margin-bottom: 2px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.prev-profile-avatar-fallback { display: grid; place-items: center; color: #FFFFFF; font-size: 1.35rem; font-weight: 800; }
.prev-body { display: grid; gap: 10px; }
.prev-profile-content { display: none; }
.preview-profile-mode .prev-profile-content { display: grid; gap: 7px; }
.preview-profile-mode .prev-classic-content { display: none; }
.preview-profile-mode .prev-body { gap: 8px; }
.prev-profile-desc { margin: 0; color: var(--preview-description-color, #64748B); text-align: center; font-size: .72rem; line-height: 1.35; }
.prev-profile-socials { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; }
.prev-profile-socials[hidden] { display: none; }
.prev-profile-socials span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--preview-icon-color, #64748B); background: var(--surface); }
.prev-profile-socials span svg { width: 15px; height: 15px; }
.prev-profile-banners { display: grid; gap: 6px; }
.prev-profile-banner-image { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 10px; }
.prev-profile-banner-image + .prev-profile-banner-image { display: none; }
.prev-profile-links .prev-card { min-height: 42px; padding: 7px 8px; border-radius: 10px; }
.prev-profile-links .prev-icon { width: 28px; height: 28px; border-radius: 8px; font-size: .65rem; }
.prev-profile-links .prev-icon svg { width: 17px; height: 17px; }
.prev-links { display: grid; gap: 8px; }
.preview-identity { display: grid; gap: 6px; margin-bottom: 8px; text-align: center; }
.prev-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}
.prev-desc {
  font-size: .8rem;
  color: var(--preview-description-color, var(--muted));
  margin: 0;
  min-height: 1em;
}
.prev-banners {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 2px;
  border-radius: 8px;
  background: var(--surface);
}
.prev-banner-image {
  display: none;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.prev-banner-image:first-child {
  display: block;
}
.prev-special-links {
  display: grid;
  gap: 8px;
}
.prev-logo-img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.prev-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--preview-card-color, #FFFFFF) var(--preview-card-alpha, 100%), transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 52px;
}
.prev-empty { opacity: .45; }
.prev-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: .85rem;
  font-weight: 700;
}
.prev-card-text { font-size: .82rem; font-weight: 500; color: var(--ink); }
.prev-card-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.prev-footer {
  margin-top: auto;
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
}

/* ─── Página pública — logo ──────────────────────────────────────────────── */
.pub-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.pub-logo {
  max-height: 110px;
  max-width: min(280px, 80vw);
  object-fit: contain;
  display: block;
}
.pub-name {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  margin: 0 0 4px;
  word-break: break-word;
}
.pub-description {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 20px;
}

/* ─── Página pública — body e header do cliente ──────────────────────────── */
.pub-body {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  min-height: 100vh;
  min-height: 100svh;
}
.pub-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--public-background-color, var(--bg));
  background-image: var(--public-background-image, none);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.pub-body > .pub-header,
.pub-body > .site-header,
.pub-body > main {
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .pub-body {
    background: var(--bg);
  }
  .pub-body::before {
    background-position: 62% top;
  }
}

.pub-header {
  /* cor preenchida inline via <style> com --theme */
  background: var(--theme, #2563EB);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 16px 24px;
}
.pub-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(640px, 100%);
}
.pub-header-logo {
  max-height: 72px;
  max-width: min(220px, 70vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.18));
}
.pub-header-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: -0.03em;
  color: #ffffff;
  text-align: center;
  /* garantir contraste mesmo com cores claras */
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
  word-break: break-word;
}

.public-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 0 48px;
}
.pub-description {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 12px;
  text-align: center;
}

/* ─── Editar — lista de links ────────────────────────────────────────────── */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  flex-wrap: wrap;
}
.link-item.dragging { opacity: .4; }
/* passo 5 · ordem dos botões (spec 002) */
.order-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.order-item {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 8px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.order-item.dragging { opacity: .5; border-style: dashed; }
.order-item .link-drag { font-size: 1rem; padding: 4px 0; }
.order-pos {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 700;
}
.order-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg);
  font-size: 1.05rem;
}
.order-item-name { display: grid; gap: 2px; min-width: 0; }
.order-item-name strong {
  font-size: .95rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-item-sub {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: .8rem;
  color: var(--muted);
}
.order-item-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.order-edit-link {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.order-edit-link::before { content: "·"; margin-right: 6px; color: var(--muted); font-weight: 400; }
.order-edit-link:hover { text-decoration: underline; }
.order-edit-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.link-move { display: inline-flex; gap: 6px; flex: none; }
.link-move-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.link-move-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-light); }
.link-move-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.link-move-btn:disabled { opacity: .3; cursor: default; }
.order-item.is-over-limit { background: var(--bg); border-style: dashed; }
.order-item.is-over-limit .order-pos { background: #F1F5F9; color: var(--muted); }
.order-item.is-over-limit .order-icon,
.order-item.is-over-limit strong { opacity: .55; }
.over-limit-note { color: #B45309; font-size: .75rem; font-weight: 600; }
.over-limit-note[hidden] { display: none; }
.order-hint { margin-bottom: 4px; }
.order-status { min-height: 1.2em; margin: 0 0 8px; font-size: .82rem; font-weight: 600; color: var(--ok); }
.order-status.is-error { color: var(--err); }
.link-drag {
  cursor: grab;
  font-size: 1.1rem;
  color: var(--muted);
  flex: none;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
}
.link-type-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  color: var(--blue-dark);
  white-space: nowrap;
  flex: none;
}
.link-edit-form {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
}
.link-edit-form input[type="text"],
.link-edit-form input[type="url"] {
  min-height: 36px;
  font-size: .85rem;
  flex: 1;
  min-width: 90px;
}
.link-edit-form .btn { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.link-remove {
  min-height: 34px;
  padding: 0 10px;
  color: var(--err);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: .9rem;
  flex: none;
}
.link-remove:hover { background: var(--err-bg); }

@media (max-width: 640px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 16px 0 42px;
  }
  .home-hero h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .home-hero .actions { align-items: stretch; }
  .home-hero .actions .btn { width: 100%; }
  .home-hero-visual { min-height: 390px; }
  .preview-window { width: min(92%, 420px); }
  .preview-page { padding: 24px 20px 18px; }
  .edit-layout {
    gap: 18px;
  }
  .card {
    border-radius: 20px;
  }
  .radio-group {
    flex-direction: column;
    gap: 8px;
  }
  .radio-card {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 11px 14px;
  }
  .card.tight {
    padding: 16px;
  }
  .section-title {
    margin-bottom: 10px;
  }
  .link-item {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 12px;
  }
  .link-drag {
    align-self: center;
    padding-bottom: 2px;
    opacity: .8;
  }
  .link-type-badge {
    align-self: flex-start;
  }
  .order-item { gap: 8px; padding: 8px 8px 8px 6px; }
  .order-icon { width: 30px; height: 30px; font-size: .95rem; }
  .order-item .link-move { flex-direction: column; gap: 4px; }
  .order-item .link-move-btn { width: 40px; height: 28px; font-size: .9rem; border-radius: 8px; }
  .link-edit-form {
    display: grid;
    gap: 8px;
    width: 100%;
  }
  .link-edit-form input[type="text"],
  .link-edit-form input[type="url"] {
    width: 100%;
    min-width: 100%;
    border-radius: 10px;
  }
  .link-edit-form .btn,
  .link-remove-form .btn,
  .btn.primary,
  .btn.ghost {
    width: 100%;
    border-radius: 12px;
  }
  .link-remove-form {
    width: 100%;
  }
  .link-remove {
    width: 100%;
    background: var(--err-bg);
    color: var(--err);
    border-color: transparent;
  }
  .add-link-details summary {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
  .add-link-details form {
    gap: 12px;
  }
}

.add-link-details { margin-top: 4px; }
.add-link-details summary { display: inline-flex; }
.add-link-details summary::-webkit-details-marker { display: none; }
.whatsapp-builder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  background: #EFF6FF;
}
.whatsapp-builder[hidden] {
  display: none !important;
}
#inp-new-url[readonly] {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}
#structured-address-fields input[readonly] {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
  box-shadow: none;
}
#structured-address-fields input[readonly]:focus {
  border-color: #CBD5E1;
  outline: none;
  box-shadow: none;
}
/* somente leitura, mas quem navega pelo teclado precisa ver onde está o foco */
#structured-address-fields input[readonly]:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.35);
}

.color-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.color-row input[type="color"] {
  width: 48px;
  height: 44px;
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  cursor: pointer;
}

.logo-current {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.logo-current img {
  max-height: 72px;
  max-width: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
}

/* ─── Preview — header do cliente ───────────────────────────────────────── */
.prev-pub-header {
  margin: -28px -18px 0;
  background: var(--blue);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  transition: background .2s;
}
.prev-header-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-align: center;
  letter-spacing: -.02em;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.prev-header-logo-img {
  max-height: 40px;
  max-width: 140px;
  object-fit: contain;
}
.prev-body { padding-top: 14px; }

/* ─── Página pública — ícone genérico ───────────────────────────────────── */
.generic-icon {
  background: var(--bg);
  font-size: 1.3rem;
  border-radius: var(--radius-md);
}

/* ─── Manual / FAQ ─────────────────────────────────────────────────────── */
.manual-page {
  max-width: 980px;
  min-width: 0;
  margin: 0 auto;
  padding: 32px 0 48px;
}
.manual-hero {
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(37,99,235,.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px;
  margin-bottom: 24px;
}
.manual-hero h1 {
  margin-bottom: 12px;
}
.manual-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}
.manual-grid {
  display: grid;
  gap: 24px;
  min-width: 0;
}
@media (min-width: 860px) {
  .manual-grid {
    grid-template-columns: 1.2fr .8fr;
  }
}
.manual-card,
.faq-card {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.manual-card h2,
.faq-card h2 {
  margin-bottom: 16px;
}
.manual-card ol,
.manual-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}
.manual-card li + li {
  margin-top: 10px;
}
.manual-card p,
.faq-card p,
.faq-card li {
  color: var(--muted);
}
.manual-card li,
.manual-card p {
  overflow-wrap: anywhere;
}
.manual-card[id] {
  scroll-margin-top: 90px;
}
.manual-card:target {
  animation: anchor-arrival 1.2s ease-out;
}
@keyframes anchor-arrival {
  from { outline: 3px solid rgba(37,99,235,.45); outline-offset: 5px; }
  to { outline: 3px solid transparent; outline-offset: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .manual-card:target { animation: none; }
}
.manual-note {
  background: var(--blue-light);
  border: 1px solid #BFDBFE;
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--blue-dark);
  font-weight: 600;
  margin: 16px 0 0;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.faq-list details[open] summary {
  margin-bottom: 8px;
}
.faq-list p,
.faq-list li {
  margin: 0;
}
.preview-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 600;
}
.url-box {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: 'Menlo', monospace;
  word-break: break-all;
  margin-top: 10px;
}
.place-id-builder {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.place-id-builder label {
  color: var(--ink);
  font-weight: 700;
}
.place-id-builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.place-id-builder-row input {
  min-width: 0;
}
.place-id-builder .url-box {
  margin-top: 0;
}
.place-id-builder > .btn {
  width: 100%;
}
.support-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
}
.support-box strong {
  display: block;
  margin-bottom: 8px;
}

/* ─── Pro analytics ─────────────────────────────────────────────────────── */
.analytics-page { width: min(1040px, 100%); margin: 0 auto; padding-bottom: 28px; }
.analytics-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 24px; animation: analytics-enter .45s ease-out both; }
.analytics-header h1 { margin-bottom: 6px; }
.analytics-lede { max-width: 620px; margin: 0; color: var(--muted); }
.analytics-period { display: inline-flex; flex: none; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.analytics-period a { padding: 7px 11px; border-radius: 6px; color: var(--muted); font-size: .82rem; font-weight: 650; text-decoration: none; transition: color .16s, background .16s, box-shadow .16s; }
.analytics-period a:hover { color: var(--ink); background: var(--bg); text-decoration: none; }
.analytics-period a.active { color: #FFFFFF; background: var(--navy); box-shadow: 0 2px 5px rgba(15,23,42,.14); }
.analytics-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.analytics-metric { display: flex; min-width: 0; min-height: 136px; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); animation: analytics-enter .48s ease-out both; }
.analytics-metric:nth-child(2) { animation-delay: .06s; }
.analytics-metric:nth-child(3) { animation-delay: .12s; }
.analytics-metric:nth-child(4) { animation-delay: .18s; }
.analytics-metric-label { color: var(--muted); font-size: .77rem; font-weight: 700; }
.analytics-metric > strong { display: block; max-width: 100%; margin: 8px 0 2px; color: var(--ink); font-size: 1.9rem; line-height: 1.1; overflow-wrap: anywhere; }
.analytics-metric-note { margin-top: auto; color: var(--muted); font-size: .76rem; }
.analytics-metric-featured { border-color: #B6E5F2; background: linear-gradient(145deg, #FFFFFF, #F0FAFD); }
.analytics-metric-featured > .analytics-top-link-name { font-size: 1.18rem; line-height: 1.3; }
.analytics-section { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); animation: analytics-enter .55s .12s ease-out both; }
.analytics-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.analytics-section-heading .eyebrow { margin: 0 0 3px; }
.analytics-section-heading h2 { margin: 0; font-size: 1.08rem; }
.analytics-trend { margin-bottom: 16px; }
.analytics-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .78rem; }
.analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.analytics-legend-dot.clicks { background: var(--cyan); }
.analytics-chart-wrap { min-height: 232px; }
.analytics-chart { display: block; width: 100%; height: auto; overflow: visible; }
.analytics-gridline { stroke: #E8EEF5; stroke-width: 1; }
.analytics-axis-label { fill: #8491A3; font-family: inherit; font-size: 11px; }
.analytics-views-area { fill: url(#analytics-views-fill); opacity: 0; animation: analytics-area-enter .65s .15s ease-out forwards; }
.analytics-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: analytics-line-enter 1.1s .1s ease-out forwards; }
.analytics-line-views { stroke: var(--blue); }
.analytics-line-clicks { stroke: var(--cyan); stroke-width: 2.5; animation-delay: .22s; }
.analytics-point { stroke: #FFFFFF; stroke-width: 1.5; }
.analytics-point-views { fill: var(--blue); }
.analytics-point-clicks { fill: var(--cyan); }
.analytics-empty-chart { display: grid; min-height: 210px; align-content: center; justify-items: center; color: var(--muted); text-align: center; }
.analytics-empty-chart > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 8px; border-radius: 50%; color: var(--blue-dark); background: var(--blue-light); font-size: 1.4rem; }
.analytics-empty-chart p { max-width: 340px; margin: 0; }
.analytics-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 16px; margin-bottom: 16px; }
.analytics-link-list, .analytics-activity-list { margin: 0; padding: 0; list-style: none; }
.analytics-link-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #EDF1F5; animation: analytics-enter .4s ease-out both; }
.analytics-link-row:nth-child(2) { animation-delay: .04s; }
.analytics-link-row:nth-child(3) { animation-delay: .08s; }
.analytics-link-row:nth-child(4) { animation-delay: .12s; }
.analytics-link-rank { color: #9AA7B7; font-size: .72rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.analytics-link-info { min-width: 0; }
.analytics-link-meta { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.analytics-link-meta strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.analytics-link-meta span { flex: none; color: var(--muted); font-size: .7rem; }
.analytics-bar-track { height: 5px; overflow: hidden; border-radius: 99px; background: #EAF0F5; }
.analytics-bar-track > span { display: block; width: var(--bar-target, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); animation: analytics-bar-enter .7s .15s ease-out both; }
.analytics-link-count { min-width: 54px; color: var(--ink); font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }
.analytics-link-count small { display: block; color: var(--muted); font-size: .65rem; font-weight: 500; }
.analytics-source-row { padding: 12px 0; border-top: 1px solid #EDF1F5; }
.analytics-source-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: #344256; font-size: .82rem; }
.analytics-source-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.analytics-source-row:nth-of-type(2) .analytics-bar-track > span { background: var(--cyan); }
.analytics-source-row:nth-of-type(3) .analytics-bar-track > span { background: #16A085; }
.analytics-source-row:nth-of-type(4) .analytics-bar-track > span { background: #94A3B8; }
.analytics-footnote { margin: 12px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.analytics-activity { margin-bottom: 12px; }
.analytics-activity-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #EDF1F5; }
.analytics-activity-mark { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.analytics-activity-mark.qr { background: var(--blue); }
.analytics-activity-mark.nfc { background: var(--cyan); }
.analytics-activity-list li > div { display: flex; min-width: 0; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.analytics-activity-list strong { color: #344256; font-size: .82rem; }
.analytics-activity-list li > div > span { color: var(--muted); font-size: .76rem; }
.analytics-activity-list time { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.analytics-source-tag { min-width: 44px; color: #7B8796; font-size: .65rem; font-weight: 700; text-align: right; }
.analytics-empty-state { margin: 4px 0 0; padding: 18px 0; color: var(--muted); font-size: .86rem; }
.analytics-disclaimer { margin: 0; color: var(--muted); font-size: .72rem; }
.analytics-back { margin-top: 20px; }
.analytics-locked { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.analytics-lock-mark { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #A5F3FC; border-radius: 16px; color: #0E7490; background: #ECFEFF; font-size: .78rem; font-weight: 800; }
.analytics-locked h2 { margin: 0 0 8px; font-size: 1.2rem; }
.analytics-locked p { max-width: 620px; margin: 0 0 16px; color: var(--muted); }
@keyframes analytics-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes analytics-line-enter { to { stroke-dashoffset: 0; } }
@keyframes analytics-area-enter { to { opacity: 1; } }
@keyframes analytics-bar-enter { from { width: 0; } to { width: var(--bar-target, 0%); } }
@media (max-width: 760px) {
  .analytics-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .analytics-period { width: 100%; }
  .analytics-period a { flex: 1; text-align: center; }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .analytics-metric { min-height: 126px; padding: 13px; }
  .analytics-metric > strong { font-size: 1.65rem; }
  .analytics-metric-featured > .analytics-top-link-name { font-size: 1rem; }
  .analytics-section { padding: 15px; }
  .analytics-detail-grid { grid-template-columns: 1fr; }
  .analytics-activity-list li { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; }
  .analytics-source-tag { display: none; }
  .analytics-chart-wrap { min-height: 170px; }
  .analytics-locked { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 420px) {
  .analytics-metric-label { font-size: .7rem; }
  .analytics-metric-note { font-size: .69rem; }
  .analytics-section-heading { align-items: flex-start; flex-direction: column; }
  .analytics-legend { gap: 10px; }
  .analytics-link-row { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; }
  .analytics-link-meta { align-items: flex-start; flex-direction: column; gap: 1px; }
  .analytics-activity-list time { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-page *, .analytics-page *::before, .analytics-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

textarea {
  min-height: 44px;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.5;
}

/* ─── Card PIX — estado copiado ─────────────────────────────────────────── */
.pix-card { cursor: pointer; user-select: none; }
.pix-card .pix-card-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  flex: none;
  transition: color .15s;
}
.pix-card:hover .pix-card-arrow { color: #16A34A; }
.pix-card.copied {
  background: #DCFCE7;
  border-color: #86EFAC;
}
.pix-card.copied .pix-card-title { color: #166534; }
.pix-card.copied .pix-card-key   { color: #166534; font-style: normal; font-size: .8rem; word-break: break-all; }
.pix-card.copied .pix-card-arrow { color: #16A34A; font-size: 1.3rem; font-weight: 700; }
.pix-card.copied .pix-card-icon  { background: #DCFCE7 !important; }

/* prévia do editor: quebras de linha da descrição (Enter ou <br>) */
.preview-description { white-space: pre-line; }

/* ─── Modal de benefícios do Pro (spec 003) ───────────────────────────── */
.pro-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.pro-modal::backdrop { background: rgba(15,23,42,.55); }
.pro-modal[open] { animation: pro-modal-in .22s ease-out; }
.pro-modal-inner { position: relative; padding: 28px 28px 22px; }
.pro-modal-eyebrow { margin: 0 0 6px; }
.pro-modal h2 { margin: 0 40px 6px 0; font-size: 1.45rem; line-height: 1.25; }
.pro-modal h2:focus { outline: none; }
.pro-modal-lead { margin: 0 0 18px; color: var(--muted); }
.pro-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.pro-modal-close:hover { background: var(--line); }
.pro-modal-close:focus-visible,
.pro-modal-dismiss input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pro-modal-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pro-modal-benefits li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pro-modal-benefits img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.pro-modal-benefits strong { font-size: .98rem; }
.pro-modal-benefits span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.pro-modal-price { margin: 20px 0 12px; font-size: 1.5rem; font-weight: 800; }
.pro-modal-price span { color: var(--muted); font-size: .95rem; font-weight: 500; }
.pro-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-modal-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .92rem;
  cursor: pointer;
}
.pro-modal-dismiss input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
/* tela larga: os 4 benefícios numa linha, para preço e botões caberem sem rolar */
@media (min-width: 960px) {
  .pro-modal { width: min(980px, calc(100vw - 48px)); }
  .pro-modal-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@keyframes pro-modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pro-modal-up { from { transform: translateY(100%); } to { transform: none; } }

/* abaixo de 960px: imagens num carrossel de deslizar, para preço e botões aparecerem */
@media (max-width: 959px) {
  .pro-modal-benefits {
    display: flex;
    gap: 12px;
    margin: 0 -28px;
    padding: 0 28px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 28px;
    overscroll-behavior-x: contain;
  }
  .pro-modal-benefits li { flex: 0 0 46%; scroll-snap-align: start; }
}

/* celular: painel que sobe de baixo, imagens em carrossel de deslizar (CA-11) */
@media (max-width: 640px) {
  .pro-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .pro-modal[open] { animation-name: pro-modal-up; animation-duration: .28s; }
  .pro-modal-inner { padding: 22px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .pro-modal-benefits { margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }
  .pro-modal h2 { font-size: 1.25rem; }
  .pro-modal-benefits li { flex-basis: 82%; }
  .pro-modal-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pro-modal[open] { animation: none; }
}

/* ─── Link de avaliação do Google (spec 004) ──────────────────────────── */
.google-builder {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  background: #FFFBEB;
}
.google-builder[hidden],
.review-warning[hidden],
.google-test-link[hidden] { display: none !important; }
.google-builder label { font-weight: 600; }
.google-builder input[aria-invalid="true"] { border-color: var(--err); }
.google-builder-error { margin: 0; color: var(--err); font-size: .88rem; }
.google-builder-help { margin: 0; }
.google-test-link { width: fit-content; }
.review-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  background: #FFFBEB;
  color: #92400E;
  font-size: .88rem;
  line-height: 1.45;
}
/* linha inteira embaixo do link; no celular o .link-item vira coluna e a base volta a auto */
.link-review-warning { flex-basis: 100%; }
@media (max-width: 640px) {
  .link-review-warning { flex-basis: auto; }
}
.review-warning-action {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.review-warning-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* página pública: card de avaliação em destaque, Clássico e Perfil */
.action-card.review-highlight,
.action-card.review-highlight:hover,
.profile-link-card.review-highlight {
  border: 2px solid var(--theme, var(--blue));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--theme, var(--blue)) 22%, transparent);
}
.review-stars {
  margin-right: 6px;
  color: #D97706;  /* 3:1 sobre branco, mínimo de elemento gráfico */
  letter-spacing: 1px;
}

/* ─── Checklist de primeiros passos (spec 005) ────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.checklist-form { display: inline; margin: 0; }
.checklist-progress {
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}
.checklist-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.checklist-action,
.checklist-hide,
.checklist-show {
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.checklist-action:hover,
.checklist-hide:hover,
.checklist-show:hover { border-color: #BFDBFE; color: var(--blue-dark); }
.checklist-action:focus-visible,
.checklist-hide:focus-visible,
.checklist-show:focus-visible,
.checklist-details summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.checklist-action:disabled,
.checklist-hide:disabled,
.checklist-show:disabled { opacity: .6; cursor: wait; }

/* card do painel */
.checklist-compact { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.checklist-compact-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; }
.checklist-next { display: inline-flex; align-items: center; min-height: 32px; font-size: .88rem; font-weight: 600; }
.checklist-label a { display: inline-flex; align-items: center; min-height: 32px; }
.checklist-done-line { margin: 0; color: var(--ok); font-size: .9rem; font-weight: 600; }

/* topo do editor */
.checklist-full {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-md);
  background: #F8FBFF;
}
.checklist-full.is-hidden { padding: 0; border: 0; background: none; }
.checklist-details summary { display: flex; align-items: center; min-height: 32px; cursor: pointer; list-style: none; }
.checklist-details summary::-webkit-details-marker { display: none; }
.checklist-details summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.checklist-details:not([open]) summary::after { content: "▸"; }
.checklist-title { font-weight: 700; }
.checklist-items { display: grid; gap: 6px; margin: 4px 0 10px; padding: 0; list-style: none; }
.checklist-item { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.checklist-item .checklist-form { flex: none; }
.checklist-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
}
.checklist-item.is-done .checklist-mark { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.checklist-item.is-skipped .checklist-mark { color: var(--muted); }
.checklist-label { flex: 1 1 auto; min-width: 0; }
.checklist-item.is-done .checklist-label { color: var(--muted); }
.checklist-item.is-skipped .checklist-label { color: var(--muted); }
.checklist-label small { display: block; color: var(--muted); font-size: .8rem; }
.checklist-hint { color: #92400E !important; }
.checklist-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.checklist-foot .hint { margin: 0; font-size: .82rem; }

/* ─── Resumo mensal: preferência e descadastro (spec 006) ─────────────── */
.plan-emails { max-width: 720px; margin: 24px auto 0; }
/* spec 018: arrependimento e Meus dados */
.plan-regret { display: grid; gap: 6px; margin-bottom: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: #FEF3C7; color: #78350F; }
.plan-regret p { margin: 0; font-size: .9rem; line-height: 1.5; }
.plan-regret .plan-regret-button { justify-self: start; margin-top: 4px; }
.plan-data { display: grid; gap: 12px; justify-items: start; }
.plan-data-text { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.plan-delete { width: 100%; }
.plan-delete summary { cursor: pointer; color: #B91C1C; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.plan-delete-form { display: grid; gap: 8px; justify-items: start; margin-top: 10px; }
.plan-delete-form input { width: min(100%, 320px); }
.plan-delete-button { border-color: #FCA5A5; color: #B91C1C; background: #FFFFFF; }
.plan-delete-button:hover { border-color: #B91C1C; background: #FEF2F2; }
.plan-emails h2 { margin: 0 0 12px; font-size: 1.1rem; }
.plan-emails-form { display: grid; gap: 14px; justify-items: start; }
.plan-emails-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.plan-emails-toggle input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.plan-emails-toggle small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; }
.unsubscribe-card { max-width: 560px; margin: 0 auto; }
.unsubscribe-card h1 { font-size: 1.5rem; }

/* spec 009 — cardápio digital ───────────────────────────────────────────── */
.btn.small { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--blue); cursor: pointer; }
.btn-link.danger, .link-move-btn.danger { color: var(--err); }

.menu-editor { max-width: 760px; margin: 0 auto; }
.menu-editor-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.menu-usage { margin: 0; padding: 6px 12px; border-radius: var(--radius-full); background: var(--blue-light); color: var(--blue-dark); font-size: .86rem; font-weight: 600; }
.menu-usage a { margin-left: 6px; font-weight: 600; }
.menu-status { min-height: 1.4em; margin: 0 0 8px; font-size: .9rem; font-weight: 600; color: var(--ok); }
.menu-status.is-error { color: var(--err); }
.menu-editor .card { margin-bottom: 12px; }
.menu-callout { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: #FEF3C7; color: #92400E; font-weight: 600; }
.menu-callout[hidden] { display: none; }

.menu-display-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-display { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.menu-display:first-child { border-top: 0; padding-top: 0; }
.menu-display-name { display: grid; flex: 1 1 160px; min-width: 0; }
.menu-display-name small { color: var(--muted); overflow-wrap: anywhere; }
.menu-display form { margin: 0; }
.menu-display-toggle.is-on { background: var(--ok-bg); border-color: #86EFAC; color: var(--ok); }
.menu-preview-link { font-size: .88rem; font-weight: 600; }

.menu-title-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.menu-title-form label { flex: 1 1 200px; }
.menu-look { display: grid; gap: 16px; }
.menu-color-reset { margin: -8px 0 0; }
.menu-color-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.menu-color-form label { display: flex; align-items: center; gap: 10px; }
.menu-color-form input[type="color"] { width: 48px; height: 40px; padding: 2px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.menu-color-swatch { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 2px 8px rgba(15,23,42,.18); font-weight: 800; }

.menu-category-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.menu-category-name { display: flex; flex: 1 1 220px; gap: 6px; min-width: 0; margin: 0; }
.menu-category-name input { flex: 1; min-width: 0; font-weight: 700; font-size: 1rem; }
.menu-category-tools { display: flex; gap: 4px; }
.menu-category-tools form, .menu-item-actions form, .menu-move-form { margin: 0; }

.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item { border-top: 1px solid var(--line); }
.menu-item-view { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.menu-item-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.menu-item-open { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 4px 0; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.menu-item-open:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.menu-item-name { font-weight: 600; overflow-wrap: anywhere; }
.menu-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); }
.menu-item-price { font-weight: 700; color: var(--ink); }
.menu-item-edit-hint { color: var(--blue); font-weight: 600; }
.menu-item-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.menu-item.status-sold_out .menu-item-name { text-decoration: line-through; color: var(--muted); }
.menu-item.status-hidden .menu-item-name { color: var(--muted); }
.menu-badge { display: inline-block; padding: 1px 8px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; }
.menu-badge.is-sold-out { background: var(--err-bg); color: var(--err); }
.menu-badge.is-hidden { background: var(--line); color: var(--muted); }
.menu-badge.is-featured { background: #FEF3C7; color: #92400E; }

.menu-item-editor { padding: 4px 0 14px; display: grid; gap: 8px; }
.menu-item-editor[hidden] { display: none; }
.menu-item-form { display: grid; gap: 10px; margin: 0; }
.menu-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 8px; }
.menu-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.menu-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue); }
.menu-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-item-delete { margin: 0; }
.menu-pro-hint { margin: 0; }

/* spec 012: nome | modo do preço | valor | botão; descrição embaixo */
.menu-quick { display: grid; grid-template-columns: minmax(0, 1fr) auto 88px auto; gap: 6px; margin: 10px 0 0; }
.menu-quick .menu-quick-desc { grid-column: 1 / 4; grid-row: 2; }
.menu-quick .btn { grid-column: 4; grid-row: 1 / 3; }
.menu-quick select { min-width: 0; }
.menu-item-desc { color: var(--muted); font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-quick[hidden] { display: none; }
.menu-quick input { min-width: 0; }
.menu-limit { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: #FEF3C7; color: #92400E; font-size: .9rem; }
.menu-limit[hidden] { display: none; }
.menu-empty-items { margin: 8px 0 0; }
.menu-empty-items[hidden] { display: none; }

.menu-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.menu-suggestions[hidden] { display: none; }
.menu-suggestions > p { flex-basis: 100%; }
.menu-suggestions form { margin: 0; }
.menu-chip { min-height: 40px; padding: 0 14px; border: 1.5px dashed var(--blue); border-radius: var(--radius-full); background: var(--surface); color: var(--blue-dark); font: inherit; font-weight: 600; cursor: pointer; }
.menu-chip:hover { background: var(--blue-light); }
.menu-category-form { display: flex; gap: 6px; margin: 0; }
.menu-category-form input { flex: 1; min-width: 0; }
[data-category-create][hidden] { display: none; }

.appearance-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
/* passo 5 "Recursos" do editor (spec 009, RN-20) */
.resource-card { margin-top: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.resource-card.is-on { border-color: #86EFAC; background: #F0FDF4; }
.resource-head { display: flex; align-items: flex-start; gap: 12px; }
.resource-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #FFEDD5; font-size: 1.4rem; }
.resource-text { flex: 1; min-width: 0; }
.resource-text h3 { margin: 0; font-size: 1rem; }
.resource-text .hint { margin: 2px 0 0; }
.resource-state { flex: none; padding: 3px 10px; border-radius: var(--radius-full); background: var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.resource-state.is-on { background: var(--ok-bg); color: var(--ok); }
.resource-summary { margin: 10px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.resource-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.resource-actions form { margin: 0; }
.resource-more { margin: 12px 0 0; }
@media (max-width: 480px) {
  .resource-head { flex-wrap: wrap; }
  .resource-text { flex: 1 1 calc(100% - 56px); }
  .resource-state { order: 3; margin-left: 56px; }
  .resource-actions .btn, .resource-actions form { flex: 1 1 100%; }
  .resource-actions form .btn { width: 100%; }
}
.menu-shortcut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.link-menu-hint { flex-basis: 100%; margin: 4px 0 0; }

@media (max-width: 480px) {
  /* item: nome e descrição na largura toda; Esgotou e setas numa linha embaixo */
  .menu-item-view { flex-wrap: wrap; row-gap: 4px; }
  .menu-item-open { flex-basis: calc(100% - 56px); }
  .menu-item-actions { flex-basis: 100%; justify-content: flex-end; }
}

/* página do cliente (RN-19: topo com a identidade do estabelecimento) */
html:has(.menu-body) { scroll-behavior: smooth; }
.menu-body { --muted: #56657A; min-height: 100vh; min-height: 100svh; background: #F4F5F7; color: var(--ink); }  /* o --muted do site dá 4,4:1 neste fundo */

.menu-hero { position: relative; }
.menu-hero-band {
  height: 112px;
  padding: 14px 16px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.28)),
    var(--theme, var(--blue));
}
.menu-back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.92); color: #111827;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.menu-back:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.menu-hero-card {
  position: relative;
  max-width: 608px;
  width: calc(100% - 32px);
  margin: -40px auto 0;
  padding: 52px 20px 18px;
  box-sizing: border-box;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  text-align: center;
}
.menu-logo {
  position: absolute; top: -44px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 88px; box-sizing: border-box;
  border-radius: 50%; border: 4px solid #FFFFFF;
  /* logo inteiro dentro do círculo, mesmo largo ou com fundo transparente */
  padding: 6px; background: var(--menu-logo-bg, #FFFFFF); object-fit: contain;
  box-shadow: 0 4px 14px rgba(15,23,42,.18);
}
.menu-logo-initial {
  display: grid; place-items: center;
  background: var(--menu-logo-bg, var(--theme, var(--blue))); color: var(--menu-logo-ink, #FFFFFF);
  font-size: 2.2rem; font-weight: 800;
}
.menu-hero-card h1 { margin: 0; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.menu-kicker {
  display: inline-block; margin: 8px 0 0; padding: 3px 12px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--theme, var(--blue)) 12%, #FFFFFF);
  color: color-mix(in srgb, var(--theme, var(--blue)) 80%, #000000);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.menu-preview-note { max-width: 608px; margin: 12px auto 0; padding: 8px 16px; border-radius: var(--radius-sm); background: #FEF3C7; color: #92400E; font-size: .88rem; font-weight: 600; text-align: center; }

.menu-tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto;
  margin-top: 14px;
  /* no desktop as abas começam na mesma coluna do conteúdo (640 px) */
  padding: 10px max(16px, calc((100% - 608px) / 2));
  background: rgba(244,245,247,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a {
  flex: none; padding: 7px 16px;
  border-radius: var(--radius-full);
  background: #FFFFFF; border: 1px solid var(--line);
  color: var(--ink); font-size: .9rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.menu-tabs a[aria-current="true"] { background: var(--theme, var(--blue)); border-color: var(--theme, var(--blue)); color: #FFFFFF; }
.menu-tabs a:focus-visible { outline: 2px solid var(--theme, var(--blue)); outline-offset: 2px; }

.menu-public { width: 100%; max-width: 640px; margin: 0 auto; padding: 4px 16px 32px; box-sizing: border-box; }
.menu-public-category { scroll-margin-top: 64px; margin-top: 20px; }
.menu-public-category h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px; font-size: 1.05rem; font-weight: 800;
}
.menu-public-category h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: var(--theme, var(--blue));
}
.menu-public-category ul {
  list-style: none; margin: 0; padding: 0 16px;
  border-radius: 16px; background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.menu-public-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.menu-public-item + .menu-public-item { border-top: 1px solid #EEF0F3; }
.menu-public-text { flex: 1; min-width: 0; }
.menu-public-text h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.menu-public-text p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.menu-public-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.menu-public-meta:empty { display: none; }
.menu-public-price { font-size: 1rem; font-weight: 800; color: var(--ink); }
.menu-public-photo { width: 84px; height: 84px; flex: none; border-radius: 12px; object-fit: cover; background: #F1F5F9; }
.menu-public-item.is-sold-out h3,
.menu-public-item.is-sold-out .menu-public-price { text-decoration: line-through; color: var(--muted); }
.menu-public-item.is-sold-out .menu-public-photo { filter: grayscale(1); opacity: .6; }

.menu-featured h2 { color: #92400E; }
.menu-featured h2::before { background: #F59E0B; }
.menu-featured ul { background: #FFFBEB; box-shadow: inset 0 0 0 1px #FDE68A; }
.menu-featured .menu-public-item + .menu-public-item { border-top-color: #FDE68A; }

.menu-public-empty { margin: 24px 0; text-align: center; }
.menu-body .pub-footer { margin-top: 28px; text-align: center; color: var(--muted); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) {
  html:has(.menu-body) { scroll-behavior: auto; }
}

/* ─── Catálogo para qualquer comércio (spec 012) ─────────────────────── */
.catalog-settings-form { display: grid; gap: 12px; }
.catalog-settings-form label { display: grid; gap: 6px; }
.catalog-settings-form .btn { justify-self: start; }
.catalog-suggested { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--blue-dark); font-size: .9rem; }
.menu-public-price.is-consult { font-weight: 600; color: var(--muted); }
.menu-order {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.menu-order::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #BBF7D0; }
.menu-order:hover { text-decoration: none; }
@media (hover: hover) { .menu-order:hover { background: #15803D; } }
.menu-order:focus-visible { outline: 2px solid #15803D; outline-offset: 2px; }
.analytics-locked-note { margin: 0 0 12px; font-weight: 700; }
@media (max-width: 640px) {
  .menu-field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .menu-field-row .menu-field-name { grid-column: 1 / -1; }
  .menu-quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .menu-quick input[name="name"] { grid-column: 1 / -1; }
  .menu-quick .menu-quick-desc { grid-column: 1 / -1; grid-row: auto; }
  .menu-quick .btn { grid-column: 1 / -1; grid-row: auto; }
}

/* ─── Assinatura: cartão, troca de forma, tolerância e cancelamento (spec 011) ─── */
.plan-alert { display: grid; gap: 5px; margin: 0 0 12px; padding: 14px; border: 1px solid #FCA5A5; border-radius: var(--radius-md); background: #FEF2F2; color: #991B1B; }
.plan-alert strong { font-size: .92rem; }
.plan-alert p { margin: 0; font-size: .86rem; line-height: 1.45; }
.plan-alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.plan-alert-info { border-color: #BFDBFE; background: #EFF6FF; color: #1E3A8A; }
.billing-alert { margin-bottom: 20px; }
.plan-manage { display: grid; gap: 10px; margin-top: 12px; }
.plan-billing-line { margin: 0; font-size: .9rem; }
.plan-manage-details summary { min-height: 32px; display: inline-flex; align-items: center; color: var(--blue-dark); font-weight: 600; cursor: pointer; }
.plan-manage-details summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plan-manage-details[open] .plan-form { margin-top: 8px; }
.plan-method-note { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.plan-cancel-form .plan-cancel-button { width: 100%; color: var(--err); border-color: #FECACA; background: var(--surface); }
.plan-cancel-form .plan-cancel-button:hover { background: var(--err-bg); }

/* ─── Vitrine para Produtos (spec 014) ───────────────────────────────── */
.menu-public.showcase { max-width: 1040px; }
.showcase-filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 14px; scrollbar-width: none; }
.showcase-filters::-webkit-scrollbar { display: none; }
.showcase-filters[hidden] { display: none; }
.showcase-filter { flex: none; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.showcase-filter.is-active { border-color: var(--theme, var(--blue)); background: var(--theme, var(--blue)); color: var(--showcase-ink, #fff); }
.showcase-filter:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin: 0; padding: 0; list-style: none; }
.showcase-grid > li[hidden] { display: none; }
.menu-public.showcase > .showcase-grid:first-child { margin-top: 16px; }  /* sem filtros (uma categoria), não encosta no topo */
@media (min-width: 640px) { .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.showcase-tile { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; border-radius: 16px; }
.showcase-tile:hover { text-decoration: none; }
.showcase-tile:focus-visible { outline: 3px solid var(--theme, var(--blue)); outline-offset: 3px; }
.showcase-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--theme, var(--blue)); }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.showcase-initial { color: var(--showcase-ink, #fff); font-size: clamp(2.6rem, 14vw, 4rem); font-weight: 800; line-height: 1; }
.showcase-badge { position: absolute; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.showcase-badge.is-featured { top: 8px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.showcase-badge.is-sold-out { bottom: 8px; background: #111827; color: #fff; }
.showcase-tile.is-sold-out .showcase-media img, .showcase-tile.is-sold-out .showcase-initial { opacity: .45; filter: grayscale(1); }
.showcase-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.showcase-price { font-size: .95rem; font-weight: 700; }
.showcase-price.is-consult, .showcase-detail-price.is-consult { color: var(--muted); font-weight: 600; }
/* detalhes: sem JS abrem por âncora (:target, RN-12); com JS, pela classe, sem mudar o endereço (RN-08) */
.showcase-detail { position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column; justify-content: flex-end; }
html:not(.js) .showcase-detail:target, .showcase-detail.is-open { display: flex; }  /* :target só sem JS (auditoria A-02) */
.showcase-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.showcase-sheet { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; max-height: 92vh; margin: 0 auto; padding: 18px 18px 24px; box-sizing: border-box; overflow-y: auto; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .showcase-detail { justify-content: center; } .showcase-sheet { border-radius: 22px; } }
.showcase-close { align-self: flex-end; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1.4rem; text-decoration: none; }
.showcase-close:hover { text-decoration: none; background: var(--line); }
.showcase-close:focus-visible { outline: 3px solid var(--theme, var(--blue)); outline-offset: 2px; }
.showcase-media.is-large { aspect-ratio: auto; max-height: 52vh; }
.showcase-media.is-large img { max-height: 52vh; object-fit: contain; background: var(--bg); }
.showcase-media.is-large .showcase-initial { padding: 48px 0; }
.showcase-sheet h2 { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.25; }
.showcase-detail-price { margin: 0; color: var(--theme, var(--blue)); font-size: 1.1rem; font-weight: 700; }
.showcase-detail-unavailable { margin: 0; padding: 10px 12px; border-radius: 12px; background: #F1F5F9; color: #334155; font-size: .9rem; }
.showcase-detail-desc { margin: 0; color: #475569; font-size: .95rem; line-height: 1.55; }
.showcase-order { justify-content: center; min-height: 48px; font-size: 1rem; }
body.showcase-locked { overflow: hidden; }

/* ─── Lista de Serviços e Tabela de preços (spec 014) ───────────────── */
.menu-public-category .service-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; border-radius: 0; background: none; box-shadow: none; }
.service-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.service-card.is-sold-out { opacity: .65; }
.service-photo { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; }
.service-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.service-name { margin: 0; font-size: 1rem; line-height: 1.3; }
.service-price { flex: none; max-width: 45%; font-size: .95rem; font-weight: 700; text-align: right; }
.service-price.is-consult { color: var(--muted); font-weight: 600; }
.service-badge { align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.service-badge.is-featured { background: color-mix(in srgb, var(--theme, var(--blue)) 14%, #fff); color: var(--ink); }
.service-badge.is-sold-out { background: #111827; color: #fff; }
.service-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.service-card .menu-order { align-self: flex-start; margin-top: 2px; }

/* ─── Preço promocional (spec 015) ───────────────────────────────────── */
/* selo "N% OFF": cor fixa, #C2410C com branco = 5,2:1 (D-03, C-19) */
.showcase-badge.is-off { top: 8px; right: 8px; left: auto; background: #C2410C; color: #fff; }
.showcase-badge.is-inline { position: static; align-self: flex-start; }
/* tela estreita com Destaque e desconto juntos: o desconto desce para baixo do Destaque, sem sobrepor (auditoria A-05) */
@media (max-width: 420px) { .showcase-media:has(.is-featured) .showcase-badge.is-off { top: 40px; right: auto; left: 8px; } }
.menu-badge.is-off, .service-badge.is-off { background: #C2410C; color: #fff; }
.menu-public-text h3 .menu-badge { margin-left: 6px; vertical-align: 2px; font-size: .72rem; }
.service-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.service-badges:empty { display: none; }
.is-promo s { margin-right: 4px; color: #475569;  /* --muted dava 4,4:1 no fundo do catálogo */ font-weight: 500; font-size: .88em; }
.showcase-detail-pricewrap { margin: 0; }
.showcase-detail-until { margin: 0; color: #9A3412; font-size: .9rem; font-weight: 600; }
.menu-promo { display: grid; gap: 8px; margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.menu-promo[hidden] { display: none; }
.menu-promo legend { padding: 0 4px; font-weight: 600; }
.menu-promo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menu-promo-row label { min-width: 0; }
/* campos da linha nome/preço/valor e da promoção encolhem com a coluna: o "Valor" não passa da borda */
.menu-field-row > label, .menu-promo-row > label { min-width: 0; }
.menu-field-row input, .menu-field-row select, .menu-promo-row input { width: 100%; min-width: 0; box-sizing: border-box; }

/* ─── Carrinho (spec 017): barra fixa, resumo e aviso ─────────────────── */
/* "Adicionado" com cor própria; o hover só em aparelho com mouse (no toque ele fica preso) (auditoria, LOW) */
.menu-order.is-added, .menu-order.is-added:hover { background: #14532D; }
body.has-cart { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.cart-locked { overflow: hidden; }
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.cart-bar[hidden] { display: none; }
.cart-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  width: min(100%, 420px);
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #16A34A;
  color: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}
.cart-toggle:hover { background: #15803D; }
.cart-toggle:focus-visible { outline: 3px solid #0F172A; outline-offset: 3px; }
.cart-toggle-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-notice {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 320;  /* acima da janela de detalhes da vitrine (300), onde fica o botão (auditoria A-02) */
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: .9rem;
  line-height: 1.4;
}
.cart-notice[hidden] { display: none; }
.cart-notice-text { flex: 1; margin: 0; }
.cart-notice-close { flex: none; width: 32px; height: 32px; margin: -6px -6px 0 0; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; font-size: 1.25rem; cursor: pointer; }
.cart-notice-close:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 1px; }
.cart-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.cart-sheet[hidden] { display: none; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.cart-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, .2);
}
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-head h2 { margin: 0; font-size: 1.2rem; }
.cart-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}
.cart-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "qty remove";
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-name { grid-area: name; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.cart-line-price { grid-area: price; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-qty { grid-area: qty; display: inline-flex; align-items: center; gap: 4px; }
.cart-qty output { min-width: 32px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.cart-qty-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-remove {
  grid-area: remove;
  justify-self: end;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #B91C1C;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-qty-btn:focus-visible, .cart-remove:focus-visible, .cart-close:focus-visible, .cart-send:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cart-total { margin: 0; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-total[hidden] { display: none; }
.cart-total-note { margin: -4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cart-total-note[hidden] { display: none; }
.cart-form { display: grid; gap: 8px; }
.cart-note-label { font-size: .9rem; font-weight: 700; }
/* a regra geral de campo tira o outline do textarea; aqui ele volta (auditoria A-01, CA-26) */
.cart-form textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.cart-form textarea { width: 100%; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; resize: vertical; }
.cart-send {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #16A34A;
  color: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
.cart-send:hover { background: #15803D; }
