/* =====================================================================
   Tema escuro premium — vitrine + pré-cadastro + painel
   ===================================================================== */
:root {
    --bg: #070708;
    --bg-2: #0d0d0f;
    --surface: #141417;
    --surface-2: #1b1b1f;
    --surface-3: #232328;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f5f5f7;
    --text-2: #c7c7cc;
    --muted: #8e8e93;
    --gold: #d9b98c;
    --gold-2: #b8925f;
    --gold-soft: rgba(217, 185, 140, .12);
    --blue: #2f8bff;
    --green: #30d158;
    --green-soft: rgba(48, 209, 88, .14);
    --red: #ff453a;
    --red-soft: rgba(255, 69, 58, .14);
    --amber: #ffb340;
    --amber-soft: rgba(255, 179, 64, .14);
    --violet: #a78bfa;
    --violet-soft: rgba(167, 139, 250, .14);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .55);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 980px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.hidden, [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.grad {
    background: linear-gradient(120deg, #fff 0%, var(--gold) 55%, #8a6a45 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 7, 8, .72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 1.1rem; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(145deg, #2a2a2f, #0f0f11); border: 1px solid var(--line-2);
    color: var(--gold); font-size: 1rem;
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: .92rem; transition: .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, opacity .2s;
    white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-gold { background: linear-gradient(135deg, #f1d7b0, var(--gold) 45%, var(--gold-2)); color: #1a1208; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,.25); }
.btn-dark { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-dark:hover { background: var(--surface-3); }
.btn-green { background: var(--green); color: #00210a; }
.btn-danger { background: var(--red-soft); color: #ff8a82; border-color: rgba(255,69,58,.3); }
.btn-danger:hover { background: rgba(255,69,58,.24); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-xs { padding: 5px 10px; font-size: .78rem; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; }
.hero::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 680px; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(217,185,140,.20), transparent 70%) 50% 40% / 900px 520px no-repeat,
        radial-gradient(closest-side, rgba(47,139,255,.10), transparent 70%) 80% 10% / 600px 400px no-repeat;
}
.hero > * { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.045em; margin: 18px auto 18px; max-width: 900px; font-weight: 700; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-2); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-perks { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 48px; color: var(--muted); font-size: .9rem; }
.hero-perks span { display: inline-flex; align-items: center; gap: 8px; }
.hero-perks i { color: var(--gold); }

/* ---------- destaques ---------- */
/* fotos reais (não recortadas): a foto preenche a própria moldura. Card estreito = texto em cima e foto
   embaixo; card largo (ex.: um destaque só) = texto à esquerda e foto à direita (container query). */
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 72px; }
.feat {
    display: block; container-type: inline-size; border-radius: 28px; overflow: hidden;
    background: radial-gradient(120% 90% at 0% 0%, #1f1f24 0%, #0d0d0f 70%); border: 1px solid var(--line);
    transition: border-color .3s, transform .3s; color: var(--text);
}
.feat:hover { border-color: rgba(217,185,140,.35); transform: translateY(-3px); }
.feat-in { display: flex; flex-direction: column; height: 100%; }
.feat .top { padding: 28px 28px 20px; }
.feat h3 { margin: 6px 0 4px; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.feat .specs { color: var(--text-2); }
.feat .price { margin-top: 14px; font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; }
.feat-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold); font-weight: 550; font-size: .95rem; }
.feat-cta i { transition: transform .3s; }
.feat:hover .feat-cta i { transform: translateX(4px); }
.feat .foto {
    position: relative; flex: 1; min-height: 280px; margin: 0 14px 14px; border-radius: 20px; overflow: hidden;
    background: #151518; display: grid; place-items: center;
}
.feat .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feat .foto > i { font-size: 4rem; color: var(--muted); }
.feat:hover .foto img { transform: scale(1.04); }
@container (min-width: 680px) {
    .feat-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 400px; }
    .feat .top { padding: 48px; align-self: center; }
    .feat h3 { font-size: clamp(2rem, 5cqi, 2.8rem); }
    .feat .price { font-size: 1.7rem; }
    .feat .foto { margin: 14px; min-height: 0; }
}

/* ---------- seção ---------- */
.section { padding: 32px 0 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.035em; margin: 0; line-height: 1.1; }

/* filtros */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
    padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    color: var(--text-2); font-size: .88rem; cursor: pointer; transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }
.search { position: relative; }
.search input { padding: 9px 16px 9px 38px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: 220px; outline: none; }
.search input:focus { border-color: var(--gold); }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.select-pill { padding: 9px 34px 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238e8e93' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.1 8 11.5l6.4-6.4-.9-.9L8 9.7 2.5 4.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }

/* ---------- grade de produtos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
    position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(90% 70% at 50% 30%, #222227, #111113); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .placeholder { font-size: 3.4rem; color: #2f2f35; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 650; font-size: 1.06rem; letter-spacing: -.015em; }
.card-sub { color: var(--muted); font-size: .86rem; }
.card-price { margin-top: auto; padding-top: 12px; }
.card-price .from { color: var(--muted); font-size: .8rem; }
.card-price .value { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.card-price .inst { color: var(--gold); font-size: .86rem; font-weight: 500; }
.card.is-off .card-media img { filter: grayscale(.85) brightness(.55); }
.card.is-off .card-price .value { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    background: rgba(20,20,23,.78); backdrop-filter: blur(10px); border: 1px solid var(--line-2); color: var(--text-2); }
.badge-gold { color: var(--gold); border-color: rgba(217,185,140,.35); background: rgba(40,30,18,.75); }
.badge-green { color: var(--green); border-color: rgba(48,209,88,.3); background: rgba(10,35,18,.75); }
.badge-red { color: #ff8a82; border-color: rgba(255,69,58,.35); background: rgba(45,12,10,.78); }
.badge-amber { color: var(--amber); border-color: rgba(255,179,64,.3); background: rgba(45,30,8,.78); }
.badge-blue { color: #7cb7ff; border-color: rgba(47,139,255,.3); background: rgba(8,24,45,.78); }
.badge-violet { color: var(--violet); border-color: rgba(167,139,250,.3); background: rgba(28,20,48,.78); }
.badge-muted { color: var(--muted); }
.ribbon { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; }
.ribbon span { padding: 8px 22px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); font-weight: 700; letter-spacing: .2em; font-size: .78rem; text-transform: uppercase; }

.empty { text-align: center; padding: 80px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty i { font-size: 2.6rem; display: block; margin-bottom: 12px; color: #3a3a40; }

/* ---------- página do aparelho ---------- */
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: .86rem; padding: 24px 0 8px; }
.breadcrumb a:hover { color: var(--text); }
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; padding: 16px 0 72px; align-items: start; }
@media (max-width: 920px) { .product { grid-template-columns: 1fr; gap: 28px; } }
.gallery { position: sticky; top: 88px; }
@media (max-width: 920px) { .gallery { position: static; } }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: radial-gradient(90% 70% at 50% 30%, #222227, #0f0f11); border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,0,0,.5); backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: .2s; z-index: 2; }
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
@media (hover: none) { .gallery-nav { opacity: 1; } }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface); cursor: pointer; opacity: .6; transition: .2s; }
.thumbs button.active, .thumbs button:hover { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 10px; }
.product-info .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags .badge { position: static; }
.price-block { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-big { font-size: 2.2rem; font-weight: 700; letter-spacing: -.035em; }
.price-pix { color: var(--green); font-weight: 600; font-size: .95rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 24px 0; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.spec .k { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; }
.spec .v { font-weight: 600; margin-top: 2px; }
.battery { display: flex; align-items: center; gap: 8px; }
.battery .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.battery .bar span { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.description { color: var(--text-2); white-space: pre-line; margin: 0 0 28px; }

/* ---------- simulador ---------- */
.sim {
    background: linear-gradient(180deg, #17171b, #111114); border: 1px solid var(--line-2); border-radius: 26px; padding: 26px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.sim-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.sim-title h2 { font-size: 1.25rem; margin: 0; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.sim-title h2 i { color: var(--gold); }
.label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.segmented button { border: 0; background: transparent; padding: 10px 8px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: .92rem; transition: .2s; }
.segmented button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.segmented button:disabled { opacity: .3; cursor: not-allowed; }
.sim-row { margin-bottom: 22px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; }
.range-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.range-value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
/* slider: trilho grosso com a parte escolhida em dourado (--pct vem do simulador.js) e alça grande */
input[type=range] {
    --pct: 50%;
    width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 99px; outline: none; margin: 18px 0 8px; cursor: pointer;
    background: linear-gradient(90deg, var(--gold-2), var(--gold) var(--pct), rgba(255,255,255,.12) var(--pct));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 6px solid var(--gold);
    cursor: grab; box-shadow: 0 0 0 6px rgba(217,185,140,.18), 0 4px 14px rgba(0,0,0,.6); transition: box-shadow .2s, transform .15s;
}
input[type=range]::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 6px solid var(--gold);
    cursor: grab; box-shadow: 0 0 0 6px rgba(217,185,140,.18), 0 4px 14px rgba(0,0,0,.6);
}
input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(217,185,140,.25), 0 4px 14px rgba(0,0,0,.6); }
input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.08); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(217,185,140,.4); }
input[type=range]::-moz-range-track { background: transparent; }
.range-hint { margin-top: 8px; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.range-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money-input input { padding-left: 46px !important; }

.sim-result { margin-top: 6px; border-radius: 20px; padding: 22px; background: radial-gradient(120% 120% at 0% 0%, rgba(217,185,140,.14), transparent 60%), var(--bg-2); border: 1px solid rgba(217,185,140,.22); }
.sim-result .lbl { color: var(--muted); font-size: .86rem; }
.sim-result .parcela { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; margin: 4px 0 2px; }
.sim-result .parcela small { font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.sim-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.sim-lines div span { display: block; color: var(--muted); font-size: .78rem; }
.sim-lines div b { font-weight: 600; }
.sim-error { color: #ff8a82; font-size: .9rem; margin-top: 10px; }
.sim-note { color: var(--muted); font-size: .78rem; margin-top: 14px; display: flex; gap: 8px; }
.schedule { margin-top: 12px; max-height: 260px; overflow: auto; border-radius: 14px; border: 1px solid var(--line); }
.schedule table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.schedule th, .schedule td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.schedule th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.schedule td:last-child, .schedule th:last-child { text-align: right; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-size: .88rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

.unavailable { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: center; }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: .86rem; font-weight: 500; color: var(--text-2); }
.field .req { color: var(--gold); margin-left: 2px; }
.field .opt { color: var(--muted); font-size: .78rem; font-weight: 400; }
.field .hint { color: var(--muted); font-size: .8rem; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), .field select, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2);
    outline: none; transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238e8e93' viewBox='0 0 16 16'%3E%3Cpath d='M1.6 5.1 8 11.5l6.4-6.4-.9-.9L8 9.7 2.5 4.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field .err { color: #ff8a82; font-size: .8rem; display: none; }
.field.invalid .err { display: block; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; } .col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid > [class*=col-] { grid-column: span 12; } .form-grid > .col-2, .form-grid > .col-3, .form-grid > .col-4 { grid-column: span 6; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex: 0 0 auto; }
.yesno { display: flex; gap: 8px; }
.yesno label { flex: 1; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.yesno input { display: none; }
.yesno input:checked + span { color: var(--gold); }
.yesno label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- alertas ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); margin: 16px 0; font-size: .93rem; }
.alert i { font-size: 1.1rem; margin-top: 1px; }
.alert-ok { border-color: rgba(48,209,88,.3); background: var(--green-soft); } .alert-ok i { color: var(--green); }
.alert-warn { border-color: rgba(255,179,64,.3); background: var(--amber-soft); } .alert-warn i { color: var(--amber); }
.alert-err { border-color: rgba(255,69,58,.3); background: var(--red-soft); } .alert-err i { color: var(--red); }
.alert-info { border-color: rgba(217,185,140,.25); background: var(--gold-soft); } .alert-info i { color: var(--gold); }

/* ---------- pré-cadastro ---------- */
.wizard { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; padding: 32px 0 80px; align-items: start; }
@media (max-width: 920px) { .wizard { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; } }
.summary { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (max-width: 920px) { .summary { position: static; } }
.summary-head { display: flex; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.summary-head img, .summary-head .ph { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--surface-3); flex: 0 0 auto; display: grid; place-items: center; color: var(--muted); }
.summary-head .t { font-weight: 650; line-height: 1.25; }
.summary-body { padding: 18px; display: grid; gap: 10px; font-size: .9rem; }
.summary-body .row { display: flex; justify-content: space-between; gap: 12px; }
.summary-body .row span:first-child { color: var(--muted); }
.summary-body .big { padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid rgba(217,185,140,.2); text-align: center; }
.summary-body .big b { display: block; font-size: 1.6rem; letter-spacing: -.03em; }

.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps .s { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); position: relative; overflow: hidden; }
.steps .s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.steps .s.done::after, .steps .s.current::after { transform: scaleX(1); }
.step-label { color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
@media (max-width: 640px) { .panel { padding: 20px; border-radius: 20px; } }
.panel h2 { font-size: 1.6rem; letter-spacing: -.03em; margin: 6px 0 6px; }
.panel > p.muted { margin-top: 0; }
.wz-step { display: none; animation: fade .35s ease; }
.wz-step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.wz-actions .btn-primary, .wz-actions .btn-gold { margin-left: auto; }

.doc { border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; background: var(--bg-2); margin-bottom: 14px; transition: border-color .2s; }
.doc.ok { border-color: rgba(48,209,88,.35); }
.doc-head { display: flex; gap: 14px; align-items: flex-start; }
.doc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); font-size: 1.25rem; flex: 0 0 auto; }
.doc.ok .doc-icon { color: var(--green); background: var(--green-soft); }
.doc-title { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-hint { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.doc-files { display: grid; gap: 6px; margin-top: 12px; }
.doc-file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); font-size: .86rem; }
.doc-file i.bi-check-circle-fill { color: var(--green); }
.doc-file .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-file button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.doc-file button:hover { color: var(--red); }
.doc-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.progress { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; flex: 1; min-width: 100px; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.choice button { text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: .2s; }
.choice button i { font-size: 1.3rem; color: var(--gold); display: block; margin-bottom: 6px; }
.choice button small { display: block; color: var(--muted); }
.choice button.active { border-color: var(--gold); background: var(--gold-soft); }
.subdocs { margin-top: 14px; display: grid; gap: 10px; }
.subdoc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.subdoc .n { flex: 1; min-width: 140px; font-weight: 500; font-size: .92rem; }
.subdoc.ok { border-color: rgba(48,209,88,.3); }
.subdoc.ok .n::before { content: "\F26A"; font-family: "bootstrap-icons"; color: var(--green); margin-right: 8px; }
.review { display: grid; gap: 14px; }
.review-group { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.review-group h4 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); display: flex; justify-content: space-between; }
.review-group h4 button { text-transform: none; letter-spacing: 0; }
.review dl { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; word-break: break-word; }
@media (max-width: 520px) { .review dl { grid-template-columns: 1fr; } .review dd { margin-bottom: 6px; } }
.terms { max-height: 220px; overflow: auto; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: .86rem; white-space: pre-line; }
.resume-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- acompanhamento ---------- */
.track { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.status-hero { text-align: center; padding: 36px 24px; border-radius: 26px; background: radial-gradient(120% 100% at 50% 0%, #1d1d22, #0f0f11); border: 1px solid var(--line); }
.status-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 2rem; }
.status-hero h1 { font-size: 1.9rem; letter-spacing: -.03em; margin: 0 0 8px; }
.timeline { display: flex; justify-content: space-between; margin: 32px 0 8px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 15px; height: 2px; background: var(--surface-3); }
.timeline .t { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; font-size: .78rem; color: var(--muted); text-align: center; }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface-3); display: grid; place-items: center; font-size: .85rem; }
.timeline .t.done .dot { background: var(--gold); border-color: var(--gold); color: #1a1208; }
.timeline .t.done { color: var(--text-2); }
.timeline .t.current .dot { box-shadow: 0 0 0 6px var(--gold-soft); }
.timeline .t.fail .dot { background: var(--red); border-color: var(--red); color: #fff; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.history li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.history li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.history li:last-child::before { display: none; }
.history .hd { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--muted); margin-top: 4px; }
.history .hd.gold { border-color: var(--gold); background: var(--gold-soft); }
.history .hd.note { border-color: var(--violet); background: var(--violet-soft); }
.history .when { color: var(--muted); font-size: .78rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .88rem; background: var(--bg-2); }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(37,211,102,.35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; max-width: 92vw; object-fit: contain; border-radius: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%); z-index: 120; padding: 12px 20px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .3s; max-width: calc(100vw - 32px); font-size: .92rem; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(255,69,58,.4); }

/* resumo de validação vazio (o tag helper sempre gera a div) não aparece */
.validation-summary-valid { display: none !important; }
