/* ════════════════════════════════════════════════════════════════
   Dadge CV Pro — interface da aplicação
   ════════════════════════════════════════════════════════════════ */
:root {
  --green: #1dbf73; --green-600: #17a463; --green-700: #12834f; --green-50: #ecfdf5; --green-100: #d1fae5;
  --navy: #0b1b2e; --ink: #0f172a; --ink-2: #1e293b; --text: #475569; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line-2: #eef2f6; --bg: #f1f5f9; --surface: #ffffff; --danger: #dc2626; --warn: #d97706;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --sh-2: 0 4px 16px rgba(15,23,42,.08);
  --sh-3: 0 18px 50px rgba(15,23,42,.18);
  --ease: cubic-bezier(.2,.8,.2,1);
  --appbar-h: 64px; --form-w: 430px; --ads-w: 232px; --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.modal-open { overflow: hidden; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; color: var(--ink-2); background: var(--bg);
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(29,191,115,.45); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.center { text-align: center; }

/* ═════════ Botões ═════════ */
.btn { --b: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; line-height: 1.1; background: var(--b); color: var(--ink-2);
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, color .18s, border-color .18s; white-space: nowrap; text-decoration: none; user-select: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-600)); color: #fff; box-shadow: 0 4px 14px rgba(29,191,115,.32); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(29,191,115,.42); transform: translateY(-1px); }
.btn-soft { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.btn-soft:hover { background: var(--green-100); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-link { background: none; color: var(--green-700); padding: 8px; }
.btn-link:hover { text-decoration: underline; }
.btn-donate { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.btn-donate:hover { background: #ffe4e6; }
.btn-donate i { animation: beat 2.4s infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 10%, 30% { transform: scale(1.2); } 20% { transform: scale(.95); } }
.btn-xs { padding: 6px 11px; font-size: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); transition: background .15s, color .15s, transform .15s; flex-shrink: 0; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.icon-btn.danger:hover { background: #fef2f2; color: var(--danger); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }

/* ═════════ Barra superior ═════════ */
.appbar { position: sticky; top: 0; z-index: 60; height: var(--appbar-h); display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.appbar::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--green), #0ea5e9, var(--green)); background-size: 200% 100%; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% 0; } }
body.scrolled .appbar { box-shadow: var(--sh-2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 38px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.brand-text strong em { font-style: normal; color: var(--green); }
.brand-text small { font-size: 11px; color: var(--muted); }
.mainnav { flex: 1; display: flex; justify-content: center; gap: 4px; }
.mainnav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.mainnav a i { font-size: 13px; opacity: .8; }
.mainnav a:hover { background: var(--bg); color: var(--ink); }
.mainnav a.active { background: var(--green-50); color: var(--green-700); }
.mainnav a.active::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--green); }
.appbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.donate-wrap { position: relative; }
.popover { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 16px; z-index: 70; animation: pop .22s var(--ease); }
.popover h4 { margin: 0 0 4px; font-size: 15px; color: #e11d48; }
.popover p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; margin-top: 8px; border-radius: 10px; border: 1px dashed var(--line); background: var(--bg); text-align: left; transition: border-color .2s, background .2s; }
.copy-row:hover { border-color: var(--green); background: var(--green-50); }
.copy-row small { display: block; font-size: 11px; color: var(--muted); }
.copy-row strong { font-size: 13px; letter-spacing: .3px; word-break: break-all; }
.copy-row i { color: var(--green-700); }


/* ═════════ Estrutura ═════════ */
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.view { animation: none; }
.view-in { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.only-mobile { display: none !important; }

/* ═════════ Início ═════════ */
.view-home { max-width: 1240px; width: 100%; margin: 0 auto; padding: 32px 24px 48px; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(1200px 400px at 0% 0%, rgba(29,191,115,.25), transparent 60%), linear-gradient(135deg, #0b1b2e, #12304d); color: #fff; }
.hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(29,191,115,.12); }
.hero-text { position: relative; z-index: 1; max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 600; color: #a7f3d0; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; margin: 14px 0 12px; letter-spacing: -1px; }
.hero h1 span { color: var(--green); }
.hero p { color: #cbd5e1; font-size: 16px; line-height: 1.6; margin: 0; }
.hero-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 12px; color: #94a3b8; }
.hero-logo { position: relative; z-index: 1; height: 170px; width: auto; filter: drop-shadow(0 12px 30px rgba(29,191,115,.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.home-q { font-family: 'Montserrat', sans-serif; font-size: 22px; margin: 36px 0 16px; color: var(--ink); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.showcase { position: sticky; top: calc(var(--appbar-h) + 16px); }
.showcase.swap .showcase-art, .showcase.swap .showcase-text { animation: swapIn .45s var(--ease) both; }
.showcase.swap .showcase-text { animation-delay: .06s; }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.showcase-art { position: relative; height: 380px; border-radius: var(--r-xl); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #e8f7ef, #f8fafc 60%); border: 1px solid var(--line); }
.showcase-art::before, .showcase-art::after { content: ''; position: absolute; width: 230px; height: 300px; border-radius: 26px; background: rgba(255,255,255,.75); box-shadow: var(--sh-2); transform: rotate(10deg) translate(90px, 20px); }
.showcase-art::after { transform: rotate(18deg) translate(150px, 40px); opacity: .6; }
.showcase-doc { position: absolute; z-index: 1; left: 50%; top: 50%; transform-origin: center; transform: translate(-50%, -50%) scale(.3); box-shadow: var(--sh-3); border-radius: 4px; transition: transform .45s var(--ease); }
.showcase-doc > .doc { pointer-events: none; }
.showcase-art.kind-card .showcase-doc .doc-cards, .showcase-art.kind-pass .showcase-doc .doc-pass, .showcase-art.kind-qr .showcase-doc .doc-qr { background: transparent; }
.showcase-art.kind-card .showcase-doc, .showcase-art.kind-pass .showcase-doc, .showcase-art.kind-qr .showcase-doc { box-shadow: none; }
.showcase-text h2 { font-family: 'Montserrat', sans-serif; font-size: 30px; margin: 22px 0 10px; color: var(--ink); }
.showcase-text p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 1; padding: 14px 8px; border-radius: var(--r-lg);
  background: #fff; border: 1.5px solid var(--line); font-weight: 600; color: var(--ink-2); text-align: center; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
  animation: tileIn .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(14px); } }
.tile-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 26px; color: #475569; transition: background .25s, color .25s, transform .3s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tile.active { border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,191,115,.12); }
.tile.active .tile-ic, .tile:hover .tile-ic { background: var(--green-50); color: var(--green); transform: scale(1.06); }
.tile-name { font-size: 15px; line-height: 1.25; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.feature i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); font-size: 18px; }
.feature h3 { margin: 12px 0 6px; font-size: 15px; color: var(--ink); }
.feature p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.site-foot { display: flex; justify-content: center; gap: 24px; padding: 18px; font-size: 12px; color: var(--faint); }
.site-foot i { color: #e11d48; }
body:not([data-route="inicio"]) .site-foot { display: none; }

/* ═════════ Editor ═════════ */
.view-editor { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--form-w) minmax(0, 1fr) var(--ads-w); }
body:not([data-route="inicio"]) { height: 100vh; height: 100dvh; overflow: hidden; }
.editor-form { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.form-head { padding: 22px 22px 14px; border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, #f8fffb, #fff); }
.form-head-title { display: flex; gap: 14px; align-items: flex-start; }
.form-head-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; font-size: 18px; background: linear-gradient(135deg, var(--green), var(--green-600)); box-shadow: 0 6px 16px rgba(29,191,115,.3); }
.form-head h1 { margin: 0; font-family: 'Montserrat', sans-serif; font-size: 20px; color: var(--ink); }
.form-head p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-head-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.save-state { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.save-state.saved { color: var(--green-700); }
.form-body { padding: 14px 16px 6px; }
.form-foot { padding: 6px 16px 28px; display: grid; gap: 10px; }
.module-switch { margin-bottom: 12px; }

/* Secções em acordeão */
.fsec { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; background: #fff; transition: box-shadow .25s, border-color .25s; }
.fsec:hover { border-color: #d5dde7; }
.fsec:focus-within { box-shadow: 0 0 0 4px rgba(29,191,115,.08); border-color: #bfe9d3; }
.fsec-head { display: flex; align-items: center; gap: 8px; padding-right: 10px; }
.fsec-toggle { flex: 1; display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: none; border: 0; text-align: left; font-weight: 700; font-size: 14px; color: var(--ink); min-width: 0; }
.fsec-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); font-size: 13px; flex-shrink: 0; }
.fsec-title { flex: 1; min-width: 0; }
.fsec-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 11px; display: grid; place-items: center; }
.fsec-chev { font-size: 12px; color: var(--faint); transition: transform .3s var(--ease); }
.fsec.collapsed .fsec-chev { transform: rotate(-90deg); }
.fsec-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.fsec.collapsed .fsec-body { grid-template-rows: 0fr; }
.fsec-inner { overflow: hidden; padding: 0 14px; }
.fsec-inner > :first-child { margin-top: 2px; }
.fsec-inner > :last-child { margin-bottom: 14px; }
.fsec.collapsed .fsec-inner { visibility: hidden; transition: visibility 0s .35s; }

/* Campos */
.field { margin-bottom: 12px; min-width: 0; }
.field > label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=color]):not([type=file]), .field textarea, .field select, .input-group input {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus, .input-group input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,191,115,.12); }
.field input::placeholder, .field textarea::placeholder { color: #a8b3c2; }
.field-ctl { position: relative; }
.field-ctl.has-icon > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; pointer-events: none; }
.field-ctl.has-icon input { padding-left: 34px !important; }
.field-ctl.select::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; font-size: 13px; }
.field-ctl.select select { padding-right: 32px; }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.frow { display: grid; gap: 10px; }
.frow.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.frow.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frow > *, .list, .litem, .litem-body, .fsec, .fsec-inner, .field-ctl { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

/* Toggle */
.toggle { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; margin-bottom: 6px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; flex-shrink: 0; transition: background .25s; }
.toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--green); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid rgba(29,191,115,.45); outline-offset: 2px; }
.toggle-text { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.toggle-text small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

/* Segmentado */
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.segmented button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text); transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.segmented button.active { background: #fff; color: var(--green-700); box-shadow: var(--sh-1); }

/* Amostras de cor */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; padding: 0; display: grid; place-items: center; }
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.08); }
.swatch.active::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.5); }
.swatch-default { background: #fff; color: var(--muted); font-size: 11px; }
.swatch-default.active::after { content: none; }
.swatch-custom { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #ec4899, #ef4444); color: #fff; font-size: 11px; cursor: pointer; overflow: hidden; }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.swatch-custom i { text-shadow: 0 0 3px rgba(0,0,0,.5); pointer-events: none; }
.swatch-custom.active::after { content: none; }

/* Upload */
.upload { display: flex; align-items: center; gap: 14px; }
.upload-drop { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; border: 2px dashed #cbd5e1; background: var(--bg); color: var(--faint); display: grid; place-items: center; align-content: center; gap: 4px; font-size: 11px; overflow: hidden; padding: 0; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.upload-drop i { font-size: 20px; }
.upload-drop:hover { border-color: var(--green); color: var(--green-700); transform: scale(1.03); }
.upload-drop img { width: 100%; height: 100%; object-fit: cover; }
.upload-square .upload-drop { border-radius: 14px; }
.upload-square .upload-drop img { object-fit: contain; padding: 6px; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.upload-wide .upload-drop { width: 150px; height: 64px; border-radius: 12px; }
.upload-wide .upload-drop img { object-fit: contain; background: #fff; }
.upload-info { display: grid; gap: 6px; justify-items: start; }

/* Modelos (miniaturas reais) */
.tmpl-grid { display: grid; gap: 10px; margin-bottom: 14px; }
.tmpl-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmpl-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmpl { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; border: 2px solid var(--line); background: #fff; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.tmpl:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tmpl.active { border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,191,115,.14); }
.tmpl.active::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(29,191,115,.4); animation: pop .25s var(--ease); }
.tmpl-thumb { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #f8fafc; pointer-events: none; }
.tmpl-a4 .tmpl-thumb { aspect-ratio: 210 / 297; border: 1px solid var(--line-2); }
.tmpl-card .tmpl-thumb { aspect-ratio: 85 / 55; }
.tmpl-pass .tmpl-thumb { height: 170px; display: grid; place-items: center; background: #eef2f6; }
.tmpl-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tmpl-pass .tmpl-scale { left: 50%; top: 50%; }
.tmpl-name { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tmpl-name em { font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; background: var(--green); color: #fff; padding: 1px 6px; border-radius: 999px; }

/* Galeria grande de modelos */
.gal-open { margin: -4px 0 14px; }
.modal-box.modal-gallery { max-width: 1120px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gal-grid.kind-card { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gal-item { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: center;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; animation: tileIn .4s var(--ease) both; }
.gal-item:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #b9e8cf; }
.gal-item.active { border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,191,115,.15); }
.gal-thumb { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #e9eef3; pointer-events: none; aspect-ratio: 210 / 297; }
.kind-card .gal-thumb { aspect-ratio: 5 / 6; }
.kind-pass .gal-thumb { aspect-ratio: 1 / 1; }
.gal-scale { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; }
.gal-scale .doc-a4 { box-shadow: 0 4px 16px rgba(15,23,42,.15); }
.gal-name { font-weight: 700; font-size: 14px; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; }
.gal-name em { font-style: normal; font-size: 10px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #fff; }
.gal-name em.new { background: var(--green-100); color: var(--green-700); }

/* Listas */
.list { display: grid; gap: 10px; margin-bottom: 10px; }
.list-empty { margin: 0; padding: 14px; text-align: center; color: var(--faint); font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; }
.litem { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; padding: 10px 12px 2px; transition: box-shadow .3s, border-color .3s; }
.litem.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(29,191,115,.6); border-color: var(--green); } 100% { box-shadow: 0 0 0 10px rgba(29,191,115,0); } }
.litem-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.litem-title { font-size: 13px; font-weight: 700; color: var(--green-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.litem-tools { display: flex; gap: 2px; flex-shrink: 0; }
.litem.compact { padding-top: 6px; }
.litem.compact .litem-head { margin-bottom: 2px; }
.litem.compact .litem-title { color: var(--muted); font-weight: 600; font-size: 12px; }

/* Chips e pílulas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.chip i { color: var(--green); }
.chip:hover { border-color: var(--green); background: var(--green-50); }
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--text); transition: all .2s; }
.pill:hover { border-color: #b9c4d2; }
.pill.active { border-color: var(--green); color: var(--green-700); background: var(--green-50); }

/* Editor de texto */
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f8fafc; }
.rich-toolbar button { width: 34px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--text); transition: background .15s, color .15s; }
.rich-toolbar button:hover { background: #fff; color: var(--green-700); box-shadow: var(--sh-1); }
.rich-toolbar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rich-editor { min-height: 260px; max-height: 460px; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #fff; font-size: 14px; line-height: 1.65; color: var(--ink); }
.rich-editor:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(29,191,115,.12); }
.rich-editor p { margin: 0 0 10px; }
.rich-editor ul, .rich-editor ol { margin: 6px 0 10px; padding-left: 22px; }

/* Tipos de QR (como grelha de mosaicos) */
.qr-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qr-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-2); transition: all .2s var(--ease); }
.qr-tile-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 17px; color: #475569; transition: all .25s var(--ease); }
.qr-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.qr-tile.active { border-color: var(--green); background: #fbfffd; }
.qr-tile.active .qr-tile-ic, .qr-tile:hover .qr-tile-ic { background: var(--green-50); color: var(--green); }

/* Pré-visualização */
.editor-preview { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #dfe5ec; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.preview-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.preview-title i { color: var(--green); margin-right: 4px; }
.zoom { display: flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 10px; padding: 3px; }
.zoom-label { min-width: 58px; height: 30px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 700; color: var(--text); }
.zoom-label.active { background: #fff; color: var(--green-700); box-shadow: var(--sh-1); }
.counters { display: flex; gap: 8px; }
.counter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; }
.counter strong { font-size: 14px; }
.c-views { background: #eff6ff; color: #1d4ed8; }
.c-exports { background: #fff7ed; color: #c2410c; }
.preview-stage { flex: 1; min-height: 0; overflow: auto; padding: 28px; display: flex; justify-content: center; align-items: flex-start; overscroll-behavior: contain;
  background-color: #dfe5ec; background-image: radial-gradient(#cbd5e1 1px, transparent 1px); background-size: 18px 18px; }
.preview-sizer { position: relative; flex-shrink: 0; transition: width .25s var(--ease), height .25s var(--ease); margin: auto; margin-top: 0; }
.preview-scaler { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .25s var(--ease); }
.preview-scaler > .doc-a4 { box-shadow: 0 10px 40px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.08); }
.preview-scaler > .doc-swap { animation: docIn .4s var(--ease); }
@keyframes docIn { from { opacity: .2; transform: translateY(6px); } }
.preview-error { padding: 40px; background: #fff; color: var(--danger); border-radius: 12px; width: 400px; }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--green), var(--green-600)); color: #fff; font-weight: 700; box-shadow: 0 10px 26px rgba(29,191,115,.45); animation: fabIn .4s var(--ease); }
@keyframes fabIn { from { transform: translateY(30px) scale(.8); opacity: 0; } }

/* ═════════ Publicidade ═════════ */
.ads-panel { min-height: 0; overflow: hidden; background: #f8fafc; border-left: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ad-label { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.ads-panel .ad-label { align-self: stretch; text-align: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ad-track { position: relative; width: 100%; overflow: hidden; border-radius: 12px; box-shadow: var(--sh-2); background: #fff; touch-action: pan-y; }
.ads-panel .ad-track { aspect-ratio: 913 / 3145; max-height: calc(100% - 70px); }
.ad-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1.2s var(--ease); pointer-events: none; }
.ad-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.ad-slide a, .ad-slide img { display: block; width: 100%; height: 100%; }
.ad-slide img { object-fit: cover; user-select: none; }
.ad-dots { display: flex; gap: 6px; }
.ad-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; transition: width .3s var(--ease), background .3s; }
.ad-dot.active { width: 20px; background: var(--green); }
.ad-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; color: #fff; background: linear-gradient(160deg, var(--a), var(--b)); }
.ad-ph i { font-size: 30px; opacity: .85; }
.ad-ph strong { font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.25; }
.ad-ph small { font-size: 11px; opacity: .9; }
.ad-ph.wide { flex-direction: row; gap: 14px; text-align: left; justify-content: flex-start; padding: 12px 44px 12px 18px; }
.ad-ph.wide i { font-size: 24px; }
.ad-ph.wide strong { font-size: 15px; display: block; }

/* ═════════ Navegação inferior e menu lateral ═════════ */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(15,23,42,.06); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.bottom-nav a i { font-size: 18px; transition: transform .3s var(--ease); }
.bottom-nav a.active { color: var(--green-700); }
.bottom-nav a.active i { transform: translateY(-2px) scale(1.1); }
.bottom-nav a.active::before { content: ''; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 4px 4px; background: var(--green); animation: pop .3s var(--ease); }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(11,27,46,.5); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 340px); background: #fff; overflow-y: auto; padding: 14px 14px calc(24px + var(--safe-b)); transform: translateX(-100%); transition: transform .32s var(--ease); box-shadow: var(--sh-3); }
body.drawer-open .drawer-overlay { opacity: 1; }
body.drawer-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.drawer-head img { height: 34px; width: auto; }
.drawer-group { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin: 16px 8px 6px; }
.drawer-panel a, .drawer-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 10px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; background: none; border: 0; text-align: left; transition: background .2s; }
.drawer-panel a i, .drawer-btn i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--text); flex-shrink: 0; }
.drawer-panel a small, .drawer-btn small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.drawer-panel a:hover, .drawer-btn:hover { background: var(--bg); }
.drawer-panel a.active { background: var(--green-50); color: var(--green-700); }
.drawer-panel a.active i { background: var(--green); color: #fff; }
.drawer-btn i { color: var(--danger); background: #fef2f2; }
.drawer-donate { padding: 0 6px; }
.drawer-foot { text-align: center; font-size: 11px; color: var(--faint); margin-top: 22px; }

/* ═════════ Modal ═════════ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,27,46,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.modal-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 22px;
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .3s var(--ease), transform .35s var(--ease); outline: none; }
.modal.open { pointer-events: auto; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-sm { max-width: 420px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 18px; color: var(--ink); }
.modal-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.modal-head-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.modal-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); font-size: 18px; flex-shrink: 0; }
.modal-text { color: var(--text); line-height: 1.6; margin: 0 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-foot-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.modal-foot-note i { color: var(--green); margin-top: 2px; }

/* Exportação */
.export-opts { display: grid; gap: 10px; }
.export-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: left; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
  animation: tileIn .4s var(--ease) both; }
.export-opt:nth-child(2) { animation-delay: .05s; } .export-opt:nth-child(3) { animation-delay: .1s; } .export-opt:nth-child(4) { animation-delay: .15s; }
.export-opt:hover { border-color: var(--green); background: #fbfffd; transform: translateX(3px); box-shadow: var(--sh-1); }
.export-opt:active { transform: scale(.98); }
.export-opt.best { border-color: #9be3bf; background: #f6fffa; }
.export-opt-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); font-size: 20px; color: var(--text); flex-shrink: 0; }
.export-opt.best .export-opt-ic { background: var(--green); color: #fff; }
.export-opt-txt { flex: 1; min-width: 0; }
.export-opt-txt strong { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.export-opt-txt strong em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.export-opt-txt small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.export-opt-go { color: var(--faint); transition: transform .2s; }
.export-opt:hover .export-opt-go { transform: translateX(3px); color: var(--green); }
.export-progress { display: grid; justify-items: center; gap: 18px; padding: 8px 0 6px; }
.spinner-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: var(--green); background: var(--green-50); }
.spinner-ring::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--green); border-right-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: 100%; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), #34d399, var(--green)); background-size: 200% 100%; animation: shine 1.4s linear infinite; transition: width .5s var(--ease); }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); transition: color .3s; }
.steps li i { width: 18px; text-align: center; }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active i { color: var(--green); }
.steps li.done { color: var(--green-700); }
.export-done { display: grid; justify-items: center; text-align: center; gap: 14px; }
.done-check svg { width: 76px; height: 76px; }
.done-check circle { fill: var(--green-50); stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s var(--ease) forwards; }
.done-check path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-preview { max-height: 180px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--sh-1); animation: swapIn .5s var(--ease); }
.done-file { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg); text-align: left; }
.done-file > i { font-size: 26px; color: #e11d48; }
.done-file strong { display: block; font-size: 14px; word-break: break-all; color: var(--ink); }
.done-file small { font-size: 12px; color: var(--muted); }
.done-msg { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.done-actions .btn { flex: 1 1 140px; }
.export-error p { color: var(--ink); line-height: 1.55; margin: 0 0 10px; }
.hint-list { margin: 0 0 18px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ═════════ Toasts ═════════ */
#toasts { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 10px; justify-items: end; pointer-events: none; max-width: min(420px, calc(100vw - 24px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.4; box-shadow: var(--sh-3); animation: toastIn .4s var(--ease); }
.toast > i:first-child { font-size: 17px; flex-shrink: 0; }
.toast-success > i:first-child { color: #34d399; } .toast-error { background: #7f1d1d; } .toast-error > i:first-child { color: #fca5a5; }
.toast-warning > i:first-child { color: #fbbf24; } .toast-info > i:first-child, .toast-loading > i:first-child { color: #93c5fd; }
.toast-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; flex-shrink: 0; }
.toast-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.toast-act { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 13px; }
.toast-act:hover { background: rgba(255,255,255,.24); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.96); } }

/* ═════════ Cookies ═════════ */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px;
  background: var(--ink); color: #cbd5e1; font-size: 13px; line-height: 1.5; box-shadow: var(--sh-3); transform: translateY(140%); transition: transform .45s var(--ease); }
.cookie.in { transform: none; }
.cookie > i { font-size: 22px; color: #fbbf24; }
.cookie-text { flex: 1; min-width: 220px; }
.cookie-text strong { color: #fff; }
.cookie-actions { display: flex; gap: 8px; }
.cookie .btn-ghost { color: #cbd5e1; border-color: #334155; }
.cookie .btn-ghost:hover { background: #1e293b; color: #fff; }

html.modal-open .cookie { opacity: 0; pointer-events: none; }

/* Nó usado para captura (exportação) e impressão */
.export-host { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; pointer-events: none; }
.export-host > * { text-size-adjust: none; -webkit-text-size-adjust: none; }
.export-host .doc { box-shadow: none !important; }
#printRoot { display: none; }

/* ═════════ Responsivo ═════════ */
@media (max-width: 1360px) { :root { --form-w: 400px; } .view-editor { grid-template-columns: var(--form-w) minmax(0, 1fr); } .ads-panel { display: none; } .mainnav a { padding: 9px 11px; } }
@media (max-width: 1100px) { .mainnav a span { display: none; } .mainnav a { padding: 10px 13px; } .mainnav a i { font-size: 16px; } :root { --form-w: 370px; } .features { grid-template-columns: 1fr 1fr; } }

@media (max-width: 900px) {
  :root { --appbar-h: 58px; }
  .only-mobile { display: initial !important; }
  .icon-btn.only-mobile { display: inline-grid !important; }
  .bottom-nav.only-mobile { display: grid !important; }
  .mobile-ad.only-mobile, .pane-switch.only-mobile { display: flex !important; }
  .fab.only-mobile { display: none !important; }
  body[data-pane="preview"] .fab.only-mobile { display: inline-flex !important; }
  .form-foot .only-mobile { display: inline-flex !important; }
  .only-desktop { display: none !important; }
  body { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
  body:not([data-route="inicio"]) { height: auto; overflow: visible; }
  .appbar { padding: 0 8px 0 4px; gap: 6px; }
  .brand img { height: 32px; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { display: none; }
  .btn-export { padding: 9px 14px; }

  /* banner de publicidade */
  .mobile-ad { position: relative; flex-direction: column; margin: 10px 12px 0; transition: opacity .28s, transform .28s var(--ease), margin .28s; }
  .mobile-ad.closing { opacity: 0; transform: translateY(-10px) scale(.98); }
  .mobile-ad .ad-label { position: absolute; z-index: 3; left: 8px; top: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.35); color: #fff; font-size: 9px; }
  .mobile-ad .ad-track { aspect-ratio: 4 / 1; max-height: 110px; min-height: 76px; }
  .mobile-ad .ad-dots { position: absolute; z-index: 3; bottom: 7px; left: 0; right: 0; justify-content: center; }
  .mobile-ad .ad-dot { background: rgba(255,255,255,.6); }
  .mobile-ad .ad-dot.active { background: #fff; }
  .ad-close { position: absolute; z-index: 3; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.4); color: #fff; font-size: 12px; display: grid; place-items: center; }
  body[data-route="inicio"] .mobile-ad { margin-bottom: 0; }

  /* início */
  .view-home { padding: 14px 12px 24px; }
  .hero { padding: 22px 20px; border-radius: 18px; }
  .hero-logo { position: absolute; right: -14px; bottom: -18px; height: 120px; opacity: .25; }
  .hero p { font-size: 14px; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 19px; }
  .home-q { font-size: 18px; margin: 22px 4px 12px; }
  .home-grid { grid-template-columns: 1fr; gap: 16px; }
  .showcase { position: static; order: 2; }
  .showcase-art { height: 230px; }
  .showcase-text h2 { font-size: 22px; margin-top: 14px; }
  .showcase-text p { font-size: 15px; }
  .showcase-text .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tile { aspect-ratio: auto; padding: 14px 6px; gap: 8px; }
  .tile-ic { width: 50px; height: 50px; font-size: 21px; }
  .tile-name { font-size: 13px; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .feature { padding: 14px; }

  /* editor */
  .view-editor { display: block; }
  .pane-switch { position: sticky; top: var(--appbar-h); z-index: 40; gap: 4px; margin: 10px 12px 0; padding: 4px; border-radius: 14px; background: rgba(241,245,249,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--sh-1); }
  .pane-switch button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14px; color: var(--text); transition: background .25s var(--ease), color .2s, box-shadow .25s; }
  .pane-switch button.active { background: #fff; color: var(--green-700); box-shadow: var(--sh-1); }
  .editor-form { overflow: visible; border: 0; background: transparent; }
  .form-head { margin: 10px 12px 0; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 16px; }
  .form-head h1 { font-size: 18px; }
  .form-body { padding: 12px 12px 4px; }
  .form-foot { padding: 4px 12px 22px; }
  .fsec { background: #fff; }
  body[data-pane="edit"] .editor-preview { display: none; }
  body[data-pane="preview"] .editor-form { display: none; }
  body[data-pane="preview"] .editor-preview { animation: viewIn .35s var(--ease); }
  .editor-preview { background: transparent; }
  .preview-bar { margin: 10px 12px 0; border-radius: 14px; border: 1px solid var(--line); padding: 8px 10px 8px 14px; }
  .preview-stage { padding: 14px 12px 90px; overflow: hidden; background: transparent; }
  .view-editor, .editor-preview { max-width: 100vw; overflow-x: clip; }
  .gal-grid, .gal-grid.kind-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gal-name { font-size: 12px; }
  .qr-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* modal como folha inferior */
  .modal { place-items: end center; padding: 0; }
  .modal-box { max-width: none; border-radius: 22px 22px 0 0; padding: 12px 18px calc(22px + var(--safe-b)); max-height: 92dvh; transform: translateY(100%); transition: transform .38s var(--ease), opacity .2s; }
  .modal-box::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 999px; background: #cbd5e1; margin: 0 auto 12px; }
  .modal.open .modal-box { transform: none; }
  #toasts { left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + var(--safe-b)); justify-items: stretch; max-width: none; }
  .cookie { bottom: calc(var(--nav-h) + 10px + var(--safe-b)); left: 10px; right: 10px; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .tmpl-grid.cols-2, .tmpl-grid.cols-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tmpl-grid.tmpl-card.cols-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qr-types { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .ad-ph.wide { padding: 16px 40px 12px 14px; gap: 10px; }
  .ad-ph.wide small { display: none; }
  .ad-ph.wide strong { font-size: 14px; }
  .btn-export span { display: none; }
  .btn-export { width: 42px; height: 42px; padding: 0; }
  .frow.cols-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tmpl-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
  .hero-stats div:last-child { display: none; }
}
@media (min-width: 901px) and (max-height: 640px) { .ads-panel { display: none; } }

/* ═════════ Início: folhas de exemplo no topo (com marcas de corte) ═════════ */
.hero .at-hero-art { --crop: rgba(255,255,255,.5); position: relative; z-index: 1; flex: 0 0 400px; height: 290px; margin: 6px 6px 0 0; }
.at-sheet { position: absolute; margin: 0; background: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
.at-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.at-a4 { width: 50%; left: 22%; top: 2px; aspect-ratio: 210 / 297; z-index: 2; }
.at-pass { width: 30%; right: 0; top: 8%; aspect-ratio: 100 / 140; transform: rotate(5deg); border-radius: 6px; overflow: hidden; z-index: 1; }
.at-card { width: 52%; left: 0; bottom: 4%; aspect-ratio: 85 / 55; transform: rotate(-4deg); border-radius: 3px; overflow: hidden; z-index: 3; }
.at-a4::before { content: ''; position: absolute; inset: -12px; pointer-events: none;
  background:
    linear-gradient(var(--crop), var(--crop)) 0 12px / 8px 1px no-repeat, linear-gradient(var(--crop), var(--crop)) 12px 0 / 1px 8px no-repeat,
    linear-gradient(var(--crop), var(--crop)) right 0 top 12px / 8px 1px no-repeat, linear-gradient(var(--crop), var(--crop)) right 12px top 0 / 1px 8px no-repeat,
    linear-gradient(var(--crop), var(--crop)) 0 calc(100% - 12px) / 8px 1px no-repeat, linear-gradient(var(--crop), var(--crop)) 12px 100% / 1px 8px no-repeat,
    linear-gradient(var(--crop), var(--crop)) right 0 bottom 12px / 8px 1px no-repeat, linear-gradient(var(--crop), var(--crop)) right 12px bottom 0 / 1px 8px no-repeat; }
.at-stamp { position: absolute; z-index: 4; right: 0; bottom: 0; width: 78px; height: 78px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green);
  display: grid; place-items: center; align-content: center; gap: 1px; transform: rotate(-12deg); background: rgba(11,27,46,.88); }
.at-stamp::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--green); opacity: .45; }
.at-stamp img { width: 24px; height: auto; }
.at-stamp b { font-size: 8.5px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.at-spec { position: absolute; z-index: 3; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.at-spec-a { left: 22%; top: -20px; }
.at-spec-b { left: 0; bottom: -18px; }
@media (max-width: 1100px) { .hero .at-hero-art { flex-basis: 330px; height: 250px; } }
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; gap: 26px; }
  .hero .at-hero-art { flex: none; width: 100%; max-width: 340px; height: 230px; margin: 10px auto 4px; }
  .at-spec { display: none; }
  .at-stamp { width: 64px; height: 64px; }
  .at-stamp img { width: 20px; }
}

/* ═════════ Grátis / Premium na página inicial ═════════ */
.sc-price { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px !important; font-size: 13px !important; }
.sc-price > span, .sc-price:not(:has(span)) { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-weight: 600; }
.sc-price .is-prem { background: #fef3c7; color: #92400e; }
.plans { margin-top: 8px; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.plan-prem { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.15); }
.plan-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--green-50); color: var(--green-700); }
.plan-prem .plan-tag { background: #fef3c7; color: #92400e; }
.plan-price { display: block; margin: 12px 0 10px; font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 800; color: var(--ink); }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.plan li > .fa-check { color: var(--green-700); margin-right: 4px; }
.plan li .fa-crown { color: #d97706; }
.plan-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.plan-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: #fff; font-weight: 800; font-size: 14px; }
.plan-steps strong { display: block; font-size: 14px; color: var(--ink); }
.plan-steps p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .plans-grid, .plan-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .plan { padding: 16px; }
  .plan-price { font-size: 22px; }
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ═════════ Faixa Premium na pré-visualização ═════════ */
.prem-strip { display: flex; align-items: center; gap: 12px; padding: 9px 18px; background: linear-gradient(90deg, #fffbeb, #fef3c7); border-bottom: 1px solid #fde68a; flex-shrink: 0; animation: fadeIn .3s ease; }
.prem-strip[hidden] { display: none; }
.prem-strip .ps-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #f59e0b; color: #fff; font-size: 13px; flex-shrink: 0; }
.prem-strip .ps-txt { flex: 1; min-width: 0; line-height: 1.3; }
.prem-strip strong { display: block; font-size: 13px; color: #78350f; }
.prem-strip small { display: block; font-size: 12px; color: #92400e; }
.prem-strip .ps-btn { background: #b45309; color: #fff; border: 0; flex-shrink: 0; }
.prem-strip .ps-btn:hover { background: #92400e; }
@media (max-width: 900px) {
  .prem-strip { margin: 8px 12px 0; border: 1px solid #fde68a; border-radius: 14px; padding: 8px 10px 8px 12px; }
  .prem-strip small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ═════════ Impressão ═════════ */
@media print {
  html.printing body > *:not(#printRoot) { display: none !important; }
  html.printing body { display: block; padding: 0; margin: 0; background: #fff; height: auto; overflow: visible; }
  html.printing #printRoot { display: block !important; }
  html.printing #printRoot .doc { box-shadow: none !important; margin: 0 !important; }
  html.printing #printRoot .doc-a4 { min-height: 0 !important; }
  html.printing #printRoot .doc-cards, html.printing #printRoot .doc-pass { display: block !important; padding: 0 !important; gap: 0 !important; background: none !important; }
  html.printing #printRoot .face-wrap { display: block !important; margin: 0 !important; }
  html.printing #printRoot [data-face] { break-after: page; page-break-after: always; box-shadow: none !important; border-radius: 0 !important; }
  html.printing #printRoot .face-wrap:last-child [data-face], html.printing #printRoot .doc-pass [data-face] { break-after: auto; page-break-after: auto; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ═════════ Gerador QR: páginas dinâmicas ═════════ */
.qr-tile { position: relative; }
.qr-tile em { position: absolute; top: 5px; right: 5px; font-style: normal; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 1px 5px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.qr-tile-ic.sm { width: 34px; height: 34px; font-size: 14px; flex-shrink: 0; }
.media-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px dashed var(--line); border-radius: 12px; background: #fbfcfd; transition: border-color .2s; }
.media-pick.has { border-style: solid; border-color: #bfe9d3; background: #f6fffa; }
.media-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #fff1f2; color: #e11d48; font-size: 18px; flex-shrink: 0; }
.media-txt { flex: 1; min-width: 0; }
.media-txt strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-txt small { font-size: 11px; color: var(--muted); }
.gal-edit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gal-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); }
.gal-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-cell .icon-btn { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(255,255,255,.92); }
.gal-add { aspect-ratio: 1; border-radius: 10px; border: 2px dashed #cbd5e1; background: #fbfcfd; color: var(--muted); display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; font-weight: 600; transition: border-color .2s, color .2s; }
.gal-add i { font-size: 16px; }
.gal-add:hover { border-color: var(--green); color: var(--green-700); }
.pub-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #eff6ff; color: #1e3a8a; margin-bottom: 12px; }
.pub-box > i { font-size: 18px; margin-top: 2px; }
.pub-box strong { display: block; font-size: 14px; }
.pub-box small { display: block; font-size: 12px; opacity: .85; margin-top: 4px; line-height: 1.45; }
.pub-box a { display: block; font-size: 13px; font-weight: 600; color: var(--green-700); word-break: break-all; margin-top: 2px; }
.pub-box.ok { background: var(--green-50); color: var(--green-700); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-actions .btn { flex: 1 1 auto; }
.my-pages { display: grid; gap: 8px; margin-bottom: 8px; }
.my-page { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.my-page > div { flex: 1; min-width: 0; }
.my-page strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-page small { font-size: 11px; color: var(--muted); }
.my-tools { display: flex; gap: 2px; }

.btn.pulse { animation: pulseBtn .6s ease 3; }
@keyframes pulseBtn { 50% { box-shadow: 0 0 0 10px rgba(29,191,115,.25); transform: scale(1.03); } }

/* ═════════ Aviso no topo ═════════ */
.notice-bar { --nb: #1d4ed8; --nb-bg: #eff6ff; --nb-line: #bfdbfe; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 48px 9px 16px; font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--nb); background: var(--nb-bg); border-bottom: 1px solid var(--nb-line); }
.notice-bar.nb-in { animation: nbIn .45s var(--ease); }
.notice-bar.nb-out { animation: nbOut .3s var(--ease) forwards; }
@keyframes nbIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes nbOut { to { opacity: 0; transform: translateY(-8px); margin-top: -38px; } }
.nb-sucesso { --nb: #166534; --nb-bg: #f0fdf4; --nb-line: #bbf7d0; }
.nb-alerta { --nb: #92400e; --nb-bg: #fffbeb; --nb-line: #fde68a; }
.nb-urgente { --nb: #fff; --nb-bg: linear-gradient(90deg, #b91c1c, #dc2626); --nb-line: #991b1b; background: linear-gradient(90deg, #b91c1c, #dc2626); }
.nb-ic { font-size: 15px; }
.nb-urgente .nb-ic i { animation: ring 2.2s ease-in-out infinite; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(14deg); } 10%, 20% { transform: rotate(-14deg); } }
.nb-txt { font-weight: 600; }
.nb-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nb-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: inherit; opacity: .7; }
.nb-x:hover { opacity: 1; background: rgba(0,0,0,.06); }
.admin-mnt { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; font-size: 13px; background: #0f172a; color: #fbbf24; }
.admin-mnt a { color: #fff; font-weight: 700; }

/* ═════════ Pop-up de entrada ═════════ */
.modal-box.modal-popup { max-width: 440px; padding: 0; overflow: hidden; }
.modal-popup .pop-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.92); box-shadow: var(--sh-1); }
.pop-img { display: block; background: #f1f5f9; }
.pop-img img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.pop-body { padding: 22px 22px 6px; }
.pop-body h3 { margin: 0 0 8px; font-family: 'Montserrat', sans-serif; font-size: 20px; color: var(--ink); padding-right: 30px; }
.pop-body p { margin: 0; color: var(--text); line-height: 1.6; }
.pop-actions { padding: 16px 22px 8px; }
.pop-label { display: block; text-align: center; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); padding: 6px 0 12px; }
.modal-popup.only-img .pop-actions { padding-top: 12px; }
@media (max-width: 900px) {
  .modal:has(.modal-popup) { place-items: center; padding: 16px; }
  .modal-box.modal-popup { border-radius: 20px; transform: scale(.9); max-height: 90dvh; }
  .modal-box.modal-popup::before { display: none; }
  .modal.open .modal-box.modal-popup { transform: none; }
}

/* ═════════ Página de manutenção ═════════ */
.mnt-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 10% 0%, rgba(29,191,115,.25), transparent 60%), linear-gradient(135deg, #0b1b2e, #12304d); }
.mnt { width: min(560px, 100%); text-align: center; color: #e2e8f0; animation: viewIn .6s var(--ease); }
.mnt-art { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; display: grid; place-items: center; }
.mnt-art img { position: relative; z-index: 1; height: 120px; width: auto; filter: drop-shadow(0 12px 30px rgba(29,191,115,.4)); }
.mnt-g1, .mnt-g2 { position: absolute; color: rgba(255,255,255,.15); animation: spin 8s linear infinite; }
.mnt-g1 { font-size: 64px; right: -18px; top: -6px; }
.mnt-g2 { font-size: 40px; left: -10px; bottom: 4px; animation-direction: reverse; animation-duration: 6s; }
.mnt-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(251,191,36,.15); color: #fbbf24; font-weight: 700; font-size: 13px; }
.mnt h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(26px, 5vw, 36px); color: #fff; margin: 16px 0 12px; line-height: 1.15; }
.mnt p { font-size: 16px; line-height: 1.7; color: #cbd5e1; margin: 0 0 18px; }
.mnt-eta { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.08); margin-bottom: 18px; }
.mnt-eta strong { color: #fff; }
.mnt-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin: 6px auto 16px; max-width: 320px; }
.mnt-bar span { display: block; width: 40%; height: 100%; border-radius: 6px; background: var(--green); animation: mntBar 1.8s ease-in-out infinite; }
@keyframes mntBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.mnt small { color: #94a3b8; font-size: 12.5px; }

/* ═════════ Modelos Premium ═════════ */
.doc-locked { position: relative; background: #fff; display: grid; place-items: center; overflow: hidden; border-radius: 4px; box-shadow: 0 10px 40px rgba(15,23,42,.18); }
.doc-locked::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, #f8fafc 0 18px, #f1f5f9 18px 36px); }
.lk-ph { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--text); }
.lk-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 24px; box-shadow: 0 10px 24px rgba(217,119,6,.35); }
.lk-ph strong { font-family: 'Montserrat', sans-serif; font-size: 22px; color: var(--ink); }
.lk-msg { font-size: 15px; max-width: 360px; }
.doc-locked.loading .lk-ic { animation: beat 1.4s infinite; }
.doc-locked.loading::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, transparent, #f59e0b, transparent); background-size: 200% 100%; animation: shine 1.2s linear infinite; z-index: 3; }
.lk-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top; background: #fff; animation: docIn .4s var(--ease); }
.lk-buy { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-weight: 800; font-size: 16px; white-space: nowrap; box-shadow: 0 12px 30px rgba(217,119,6,.45); transition: transform .2s var(--ease); }
.lk-buy:hover { transform: translateX(-50%) translateY(-2px); }
.tmpl-prem { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 2px 6px rgba(217,119,6,.35); }
.tmpl-scale.is-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tmpl-scale.is-img img, .gal-thumb > .tpl-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tmpl-pass .tmpl-scale.is-img { left: 0; top: 0; }
.gal-name em.prem { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.qr-prem { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #f59e0b; color: #fff; white-space: nowrap; }
.showcase-img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 70%; max-height: 88%; border-radius: 4px; box-shadow: var(--sh-3); z-index: 1; }
.btn-purchases { color: var(--text); border: 1px solid var(--line); }
.drawer-btn.plain i { color: var(--text); background: var(--bg); }

/* ═════════ Janela de compra ═════════ */
.modal-box.modal-pay { max-width: 540px; }
.pay-ic { background: #fef3c7 !important; color: #d97706 !important; }
.pay-loading { padding: 30px; text-align: center; color: var(--muted); }
.pay-prod { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; margin-bottom: 14px; }
.pay-prod strong { display: block; color: var(--ink); }
.pay-prod small { display: block; font-size: 12.5px; color: #92400e; margin-top: 3px; line-height: 1.45; }
.pay-price { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; color: #b45309; white-space: nowrap; }
.pay-why { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.pay-why i { color: var(--green); margin-right: 6px; }
.pay-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; counter-reset: passo; }
.pay-steps li { flex: 1; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--bg); counter-increment: passo; }
.pay-steps li::before { content: counter(passo) ". "; }
.pay-steps li.on { background: var(--green-50); color: var(--green-700); }
.pay-bank { display: grid; gap: 8px; margin-bottom: 16px; }
.pay-ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; }
.pay-ref span { font-size: 12px; color: #94a3b8; }
.pay-ref strong { font-family: 'Space Grotesk', monospace; font-size: 20px; letter-spacing: 2px; margin-left: auto; }
.pay-ref .icon-btn { color: #fff; }
.pay-ref.solo { margin-bottom: 12px; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 12px; border: 2px dashed #fcd34d; }
.pay-amount span { font-size: 13px; color: var(--muted); }
.pay-amount strong { font-size: 22px; color: var(--ink); }
.pay-note { margin: 0; font-size: 12.5px; color: var(--text); line-height: 1.5; }
.pay-note i { color: var(--green); margin-right: 4px; }
.pay-warn { margin: 0; font-size: 13px; color: #b45309; background: #fffbeb; padding: 10px 12px; border-radius: 10px; }
.pay-code { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #eff6ff; color: #1e3a8a; margin-bottom: 14px; }
.pay-code > i { font-size: 18px; margin-top: 2px; }
.pay-code code { font-family: 'Space Grotesk', monospace; font-size: 16px; letter-spacing: 2px; background: #fff; padding: 2px 8px; border-radius: 6px; }
.pay-code small { display: block; font-size: 12px; margin-top: 4px; line-height: 1.45; }
.pay-proof { display: grid; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fbfcfd; }
.pay-proof h4 { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.pay-proof h4 i { color: var(--green); margin-right: 6px; }
.pay-file { position: relative; display: block; margin-bottom: 10px; }
.pay-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pay-file span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px; border: 2px dashed #cbd5e1; border-radius: 12px; background: #fff; color: var(--text); font-size: 14px; }
.pay-file span i { color: var(--green); font-size: 18px; }
.pay-file:hover span { border-color: var(--green); }
.pay-file small { color: var(--muted); }
.pay-status, .pay-ok { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; margin-bottom: 14px; }
.pay-status > i, .pay-ok > i { font-size: 20px; margin-top: 2px; }
.pay-status strong, .pay-ok strong { display: block; color: var(--ink); }
.pay-status small, .pay-ok small { display: block; font-size: 13px; color: var(--text); margin-top: 3px; line-height: 1.5; }
.pay-status.review { background: #eff6ff; } .pay-status.review > i { color: #2563eb; }
.pay-status.bad { background: #fef2f2; } .pay-status.bad > i { color: #dc2626; }
.pay-ok { background: var(--green-50); } .pay-ok > i { color: var(--green); }
.pay-recover-link { display: block; margin: 10px auto 0; font-size: 13px; }
.danger-link { display: block; margin: 8px auto 0; color: #b91c1c; font-size: 13px; }
.pay-recover { display: grid; gap: 6px; }
.pay-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.pay-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pay-item strong { display: block; font-size: 14px; color: var(--ink); }
.pay-item small { display: block; font-size: 12px; color: var(--muted); }
.pay-item small.bad { color: #b91c1c; }
.pay-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pay-state.wait { background: #fef3c7; color: #b45309; } .pay-state.review { background: #dbeafe; color: #1d4ed8; } .pay-state.ok { background: #dcfce7; color: #15803d; }
.pay-state.bad { background: #fee2e2; color: #b91c1c; } .pay-state.off { background: #f1f5f9; color: #64748b; }
.export-opt:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
@media (max-width: 900px) { .lk-buy { font-size: 14px; padding: 12px 18px; bottom: 16px; } .pay-steps li { font-size: 10.5px; } }

/* ════════════════════════════════════════════════════════════════
   Aspecto mais sóbrio (sem "cara de IA"): botões rectos e sólidos,
   sem caixas de ícones, listas com traço, réguas em vez de cartões soltos.
   ════════════════════════════════════════════════════════════════ */
/* Botões: rectângulos sólidos, sem gradiente nem brilho */
.btn { border-radius: 6px; }
.btn-primary { background: var(--green); color: var(--navy); box-shadow: inset 0 -2px 0 rgba(11,27,46,.16); }
.btn-primary:hover { background: #22cc7d; box-shadow: inset 0 -2px 0 rgba(11,27,46,.24); transform: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-donate { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-donate:hover { background: #fff; border-color: #e11d48; }
.btn-donate i { animation: none; }
.btn.pulse { animation: none; box-shadow: 0 0 0 2px var(--green); }
/* Botão Exportar (topo e flutuante): mantém o aspecto original */
.btn-export { border-radius: 999px; background: linear-gradient(135deg, var(--green), var(--green-600)); color: #fff; box-shadow: 0 4px 14px rgba(29,191,115,.32); }
.btn-export:hover { background: linear-gradient(135deg, var(--green), var(--green-600)); box-shadow: 0 6px 20px rgba(29,191,115,.42); transform: translateY(-1px); }

/* Início: linha de preços do mostruário em texto simples */
.sc-price { gap: 0 !important; font-size: 12px !important; }
.sc-price > span, .sc-price:not(:has(span)) { padding: 0; border-radius: 0; background: none !important; color: var(--ink) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sc-price > span + span::before { content: '/'; margin: 0 10px; color: var(--green-700); }
.sc-price i { display: none; }

/* Início: vantagens num só painel com colunas, sem ícones */
.features { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; counter-reset: ft; }
.feature { border: 0; border-radius: 0; padding: 22px 24px 24px; counter-increment: ft; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature:hover { transform: none; box-shadow: none; }
.feature > i { display: none; }
.feature h3 { margin: 0 0 8px; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 800; }
.feature h3::before { content: counter(ft, decimal-leading-zero); display: block; margin-bottom: 12px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--green-700); }

/* Início: preços como tabela (Premium em azul-marinho), listas com traço */
.plans-grid { gap: 0; border: 1px solid var(--line); border-radius: 8px 8px 0 0; overflow: hidden; }
.plan { border: 0; border-radius: 0; padding: 26px 28px; }
.plan-prem { border: 0; background: #fffdf5; box-shadow: inset 0 0 0 2px #fbbf24; }
.plan-tag { padding: 0; border-radius: 0; background: none !important; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700) !important; }
.plan-tag i { display: none; }
.plan-prem .plan-tag { color: #b45309 !important; }
.plan-price { font-size: 40px; letter-spacing: -.02em; margin: 6px 0 18px; }
.plan-price small { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.plan ul { gap: 0; border-top: 1px solid var(--line); }
.plan-prem ul { border-top-color: #fde68a; }
.plan li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line-2); }
.plan-prem li { border-bottom-color: #fef3c7; }
.plan li::before { content: '—'; position: absolute; left: 0; color: var(--green-700); }
.plan-prem li::before { color: #d97706; }
.plan li > .fa-check { display: none; }
.plan-prem li .fa-crown { color: #d97706; }
.plan-steps { gap: 0; margin-top: 0; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; }
.plan-steps li { border: 0; border-radius: 0; background: transparent; padding: 18px 22px; align-items: baseline; }
.plan-steps li + li { border-left: 1px solid var(--line); }
.plan-steps li > span { width: auto; height: auto; border-radius: 0; background: none; color: var(--green-700); font-family: 'Montserrat', sans-serif; font-size: 30px; font-weight: 800; line-height: .9; }

/* Editor: barra da pré-visualização em texto, mesa lisa */
.preview-title i { display: none; }
.zoom { border-radius: 6px; background: transparent; border: 1px solid var(--line); padding: 0; gap: 0; }
.zoom .icon-btn { border-radius: 0; }
.zoom-label { border-radius: 0; }
.zoom-label.active { background: var(--navy); color: #fff; box-shadow: none; }
.counter { padding: 0 0 0 12px; border-radius: 0; background: none !important; color: var(--muted) !important; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.counter + .counter { border-left: 1px solid var(--line); }
.counter i { display: none; }
.counter strong { color: var(--ink); font-size: 13px; }
.c-views::after { content: 'visitas'; } .c-exports::after { content: 'exportações'; }
.preview-stage { background-image: none; background-color: #e2e8f0; }

/* Faixa Premium: azul-marinho com botão verde, sem ícones */
.prem-strip .ps-ic { display: none; }
.prem-strip .ps-btn { border-radius: 6px; }
.prem-strip .ps-btn i { display: none; }
@media (max-width: 900px) { .prem-strip { border-radius: 8px; } }

/* Miniaturas Premium: etiqueta azul-marinho em vez de laranja */
.tmpl-prem { border-radius: 3px; }

/* Janela de compra: mantém o aspecto original (botão incluído) */
.modal-pay .btn { border-radius: 999px; }
.modal-pay .btn-primary { background: linear-gradient(135deg, var(--green), var(--green-600)); color: #fff; box-shadow: 0 4px 14px rgba(29,191,115,.32); }
.modal-pay .btn-primary:hover { box-shadow: 0 6px 20px rgba(29,191,115,.42); transform: translateY(-1px); }

@media (max-width: 1100px) {
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .plans-grid, .plan-steps { grid-template-columns: 1fr; }
  .plan-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .plan { padding: 22px 18px; }
  .plan-price { font-size: 34px; }
}
