
:root {
    --bg: #150b0b;
    --card: #2a1c1c;
    --line: #4a2f2b;
    --text: #f3ece8;
    --muted: #a89690;
    --orange: #e8913a;
    --red: #c8372d;
    --red2: #a02820;

    color: var(--text);
    background: var(--bg);
    font-synthesis: none;
    text-rendering: optimizelegibility;
    -webkit-font-smoothing: antialiased;
    font-family: Barlow, system-ui, sans-serif;
}

/* ===== CONFIGURAÇÕES GERAIS ===== */

* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(
        900px 500px at 50% -10%,
        #5a2118 0%,
        transparent 70%
    ), var(--bg);
    justify-content: center;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px 40px;
    display: flex;
}

button,
input,
textarea {
    font: inherit;
}

.wrap {
    width: 100%;
    max-width: 352px;
}

/* ===== BADGE E LOGO ===== */

.badge {
    border: 1px solid var(--line);
    width: max-content;
    color: var(--muted);
    letter-spacing: .18em;
    text-transform: uppercase;
    background: #2a1c1c80;
    border-radius: 99px;
    margin: 0 auto 14px;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    display: block;
}

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;

    background: url("/img/img2.jpg") center / contain no-repeat;

    border: none;
    border-radius: 18px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 0;
    color: transparent;
}

/* ===== TÍTULOS E TEXTOS ===== */

h1,
h2,
.live-info h3 {
    font-family: Bebas Neue, Impact, sans-serif;
    font-weight: 400;
}

h1 {
    letter-spacing: .01em;
    text-align: center;
    margin: 8px 0 10px;
    font-size: 44px;
    line-height: 1;
}

h1 span {
    color: var(--orange);
}

.sub {
    max-width: 270px;
    color: var(--muted);
    text-align: center;
    margin: 0 auto 18px;
    font-size: 12px;
    line-height: 1.4;
}

h2 {
    letter-spacing: .02em;
    margin: 0 0 10px;
    font-size: 24px;
}

p.s {
    color: var(--muted);
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.45;
}

/* ===== INDICADOR DE ETAPAS ===== */

.steps {
    justify-content: space-between;
    margin: 0 6px 18px;
    display: flex;
}

.dot {
    border: 1px solid var(--line);
    width: 30px;
    height: 30px;
    color: var(--muted);
    background: #241818;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    display: flex;
}

.dot.active {
    color: #fff;
    background: linear-gradient(#f2a04a, #d96a2a);
    border-color: #0000;
    transform: scale(1.12);
    box-shadow:
        0 0 0 5px #e8913a22,
        0 0 20px #e8913a55;
}

.dot.done {
    background: var(--red);
    color: #fff;
    border-color: #0000;
}

/* ===== CARDS ===== */

.card {
    border: 1px solid var(--line);
    background: linear-gradient(#2e1f1f, #241818);
    border-radius: 18px;
    margin-bottom: 14px;
    padding: 12px;
    box-shadow: 0 10px 30px #0006;
}

.card.pad {
    padding: 18px;
}

/* ===== FORMULÁRIOS E BOTÕES ===== */

.row {
    gap: 8px;
    display: flex;
}

input[type=text],
input[type=number] {
    border: 1px solid var(--line);
    min-width: 0;
    color: var(--text);
    background: #1d1313;
    border-radius: 10px;
    outline: none;
    flex: 1;
    padding: 13px 14px;
    font-size: 14px;
}

input:focus {
    border-color: var(--orange);
}

.btn {
    color: #fff;
    cursor: pointer;
    background: linear-gradient(#cf3d32, #a62920);
    border: 0;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px #c8372d55;
}

.btn:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .45;
}

.btn.full {
    width: 100%;
    margin-top: 12px;
}

.btn.ghost {
    border: 1px solid var(--line);
    box-shadow: none;
    color: var(--muted);
    background: 0 0;
    margin-top: 8px;
}

/* ===== RESULTADOS E MENSAGENS ===== */

.resultado {
    border: 1px solid var(--line);
    background: #1d1313;
    border-radius: 12px;
    min-height: 44px;
    margin-top: 12px;
    padding: 6px;
}

.msg {
    color: var(--muted);
    text-align: center;
    padding: 12px;
    font-size: 13px;
}

.msg.err {
    color: #ff7a70;
}

/* ===== PERFIL ===== */

.perfil {
    width: 100%;
    color: inherit;
    cursor: pointer;
    text-align: left;
    background: 0 0;
    border: 1px solid #0000;
    border-radius: 10px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    display: flex;
}

.perfil:hover {
    border-color: var(--orange);
    background: #e8913a14;
}

.perfil img {
    background: #000;
    border-radius: 50%;
    flex: none;
    width: 52px;
    height: 52px;
}

.profile-name {
    min-width: 0;
}

.perfil b,
.perfil small {
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
}

.perfil b {
    font-size: 15px;
}

.perfil small {
    color: var(--muted);
}

.perfil em {
    color: var(--orange);
    white-space: nowrap;
    margin-left: auto;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

/* ===== ALERTAS ===== */

.warn {
    background: #4a1c1c80;
    border: 1px solid #a63a33;
    border-left: 3px solid #ff5a4d;
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.warn b {
    color: #ff7a70;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 11px;
    display: block;
}

.warn span {
    color: #e7c9c4;
    font-size: 12px;
    line-height: 1.4;
}

/* ===== INFORMAÇÕES DA LIVE ===== */

.live-info {
    border: 1px solid var(--line);
    background: #1d1313;
    border-radius: 12px;
    margin-top: 14px;
    padding: 12px;
}

.live-info h3 {
    color: var(--orange);
    margin: 0 0 6px;
    font-size: 18px;
}

.live-info p {
    color: #e7c9c4;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.live-info p + p {
    margin-top: 8px;
}

/* ===== GRID E OPÇÕES ===== */

.grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    display: grid;
}

.opt {
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    background: #241818;
    border-radius: 12px;
    padding: 16px 8px;
    transition: all .15s;
}

.opt:hover {
    border-color: #8a4a3f;
}

.opt.sel {
    background: #4a1f1ccc;
    border-color: #ff5a4d;
    box-shadow: 0 0 0 1px #ff5a4d55;
}

.opt svg {
    margin: 0 auto 6px;
    display: block;
}

.opt strong,
.opt small,
.opt .taxa {
    display: block;
}

.opt strong {
    font-size: 19px;
}

.opt small {
    color: var(--muted);
    letter-spacing: .14em;
    margin-top: 2px;
    font-size: 10px;
}

.opt .taxa {
    color: var(--orange);
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
}

/* ===== LABELS E UNIDADES ===== */

.lbl {
    color: var(--muted);
    margin: 16px 0 6px;
    font-size: 11px;
    font-weight: 600;
    display: block;
}

.unit {
    align-items: center;
    gap: 8px;
    display: flex;
}

.unit span {
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
}

.calc {
    min-height: 18px;
    color: var(--orange);
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

/* ===== RESUMO ===== */

.sum {
    border: 1px solid var(--line);
    background: #1d1313;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 6px 14px;
}

.sum div {
    border-bottom: 1px solid #3a2724;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    display: flex;
}

.sum div:last-child {
    border: 0;
}

.sum span {
    color: var(--muted);
}

/* ===== CHECKBOX ===== */

.chk {
    color: #d9c8c2;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    display: flex;
}

.chk input {
    accent-color: var(--red);
    margin-top: 3px;
}

/* ===== CONFIRMAÇÃO ===== */

.ok {
    text-align: center;
    padding: 6px 0;
}

.ok .big {
    font-size: 46px;
}

/* ===== PAGAMENTO PIX ===== */

.pix {
    text-align: center;
    margin-top: 14px;
}

.pix img {
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    width: 220px;
    max-width: 100%;
    height: 220px;
    margin: 0 auto 12px;
    display: block;
}

.pix-code {
    border: 1px solid var(--line);
    width: 100%;
    min-height: 76px;
    color: var(--text);
    resize: vertical;
    background: #1d1313;
    border-radius: 10px;
    padding: 10px;
    font: 12px monospace;
}

/* ===== STATUS E RODAPÉ ===== */

.status {
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.foot {
    color: #6f8fa8;
    text-align: center;
    margin-top: 18px;
    font-size: 10.5px;
}

/* ===== RESPONSIVIDADE MOBILE ===== */

@media (width <= 380px) {
    body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card.pad {
        padding: 14px;
    }

    .row {
        flex-wrap: wrap;
    }

    .row .btn {
        width: 100%;
    }
}
