/* =========================================
   1. CORES E VARIÁVEIS DA PLATAFORMA
   ========================================= */

:root {
    --navy: #071a35;
    --navy-light: #102c50;

    --blue: #1769ff;
    --blue-light: #eaf1ff;

    --green: #a5f5c5;

    --text: #17253a;
    --muted: #718096;

    --white: #ffffff;
    --background: #f5f8fc;
    --border: #e5ebf3;
}


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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Deslocamento suave dentro da página */
html {
    scroll-behavior: smooth;
}

/* Estilo principal do documento */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

/* Uniformiza a apresentação dos botões */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}


/* =========================================
   3. CABEÇALHO E LOGÓTIPO
   ========================================= */

.topbar {
    min-height: 76px;
    padding: 0 7%;

    background: var(--navy);

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

    position: relative;
    z-index: 10;
}

/* Nome da NGOLA-EXPRES */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: white;
    font-size: 19px;
    font-weight: 800;

    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Símbolo N */
.brand-icon {
    display: grid;
    place-items: center;

    width: 37px;
    height: 37px;

    background: var(--blue);
    border-radius: 11px;

    color: white;
    font-size: 22px;
}

/* Cor complementar do nome */
.brand-light {
    color: #9cbcff;
}

/* Botão de menu para telemóveis */
.menu-button {
    display: none;

    background: transparent;
    color: white;

    border: 0;
    font-size: 27px;

    cursor: pointer;
}


/* =========================================
   4. SECÇÃO PRINCIPAL
   ========================================= */

.hero {
    padding: 80px 9%;

    background:
        radial-gradient(
            circle at 85% 15%,
            #1a4270 0,
            transparent 35%
        ),
        var(--navy);

    color: white;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;
    gap: 65px;

    min-height: 520px;
}

/* Limita a largura do texto */
.hero-content {
    max-width: 620px;
}

/* Etiqueta de apresentação */
.badge {
    display: inline-block;

    background: rgba(255, 255, 255, 0.08);
    color: #b9d0ff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;

    padding: 7px 13px;
    margin-bottom: 24px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Título principal */
.hero h1 {
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.13;
    letter-spacing: -2px;

    margin-bottom: 22px;
}

/* Destaque do título */
.hero h1 span {
    color: #93b8ff;
}

/* Texto de apresentação */
.hero-content > p {
    max-width: 490px;

    color: #c3d0e4;
    font-size: 16px;

    margin-bottom: 30px;
}


/* =========================================
   5. BOTÕES PRINCIPAIS
   ========================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Estilo comum a todos os botões */
.button {
    min-height: 48px;
    padding: 12px 22px;

    border-radius: 10px;
    border: 1px solid transparent;

    font-weight: 700;
    cursor: pointer;

    transition: transform 0.2s, opacity 0.2s;
}

/* Efeito ao passar sobre o botão */
.button:hover {
    transform: translateY(-2px);
}

/* Destaque de acessibilidade ao navegar */
.button:focus-visible {
    outline: 3px solid #94b8ff;
    outline-offset: 3px;
}

/* Botão azul */
.button-primary {
    background: var(--blue);
    color: white;
}

/* Botão secundário */
.button-secondary {
    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(255, 255, 255, 0.24);

    color: white;
}


/* =========================================
   6. MENSAGEM DE SEGURANÇA
   ========================================= */

.security-note {
    margin-top: 28px;

    color: #aebed4;
    font-size: 12px;
}

.security-note span {
    color: var(--green);
    margin-right: 7px;
}


/* =========================================
   7. CARTÃO ILUSTRATIVO DA CARTEIRA
   ========================================= */

.preview-card {
    min-height: 245px;
    padding: 28px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #1769ff,
            #123a85 65%,
            #071a35
        );

    border: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);

    transform: rotate(2deg);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Cabeçalho do cartão */
.card-top,
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Nome da carteira no cartão */
.card-top {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 13px;
}

/* Símbolo decorativo */
.card-chip {
    font-size: 27px;
    color: #b9d0ff;
}

/* Legenda do saldo */
.card-label {
    margin-top: 28px;

    color: #cbdcff;
    font-size: 10px;
    letter-spacing: 1.5px;
}

/* Valor do saldo ilustrativo */
.card-balance {
    color: var(--green);

    font-size: clamp(29px, 4vw, 43px);
    font-weight: 800;
    letter-spacing: -1px;

    overflow-wrap: anywhere;
}

/* Unidade monetária */
.card-balance span {
    font-size: 15px;
}

/* Texto por baixo do saldo */
.card-conversion {
    color: #d5e2ff;
    font-size: 12px;

    margin-bottom: 28px;
}

/* Rodapé do cartão */
.card-bottom {
    color: #d0ddf6;

    font-size: 10px;
    letter-spacing: 1px;
}


/* =========================================
   8. SECÇÃO DE FUNCIONALIDADES
   ========================================= */

.features {
    padding: 80px 9%;
}

/* Cabeçalho da secção */
.section-heading {
    text-align: center;

    max-width: 570px;

    margin: 0 auto 40px;
}

/* Pequenos títulos azuis */
.eyebrow {
    color: var(--blue);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

/* Título das secções */
.section-heading h2,
.rates-section h2,
.cta h2 {
    font-size: clamp(26px, 4vw, 36px);

    line-height: 1.25;
    letter-spacing: -1px;

    margin: 12px 0;
}

/* Texto secundário */
.section-heading p,
.rates-section > div:first-child p {
    color: var(--muted);
    font-size: 14px;
}

/* Organização dos cartões */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

/* Cartão de cada funcionalidade */
.feature-card {
    padding: 27px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: white;

    transition: transform 0.2s, box-shadow 0.2s;
}

/* Efeito visual dos cartões */
.feature-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(15, 40, 80, 0.07);
}

/* Ícone de cada funcionalidade */
.feature-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    background: var(--blue-light);
    color: var(--blue);

    font-size: 24px;
    border-radius: 13px;

    margin-bottom: 19px;
}

/* Título dos cartões */
.feature-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

/* Descrição dos cartões */
.feature-card p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================
   9. SECÇÃO DAS TAXAS DE CÂMBIO
   ========================================= */

.rates-section {
    margin: 0 9% 80px;
    padding: 38px;

    border: 1px solid var(--border);
    background: white;

    border-radius: 20px;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;

    gap: 35px;
}

/* Lista das taxas */
.rates-list {
    display: flex;
    flex-direction: column;
}

/* Linha de cada taxa */
.rate-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;
    padding: 16px 0;

    border-bottom: 1px solid var(--border);

    font-size: 13px;
}

/* Remove a linha do último elemento */
.rate-row:last-child {
    border-bottom: none;
}

/* Descrição da taxa */
.rate-row span {
    color: var(--muted);
}

/* Valor da taxa */
.rate-row strong {
    white-space: nowrap;
    color: var(--navy);
}

/* Aviso sobre as taxas */
.rate-disclaimer {
    grid-column: 1 / -1;

    color: var(--muted);
    font-size: 11px;
}


/* =========================================
   10. SECÇÃO FINAL
   ========================================= */

.cta {
    margin: 0 9% 80px;
    padding: 55px 25px;

    border-radius: 20px;

    text-align: center;
    background: var(--blue-light);
}

/* Cor do título final */
.cta h2 {
    color: var(--navy);
}

/* Texto da secção final */
.cta p {
    color: var(--muted);
    font-size: 14px;

    margin-bottom: 24px;
}


/* =========================================
   11. RODAPÉ
   ========================================= */

.footer {
    background: var(--navy);

    padding: 35px 7%;

    text-align: center;
    color: #aebed4;

    font-size: 12px;
}

/* Espaçamento do logótipo */
.footer-brand {
    margin-bottom: 20px;
}

/* Aviso no rodapé */
.footer-note {
    margin-top: 8px;

    color: #8295b0;
    font-size: 11px;
}


/* =========================================
   12. NOTIFICAÇÕES
   ========================================= */

.toast {
    position: fixed;

    bottom: 20px;
    left: 50%;

    transform: translate(-50%, 20px);

    width: max-content;
    max-width: calc(100% - 32px);

    padding: 14px 18px;

    background: var(--navy);
    color: white;

    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);

    font-size: 13px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.2s, transform 0.2s;

    z-index: 100;
}

/* Estado visível da notificação */
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* =========================================
   13. ADAPTAÇÃO A TABLETS E TELEMÓVEIS
   ========================================= */

@media (max-width: 800px) {

    /* Apresentação principal em coluna */
    .hero {
        grid-template-columns: 1fr;

        padding: 60px 7%;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    /* Cartão centrado no ecrã */
    .preview-card {
        max-width: 430px;
        width: 100%;

        justify-self: center;

        transform: none;
    }

    .features {
        padding: 60px 7%;
    }

    /* Funcionalidades em coluna */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Taxas em coluna */
    .rates-section {
        margin: 0 7% 60px;
        padding: 26px;

        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta {
        margin: 0 7% 60px;
    }
}


/* =========================================
   14. ADAPTAÇÃO A ECRÃS PEQUENOS
   ========================================= */

@media (max-width: 420px) {

    .topbar {
        padding: 0 5%;
    }

    .brand {
        font-size: 16px;
    }

    .hero {
        padding: 45px 6%;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    /* Botões ocupam toda a largura */
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    /* Evita que as taxas ultrapassem o ecrã */
    .rate-row {
        align-items: flex-start;
        font-size: 12px;
    }

    .rate-row strong {
        font-size: 11px;
    }
}
/* =========================================
   BOTÃO TORNAR-SE AGENTE NO CABEÇALHO
   ========================================= */

/* Organiza os botões do lado direito */
.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

/* Estilo do botão Tornar-se Agente */
.agent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition: background 0.2s ease;
}

/* Efeito ao tocar no botão */
.agent-button:hover {
    background: #2166f5;
}

/* Ajustes para ecrãs pequenos */
@media (max-width: 480px) {
    .topbar-actions {
        gap: 8px;
    }

    .agent-button {
        padding: 10px 11px;
        font-size: 12px;
    }
}
/* =========================================
   4. ESTILO DA SECÇÃO DE VANTAGENS
   ========================================= */

.benefits-section {
    padding: 70px 6%;
}

/* Cabeçalho da secção */
.benefits-header {
    max-width: 650px;
    margin-bottom: 35px;
}

.benefits-header h2 {
    margin: 14px 0;
    font-size: clamp(26px, 4vw, 38px);
    color: #ffffff;
}

.benefits-header p {
    color: #b9c9e3;
    font-size: 16px;
    line-height: 1.7;
}

/* Organização dos cartões */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Cartão individual */
.benefit-card {
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

/* Símbolo decorativo */
.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;
    margin-bottom: 20px;

    border-radius: 13px;
    background: rgba(33, 102, 245, 0.22);

    color: #8fb4ff;
    font-size: 25px;
    font-weight: bold;
}

/* Título de cada cartão */
.benefit-card h3 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 18px;
}

/* Descrição de cada cartão */
.benefit-card p {
    margin: 0;
    color: #b9c9e3;
    font-size: 14px;
    line-height: 1.7;
}

/* Adaptação para tablets e telemóveis */
@media (max-width: 760px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }

    .benefits-section {
        padding: 50px 6%;
    }
}
/* =========================================
   JANELA DE REGISTO E INÍCIO DE SESSÃO
   ========================================= */

.auth-overlay[hidden],
.auth-box form[hidden] {
    display: none !important;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    padding: 20px;
    overflow-y: auto;

    background: rgba(2, 12, 29, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;

    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;

    background: #0b2344;
    color: #ffffff;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.auth-box h2 {
    margin: 0 35px 10px 0;
    color: #ffffff;
}

.auth-box > p {
    color: #b9c9e3;
    line-height: 1.6;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 17px;

    border: 0;
    background: transparent;
    color: #ffffff;

    font-size: 30px;
    cursor: pointer;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-box label {
    margin-top: 8px;
    color: #dce7fa;
    font-size: 14px;
}

.auth-box input {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font: inherit;
}

.auth-box input:focus {
    outline: 2px solid #2166f5;
    outline-offset: 1px;
}

.auth-box .button {
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
}

.auth-box .button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-switch {
    display: block;
    margin: 20px auto 0;
    padding: 8px;

    border: 0;
    background: transparent;
    color: #91b5ff;

    font: inherit;
    cursor: pointer;
}

#authMessage {
    overflow-wrap: anywhere;
}
/* =========================================
   ÁREA DO CLIENTE — NGOLA-EXPRES
   ========================================= */

#clientDashboard {
    min-height: 100vh;
    padding: 35px 20px 50px;
    background: #f4f5f7;
    color: #17191d;
}

#clientDashboard .section-heading {
    max-width: 900px;
    margin: 0 auto 30px;
}

#clientDashboard .section-heading h2 {
    color: #17191d;
    margin-top: 10px;
}

#clientDashboard .section-heading p {
    color: #6b7280;
}

/* CARTÃO PRETO */

.client-wallet-card {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 82%;
    max-width: 320px;
    min-height: 0;
    margin: 0 auto 20px;
    padding: 14px;
    border: 1px solid #39352b;
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(190, 159, 91, 0.18),
            transparent 38%
        ),
        linear-gradient(135deg, #202124, #090a0c 75%);
    color: #f5f1e8;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.client-wallet-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -75px;
    bottom: -90px;
    border: 1px solid rgba(207, 176, 112, 0.24);
    border-radius: 50%;
    box-shadow:
        0 0 0 12px rgba(207, 176, 112, 0.035),
        0 0 0 24px rgba(207, 176, 112, 0.025);
    pointer-events: none;
}

.wallet-card-top,
.wallet-brand,
.wallet-card-bottom,
.wallet-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wallet-brand {
    justify-content: flex-start;
}

.wallet-brand-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #c9aa70;
    border-radius: 13px;
    color: #e2c58c;
    font-size: 23px;
    font-weight: 800;
}

.wallet-brand strong,
.wallet-brand small {
    display: block;
}

.wallet-brand strong {
    color: #f6e7c5;
    font-size: 14px;
    letter-spacing: 1px;
}

.wallet-brand small {
    margin-top: 5px;
    color: #a6a6a6;
    font-size: 9px;
    letter-spacing: 2px;
}

.wallet-card-type {
    padding: 7px 11px;
    border: 1px solid rgba(213, 186, 126, 0.5);
    border-radius: 20px;
    color: #e5cc98;
    font-size: 11px;
    letter-spacing: 1px;
}

.wallet-chip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 39px;
    height: 29px;
    margin-top: 23px;
    overflow: hidden;
    border: 1px solid #c4ae7d;
    border-radius: 7px;
    background: linear-gradient(135deg, #e1d1a8, #99845c);
}

.wallet-chip span {
    border: 1px solid rgba(67, 55, 33, 0.45);
}

.wallet-balance-label {
    margin-top: 19px;
    color: #c0c0c0;
    font-size: 10px;
    letter-spacing: 2px;
}

.wallet-balance {
    margin-top: 6px;
    color: #a7f3bd;
    font-size: clamp(27px, 6vw, 36px);
    font-weight: 750;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
}

.wallet-usdc {
    margin-top: 5px;
    color: #c0c0c0;
    font-size: 12px;
}

.wallet-usdc span {
    color: #e4d1a6;
}

.wallet-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-expiry {
    flex-shrink: 0;
    text-align: right;
}

.wallet-expiry small,
.wallet-expiry strong {
    display: block;
}

.wallet-expiry small {
    margin-bottom: 5px;
    color: #aaa;
    font-size: 7px;
    letter-spacing: 1px;
}

.wallet-expiry strong {
    color: #e5cc98;
    font-size: 11px;
}

.wallet-owner small,
.wallet-owner strong {
    display: block;
}

.wallet-owner small {
    margin-bottom: 6px;
    color: #aaa;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.wallet-owner strong {
    max-width: 230px;
    color: #f5f1e8;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.wallet-card-number {
    text-align: right;
}

.wallet-card-number span {
    display: block;
    margin-bottom: 5px;
    color: #d9bd84;
    font-size: 15px;
    font-weight: 800;
}

.wallet-card-number strong {
    color: #b8b8b8;
    font-size: 9px;
    letter-spacing: 1px;
}

.wallet-card-footer {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #aaa;
    font-size: 9px;
    letter-spacing: 1.5px;
}

/* RESUMO DO CLIENTE */

.client-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto 35px;
}

.client-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    border: 1px solid #e6e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 25, 35, 0.035);
}

.summary-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f2ead8;
    font-size: 19px;
}

.client-summary-card h3 {
    margin: 2px 0 10px;
    font-size: 15px;
}

.client-summary-card p {
    margin: 6px 0;
    color: #555d68;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.client-summary-card small {
    display: block;
    margin-top: 8px;
    color: #858b95;
    line-height: 1.5;
}

/* OPERAÇÕES */

.client-actions {
    max-width: 900px;
    margin: 0 auto;
}

.client-actions > h3 {
    margin-bottom: 18px;
    font-size: 19px;
}

.client-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.client-action-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-height: 140px;
    padding: 20px;
    border: 1px solid #e1e3e8;
    border-radius: 16px;
    background: #fff;
    color: #17191d;
    text-align: left;
}

.client-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.client-action-button > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #f2ead8;
    color: #8c6b2f;
    font-size: 22px;
}

.client-action-button strong {
    font-size: 13px;
}

.client-action-button small {
    color: #7a808b;
    font-size: 11px;
}

.client-coming-soon {
    margin-top: 18px;
    color: #747b86;
    font-size: 12px;
    line-height: 1.6;
}

.client-logout-container {
    max-width: 900px;
    margin: 30px auto 0;
}

/* TELEMÓVEIS */

@media (max-width: 600px) {
    #clientDashboard {
        padding: 25px 15px 35px;
    }

      .client-wallet-card {
        width: 92%;
        max-width: 380px;
        min-height: 0;
        margin: 0 auto 16px;
        padding: 12px;
        border-radius: 14px;
    }

    .client-summary-grid {
        grid-template-columns: 1fr;
    }

    .client-actions-grid {
        grid-template-columns: 1fr;
    }

    .client-action-button {
        min-height: auto;
    }

    .wallet-owner strong {
        max-width: 170px;
    }
}
/* =========================================
   CARTÕES DO PAINEL DO CLIENTE — AZUL
   ========================================= */

.client-summary-card,
.client-action-button {
    background: #071b36;
    border: 1px solid #18385f;
    color: #ffffff;
}

.client-summary-card h3,
.client-action-button strong {
    color: #ffffff;
}

.client-summary-card p {
    color: #d0dced;
}

.client-summary-card small,
.client-action-button small {
    color: #b5c6dc;
}

.summary-icon,
.client-action-button > span {
    background: #123b70;
    color: #ffffff;
}

.client-action-button:disabled {
    background: #071b36;
    opacity: 1;
    cursor: not-allowed;
}
/* =========================================
   NGOLA-EXPRES — PAINEL COMPACTO
   ========================================= */

/* Espaçamento superior */
#clientDashboard {
    padding: 18px 12px 30px;
}

/* Boas-vindas */
#clientDashboard .section-heading {
    margin-bottom: 16px;
}

#clientDashboard .section-heading p {
    margin: 5px 0;
    font-size: 14px;
}

/* Elementos internos do cartão preto */
.wallet-brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.wallet-brand strong {
    font-size: 11px;
}

.wallet-brand small {
    font-size: 8px;
}

.wallet-chip {
    width: 32px;
    height: 23px;
    margin-top: 12px;
}

.wallet-balance-label {
    margin-top: 12px;
    font-size: 9px;
}

.wallet-balance {
    margin-top: 4px;
    font-size: 25px;
}

.wallet-usdc {
    margin-top: 3px;
    font-size: 10px;
}

.wallet-card-bottom {
    margin-top: 15px;
}

.wallet-owner small {
    font-size: 8px;
}

.wallet-owner strong {
    max-width: 155px;
    font-size: 9px;
}

.wallet-card-number strong {
    font-size: 8px;
}

.wallet-card-footer {
    margin-top: 12px;
    padding-top: 8px;
    font-size: 7px;
}

/* Cartões de perfil */
.client-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.client-summary-card {
    min-width: 0;
    padding: 12px;
    gap: 8px;
    border-radius: 12px;
}

.summary-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
}

.client-summary-card h3 {
    margin-bottom: 6px;
    font-size: 12px;
}

.client-summary-card p {
    font-size: 10px;
    overflow-wrap: anywhere;
}

.client-summary-card small {
    font-size: 9px;
}

/* Três operações por linha */
.client-actions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.client-action-button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 105px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 5px;
    border-radius: 12px;
    text-align: center;
}

.client-action-button > span {
    width: 30px;
    height: 30px;
    font-size: 19px;
}

.client-action-button strong {
    font-size: 11px;
    overflow-wrap: anywhere;
}

.client-action-button small {
    font-size: 9px;
    overflow-wrap: anywhere;
}

/* Texto informativo */
.client-coming-soon {
    margin-top: 12px;
    font-size: 11px;
}

/* BOTÃO CIRCULAR DE TERMINAR SESSÃO */

#clientDashboard #logoutButton.logout-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;

    border: 2px solid #dc2626;
    border-radius: 50%;

    background: #dc2626;
    color: #ffffff;

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);

    transition: background 0.2s ease, transform 0.2s ease;
}

#clientDashboard #logoutButton.logout-icon-button svg {
    display: block;
    width: 28px;
    height: 28px;
}

#clientDashboard #logoutButton.logout-icon-button:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: scale(1.05);
}

#clientDashboard #logoutButton.logout-icon-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

#clientDashboard #logoutButton {
    min-height: 40px;
    padding: 9px 18px;
    font-size: 12px;
}

/* JANELA DE LEVANTAMENTO */
.withdraw-overlay[hidden] {
    display: none !important;
}

.withdraw-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.withdraw-box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 22px 22px;
    border: 1px solid #39352b;
    border-radius: 18px;
    background: linear-gradient(145deg, #202124, #0b0c0e);
    color: #f5f1e8;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.withdraw-box h2 {
    margin: 0 35px 10px 0;
    color: #d4af65;
    font-size: 24px;
}

.withdraw-description {
    margin: 0 0 20px;
    color: #c7c7c7;
    font-size: 14px;
    line-height: 1.5;
}

.withdraw-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #303030;
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

.withdraw-rate {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding: 13px;
    border: 1px solid rgba(212, 175, 101, 0.3);
    border-radius: 10px;
    background: rgba(212, 175, 101, 0.08);
    color: #d0d0d0;
    font-size: 13px;
}

.withdraw-rate strong {
    color: #d4af65;
    font-size: 17px;
}

#withdrawForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#withdrawForm label {
    margin-top: 5px;
    color: #eeeeee;
    font-size: 14px;
    font-weight: 600;
}

#withdrawForm input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border: 1px solid #454545;
    border-radius: 9px;
    outline: none;
    background: #151618;
    color: #ffffff;
    font: inherit;
}

#withdrawForm input:focus {
    border-color: #d4af65;
}

#withdrawForm input[readonly] {
    color: #b9d9a5;
    background: #1b1d1b;
}

#withdrawLimitInfo {
    margin: 3px 0 8px;
    color: #bdbdbd;
    font-size: 12px;
}

#withdrawContinue {
    width: 100%;
    min-height: 46px;
}

#withdrawContinue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#withdrawMessage {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .withdraw-box {
        padding: 26px 17px 18px;
        border-radius: 15px;
    }

    .withdraw-box h2 {
        font-size: 22px;
    }
}

/* =========================================
   BOTÕES DOS MÉTODOS DE LEVANTAMENTO
   ========================================= */

.withdraw-method-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 20px 0;
}

.withdraw-method-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 14px 12px;

    background: #171717;
    color: #f5c76b;

    border: 1px solid #b88a35;
    border-radius: 12px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.withdraw-method-button:hover {
    background: #262019;
    border-color: #f5c76b;
}

.withdraw-method-button:focus-visible {
    outline: 2px solid #f5c76b;
    outline-offset: 3px;
}

.withdraw-method-button:active {
    background: #332819;
}

/* O terceiro botão ocupa toda a largura. */
.withdraw-method-button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Adaptar os botões a ecrãs pequenos. */
@media (max-width: 360px) {
    .withdraw-method-options {
        grid-template-columns: 1fr;
    }

    .withdraw-method-button:last-child:nth-child(odd) {
        grid-column: auto;
    }
}
/* =========================================
   FORMATAÇÃO DOS CAMPOS DE LEVANTAMENTO
   ========================================= */

#withdrawDetailsStep {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

#withdrawDetailsStep[hidden],
#withdrawBankFields[hidden],
#withdrawExpressFields[hidden] {
    display: none !important;
}

/* Campos bancários e EXPRESS */
#withdrawBankFields,
#withdrawExpressFields {
    width: 100%;
    box-sizing: border-box;
}

#withdrawBankFields:not([hidden]),
#withdrawExpressFields:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Rótulos */
#withdrawDetailsStep label {
    display: block;
    margin: 8px 0 2px;
    color: #f5f1e8;
    font-size: 15px;
    font-weight: 500;
}

/* Campos de texto */
#withdrawDetailsStep input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #49443a;
    border-radius: 9px;
    background: #17181b;
    color: #ffffff;
    font-size: 15px;
}

/* Grupo do IBAN */
.withdraw-iban-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.withdraw-iban-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 12px;
    border: 1px solid #49443a;
    border-radius: 9px;
    background: #252525;
    color: #d4af65;
    font-weight: 600;
}

.withdraw-iban-group input {
    flex: 1;
    width: 0;
    min-width: 0;
}

/* Botões */
#withdrawDetailsStep .button {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    margin-top: 4px;
}

/* Avisos */
#withdrawDetailsStep .withdraw-warning {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Telemóveis */
@media (max-width: 480px) {
    .withdraw-box {
        padding: 24px 18px;
    }

    #withdrawDetailsStep h3 {
        font-size: 19px;
    }

    #withdrawDetailsStep input {
        font-size: 14px;
    }
}

/* =========================================
   ETAPA 4 — CONFIRMAÇÃO DO LEVANTAMENTO
   ========================================= */

#withdrawConfirmationStep {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

#withdrawConfirmationStep[hidden] {
    display: none !important;
}

#withdrawConfirmationStep h3 {
    margin: 0;
    color: #f5f1e8;
    font-size: 20px;
    line-height: 1.4;
}

#withdrawConfirmationStep .withdraw-description {
    margin: -8px 0 4px;
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.6;
}

/* Cartão dos dados */
#withdrawConfirmationStep .withdraw-review-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 16px;
    border: 1px solid #39352b;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

/* Cada linha */
#withdrawConfirmationStep .withdraw-review-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(212, 175, 101, 0.18);
    min-width: 0;
}

/* Remover a linha do último elemento */
#withdrawConfirmationStep .withdraw-review-row:last-child {
    border-bottom: none;
}

/* Títulos dos dados */
#withdrawConfirmationStep .withdraw-review-row span {
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.5;
}

/* Valores */
#withdrawConfirmationStep .withdraw-review-row strong {
    display: block;
    width: 100%;
    color: #f5f1e8;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Destacar os valores monetários */
#reviewWithdrawUSD,
#reviewWithdrawKz {
    color: #d4af65 !important;
}

/* Aviso */
#withdrawConfirmationStep .withdraw-warning {
    margin: 0;
    padding: 12px 14px;
    border-left: 3px solid #d4af65;
    border-radius: 6px;
    background: rgba(212, 175, 101, 0.07);
    color: #d0ccc3;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Mensagem de estado */
#withdrawConfirmationMessage {
    margin: 0;
    color: #d4af65;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Botões da confirmação */
#withdrawConfirmationStep .button {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    margin: 0;
}

/* Espaçamento no telemóvel */
@media (max-width: 480px) {
    #withdrawConfirmationStep {
        gap: 13px;
    }

    #withdrawConfirmationStep .withdraw-review-card {
        padding: 4px 12px;
    }

    #withdrawConfirmationStep .withdraw-review-row {
        padding: 11px 0;
    }

    #withdrawConfirmationStep .withdraw-review-row strong {
        font-size: 14px;
    }

    #withdrawConfirmationStep .button {
        font-size: 14px;
    }
}
/* =========================================
   NGOLA-EXPRES — JANELA DE ACESSO DOS AGENTES
   ========================================= */

.agent-access-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.agent-access-overlay[hidden] {
    display: none;
}

.agent-access-modal {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 30px 22px 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: agentModalAppear 0.22s ease-out;
}

.agent-access-modal h2 {
    margin: 0 0 8px;
    color: #172554;
    font-size: 21px;
}

.agent-access-modal p {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 14px;
}

.agent-access-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 22px;
    cursor: pointer;
}

.agent-access-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.agent-access-options[hidden] {
    display: none;
}

.agent-access-options button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #172554;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.agent-access-options button:last-child {
    background: #0f766e;
}

.agent-access-options button:hover {
    filter: brightness(1.15);
}

@keyframes agentModalAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* =========================================
   NGOLA-EXPRES — FORMULÁRIO DOS AGENTES
   ========================================= */

.agent-access-modal {
    max-height: 85vh;
    overflow-y: auto;
}

#agentRegisterForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    text-align: left;
}

#agentRegisterForm[hidden] {
    display: none;
}

#agentRegisterForm h3 {
    margin: 5px 0;
    color: #172554;
    font-size: 19px;
    text-align: center;
}

#agentRegisterForm > p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

#agentRegisterForm label {
    margin-top: 5px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

#agentRegisterForm input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
}

#agentRegisterForm input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.agent-phone-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-phone-field span {
    padding: 12px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 14px;
    font-weight: bold;
}

.agent-phone-field input {
    flex: 1;
}

#agentRegisterForm .agent-email-notice {
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
}

#agentRegisterForm button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

#agentRegisterForm button#agentBackToOptions {
    background: #e2e8f0;
    color: #334155;
}

#agentRegisterMessage {
    min-height: 18px;
    overflow-wrap: anywhere;
}

@media (max-width: 380px) {
    .agent-access-modal {
        padding: 28px 16px 20px;
    }
}

/* =========================================
   NGOLA-EXPRES — FORMULÁRIO DE INÍCIO DE SESSÃO
   ========================================= */

#agentLoginForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    text-align: left;
}

#agentLoginForm[hidden] {
    display: none;
}

#agentLoginForm h3 {
    margin: 5px 0;
    color: #172554;
    font-size: 19px;
    text-align: center;
}

#agentLoginForm > p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

#agentLoginForm label {
    margin-top: 5px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

#agentLoginForm input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
}

#agentLoginForm input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

#agentLoginForm .agent-phone-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

#agentLoginForm .agent-phone-field span {
    flex-shrink: 0;
}

#agentLoginForm .agent-phone-field input {
    flex: 1;
}

#agentLoginForm button {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

#agentLoginForm button#agentLoginBack {
    background: #e2e8f0;
    color: #334155;
}

#agentLoginForm button:hover {
    filter: brightness(1.08);
}

#agentLoginForm #agentLoginMessage {
    min-height: 18px;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

/* =========================================
   NGOLA-EXPRES — CARREGAMENTO DA CARTEIRA
   Modal, valores, métodos de pagamento e ID
   ========================================= */

/* Fundo escuro por trás da janela */
#buyWalletModal {
    position: fixed;
    inset: 0;
    z-index: 10001;

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

    padding: 16px;
    overflow-y: auto;

    background: rgba(2, 12, 29, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Respeitar o atributo hidden, caso seja utilizado */
#buyWalletModal[hidden] {
    display: none !important;
}

/* Janela branca do carregamento */
#buyWalletModal [role="dialog"] {
    position: relative;

    width: 100%;
    max-width: 420px;
    max-height: 92vh;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;

    background: #ffffff;
    color: #071a35;

    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);

    animation: buyWalletAppear 0.2s ease-out;
}

/* Título */
#buyWalletTitle {
    margin: 0 38px 12px 0;

    color: #071a35;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
}

/* Texto de apresentação */
#buyWalletModal [role="dialog"] > p {
    color: #526174;
    font-size: 14px;
    line-height: 1.6;
}

/* Botão de fechar */
#closeBuyWallet {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0;
    border: 0;
    border-radius: 50%;

    background: #edf2f7;
    color: #071a35;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
    transition: background 0.2s ease;
}

#closeBuyWallet:hover {
    background: #dbe6f5;
}

#closeBuyWallet:focus-visible {
    outline: 3px solid #1769ff;
    outline-offset: 3px;
}

/* Etiqueta da taxa de câmbio */
#buyWalletModal [role="dialog"] strong {
    overflow-wrap: anywhere;
}

/* Etiquetas dos campos */
#buyWalletModal [role="dialog"] label {
    display: block;

    margin: 12px 0 7px;

    color: #24364b;
    font-size: 14px;
    font-weight: 700;
}

/* Campos USD e Kz e campo do ID */
#buyWalletUSD,
#buyWalletKZ,
#buyWalletTransactionID {
    display: block;

    width: 100%;
    min-width: 0;
    min-height: 48px;

    padding: 12px 14px;
    margin: 0 0 14px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #ffffff;
    color: #071a35;

    font-family: inherit;
    font-size: 16px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Destaque ao selecionar um campo */
#buyWalletUSD:focus,
#buyWalletKZ:focus,
#buyWalletTransactionID:focus {
    outline: none;
    border-color: #1769ff;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

/* Campo calculado */
#buyWalletKZ,
#buyWalletKZ[readonly] {
    background: #f1f5f9;
    color: #1769ff;
    font-weight: 700;
}

/* Botão Avançar */
#buyWalletNext {
    width: 100%;
    min-height: 48px;

    padding: 12px 18px;
    border: 0;
    border-radius: 10px;

    background: #1769ff;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

#buyWalletNext:not(:disabled):hover {
    background: #0d55d9;
    transform: translateY(-1px);
}

#buyWalletNext:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mensagem de validação do valor */
#buyWalletMessage,
#buyWalletModal #buyWalletMessage {
    margin-top: 10px;

    font-size: 13px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

/* Separador dos métodos de pagamento */
#buyWalletPaymentSection hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

/* Título dos métodos de pagamento */
#buyWalletPaymentSection h3 {
    margin: 0 0 12px;

    color: #071a35;
    font-size: 18px;
    line-height: 1.4;
}

/* Resumo do montante */
#buyWalletPaymentSection p {
    color: #526174;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Grupo de botões BAI, BFA e EXPRESS */
#buyWalletPaymentSection > div:first-of-type {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;

    width: 100%;
    margin: 14px 0 16px !important;
}

/* Botões de seleção dos métodos */
#buyWalletPaymentSection [data-payment] {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 46px;

    padding: 10px 6px;
    border: 1px solid #1769ff;
    border-radius: 9px;

    background: #edf4ff;
    color: #1248a0;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

#buyWalletPaymentSection [data-payment]:hover {
    background: #1769ff;
    color: #ffffff;
}

#buyWalletPaymentSection [data-payment]:focus-visible {
    outline: 3px solid rgba(23, 105, 255, 0.35);
    outline-offset: 2px;
}

/* Área dos dados bancários */
#buyWalletPaymentDetails {
    width: 100%;
    min-width: 0;
}

/* Cartão com IBAN ou número EXPRESS */
#buyWalletPaymentDetails > div:first-child {
    width: 100%;
    min-width: 0;

    padding: 14px;
    margin-bottom: 12px;

    border: 1px solid #dce5f1;
    border-radius: 11px;

    background: #f7faff;
    box-sizing: border-box;
}

/* Tipo de dado bancário */
#buyWalletPaymentDetails > div:first-child p:first-child {
    margin: 0 0 8px;

    color: #526174;
    font-size: 12px;
    font-weight: 700;
}

/* IBAN ou número para pagamento */
#buyWalletPaymentDetails > div:first-child p:nth-child(2) {
    margin: 0;

    color: #071a35;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;

    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: text;
}

/* Titular da conta */
#buyWalletPaymentDetails > div:first-child p:last-child {
    color: #526174;
    font-size: 12px;
    line-height: 1.6;
}

/* Aviso de segurança: vermelho com texto branco */
#buyWalletPaymentDetails > div:nth-child(2) {
    padding: 9px 10px !important;
    margin-bottom: 14px;

    border: 1px solid #b91c1c;
    border-radius: 7px;

    background: #c62828 !important;
    color: #ffffff !important;

    font-size: 10px !important;
    line-height: 1.5 !important;

    overflow-wrap: anywhere;
}

/* Campo do ID da transação */
#buyWalletTransactionID {
    margin-top: 7px;
    margin-bottom: 12px;
}

/* Botão Concluir */
#buyWalletFinish {
    display: block;

    width: 100%;
    min-height: 48px;

    padding: 12px 18px;
    border: 0;
    border-radius: 10px;

    background: #16803c;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

#buyWalletFinish:not(:disabled):hover {
    background: #11632e;
}

#buyWalletFinish:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#buyWalletFinish:focus-visible {
    outline: 3px solid rgba(22, 128, 60, 0.3);
    outline-offset: 3px;
}

/* Mensagem de resultado do carregamento */
#buyWalletFinishMessage {
    margin-top: 10px;

    color: #526174;
    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

/* Animação de entrada da janela */
@keyframes buyWalletAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CARREGAMENTO — ADAPTAÇÃO A TELEMÓVEIS
   ========================================= */

@media (max-width: 480px) {
    #buyWalletModal {
        align-items: center;
        padding: 12px;
    }

    #buyWalletModal [role="dialog"] {
        max-width: 100%;
        max-height: 94vh;

        padding: 20px 16px;
        border-radius: 15px;
    }

    #buyWalletTitle {
        font-size: 21px;
    }

    #buyWalletPaymentSection h3 {
        font-size: 17px;
    }

    #buyWalletPaymentSection [data-payment] {
        min-height: 44px;
        padding: 9px 4px;
        font-size: 12px;
    }

    #buyWalletPaymentDetails > div:first-child {
        padding: 12px;
    }

    #buyWalletPaymentDetails > div:first-child p:nth-child(2) {
        font-size: 14px;
    }
}

/* Ecrãs muito estreitos */
@media (max-width: 340px) {
    #buyWalletModal [role="dialog"] {
        padding: 18px 12px;
    }

    #buyWalletPaymentSection > div:first-of-type {
        gap: 5px !important;
    }

    #buyWalletPaymentSection [data-payment] {
        font-size: 11px;
    }
}

/* Respeitar utilizadores que preferem menos animações */
@media (prefers-reduced-motion: reduce) {
    #buyWalletModal [role="dialog"] {
        animation: none;
    }

    #buyWalletModal *,
    #buyWalletModal *::before,
    #buyWalletModal *::after {
        transition-duration: 0.01ms !important;
    }
}