:root {
  --bg: #0b0908;
  --bg-2: #12100e;
  --card: #1a1613;
  --card-2: #221d18;
  --line: rgba(201, 164, 92, .22);
  --line-2: rgba(239, 230, 214, .1);
  --gold: #c9a45c;
  --gold-2: #e6cc8f;
  --gold-3: #8f7038;
  --text: #f1e8d8;
  --muted: #b1a491;
  --soft: #7f7464;
  --danger: #e08a7a;
  --ok: #9fc79a;
  --radius: 18px;
  --serif: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --serif-2: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background:
    var(--bg);
  background-attachment: fixed;
  color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ── Estrutura ── */
.shell { max-width: 760px; margin: 0 auto; padding: 0 18px calc(var(--nav-h) + var(--safe-b) + 90px); }
.shell.wide { max-width: 1100px; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 18px 12px; margin: 0 -18px 8px;
  background: linear-gradient(to bottom, rgba(11, 9, 8, .97), rgba(11, 9, 8, .86));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2);
}
.logo { font-family: var(--serif); letter-spacing: .32em; font-size: 15px; color: var(--gold-2); text-decoration: none; white-space: nowrap; }
.logo small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: var(--soft); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.credits {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 40px;
  border: 1px solid var(--line); color: var(--gold-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: rgba(201, 164, 92, .07);
}
.credits.zero { color: var(--danger); border-color: rgba(224, 138, 122, .4); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2);
  background: var(--card); color: var(--gold-2); text-decoration: none; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(14, 12, 10, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bottomnav a, .bottomnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; font-size: 12.5px; letter-spacing: .06em; font-weight: 600;
  background: none; border: 0; cursor: pointer;
}
.bottomnav svg { width: 24px; height: 24px; }
.bottomnav .on { color: var(--gold-2); }
.bottomnav .on svg { filter: drop-shadow(0 0 8px rgba(230, 204, 143, .35)); }

/* ── Tipografia ── */
h1, h2, h3, .title { font-family: var(--serif); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(24px, 6.4vw, 34px); color: var(--text); }
h2 { font-size: clamp(18px, 4.8vw, 22px); color: var(--gold-2); }
h3 { font-size: 16px; color: var(--text); letter-spacing: .1em; }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lead { font-family: var(--serif-2); font-size: 21px; line-height: 1.45; color: var(--muted); font-style: italic; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.center { text-align: center; }
.page-head { padding: 22px 0 16px; display: grid; gap: 10px; }
.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 6px 0; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.code { font-family: var(--serif); letter-spacing: .2em; color: var(--gold); font-size: 13px; }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px; border-radius: 60px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: transform .15s ease, filter .2s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { background: linear-gradient(135deg, #ecd497, #c9a45c 55%, #a8843f); color: #17120b; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--gold-2); }
.btn-ghost:hover { background: rgba(201, 164, 92, .08); }
.btn-dark { background: var(--card-2); border-color: var(--line-2); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(224, 138, 122, .45); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 13px; letter-spacing: .1em; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-btn { background: none; border: 0; color: var(--gold-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 0; font-size: 15px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1 1 auto; }

/* ── Formulários ── */
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.input, textarea.input, select.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: 17px;
}
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; font-size: 15px; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .15); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(201, 164, 92, .05); cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--gold); flex: none; margin-top: 2px; }
.error { color: var(--danger); font-size: 15px; }

/* ── Cartões ── */
.card { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; }
.card.gold { border-color: var(--line); }
.search { position: relative; margin: 4px 0 18px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--soft); }
.search .input { padding-left: 48px; border-radius: 60px; }

.cat-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.col-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .col-grid { grid-template-columns: 1fr 1fr; } }
.col-card {
  position: relative; display: block; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--text);
  aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--card);
}
.col-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.col-card:hover img { transform: scale(1.04); }
.col-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 6, 5, .95) 8%, rgba(8, 6, 5, .1) 60%); }
.col-card .info { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 4px; }
.col-card .info .title { font-size: 20px; letter-spacing: .16em; }
.col-card .count { font-size: 14px; color: var(--gold-2); letter-spacing: .08em; }

.style-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .style-grid { grid-template-columns: repeat(3, 1fr); } }
.style-card { display: grid; gap: 8px; text-decoration: none; color: var(--text); }
.style-card .ph { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); background: var(--card); }
.style-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.style-card .nm { font-family: var(--serif); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }

.hero-photo { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 0 0; }
.back svg { width: 18px; height: 18px; }

/* ── Etapas ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 22px; }
.steps div { display: grid; gap: 6px; justify-items: center; font-size: 12.5px; color: var(--soft); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; text-align: center; }
.steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--serif); font-size: 15px; }
.steps .on { color: var(--gold-2); }
.steps .on b { background: var(--gold); color: #17120b; border-color: var(--gold); }
.steps .done b { border-color: var(--gold); color: var(--gold-2); }

.slots { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.slot { display: grid; gap: 8px; text-align: center; }
.slot .box {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; border: 1.5px dashed var(--line); background: rgba(201, 164, 92, .04);
  display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--gold);
}
.slot .box.filled { border-style: solid; }
.slot .box img { width: 100%; height: 100%; object-fit: cover; }
.slot .box svg { width: 34px; height: 34px; }
.slot .lbl { font-size: 14px; font-weight: 700; }
.slot .req { font-size: 12px; color: var(--soft); }
.slot .acts { display: flex; gap: 6px; justify-content: center; }
.slot .acts button { background: none; border: 0; color: var(--gold-2); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 4px; }
.slot .acts button.del { color: var(--danger); }
.slot .busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 9, 8, .75); }

.tips { display: grid; gap: 10px; grid-template-columns: 1fr; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.tips li { display: flex; gap: 8px; align-items: flex-start; }
.tips .yes { color: var(--ok); } .tips .no { color: var(--danger); }
@media (max-width: 520px) { .tips { grid-template-columns: 1fr; } }

.choice { display: grid; gap: 14px; }
.choice button {
  display: grid; grid-template-columns: 56px 1fr 26px; gap: 14px; align-items: center; text-align: left;
  padding: 20px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer;
}
.choice button .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(201, 164, 92, .1); color: var(--gold-2); }
.choice button .ic svg { width: 28px; height: 28px; }
.choice button strong { display: block; font-size: 17px; margin-bottom: 2px; }
.choice button span { color: var(--muted); font-size: 15px; }
.choice button .radio { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); }
.choice button.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(201, 164, 92, .12), var(--card)); }
.choice button.on .radio { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 45%, transparent 50%); }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 18px; cursor: pointer; }
.thumbs .add { display: grid; place-items: center; border: 1.5px dashed var(--line); color: var(--gold); background: none; cursor: pointer; font-size: 30px; }

.summary { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.summary img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 96px; }

/* ── Espera ── */
.waiting {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px;
  background: rgba(8, 6, 5, .97);
  text-align: center; animation: fade .4s ease;
}
.waiting .inner { display: grid; gap: 22px; justify-items: center; max-width: 380px; }
.ring { width: 130px; height: 130px; position: relative; }
.ring::before, .ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; }
.ring::before { border-top-color: var(--gold-2); border-right-color: rgba(230, 204, 143, .3); animation: spin 2.4s linear infinite; }
.ring::after { inset: 14px; border-bottom-color: var(--gold); border-left-color: rgba(201, 164, 92, .25); animation: spin 3.6s linear infinite reverse; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); color: var(--gold-2); font-size: 34px; }
.waiting .phrase { font-family: var(--serif-2); font-style: italic; font-size: 23px; color: var(--text); min-height: 64px; transition: opacity .5s ease; }
.waiting .note { color: var(--soft); font-size: 14.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(230, 204, 143, .25); border-top-color: var(--gold-2); animation: spin .9s linear infinite; }

/* ── Resultado e variações ── */
.result-photo { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); background: var(--card); }
.result-photo img { width: 100%; }
.badge-demo { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 30px; font-size: 12px; letter-spacing: .1em; background: rgba(0, 0, 0, .65); color: var(--gold-2); border: 1px solid var(--line); }
.var-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .var-grid { grid-template-columns: repeat(3, 1fr); } }
.var-card { display: grid; gap: 8px; }
.var-card .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.var-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.var-card .ph.empty { border-style: dashed; border-color: var(--line); color: var(--gold); background: rgba(201, 164, 92, .04); }
.var-card .ph.empty svg { width: 30px; height: 30px; }
.var-card .nm { font-family: var(--serif); font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.progress { display: flex; align-items: center; gap: 12px; }
.progress .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }

/* ── Galeria ── */
.ens-card { display: grid; gap: 12px; }
.ens-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal-grid button { padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); cursor: pointer; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; }
.empty-state { text-align: center; padding: 50px 10px; display: grid; gap: 16px; justify-items: center; }
.empty-state svg { width: 54px; height: 54px; color: var(--gold); }

/* ── Visualizador e janelas ── */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(5, 4, 3, .9); display: flex; align-items: flex-end; justify-content: center; animation: fade .25s ease; }
@media (min-width: 700px) { .overlay { align-items: center; } }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 26px 26px 0 0; padding: 26px 22px calc(26px + var(--safe-b)); display: grid; gap: 16px;
}
@media (min-width: 700px) { .sheet { border-radius: 26px; } }
.sheet.big { max-width: 760px; }
.viewer { position: fixed; inset: 0; z-index: 95; background: #050403; display: grid; grid-template-rows: auto 1fr auto; animation: fade .2s ease; }
.viewer header { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; }
.viewer .img { display: grid; place-items: center; padding: 0 12px; min-height: 0; }
.viewer .img img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 12px; }
.viewer footer { display: flex; gap: 10px; padding: 14px 16px calc(14px + var(--safe-b)); }
.viewer footer .btn { flex: 1; }

/* ── WhatsApp ── */
.wa {
  position: fixed; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1fa855; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .7); text-decoration: none;
}
.wa svg { width: 30px; height: 30px; }
.wa.solo { bottom: calc(18px + var(--safe-b)); }

/* ── Login ── */
.login { min-height: 100dvh; display: grid; align-content: center; gap: 28px; padding: 40px 22px; max-width: 440px; margin: 0 auto; }
.login .brand { text-align: center; display: grid; gap: 12px; }
.login .brand .mark { font-family: var(--serif); font-size: clamp(30px, 9vw, 40px); letter-spacing: .28em; color: var(--gold-2); margin-right: -.28em; }

/* ── Guia ── */
details.faq { border-bottom: 1px solid var(--line-2); padding: 4px 0; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
details.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--gold); }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 0 0 16px; color: var(--muted); }
.step-list { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step-list li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-2); font-family: var(--serif); font-size: 18px; }

/* ── Admin ── */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.tabs button { flex: none; min-height: 44px; padding: 10px 18px; border-radius: 40px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14.5px; }
.tabs button.on { background: var(--gold); color: #17120b; border-color: var(--gold); }
.adm-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); }
.adm-item.off { opacity: .5; }
.adm-item img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.adm-item .t { font-weight: 700; line-height: 1.3; }
.adm-item .s { font-size: 13.5px; color: var(--muted); }
.adm-tools { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.adm-tools button { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--gold-2); cursor: pointer; font-size: 14px; }
.adm-cat { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 16px; }
.adm-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 30px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line-2); }
.pill.ok { color: var(--ok); border-color: rgba(159, 199, 154, .4); }
.pill.no { color: var(--danger); border-color: rgba(224, 138, 122, .4); }
.pill.warn { color: var(--gold-2); border-color: var(--line); }
.client { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); }
.client .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.client .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.client .meta b { color: var(--text); font-weight: 600; }
.img-pick { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.img-pick img, .img-pick .ph { width: 90px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); }
.status-list { display: grid; gap: 8px; font-size: 15px; }
.status-list div { display: flex; justify-content: space-between; gap: 10px; }
.copy-box { word-break: break-all; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); font-size: 13.5px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 24px); transform: translate(-50%, 20px);
  background: var(--card-2); color: var(--text); border: 1px solid var(--line); padding: 14px 22px; border-radius: 40px;
  z-index: 200; opacity: 0; pointer-events: none; transition: all .3s ease; max-width: calc(100% - 40px); text-align: center; font-size: 15px;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.fade-in { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; } }

/* celular estreito: o topo cabe inteiro */
@media (max-width: 420px) {
  .topbar { gap: 8px; }
  .logo { letter-spacing: .2em; font-size: 14px; min-width: 0; }
  .logo small { font-size: 9px; letter-spacing: .14em; }
  .top-actions { gap: 6px; flex-shrink: 0; }
  .credits { padding: 6px 10px; font-size: 13px; gap: 4px; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 350px) { .logo small { display: none; } }

/* ── Área do dono: Custos e Teste de qualidade ── */
.cost-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cost-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.cost-tile b { font-family: var(--serif-2); font-size: 26px; color: var(--gold-2); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cost-table th, .cost-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; white-space: nowrap; }
.cost-table th { color: var(--muted); font-weight: 600; }
.bench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.bench-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.bench-card.best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.bench-card .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--card); display: grid; place-items: center; }
.bench-card .ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.bench-card input[type=radio] { accent-color: var(--gold); width: 18px; height: 18px; }

/* Aviso de configuração (Área do dono) e avisos da bancada */
.config-alert { border: 1px solid var(--danger); background: rgba(224, 138, 122, .1); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; display: grid; gap: 8px; }
.config-alert > b { color: var(--danger); font-size: 16px; }
.config-alert p { margin: 0; }
.config-alert code { font-size: 13px; }
.bench-warn { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--gold-2); }

/* Fotos da pasta de testes (bancada) */
.thumbs .t.pasta { position: relative; padding: 0; overflow: hidden; cursor: pointer; }
.thumbs .t.pasta span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; background: rgba(0, 0, 0, .6); color: #fff; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Outras versões no ensaio (com o nome de cada foto) */
.gal-grid button.tent { position: relative; }
.gal-grid button.tent span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; background: rgba(0, 0, 0, .6); color: #fff; padding: 3px 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.var-card .link-btn { justify-self: center; display: inline-flex; gap: 6px; align-items: center; }
.var-card .link-btn svg { width: 14px; height: 14px; }

/* Aviso de privacidade */
.privacy { gap: 10px; text-align: left; }
.privacy h3 { margin: 10px 0 0; font-size: 15px; color: var(--gold-2); letter-spacing: .04em; }
.privacy p { margin: 0; line-height: 1.6; color: var(--muted); }
.privacy ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); line-height: 1.6; }
.privacy b { color: var(--text); }
