/* =====================================================================
   Convida + : identidade "papelaria festiva"
   Tinta violeta, papel lilás, magenta para ação, amarelo para destaque.
   Tipos: Bricolage Grotesque (títulos) + Figtree (texto).
   ===================================================================== */
:root {
  --ink: #241047;
  --ink-2: #4b3f66;
  --muted: #7d7396;
  --paper: #fbf9ff;
  --card: #ffffff;
  --line: #e9e3f6;
  --line-2: #d9d0ee;
  --brand: #e5337a;
  --brand-ink: #b81d5c;
  --sun: #ffc83d;
  --ok: #17a284;
  --danger: #d23a3a;
  --accent: #e5337a;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-1: 0 1px 0 rgba(36, 16, 71, .04), 0 10px 30px -12px rgba(36, 16, 71, .18);
  --shadow-2: 0 30px 60px -20px rgba(36, 16, 71, .35);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -.025em; font-variation-settings: "wdth" 90; }
h1 { font-size: clamp(2.2rem, 6.4vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 440px; }
.center-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Botões ---------- */
.btn { --b: var(--ink); --t: #fff; appearance: none; border: 2px solid var(--b); background: var(--b); color: var(--t);
  font: 700 .97rem var(--sans); padding: 12px 22px; min-height: 48px; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--b) 35%, transparent); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--b); }
.btn.light { --b: #fff; --t: var(--ink); }
.btn.brand { --b: var(--brand); }
.btn.accent { --b: var(--accent); }
.btn.danger { --b: var(--danger); }
.btn.small { padding: 7px 14px; min-height: 38px; font-size: .86rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 4px; }

/* ---------- Superfícies e formulários ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field small { color: var(--muted); font-size: .8rem; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; width: 100%; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
textarea { min-height: 100px; resize: vertical; }
input[type="color"] { padding: 4px; height: 48px; width: 64px; cursor: pointer; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: #f0ebfa; color: var(--ink-2); }
.badge.festa { background: #ffe1ee; color: var(--brand-ink); }
.badge.premium { background: var(--ink); color: var(--sun); }
.badge.ok { background: #dcf5ee; color: #0d7a62; }
.badge.no { background: #fde4e4; color: var(--danger); }

/* ---------- Marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; }
.logo-plus { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-left: 3px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85em; line-height: 1; transform: translateY(-1px) rotate(-8deg); }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 10px; height: 66px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line-2); }

/* ---------- Página de vendas ---------- */
.hero { position: relative; padding: 64px 0 56px; display: grid; gap: 48px; grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin-bottom: 22px; }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 30em; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-tags span { font-weight: 600; font-size: .88rem; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); }
.hero-art { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-art .blob { position: absolute; inset: 6% 2% 2% 8%; border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; background: var(--sun); transform: rotate(-6deg); }
.hero-art .confetti { position: absolute; inset: 0; pointer-events: none; }
.phone { position: relative; width: min(300px, 82%); aspect-ratio: 9 / 18.5; border-radius: 42px; background: var(--ink); padding: 9px; box-shadow: var(--shadow-2); transform: rotate(3deg); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 24px; } .hero-art { min-height: 480px; } }
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.feature { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line-2); }
.feature .ic { font-size: 1.7rem; margin-bottom: 10px; }
.feature h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .96rem; max-width: 28em; }
.types-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.types-strip span { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); font-weight: 700; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.steps li { list-style: none; counter-increment: s; padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.1rem var(--display); margin-bottom: 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.featured { border-color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.plan .tag { position: absolute; top: -14px; right: 22px; background: var(--sun); color: var(--ink); font-size: .8rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.plan .price { font-family: var(--display); font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.plan .price small { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; flex: 1; align-content: start; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "+"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #ffe1ee; color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; font-size: .85rem; line-height: 1; }
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 36px; padding: 56px 32px; text-align: center; }
.cta-band h2 { position: relative; }
.cta-band p { color: #cfc4ea; position: relative; }
.cta-band .btn { position: relative; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--confetti-svg); background-size: 260px; opacity: .5; }
.footer { padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }

/* ---------- Painel ---------- */
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 30px 0 22px; }
.page-head h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); margin: 0; }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; padding-bottom: 56px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow-1); transition: transform .15s; }
.event-card:hover { transform: translateY(-3px); }
.event-card .thumb { position: relative; aspect-ratio: 16 / 10; background: var(--accent, var(--brand)) center / cover no-repeat; }
.event-card .thumb .badge { position: absolute; left: 12px; top: 12px; background: #fff; }
.event-card .body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.event-card .body b { font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; }
.event-card.new-card { border: 2px dashed var(--line-2); background: transparent; box-shadow: none; }
.event-card .new { flex: 1; display: grid; place-items: center; align-content: center; gap: 10px; min-height: 250px; color: var(--ink-2); font-weight: 700; }
.event-card .new i { font-style: normal; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; font: 700 .93rem var(--sans); color: var(--ink-2); padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--ink); color: #fff; }
.editor-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding-bottom: 64px; }
.editor-layout > * { min-width: 0; }
.editor-layout aside { position: sticky; top: 86px; }
@media (max-width: 960px) { .editor-layout { grid-template-columns: 1fr; } .editor-layout aside { position: static; } }
.form-section { display: grid; gap: 16px; }
.form-section + .form-section { margin-top: 30px; padding-top: 30px; border-top: 1.5px dashed var(--line-2); }
.form-section h3 { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.cover-drop { position: relative; aspect-ratio: 16 / 9; border: 2px dashed var(--line-2); border-radius: var(--r-md); display: grid; place-items: center; text-align: center; color: var(--ink-2); cursor: pointer; overflow: hidden; background: #faf7ff center / cover no-repeat; padding: 16px; }
.cover-drop.has { border-style: solid; border-color: transparent; color: transparent; }
.cover-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cover-drop .change { position: absolute; bottom: 12px; right: 12px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 520px) { .type-picker { grid-template-columns: 1fr 1fr; } .type-picker label { font-size: .84rem; padding: 9px 10px; } }
.type-picker label { position: relative; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; cursor: pointer; background: #fff; }
.type-picker input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.type-picker label:has(input:checked) { border-color: var(--ink); background: #f5f1ff; }
.type-picker label:has(input:focus-visible) { outline: 3px solid var(--sun); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 600; }
@media (max-width: 520px) { .stat { padding: 12px; } .stat b { font-size: 1.6rem; } .stat span { font-size: .74rem; } .table th, .table td { padding: 10px; font-size: .86rem; } }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
.table th { background: #f7f4fd; font-size: .82rem; color: var(--ink-2); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.qr-box { display: grid; place-items: center; gap: 10px; text-align: center; }
.qr-box img { width: 200px; height: 200px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.copy-line { display: flex; gap: 8px; }
.copy-line input { font-size: .9rem; }
.upgrade { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.upgrade::before { content: ""; position: absolute; inset: 0; background-image: var(--confetti-svg); background-size: 200px; opacity: .35; pointer-events: none; }
.upgrade > * { position: relative; }
.upgrade h3 { color: #fff; }
.upgrade p { color: #d8cff0; font-size: .93rem; }
.notice { background: #fff7dc; border: 1.5px solid #f3d886; color: #6d5306; border-radius: var(--r-md); padding: 14px 16px; font-size: .93rem; }
.share-preview { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #f3f8ef; }
.share-preview img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--line); }
.share-preview div { padding: 10px 12px; font-size: .86rem; }
.share-preview b { display: block; }

/* ---------- Convite ---------- */
body.invite { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.inv-hero { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: 56px 20px 92px; text-align: center; isolation: isolate; }
.inv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--deco-svg, none); background-size: var(--deco-size, 240px); opacity: .9; }
.inv-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(transparent, rgba(0,0,0,.18)); }
.inv-hero .flags { position: absolute; left: 0; right: 0; top: 0; height: 64px; background-image: var(--flags-svg); background-size: 220px 64px; background-repeat: repeat-x; }
.inv-hero .inner { width: min(640px, 100%); margin: 0 auto; }
.inv-photo { width: min(400px, 86%); margin: 18px auto 30px; padding: 10px 10px 34px; background: #fff; border-radius: 6px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.45); transform: rotate(-2.5deg); }
.inv-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 3px; }
.inv-hero .kicker { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .95rem; background: rgba(255,255,255,.18); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.inv-hero h1 { font-size: clamp(2.6rem, 11vw, 5rem); font-weight: 800; letter-spacing: -.045em; margin: 14px 0 12px; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.inv-hero .when { font-size: 1.12rem; font-weight: 600; opacity: .96; }
.style-elegante .inv-hero h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.02em; font-variation-settings: normal; }
.inv-body { width: min(640px, 100% - 28px); margin: -56px auto 0; position: relative; z-index: 2; display: grid; gap: 16px; padding-bottom: 64px; }
.inv-card { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-1); }
.inv-card h2 { font-size: 1.7rem; }
.inv-card .msg { font-size: 1.16rem; line-height: 1.6; color: var(--ink-2); text-align: center; margin: 0; white-space: pre-line; text-wrap: pretty; }
.style-elegante .inv-card .msg { font-family: "Fraunces", Georgia, serif; font-size: 1.22rem; }
/* O ingresso: o cartão "quando e onde" tem picote nas laterais */
.ticket { --notch: 16px; position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--cut, 132px), transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--cut, 132px), transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 var(--cut, 132px), transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--cut, 132px), transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket-top { padding: 26px 26px 22px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; min-height: 132px; border-bottom: 2px dashed var(--line-2); }
.date-block { width: 84px; text-align: center; border-radius: var(--r-md); overflow: hidden; border: 2px solid var(--ink); }
.date-block .m { background: var(--accent); color: #fff; font-weight: 800; font-size: .82rem; padding: 4px 0; }
.date-block .d { font: 800 2.3rem/1.15 var(--display); letter-spacing: -.04em; padding: 2px 0 4px; }
.ticket-top b { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.ticket-top span { color: var(--ink-2); }
.ticket-body { padding: 22px 26px 26px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.countdown div { background: color-mix(in srgb, var(--accent) 9%, #fff); border-radius: var(--r-md); padding: 12px 4px; }
.countdown b { display: block; font: 800 clamp(1.7rem, 7vw, 2.4rem)/1.05 var(--display); color: var(--accent); letter-spacing: -.04em; }
.countdown span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.info-line { display: flex; gap: 14px; align-items: flex-start; }
.info-line + .info-line { margin-top: 14px; }
.info-line .ic { flex: 0 0 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, #fff); font-size: 1.2rem; }
.info-line b { display: block; }
.info-line span { color: var(--ink-2); font-size: .97rem; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 420px) { .btn-row { grid-template-columns: 1fr; } }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-md); margin-top: 18px; background: #eee; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px 10px; text-align: center; font-weight: 700; cursor: pointer; transition: transform .12s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); transform: scale(1.02); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--sun); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.stepper output { font: 800 1.5rem var(--display); min-width: 30px; text-align: center; }
.done-box { text-align: center; padding: 10px 0; }
.done-box .big { font-size: 3.2rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); cursor: pointer; }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph.is-hidden { opacity: .35; }
.photo-grid .ph .tools { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 6px; justify-content: flex-end; }
.photo-grid .ph .tools button { background: rgba(36,16,71,.8); color: #fff; border: 0; border-radius: 8px; padding: 5px 8px; font-size: .76rem; font-weight: 600; cursor: pointer; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.inv-footer { text-align: center; color: var(--muted); font-size: .88rem; padding: 6px 0 28px; }
.inv-footer a { font-weight: 700; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 8, 40, .92); z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 82vh; border-radius: 12px; }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; }
.demo-ribbon { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-1); }
.demo-ribbon a { color: var(--sun); font-weight: 800; }
.burst { position: fixed; left: 50%; top: 50%; pointer-events: none; z-index: 120; }
.burst i { position: absolute; font: 800 22px var(--display); font-style: normal; animation: burst 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes burst { from { transform: translate(0,0) rotate(0) scale(.4); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0; } }

/* ---------- Telão ---------- */
body.telao { background: #000; overflow: hidden; }
.tv { position: fixed; inset: 0; background: #0c0518; color: #fff; cursor: none; }
.tv .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; display: grid; place-items: center; }
.tv .slide.on { opacity: 1; }
.tv .slide .bg { position: absolute; inset: -40px; background: center / cover; filter: blur(40px) brightness(.45); }
.tv .slide img { position: relative; max-width: 88vw; max-height: 84vh; object-fit: contain; border: 12px solid #fff; border-bottom-width: 48px; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.04) rotate(-1deg); } to { transform: scale(1) rotate(0); } }
.tv .cap { position: absolute; left: 4vw; bottom: 4vh; font-size: clamp(1rem, 2vw, 1.6rem); text-shadow: 0 2px 10px rgba(0,0,0,.7); z-index: 2; }
.tv .cap b { display: block; font-family: var(--display); font-size: 1.3em; }
.tv .qr { position: absolute; right: 3vw; bottom: 3vh; z-index: 3; background: #fff; color: var(--ink); border-radius: 20px; padding: 14px; text-align: center; width: clamp(150px, 15vw, 240px); }
.tv .qr img { width: 100%; }
.tv .qr span { font-weight: 800; font-size: clamp(.8rem, 1vw, 1rem); display: block; margin-top: 6px; }
.tv .title { position: absolute; top: 3vh; left: 4vw; z-index: 3; font: 800 clamp(1.3rem, 2.6vw, 2.2rem) var(--display); letter-spacing: -.03em; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.tv .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px; }
.tv .empty h1 { font-size: clamp(2rem, 5vw, 4rem); }
.tv .controls { position: absolute; top: 3vh; right: 3vw; z-index: 4; display: flex; gap: 8px; opacity: 0; transition: opacity .3s; cursor: default; }
.tv:hover .controls { opacity: 1; }
.tv.show-cursor { cursor: default; }

/* ---------- Diversos ---------- */
.spinner { width: 40px; height: 40px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, 100% - 32px); }
.toast { background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 16px; box-shadow: var(--shadow-2); font-size: .94rem; font-weight: 600; transition: opacity .4s, transform .4s; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }
.google-btn { --b: #fff; --t: #1f1f1f; border-color: var(--line-2); }
.google-btn svg { width: 18px; height: 18px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(36, 16, 71, .5); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-card { position: relative; background: #fff; border-radius: var(--r-lg); padding: 26px; width: min(420px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow-2); }
.modal-x { position: absolute; top: 14px; right: 14px; border: 0; background: #f0ebfa; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: .9rem; color: var(--ink); }
.modal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: .94rem; color: var(--ink-2); }
.modal-list li::before { content: "+"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.modal-step { margin-top: 8px; font-weight: 700; font-size: .96rem; }
.modal-step code { background: #f0ebfa; padding: 2px 8px; border-radius: 6px; font-size: .9rem; }
@media (max-width: 520px) { .tabs { display: flex; width: 100%; } .tabs button { flex: 1; padding: 10px 6px; font-size: .84rem; } }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
