@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    min-height: 100vh;
    color: var(--text);
}
.pagamentos-space{
    height: 70px;
}
.pagamentos {
    width: 90%;
    max-width: 1400px;
    margin: 55px auto 80px;
}
.titulo-pagina {
    margin-bottom: 35px;
}
.titulo-pagina span a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.titulo-pagina h1 {
    margin-top: 7px;
    color: var(--text);
    font-size: 34px;
    font-weight: 750;
}
.titulo-pagina p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}
.resumo-pagamentos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 45px;
}
.resumo-card {
    min-height: 110px;
    padding: 23px;
    display: flex;
    align-items: center;
    gap: 17px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(39, 68, 70, 0.04);
}
.icone {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #e8f0f0;
    color: #355f63;
    font-size: 21px;
}
.icone img{
    width: 30px;
    height: 30px;
}
.icone2 {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #e8f0f0;
    color: #355f63;
    font-size: 21px;
}
.icone2 img{
    width: 40px;
    height: 40px;
}
.resumo-card p {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 12px;
}
.resumo-card h2 {
    color: var(--text);
    font-size: 21px;
    font-weight: 700;
}
.historico {
    width: 100%;
}
.cabecalho-historico {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cabecalho-historico h2 {
    color: var(--text);
    font-size: 21px;
    font-weight: 700;
}
.cabecalho-historico select {
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--surface-strong);
    color: var(--text);
    outline: none;
    cursor: pointer;
}
.pagamento-card {
    width: 100%;
    min-height: 150px;
    margin-bottom: 17px;
    display: flex;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(39, 68, 70, 0.035);
    transition: 0.2s ease;
}
.pagamento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(39, 68, 70, 0.08);
}
.destino-imagem {
    width: 180px;
    min-width: 180px;
    height: 150px;
}
.destino-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pagamento-info {
    width: 100%;
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1fr auto auto;
    align-items: center;
    gap: 20px;
}
.pagamento-destino span,
.info-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 11px;
}
.pagamento-destino h3 {
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
}
.info-item strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.status {
    width: max-content;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.status.aprovado {
    background-color: var(--surface-strong);
    color: #347154;
}
.status.pendente {
    background-color:  var(--surface-strong);
    color: #9b6a25;
}
.status.cancelado {
    background-color:  var(--surface-strong);
    color: #a14d4d;
}
.btn-detalhes {
    padding: 10px 15px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background-color: transparent;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}
.btn-detalhes:hover {
    background-color: var(--accent);
    color: #ffffff;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(24, 42, 43, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 1000;
}
.modal-overlay.ativo {
    opacity: 1;
    visibility: visible;
}
.modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 30px;
    background-color: var(--card);
    border-radius: 17px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(15px);
    transition: 0.25s ease;
}
.modal-overlay.ativo .modal {
    transform: translateY(0);
}
.fechar-modal {
    position: absolute;
    top: 17px;
    right: 19px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: var(--card);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s ease;
}
.fechar-modal:hover {
    background-color: var(--card);
}
.modal-cabecalho {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}
.modal-icone {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #e8f0f0;
    font-size: 20px;
}
.modal-icone img{
    width: 40px;
    height: 40px;
}
.modal-cabecalho span {
    color: var(--text);
    font-size: 11px;
}
.modal-cabecalho h2 {
    margin-top: 3px;
    color: var(--text);
    font-size: 20px;
}
.detalhes {
    border-top: 1px solid #e9eeee;
}
.detalhe {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9eeee;
}
.detalhe[hidden] { display: none !important; }
.detalhe span {
    color: var(--text);
    font-size: 12px;
}
.detalhe strong {
    color: var(--text);
    font-size: 13px;
}
.modal-acoes {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}
.btn-comprovante,
.btn-fechar,
.btn-rastrear-voo {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
    text-decoration: none;
}
.btn-comprovante {
    border: none;
    background-color: #355f63;
    color: #ffffff;
}
.btn-comprovante:hover {
    background-color: #29494c;
}
.btn-rastrear-voo {
    border: none;
    background-color: var(--primary, #0b9995);
    color: #ffffff;
}
.btn-rastrear-voo:hover {
    background-color: var(--primary-dark, #087876);
    color: #ffffff;
}
.btn-rastrear-voo[hidden] { display: none !important; }
.btn-fechar {
    border: 1px solid #dce3e3;
    background-color: #ffffff;
    color: #526769;
}
.btn-fechar:hover {
    background-color: #f3f6f6;
}
.account-layout {
    width: 100%;
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    background-image: url(../img/banners/fundo-config.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.dark-mode .account-layout{
    background-image: url("../img/banners/fundo-config-dark.png");
}
.account-sidebar {
    width: clamp(215px, 17vw, 270px);
    min-width: 215px;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    background: var(--bg-soft);
    box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
}
.account-sidebar-space { height: 76px; }
.account-sidebar-links { display: flex; flex-direction: column; gap: 3px; padding: 15px; }
.account-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.account-sidebar-links a:hover,
.account-sidebar-links a.ativo { background: var(--surface-strong); }
.account-sidebar-links a:hover { transform: translateX(3px); }
.account-sidebar-links a > span,
.account-sidebar-links a > span > img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; }
.account-sidebar-links a > span { display: grid; place-items: center; background: var(--surface-strong); }
.account-sidebar-links a.ativo > span { background: var(--card); }
.account-sidebar-links strong { font-weight: 650; }
.account-layout .pagamentos {
    width: 78%;
    max-width: none;
    margin: 0 auto;
    padding: 130px 0 80px;
}
.account-layout .pagamentos-space { display: none; }

@media (max-width: 980px) {
    .account-layout { display: block; }
    .account-sidebar { width: 100%; min-width: 0; height: auto; position: static; box-shadow: none; border-bottom: 1px solid var(--border); }
    .account-sidebar-space { display: none; }
    .account-sidebar-links { flex-direction: row; overflow-x: auto; padding: 12px max(16px, 4vw); }
    .account-sidebar-links a { flex: 0 0 auto; }
    .account-layout .pagamentos { width: min(92%, 1000px); padding-top: 105px; }
}
 .sem-pagamentos { padding: 24px; color: var(--muted, #64748b); text-align: center; }
.cupom-recompensa-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; padding: 16px 18px; border: 1px dashed var(--primary, #2f8588); border-radius: 14px; background: color-mix(in srgb, var(--primary, #2f8588) 7%, var(--surface, #fff)); }
.cupom-recompensa-card strong { color: var(--primary, #2f8588); font-family: monospace; font-size: 15px; letter-spacing: .04em; }
.cupom-recompensa-card span { color: var(--muted, #64748b); font-size: 13px; }

.contador-pendentes { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: #fff3d6; color: #8a6100; font-size: 10px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.contador-pendentes[hidden] { display: none; }
.historico-cupons { margin: -20px 0 34px; }