
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #1e3a4a;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content.cadastro-content {
    position: relative;
}

.modal-floating-logo {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.modal-header h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-subtitle {
    color: white;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    color: #8fb8cc;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 15px;
}

.label-microcopy {
    color: #ddd;
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.form-group input {
    width: 100%;
    padding: 16px 14px;
    min-height: 48px;
    border: 2px solid #1e3a4a;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 16px;
    line-height: 1.3;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus {
    outline: none;
    border-color: #5cf2f2;
    box-shadow: 0 0 0 3px rgba(92, 242, 242, 0.25);
}

.error-message {
    font-family: var(--hw-font-ui);
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
}

.email-sugestao {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 14px;
    border: 2px solid #ffd667;
    background: rgba(255, 214, 103, 0.12);
    color: #fff;
}

.email-sugestao-pergunta {
    color: #ffd667;
    font-size: 14px;
    font-weight: 700;
}

.email-sugestao-email {
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.btn-primary.email-sugestao-btn {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 10px;
}

.email-sugestao-nota {
    color: #ccc;
    font-size: 12px;
}

.form-group:has(.email-sugestao) input {
    border-color: #ffd667;
}

:root {
    --hw-cta: #00e5e5;
    --hw-cta-hover: #5cf2f2;
    --hw-cta-ink: #000;
    
    --hw-btn-relief:
        0 5px black,
        0 -5px black,
        5px 0 black,
        -5px 0 black,
        0 10px rgba(0, 0, 0, 0.22),
        5px 5px rgba(0, 0, 0, 0.22),
        -5px 5px rgba(0, 0, 0, 0.22),
        inset 0 5px rgba(255, 255, 255, 0.21);
    
    --hw-btn-relief-active:
        0 5px black,
        0 -5px black,
        5px 0 black,
        -5px 0 black,
        inset 0 5px rgba(0, 0, 0, 0.22);
    --hw-btn-relief-off:
        0 5px #333,
        0 -5px #333,
        5px 0 #333,
        -5px 0 #333,
        inset 0 5px rgba(0, 0, 0, 0.22);
}

.btn-primary,
.btn-secondary {
    box-sizing: border-box;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 60ms ease-out, box-shadow 60ms ease-out,
                background-color 0.2s, border-color 0.2s, color 0.2s;
    margin-top: 5px;
    margin-bottom: 5px;
}

.btn-primary {
    background: var(--hw-cta);
    border: 0;
    color: var(--hw-cta-ink);
    padding: 15px 30px;
    box-shadow: var(--hw-btn-relief);
}

.btn-primary:hover:not(:disabled) {
    background: var(--hw-cta-hover);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(5px);
    box-shadow: var(--hw-btn-relief-active);
}

.btn-primary:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    box-shadow: var(--hw-btn-relief-off);
}

.btn-secondary {
    background: transparent;
    border: 3px solid var(--hw-cta);
    color: var(--hw-cta);
    padding: 12px 27px;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(99, 131, 173, 0.15);
    border-color: var(--hw-cta-hover);
    color: var(--hw-cta-hover);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(5px);
}

.btn-secondary:disabled {
    border-color: #555;
    color: #777;
    cursor: not-allowed;
}

.btn-link {
    font-family: var(--hw-font-ui);
    background: transparent;
    border: 0;
    padding: 0;
    color: #ccc;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-link:hover:not(:disabled) {
    color: #fff;
}

.btn-link:disabled {
    color: #777;
    cursor: not-allowed;
}

.btn-loading.hidden {
    display: none;
}

.btn-text.hidden {
    display: none;
}

.tos-text {
    font-family: var(--hw-font-ui);
    color: #999;
    font-size: 11px;
    margin-top: 15px;
    line-height: 1.4;
    text-align: center;
}

.tos-text a {
    color: #999;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tos-text a:hover {
    color: #999;
    text-decoration: underline;
}

.form-group-consent {
    margin-top: 8px;
}
.form-group-consent .consent-label {
    display: flex;
    
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    min-height: 48px;
    margin-bottom: 0;
    cursor: pointer;
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    border: 2px solid rgba(99, 131, 173, 0.25);
    border-radius: 0;
    background: rgba(99, 131, 173, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.form-group-consent .consent-label:hover {
    background: rgba(99, 131, 173, 0.08);
    border-color: rgba(99, 131, 173, 0.45);
}

.form-group-consent .consent-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-height: 0;
    
    margin: 0;
    padding: 0;
    border: 0;
    accent-color: var(--hw-cta);
    cursor: pointer;
}
.form-group-consent .consent-label > span {
    flex: 1;
    min-width: 0;
}
.form-group-consent .consent-label strong {
    color: var(--hw-cta);
    font-weight: 700;
    
    white-space: nowrap;
}

.otp-redemption-step { display: none; }
.otp-redemption-step.active { display: block; }

.hw-modal__card .otp-redemption-phone-wrap {
    display: flex;
    align-items: stretch;
    background: #090d11;
    border: 2px solid #12263f;
    overflow: hidden;
}
.hw-modal__card .otp-redemption-phone-wrap:focus-within {
    border-color: var(--hw-cta);
    box-shadow: 0 0 0 3px rgba(92, 242, 242, 0.2);
}
.otp-redemption-phone-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #101820;
    font-size: 22px;
    user-select: none;
    pointer-events: none;
}
.otp-redemption-phone-flag.hidden { display: none; }
.hw-modal__card .otp-redemption-phone-wrap input#otp-redemption-phone {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    letter-spacing: 0.04em;
}
.hw-modal__card .otp-redemption-phone-wrap input#otp-redemption-phone.otp-redemption-phone-locked {
    color: #8fb8cc;
    cursor: not-allowed;
}

.hw-modal__card .otp-redemption-code-input {
    letter-spacing: 12px;
    text-indent: 12px;
    text-align: center;
    font-size: 26px;
}
.otp-redemption-verify-btn,
.otp-redemption-request-btn,
.otp-redemption-resend-btn { text-transform: uppercase; }
.otp-redemption-back-btn {
    display: block;
    margin: 12px auto 0;
}
.otp-redemption-turnstile { margin: 12px 0 0; }
.otp-redemption-turnstile:empty { margin: 0; }

.otp-redemption-softlock-alert {
    margin-top: 18px;
    padding: 14px 16px;
    background: rgba(180, 30, 30, 0.18);
    border: 2px solid #b81d1d;
    border-radius: 0;
    color: #ffd1d1;
    font-size: 13px;
    line-height: 1.5;
}
.otp-redemption-softlock-alert.hidden {
    display: none;
}
.otp-redemption-softlock-alert strong {
    display: block;
    color: #ff6b6b;
    font-size: 14px;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.otp-redemption-softlock-alert p {
    margin: 4px 0;
}

.otp-redemption-confirm {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(9, 13, 17, 0.88);
}
.otp-redemption-confirm.hidden { display: none; }
.otp-redemption-confirm-card {
    width: 100%;
    max-width: 340px;
    padding: 20px 20px 18px;
    background: #22333f;
    color: #fff;
    text-align: center;
    clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px),
        calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}
.otp-redemption-confirm-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: 0.06em;
    color: #fff;
}
.otp-redemption-confirm-phone {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    padding: 10px 12px;
    background: #101820;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.otp-redemption-confirm-flag { font-size: 22px; }
.otp-redemption-confirm-prompt {
    margin: 8px 0 16px;
    font-family: var(--hw-font-ui);
    font-size: 13px;
    color: #cfe6ee;
}
.otp-redemption-confirm-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.otp-redemption-confirm-edit,
.otp-redemption-confirm-yes {
    text-transform: uppercase;
    font-size: 14px;
}
.otp-redemption-confirm-edit {
    padding: 11px 15px;
}
.otp-redemption-confirm-yes {
    padding: 14px 18px;
}

.bloqueio-arte {
    position: relative;
    width: 44px;
    height: 52px;
    margin: 6px auto 14px;
    color: #e63757;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45));
}
.bloqueio-arte::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    width: 16px;
    height: 20px;
    border: 6px solid currentColor;
    border-bottom: 0;
}
.bloqueio-arte::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 30px;
    background: currentColor;
}
.hw-modal__titulo.bloqueio-titulo { color: #ff6b81; }

.pedido-cadeado { display: none; }
.pedido-modal--bloqueio #pedido-form .hw-modal__arte { display: none; }
.pedido-modal--bloqueio #pedido-form .pedido-cadeado { display: block; }
.pedido-modal--bloqueio #pedido-titulo { color: #ff6b81; }
.hw-modal__lead.bloqueio-motivo { color: #fff; }
.hw-modal__card .bloqueio-cta {
    display: block;
    text-decoration: none;
    
    font-family: Arial, sans-serif;
}

.hw-modal { z-index: 1000001 !important; }
.hw-modal__sombra {
    width: min(440px, 92vw);
    filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.6));
}
.hw-modal__card {
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    background: #18242e;
    padding: 22px 26px 20px;
    text-align: center;
    clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px),
        calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}
.hw-modal__tela.hidden { display: none; }
.hw-modal__fechar {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    color: #8fb8cc;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.hw-modal__fechar:hover { color: #fff; }
.hw-modal__arte {
    display: block;
    width: 132px;
    height: auto;
    margin: 0 auto 8px;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45));
}

.hw-modal__arte--whatsapp {
    width: 64px;
    height: 64px;
    margin: 2px auto 12px;
}
.hw-modal__titulo {
    margin: 0 0 6px;
    color: #fff;
    font-size: 22px;
    letter-spacing: 0.04em;
}
.hw-modal__lead {
    margin: 0 auto;
    max-width: 340px;
    font-family: var(--hw-font-ui);
    font-size: 14px;
    line-height: 1.45;
    color: #8fb8cc;
}
.hw-modal__lead strong { color: #fff; }

.hw-modal__passos {
    list-style: none;
    counter-reset: passo;
    margin: 16px 0 18px;
    padding: 14px 16px;
    background: #101820;
    text-align: left;
    font-family: var(--hw-font-ui);
    font-size: 14px;
    line-height: 1.45;
    color: #cfe6ee;
}
.hw-modal__passos li {
    counter-increment: passo;
    position: relative;
    margin: 0 0 10px;
    padding-left: 34px;
    min-height: 22px;
}
.hw-modal__passos li:last-child { margin-bottom: 0; }
.hw-modal__passos li::before {
    content: counter(passo);
    position: absolute;
    left: 0;
    top: -1px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: #12263f;
    color: #00e5e5;
    font-family: lores-9-wide, sans-serif;
    font-size: 12px;
}
.hw-modal__passos strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.hw-modal__rotulo {
    display: block;
    margin: 18px 0 8px;
    text-align: left;
    color: #8fb8cc;
    font-size: 12px;
    letter-spacing: 0.06em;
}
.hw-modal__passos + .hw-modal__rotulo { margin-top: 0; }
.hw-modal__linha {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.hw-modal__card .hw-modal__campo {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;
    background: #090d11;
    border: 2px solid #12263f;
    border-radius: 0;
    color: #fff;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    caret-color: var(--hw-cta);
    outline: none;
}
.hw-modal__card .hw-modal__campo::placeholder {
    color: rgba(143, 184, 204, 0.3);
    font-weight: 400;
}
.hw-modal__card .hw-modal__campo:focus {
    border-color: var(--hw-cta);
    box-shadow: 0 0 0 3px rgba(92, 242, 242, 0.2);
}
.hw-modal__card .hw-modal__campo.error { border-color: #e63757; }
.hw-modal__card .hw-modal__campo[readonly] { color: #8fb8cc; }

.hw-modal__card .hw-modal__acao {
    min-width: 118px;
    margin: 0;
    padding-left: 18px;
    padding-right: 18px;
}
.hw-modal__card .hw-modal__acao:disabled { cursor: wait; }
.hw-modal__card .hw-modal__cta {
    width: 100%;
    margin: 14px 0 0;
}
.hw-modal__erro {
    display: block;
    min-height: 18px;
    margin: 8px 0 0;
    text-align: left;
    font-family: var(--hw-font-ui);
    font-size: 13px;
    line-height: 1.4;
    color: #ff6b6b;
}
.hw-modal__erro:empty { min-height: 0; margin: 0; }
.hw-modal__rodape {
    margin: 12px 0 0;
    font-family: var(--hw-font-ui);
    font-size: 12px;
    color: #6f8fa0;
}
.hw-modal__rodape a { color: #8fb8cc; text-decoration: underline; }
.hw-modal__rodape a:hover { color: #fff; }

.hw-modal__status {
    margin: 16px 0 0;
    padding: 10px 12px;
    background: #101820;
    font-family: var(--hw-font-ui);
    font-size: 13px;
    color: #cfe6ee;
    text-align: left;
}
.hw-modal__status.is-error { color: #ff6b6b; }

.hw-moeda-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.hw-moeda {
    width: 22px;
    height: 22px;
    background: url("../../images/coins/coin-menu.png") center / contain no-repeat;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}
.hw-moeda__valor {
    font-family: lores-9-wide, sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .3px;
    line-height: 1;
}

.pedido-arte-wrap {
    position: relative;
    width: 132px;
    margin: 0 auto;
}
.pedido-selo {
    position: absolute;
    right: -10px;
    bottom: 6px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: #00d97e;
    color: #06231a;
    font-family: var(--hw-font-ui);
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}
.pedido-ok .hw-modal__lead { margin-bottom: 4px; }

.pedido-bonus-numeros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 6px 0 14px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.2;
}
.pedido-bonus-numeros.hidden { display: none; }
.pedido-ok-acoes { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.pedido-ok-acoes .pedido-depois { margin: 6px auto 0; }
.pedido-falta {
    margin: 12px 0 0;
    font-family: var(--hw-font-ui);
    font-size: 14px;
    color: #cfe6ee;
}
