/* ══════════════════════════════════════
   destaque.css — Modal de Destaque
══════════════════════════════════════ */

/* Botão destacar nos cards de anúncio */
.btn-destacar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,85,51,.4);
    background: rgba(255,85,51,.08);
    color: var(--accent);
    font-family: Syne, sans-serif;
    transition: all .2s;
}
.btn-destacar:hover { background: rgba(255,85,51,.18); }

/* Vitrine e minutos — sidebar */
.btn-vitrine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    margin-top: .75rem;
    background: rgba(255,85,51,.1);
    border: 1px solid rgba(255,85,51,.3);
    border-radius: 10px;
    color: var(--accent);
    font-family: 'Syne', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.btn-vitrine:hover { background: rgba(255,85,51,.2); }

.minutos-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}
.minutos-card h4 { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; font-weight: 600; }
.minutos-barra-wrap { background: var(--border); border-radius: 99px; height: 8px; overflow: hidden; margin-bottom: .5rem; }
.minutos-barra { height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s ease; }
.minutos-info { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.minutos-info strong { color: var(--text); }

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
.modal-overlay.aberto { display: flex; }

.modal-destaque {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: modalIn .25s ease;
    margin: auto;
    max-height: 92vh;
    overflow-y: auto;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-fechar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}
.modal-fechar:hover { color: var(--text); }

.modal-titulo { font-family: Syne, sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.modal-subtitulo { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }

/* Info do anúncio */
.modal-anuncio-info {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-anuncio-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--border); flex-shrink: 0; }
.modal-anuncio-nome { font-size: .88rem; font-weight: 600; color: var(--text); }
.modal-anuncio-cat  { font-size: .75rem; color: var(--muted); }

/* Aviso */
.aviso-destaque {
    background: rgba(255,85,51,.06);
    border: 1px solid rgba(255,85,51,.2);
    border-radius: 8px;
    padding: .65rem;
    margin-bottom: 1rem;
    font-size: .75rem;
    color: var(--muted);
    line-height: 1.6;
}
.aviso-destaque strong { color: var(--text); }

/* Opções de prazo */
.destaque-opcoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}
.destaque-opcao {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: .85rem .75rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--bg3);
}
.destaque-opcao:hover { border-color: var(--accent); }
.destaque-opcao.selecionado { border-color: var(--accent); background: rgba(255,85,51,.08); }
.destaque-opcao .dias { font-family: Syne, sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
.destaque-opcao .valor { font-size: .9rem; font-weight: 700; color: var(--accent); margin: 3px 0 2px; }
.destaque-opcao .por-dia { font-size: .68rem; color: var(--muted); }
.destaque-opcao .tag-popular {
    display: inline-block;
    background: rgba(255,85,51,.15);
    color: var(--accent);
    font-size: .62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 3px;
}

/* Formas de pagamento */
.destaque-formas { display: flex; gap: 8px; margin-bottom: 1.25rem; }
.destaque-forma {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    font-size: .78rem;
    color: var(--muted);
    background: var(--bg3);
    transition: all .2s;
    user-select: none;
}
.destaque-forma.ativo {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255,85,51,.08);
    font-weight: 600;
}
.destaque-forma span { display: block; font-size: 1.1rem; margin-bottom: 3px; }

/* Campos */
.d-campo { margin-bottom: .85rem; }
.d-campo label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.d-campo input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg3);
    color: var(--text);
    font-size: .88rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s;
}
.d-campo input:focus { outline: none; border-color: var(--accent); }
.d-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.d-cep-wrap { position: relative; }
.d-cep-wrap input { padding-right: 40px; }
.d-btn-cep {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--accent);
}

.divisor-modal {
    font-size: .75rem;
    color: var(--muted);
    margin: .75rem 0 .6rem;
    padding-top: .6rem;
    border-top: 1px solid var(--border);
    font-weight: 500;
}

/* Resumo */
.destaque-resumo {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: .85rem;
    margin-bottom: 1rem;
}
.destaque-resumo-linha { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.destaque-resumo-linha.total {
    font-family: Syne, sans-serif;
    font-weight: 700;
    color: var(--text);
    font-size: .92rem;
    padding-top: .4rem;
    border-top: 1px solid var(--border);
    margin-top: .4rem;
    margin-bottom: 0;
}
.destaque-resumo-linha.total span:last-child { color: var(--accent); }

/* Botão pagar */
.btn-pagar-destaque {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: Syne, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-pagar-destaque:hover { background: var(--accent2); }
.btn-pagar-destaque:disabled { opacity: .6; cursor: not-allowed; }

/* PIX resultado */
.d-pix-result { display: none; margin-top: 1rem; text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.d-pix-result img { width: 180px; height: 180px; border-radius: 10px; margin-bottom: .75rem; border: 1px solid var(--border); }
.d-pix-copia {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: .5rem;
    word-break: break-all;
}
.d-pix-copia span { font-family: monospace; font-size: .72rem; color: var(--text); text-align: left; }
.d-btn-copiar {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* Boleto resultado */
.d-boleto-result { display: none; margin-top: 1rem; text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.d-btn-boleto {
    display: inline-block;
    margin-top: .75rem;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-family: Syne, sans-serif;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
}
.d-btn-boleto:hover { background: var(--accent2); }

/* Cartão sucesso */
.d-cartao-sucesso { display: none; margin-top: 1rem; text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.d-cartao-sucesso span { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

.modal-msg-erro { color: #f87171; font-size: .8rem; text-align: center; margin-top: .75rem; min-height: 16px; }