/* ═════════════════════════════════════════════════════════════
   OBOPay INFINITY · estilo gold/cream/black
   Portado e simplificado do demo HTML (claud artifact)
   ═════════════════════════════════════════════════════════════ */

:root {
    --gold:        #EFB71B;
    --gold-bright: #F5C940;
    --gold-dark:   #C99612;
    --gold-soft:   rgba(239, 183, 27, 0.15);
    --gold-fade:   rgba(239, 183, 27, 0.06);

    --cream:       #F8F7F2;
    --cream-dim:   rgba(248, 247, 242, 0.7);
    --cream-faint: rgba(248, 247, 242, 0.45);

    --black:       #0A0908;
    --black-card:  #161413;
    --black-soft:  #1F1D1B;
    --black-line:  rgba(248, 247, 242, 0.08);

    --success: #4CAF50;
    --warning: #FFA726;
    --danger:  #EF5350;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    color: var(--cream);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.obo-update-tools { padding: 14px 16px 64px; text-align: center; font-size: 12px; }
.obo-update-tools button { background: none; border: 0; color: var(--gold); padding: 12px; cursor: pointer; font: inherit; }
.obo-update-tools span { display: block; color: var(--cream-dim); }
.obo-update[hidden] { display: none; }
.obo-update {
    position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px;
    max-width: 460px; margin: 0 auto; z-index: 1000;
    background: var(--black-card); color: var(--cream); border: 1px solid var(--gold);
    border-radius: 12px; padding: 16px; box-shadow: 0 4px 24px #0009;
}
.obo-update p { margin: 0 0 12px; font-size: 14px; }
.obo-update > div { display: flex; flex-wrap: wrap; gap: 8px; }
.obo-update button { min-height: 44px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--gold); cursor: pointer; font: inherit; }
#obo-update-now { background: var(--gold); color: var(--black); }
#obo-update-later { background: transparent; color: var(--cream); }

/* ─── Páginas centralizadas (login, troca de senha) ──────────── */
.center-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 20% 30%, rgba(239, 183, 27, 0.10) 0%, transparent 55%),
        var(--black);
}

/* ─── Switcher Admin / Cliente ────────────────────────────── */
/* Switcher Admin/Cliente: canto inferior direito, discreto.
   position:fixed tira do fluxo, entao nao ocupa mais espaco no header nem
   empurra o card de login. z-index baixo de proposito -- o modal de anexo
   (9999) continua passando por cima. */
.panel-switch {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 40;
    display: inline-flex;
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    opacity: 0.45;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: opacity 0.15s;
}
.panel-switch:hover,
.panel-switch:focus-within { opacity: 1; }
.panel-switch-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--cream-dim);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.panel-switch-tab:hover { color: var(--gold); }
.panel-switch-tab.active {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 0 0 1px var(--gold-bright) inset;
}
.panel-switch-tab.active:hover { color: var(--black); }
.panel-switch-ic { display: inline-block; flex: 0 0 auto; }

/* (o switcher agora e fixo no canto; nao ocupa espaco no fluxo) */

.card-auth {
    background: var(--black-card);
    border-radius: 14px;
    padding: 48px 52px 36px;
    width: 100%;
    max-width: 460px;
    border-top: 2px solid var(--gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ─── Logotipo ────────────────────────────────────────────── */
.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--black-line);
}

.wm { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wm-row {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    letter-spacing: -0.01em;
    color: var(--cream);
    display: inline-flex;
    align-items: baseline;
    gap: 0.22em;
}
.wm-row .obo { font-weight: 700; }
.wm-row .pay { font-weight: 400; }

.wm-inf { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.wm-inf-trace { display: inline-block; width: 16px; height: 1.5px; background: var(--gold); }
.wm-inf-text  {
    font-size: 11px;
    letter-spacing: 0.42em;
    color: var(--gold);
    padding-left: 0.42em;
    font-weight: 500;
    text-transform: uppercase;
}

.tagline {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--cream-dim);
    text-transform: uppercase;
    text-align: center;
}

/* ─── Form ─────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--cream-dim);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--cream);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s;
}
.field input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--black);
}
.field .hint {
    font-size: 11px;
    color: var(--cream-faint);
    margin-top: 6px;
}

/* ─── Botões ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: 1px solid var(--black-line);
    border-radius: 6px;
    padding: 13px 18px;
    color: var(--cream);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}
.btn-primary:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--black);
}

/* ─── Alertas ──────────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.alert-error   { background: rgba(239, 83, 80, 0.10); border: 1px solid rgba(239, 83, 80, 0.30); color: #FFCDD2; }
.alert-success { background: rgba(76, 175, 80, 0.10); border: 1px solid rgba(76, 175, 80, 0.30); color: #C8E6C9; }

/* ─── Bloco de requisitos (troca de senha) ─────────────────── */
.senha-reqs {
    background: var(--black-soft);
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 11px;
    color: var(--cream-dim);
    line-height: 1.7;
}
.senha-reqs-title {
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ─── Telas auxiliares ─────────────────────────────────────── */
.auth-help {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: var(--cream-dim);
}
.auth-help a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold);
}
.auth-help a:hover { color: var(--gold-bright); }

/* Porta do admin: presente, mas sem competir com "Recuperar senha" — o
   parceiro nao pode ser puxado pra uma tela que nao e dele. */
.auth-help-alt {
    margin-top: 8px;
    opacity: .55;
}
.auth-help-alt a {
    color: var(--cream-dim);
    border-bottom-color: var(--cream-dim);
    /* Alvo de toque: 11px de texto e alvo pequeno demais pra dedo. O
       inline-block com padding leva a area util pra perto dos 44px que
       o celular pede, sem mudar o tamanho da letra. */
    display: inline-block;
    padding: 10px 16px;
}
.auth-help-alt a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.trocar-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    font-weight: 600;
}
.trocar-sub {
    text-align: center;
    font-size: 12px;
    color: var(--cream-dim);
    margin-bottom: 20px;
}

.auth-footer-tag {
    text-align: center;
    padding: 14px;
    font-size: 10px;
    color: var(--cream-faint);
    letter-spacing: 0.1em;
    font-style: italic;
}

/* ═════════════════════════════════════════════════════════════
   APP shell (logado · admin e cliente)
   ═════════════════════════════════════════════════════════════ */
.app {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}
.app-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--black-line);
    margin-bottom: 26px;
}
.logo-h .wm-row { font-size: 18px; }
.logo-h .wm-inf-trace { width: 10px; }
.logo-h .wm-inf-text { font-size: 8px; letter-spacing: 0.4em; padding-left: 0.4em; }

.app-user-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.app-user-info .name { font-weight: 600; font-size: 13px; }
.app-user-info .meta { font-size: 11px; color: var(--cream-dim); margin-top: 2px; }
.app-user-actions { display: flex; align-items: center; gap: 8px; }
.app-user-divider {
    width: 1px; height: 28px;
    background: var(--black-line);
    margin: 0 2px;
}

.app-header { gap: 14px; flex-wrap: wrap; }

/* Nav interna do admin (Acessos / Parceiros) */
.admin-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 8px;
    padding: 4px;
}
.admin-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--cream-dim);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.admin-nav-link:hover { color: var(--gold); background: rgba(239,183,27,0.06); }

/* Badge de pendencias no menu admin (Documentos) — pulsa pra chamar atencao */
@keyframes pulseBadge {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%      { transform: scale(1.15); opacity: 0.85;}
}
.admin-nav-badge { transform-origin: center; }

.app-main { padding: 0 0 24px; min-height: 60vh; }

.app-footer {
    padding-top: 18px;
    border-top: 1px solid var(--black-line);
    text-align: center;
    font-size: 10px;
    color: var(--cream-faint);
    letter-spacing: 0.08em;
}
.app-footer em { color: var(--gold); font-style: italic; }

.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 14px;
    margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.page-sub   { font-size: 12px; color: var(--cream-dim); margin-top: 4px; }

.btn-mini { padding: 8px 12px; font-size: 11px; }
.btn-secondary { background: var(--black-soft); border-color: var(--black-line); }
.btn-secondary:hover { background: var(--black-card); border-color: var(--gold); color: var(--gold); }
.btn-danger { color: var(--danger); border-color: rgba(239,83,80,0.3); }
.btn-danger:hover { background: rgba(239,83,80,0.10); border-color: var(--danger); color: var(--danger); }

/* ─── Tabela ─────────────────────────────────────────────── */
.table-wrap {
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 10px;
    overflow-x: auto;
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th {
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-dim);
    padding: 12px 16px;
    background: var(--black-soft);
    border-bottom: 1px solid var(--black-line);
    font-weight: 600;
}
.table-wrap td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--black-line);
    font-size: 13px;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--gold-fade); }

.table-foot {
    margin-top: 14px;
    font-size: 11px;
    color: var(--cream-faint);
    text-align: center;
}

.admin-open { color: var(--gold); text-decoration: none; display: inline-block; padding: 8px 0; }

/* Todas as opcoes do administrador ficam visiveis no telefone.
   As listas principais viram cartoes, sem esconder campos nem acoes. */
@media (max-width: 820px) {
    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 4px;
        padding: 6px !important;
        overflow: visible !important;
    }
    .admin-nav-link { min-height: 44px; gap: 6px; white-space: nowrap; }
    .admin-nav .admin-nav-badge {
        position: static !important;
        flex: 0 0 auto;
        animation: none !important;
    }
    .admin-mobile-list { background: transparent; border: 0; overflow: visible; }
    .admin-mobile-list table, .admin-mobile-list tbody { display: block; width: 100%; }
    .admin-mobile-list thead {
        position: absolute; width: 1px; height: 1px;
        overflow: hidden; clip-path: inset(50%);
    }
    .admin-mobile-list tr {
        display: block; margin-bottom: 12px;
        background: var(--black-card); border: 1px solid var(--black-line); border-radius: 10px;
        padding: 8px 12px;
    }
    .admin-mobile-list td {
        display: block; min-width: 0; padding: 8px 0;
        overflow-wrap: anywhere;
    }
    .admin-mobile-list td::before {
        content: attr(data-label); display: block; margin-bottom: 4px;
        color: var(--cream-dim); font-family: 'Inter', sans-serif;
        font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    }
    .admin-mobile-list .admin-open { min-height: 44px; padding: 10px 0; }
}

/* ─── Badges ────────────────────────────────────────────── */
.badge {
    display: inline-block; padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-active   { background: rgba(76,175,80,0.15);  color: #C8E6C9; }
.badge-pending  { background: rgba(255,167,38,0.15); color: #FFE0B2; }
.badge-inactive { background: rgba(255,255,255,0.06); color: var(--cream-dim); }
.badge-manual   { background: rgba(239,183,27,0.15); color: var(--gold); }
.badge-digital  { background: rgba(100,149,237,0.15); color: #B4CCFF; }

/* ─── Empty state ────────────────────────────────────────── */
.empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--black-card);
    border: 1px dashed var(--black-line);
    border-radius: 10px;
}
.empty-icon  { font-size: 40px; opacity: 0.6; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.empty-text  { font-size: 12px; color: var(--cream-dim); margin-bottom: 18px; }

/* ─── Form (admin novo acesso) ────────────────────────────── */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field select {
    width: 100%;
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--cream);
    font-family: inherit;
    font-size: 14px;
}
.field select:focus { outline: none; border-color: var(--gold); }

.hint-inline { font-size: 10px; color: var(--cream-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-opt {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px;
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}
.mode-opt input { display: none; }
.mode-opt.active { border-color: var(--gold); background: var(--gold-fade); }
.mode-sub { font-size: 11px; color: var(--cream-dim); font-weight: 400; }

.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
    cursor: pointer;
}
.checks input { width: 16px; height: 16px; accent-color: var(--gold); }

.conta-row {
    display: flex; gap: 12px; align-items: center;
    padding: 10px 12px;
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
}
.conta-row input { width: 16px; height: 16px; accent-color: var(--gold); }

/* ─── Detail ──────────────────────────────────────────────── */
.detail-card {
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 10px;
    overflow: hidden;
}
.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--black-line);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
    font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--cream-dim); font-weight: 600;
    padding-top: 4px;
}
.detail-value { font-size: 13px; }

.detail-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}
.detail-actions .btn { width: auto; }

/* ─── Credenciais (modal-like full page) ──────────────────── */
.creds-wrap {
    max-width: 540px;
    margin: 20px auto;
    background: var(--black-card);
    border-top: 2px solid var(--gold);
    border-radius: 12px;
    padding: 36px 40px;
    text-align: center;
}
.creds-icon {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--black);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 800;
}
.creds-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.creds-sub   { font-size: 13px; color: var(--cream-dim); margin-bottom: 24px; }

.creds-block {
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 20px 0 24px;
    text-align: left;
}
.creds-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--black-line);
}
.creds-row:last-child { border-bottom: none; }
.creds-label {
    font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cream-dim); font-weight: 600;
}
.creds-value { font-size: 14px; word-break: break-all; }
.creds-value.mono { font-weight: 600; color: var(--gold); }

.btn-copy {
    background: transparent; border: 1px solid var(--black-line);
    color: var(--cream-dim);
    padding: 6px 10px; border-radius: 4px;
    font-family: inherit; font-size: 10px; font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-copy:hover { border-color: var(--gold); color: var(--gold); }
.btn-copy.copied { background: var(--gold); color: var(--black); border-color: var(--gold); }

.creds-wrap .btn { width: 100%; }

/* ═════════════════════════════════════════════════════════════
   Cliente · dashboard + extrato
   ═════════════════════════════════════════════════════════════ */
.welcome-block { margin-bottom: 28px; }
.welcome-eyebrow {
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.welcome-title    { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.welcome-subtitle { font-size: 13px; color: var(--cream-dim); margin-top: 4px; }

.section-title {
    display: flex; align-items: center;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cream-dim); font-weight: 600;
    margin: 0 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--black-line);
}
.section-actions { margin-left: auto; display: flex; gap: 8px; }
.section-actions .btn { width: auto; }

/* ─── Cards de conta ────────────────────────────────────────── */
.contas-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.conta-card {
    position: relative;
    display: block;
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 10px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.conta-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.conta-card-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px;
}
.conta-codigo { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.conta-moeda  { color: var(--cream-dim); font-size: 11px; font-weight: 700; }
.conta-titulo { font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.conta-saldo  { display: flex; flex-direction: column; gap: 2px; }
.saldo-label  { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); }
.saldo-valor  { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 600; }
.saldo-valor.warn { color: var(--warning); }
.saldo-valor.ok   { color: var(--success); font-size: 14px; }
.conta-prox   { margin-top: 12px; font-size: 11px; color: var(--cream-dim); }
.conta-card-arrow {
    position: absolute; top: 18px; right: 16px;
    color: var(--cream-faint); font-size: 14px;
}

/* ─── Movimentações recentes ───────────────────────────────── */
.recent-mov {
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 10px;
    overflow: hidden;
}
.mov-row {
    display: grid;
    grid-template-columns: 90px 70px 1fr auto;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--black-line);
    align-items: center;
    font-size: 13px;
}
.mov-row:last-child { border-bottom: none; }
.mov-row:hover { background: var(--gold-fade); }
.mov-data    { font-size: 11px; color: var(--cream-dim); font-family: 'JetBrains Mono', monospace; }
.mov-conta   { color: var(--gold); font-weight: 700; font-size: 11px; }
.mov-desc    { line-height: 1.4; }
.mov-doc     { font-size: 10px; color: var(--cream-faint); margin-top: 2px; }
.mov-valor   { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; }
.mov-valor.gain  { color: var(--success); }
.mov-valor.spend { color: var(--warning); }

/* ─── Extrato ─────────────────────────────────────────────── */
.conta-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.conta-pill {
    padding: 8px 14px;
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cream-dim);
    text-decoration: none;
    transition: all 0.15s;
}
.conta-pill:hover { border-color: var(--gold); color: var(--gold); }
.conta-pill.active { background: var(--gold); border-color: var(--gold); color: var(--black); }

.periodo-filtro {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 10px;
}
.periodo-filtro label {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--cream-dim); font-weight: 600;
}
.periodo-filtro input[type=date] {
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--cream);
    font-family: inherit; font-size: 13px;
    color-scheme: dark;
}
.periodo-filtro input[type=date]:focus { outline: none; border-color: var(--gold); }
.periodo-filtro .btn { width: auto; padding: 9px 14px; }
.periodo-hint {
    margin-left: auto;
    font-size: 11px;
    color: var(--cream-dim);
    align-self: center;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.kpi-card {
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 10px;
    padding: 18px;
}
.kpi-card.highlight { border-color: var(--gold-soft); background: linear-gradient(180deg, var(--gold-fade) 0%, var(--black-card) 70%); }
.kpi-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 8px; font-weight: 600; }
.kpi-value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; }
.kpi-value.gold { color: var(--gold); }
.kpi-sub { font-size: 11px; color: var(--cream-dim); margin-top: 6px; }

.extrato-list {
    background: var(--black-card);
    border: 1px solid var(--black-line);
    border-radius: 10px;
    overflow: hidden;
}
.extrato-row {
    display: grid;
    grid-template-columns: 90px 90px 1fr 130px 90px;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--black-line);
    align-items: center;
    font-size: 13px;
}
.extrato-row:last-child { border-bottom: none; }
.extrato-row:hover { background: var(--gold-fade); }
.extrato-data { font-family: 'JetBrains Mono', monospace; color: var(--cream-dim); font-size: 11px; }
.extrato-tipo {
    display: inline-block; padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.extrato-tipo-invoice   { background: rgba(255,167,38,0.15);  color: #FFE0B2; }
.extrato-tipo-pagamento { background: rgba(76,175,80,0.15);   color: #C8E6C9; }
.extrato-tipo-ajuste    { background: rgba(255,255,255,0.06); color: var(--cream-dim); }
.extrato-desc { line-height: 1.4; }
.extrato-doc  { font-size: 10px; color: var(--cream-faint); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.extrato-valor { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; text-align: right; }
.extrato-valor.gain  { color: var(--success); }
.extrato-valor.spend { color: var(--warning); }
.extrato-valor-sub   { color: var(--cream-faint); font-weight: 400; font-size: 10px; margin-top: 2px; }
.extrato-status { font-size: 11px; font-weight: 600; }

/* ─── Tabela de extrato (estilo US8PAY com Débito/Crédito/Saldo) ─── */
.extrato-table-wrap {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow-x: auto;
    background: rgba(0,0,0,0.18);
}
.extrato-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    color: var(--cream);
}
.extrato-table thead th {
    text-align: left;
    padding: 9px 18px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--cream-dim);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.extrato-table thead th.num { text-align: right; }
.extrato-table tbody td {
    padding: 9px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
}
.extrato-table tbody tr:last-child td { border-bottom: none; }
.extrato-table tbody tr:hover { background: var(--gold-fade); }
.extrato-table td.num {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    white-space: nowrap;
}
.extrato-table td.col-data {
    color: var(--cream-dim);
    font-size: 10.5px;
    white-space: nowrap;
}
.extrato-table .extrato-doc { font-size: 9.5px; }
.extrato-table .extrato-valor-sub { font-size: 9.5px; }
.extrato-table .extrato-tipo { font-size: 9.5px; padding: 2px 6px; }
.extrato-table td.col-debito.spend { color: var(--warning); }
.extrato-table td.col-credito.gain { color: var(--success); }
.extrato-table td.col-saldo.gain   { color: var(--success); }
.extrato-table td.col-saldo.spend  { color: var(--warning); }
.extrato-table td.col-saldo        { font-weight: 700; }
.extrato-table .dash { color: var(--cream-faint); font-weight: 400; }
.extrato-table td.col-status { font-size: 11px; font-weight: 600; white-space: nowrap; }

/* ─── Responsivo ───────────────────────────────────────────── */
@media (max-width: 720px) {
    .kpi-grid    { grid-template-columns: 1fr; }
    .extrato-row { grid-template-columns: 80px 1fr 110px; gap: 10px; }
    .extrato-tipo, .extrato-status { display: none; }
    .extrato-table thead th, .extrato-table tbody td { padding: 8px 8px; font-size: 12px; }
    .extrato-table .col-status { display: none; }
}
@media (max-width: 520px) {
    .card-auth { padding: 32px 24px 24px; }
    .wm-row { font-size: 26px; }
    .row-2  { grid-template-columns: 1fr; }
    .mode-toggle { grid-template-columns: 1fr; }
    .detail-row { grid-template-columns: 1fr; }
    .detail-label { padding-top: 0; }
    .mov-row { grid-template-columns: 70px 1fr auto; }
    .mov-conta { display: none; }
}


/* Celular: switcher vira so os icones, pra nao brigar com o conteudo. */
@media (max-width: 820px) {
    .panel-switch { right: 10px; bottom: 10px; opacity: 0.8; }
    .panel-switch-tab { padding: 6px 9px; gap: 0; font-size: 0; }
    .panel-switch-ic { width: 15px; height: 15px; }
}


/* ═══════════════════════════════════════════════════════════════
   CELULAR: nada pode empurrar a pagina pra fora da tela.

   O menu do admin tem 6 links e, num telefone, ficava mais largo que a
   viewport -- empurrava o corpo inteiro e o conteudo aparecia cortado
   na esquerda. Agora o menu rola dentro de si mesmo em vez de esticar
   a pagina.
   ═══════════════════════════════════════════════════════════════ */
body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 820px) {
    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .app-user-box { justify-content: flex-start; }

    /* rola por dentro; o padding da direita e pro badge nao ser cortado */
    .admin-nav, .app-nav {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 18px;
        scrollbar-width: none;
    }
    .admin-nav::-webkit-scrollbar,
    .app-nav::-webkit-scrollbar { display: none; }

    /* dados do parceiro quebram linha em vez de esticar o cabecalho */
    .conv-head { gap: 8px; }
    .conv-head .meta { margin-left: 0; flex-wrap: wrap; gap: 8px 14px; }

    /* espaco pro switcher flutuante nao sentar em cima da dica */
    .conv-form { padding-bottom: 54px; }
}

/* ═════════════════════════════════════════════════════════════
   Telas de entrada · modelo F "Infinito" (aprovado pelo R7 em 15/09/2026)
   Login do parceiro, login do admin e "Solicitar convite" (/convite).
   Prefixo lx- de proposito: nao herda nem pisa no .card-auth/.field, que o
   2FA e o "recuperar senha" continuam usando.
   JS: /_releases/18be31d8e31c1b46aec58a9506c5ee25c13576ee/assets/js/infinity-login.js (o infinito, mascara, ver senha, Caps Lock).
   ═════════════════════════════════════════════════════════════ */
.lx-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background:
        radial-gradient(70% 45% at 50% 28%, rgba(239, 183, 27, 0.07), transparent 70%),
        #000;
}
.lx-logo {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 112px;
    height: auto;
    display: block;
    mix-blend-mode: screen;          /* o PNG tem fundo preto solido */
    -webkit-user-select: none;
    user-select: none;
}
.lx-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 84px 20px 0;
}
.lx-hero { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.lx-inf  { display: block; width: 100%; height: 170px; }
.lx-page-conv .lx-inf { height: 110px; }
.lx-word {
    font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
    font-weight: 500;
    font-size: 26px;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    line-height: 1;
    margin-top: -6px;
    color: var(--cream);
}
.lx-badge {
    margin-top: 12px;
    padding: 3px 8px 3px 11px;
    border-radius: 4px;
    background: var(--gold);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.32em;
}
.lx-tag {
    margin-top: 10px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gold);
}

.lx-side { width: 100%; max-width: 360px; }
.lx-card {
    background: rgba(22, 20, 19, 0.78);
    border: 1px solid var(--black-line);
    border-radius: 16px;
    padding: 20px 18px 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.lx-field { display: grid; gap: 6px; margin-bottom: 14px; }
.lx-field label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream-dim);
}
.lx-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-inp {
    display: flex;
    align-items: center;
    background: var(--black-soft);
    border: 1px solid var(--black-line);
    border-radius: 10px;
    transition: border-color 0.15s, background 0.15s;
}
.lx-inp:focus-within { border-color: var(--gold); background: var(--black); }
.lx-inp-err          { border-color: rgba(239, 83, 80, 0.6); }
.lx-inp input,
.lx-inp select,
.lx-inp textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--cream);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    padding: 13px 14px;
    resize: none;
}
.lx-inp select        { -webkit-appearance: none; appearance: none; cursor: pointer; font-size: 14px; }
.lx-inp select option { background: var(--black-card); color: var(--cream); }
.lx-inp input:focus,
.lx-inp select:focus,
.lx-inp textarea:focus { outline: none; }
.lx-inp input::placeholder,
.lx-inp textarea::placeholder { color: var(--cream-faint); }
.lx-mono { font-family: "JetBrains Mono", monospace !important; letter-spacing: 0.1em; }
.lx-eye {
    align-self: stretch;
    padding: 0 14px;
    background: none;
    border: 0;
    color: var(--cream-faint);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.lx-eye:hover { color: var(--gold); }
.lx-hint { font-size: 11px; color: var(--cream-faint); }
.lx-caps { font-size: 11.5px; color: #FFD27A; }

.lx-go {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    color: var(--black);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #D9A415);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px rgba(239, 183, 27, 0.18);
}
.lx-go:hover { filter: brightness(1.06); }
.lx-go:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.lx-spin {
    display: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(10, 9, 8, 0.3);
    border-top-color: var(--black);
    animation: lx-gira 0.8s linear infinite;
}
.lx-carregando { opacity: 0.85; cursor: progress; }
.lx-carregando .lx-spin { display: inline-block; }
@keyframes lx-gira { to { transform: rotate(360deg); } }

.lx-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.45;
}
.lx-alert-err { background: rgba(239, 83, 80, 0.10); border: 1px solid rgba(239, 83, 80, 0.32); color: #FFCDD2; }
.lx-alert-ok  { background: rgba(76, 175, 80, 0.10);  border: 1px solid rgba(76, 175, 80, 0.30);  color: #C8E6C9; }

/* "Esqueceu sua senha? Recuperar / [Administrador]" */
.lx-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--cream-dim);
}
.lx-links a { text-decoration: none; }
.lx-rec { margin-left: 4px; color: var(--gold); font-weight: 600; border-bottom: 1px dotted var(--gold); }
.lx-sep { margin: 0 7px; color: var(--cream-faint); }
/* Celular estreito: "Recuperar / ADMINISTRADOR" nao cabe numa linha e a barra
   ficava pendurada no fim. Abaixo de 375px o botao desce sozinho, sem a barra. */
@media (max-width: 374px) {
    .lx-links { flex-direction: column; gap: 10px; }
    .lx-sep   { display: none; }
}
.lx-adm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid rgba(248, 247, 242, 0.18);
    border-radius: 99px;
    color: var(--cream-faint);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lx-adm:hover { color: var(--gold); border-color: rgba(239, 183, 27, 0.55); background: rgba(239, 183, 27, 0.06); }
.lx-adm svg   { width: 11px; height: 11px; }
.lx-back {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--cream-dim);
    text-decoration: none;
}
.lx-back:hover { color: var(--gold); }

.lx-invite { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--cream-dim); }
.lx-invite a { color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(239, 183, 27, 0.4); }
.lx-invite a:hover { border-bottom-color: var(--gold); }
.lx-seal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 11px;
    color: var(--cream-faint);
}
.lx-seal i { width: 7px; height: 7px; border-radius: 50%; background: #7BC47F; box-shadow: 0 0 0 3px rgba(123, 196, 127, 0.15); }

/* God is faithful / BY OBOPAY */
.lx-sign { display: grid; justify-items: center; gap: 4px; padding: 22px 0 24px; line-height: 1.15; text-align: center; }
.lx-sign em {
    font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 16px;
    color: var(--cream-dim);
}
.lx-sign span { font-size: 9px; font-weight: 600; letter-spacing: 0.36em; padding-left: 0.36em; color: var(--gold); }

/* /convite */
.lx-h { font-family: "Cormorant Garamond", Garamond, serif; font-weight: 500; font-size: 25px; line-height: 1.1; margin-bottom: 4px; }
.lx-p { font-size: 12.5px; color: var(--cream-dim); margin: 0 0 16px; }
.lx-lgpd { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 14px; font-size: 11.5px; line-height: 1.4; color: var(--cream-dim); cursor: pointer; }
.lx-lgpd input { accent-color: var(--gold); margin-top: 2px; }
.lx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lx-ok { text-align: center; padding: 22px 18px 16px; }
.lx-ok b { display: block; font-size: 16px; margin-bottom: 4px; }
.lx-ok p { font-size: 13px; color: var(--cream-dim); margin: 0; }
.lx-ok-ic {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
    color: #7BC47F;
    background: rgba(123, 196, 127, 0.12);
    border: 1px solid rgba(123, 196, 127, 0.4);
}

/* computador: o infinito a esquerda, o formulario a direita */
@media (min-width: 880px) {
    .lx-logo { top: 28px; left: 36px; width: 150px; }
    .lx-main { flex-direction: row; gap: 56px; padding: 40px 48px 0; }
    .lx-hero { flex: 1; min-width: 0; }
    .lx-inf  { height: 240px; }
    .lx-page-conv .lx-inf { height: 200px; }
    .lx-word { font-size: 34px; }
    .lx-side { flex: 0 0 360px; }
    .lx-card { padding: 24px 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .lx-spin { animation: none; } }

/* Celular: preserva o tamanho dos campos e reduz o espaco decorativo.
   Alturas pequenas/teclado continuam rolaveis, sem cortar o formulario. */
@media (max-width: 520px) {
    .lx-logo { top: 16px; left: 16px; width: 100px; }
    .lx-main { justify-content: flex-start; padding: 64px 16px 0; gap: 16px; }
    .lx-inf { height: clamp(80px, 15svh, 115px); }
    .lx-page-conv .lx-inf { height: 80px; }
    .lx-word { font-size: 24px; }
    .lx-tag { letter-spacing: 0.16em; }
    .lx-sign { padding: 14px 16px 18px; }
    .lx-side, .lx-card, .lx-field, .lx-inp, .lx-f2 { min-width: 0; }
    .lx-f2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app { padding: 16px 12px; }
    .app-header, .app-main, .app-user-info { min-width: 0; }
    .app-user-info { overflow-wrap: anywhere; }
    .app-user-actions { flex-wrap: wrap; }
    .admin-nav-link, .app-nav a { flex-shrink: 0; }
}

/* Admin · convites */
.cv-abas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cv-aba {
    padding: 6px 12px;
    border: 1px solid var(--black-line);
    border-radius: 99px;
    color: var(--cream-dim);
    font-size: 12px;
    text-decoration: none;
}
.cv-aba b     { margin-left: 6px; font-weight: 700; }
.cv-aba:hover { border-color: var(--gold); color: var(--gold); }
.cv-aba.on    { background: var(--gold); border-color: var(--gold); color: var(--black); }
.cv-msg   { max-width: 360px; white-space: pre-wrap; font-size: 12.5px; color: var(--cream-dim); }
.cv-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
