/*
 * Pakum Partner Portal — Base CSS (Fase 2.0 scaffold)
 *
 * Minimal styles for the auth pages and placeholder dashboard.
 * Full design system (iGaming "Pakum Experts" visual) is LOLA's scope (Fase 2.1).
 * This file is intentionally minimal — just enough to make the auth flow usable
 * and the placeholder dashboard recognizable.
 */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Tokens base (preservados integralmente da Fase 2.0) ---- */
:root {
    --color-bg:       #0a0e1a;
    --color-surface:  #0f1729;
    --color-border:   rgba(255,255,255,0.08);
    --color-text:     #e2e8f0;
    --color-muted:    #94a3b8;
    --color-primary:  #3b82f6;
    --color-primary-hover: #2563eb;
    --color-error-bg:    rgba(239,68,68,0.1);
    --color-error-border: rgba(239,68,68,0.3);
    --color-error-text:   #fca5a5;
    --color-success-bg:   rgba(16,185,129,0.1);
    --color-success-border: rgba(16,185,129,0.3);
    --color-success-text:   #6ee7b7;
    --radius:  12px;
    --radius-sm: 8px;

    /* ---- Tokens novos (Fatia 2.1, LOLA spec 2026-06-28) ---- */
    --color-gold:            #f59e0b;   /* dourado — saldo disponível e comissões */
    --color-gold-muted:      rgba(245,158,11,0.12);
    --color-surface-2:       #162035;   /* superfície secundária, hover de row */
    --color-positive:        #10b981;   /* métrica positiva */
    --color-positive-muted:  rgba(16,185,129,0.10);
    --color-badge-pending:   rgba(245,158,11,0.15);
    --color-badge-confirmed: rgba(16,185,129,0.15);
    --color-badge-cancelled: rgba(239,68,68,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ---- Auth layout ---- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 32px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-text {
    font-size: 22px;
    letter-spacing: -0.3px;
    color: var(--color-text);
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.auth-desc {
    color: var(--color-muted);
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* ---- Alerts ---- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.alert-error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    color: var(--color-error-text);
}

.alert-success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success-text);
}

/* ---- Form ---- */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group label small {
    font-size: 11px;
    text-transform: none;
    font-weight: 400;
}

.form-group input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--color-text);
    font-size: 15px;
    transition: border-color 0.2s;
    width: 100%;
}

.form-group input::placeholder { color: var(--color-muted); opacity: 0.7; }

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    min-height: 44px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}

.btn-full { width: 100%; margin-top: 4px; }

/* ---- Auth links ---- */
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--color-muted);
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

/* ---- Portal layout (authenticated pages) ---- */
.portal-page { min-height: 100vh; }

.portal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.portal-nav-brand {
    font-size: 16px;
    letter-spacing: -0.2px;
}

.portal-nav-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.portal-nav-links a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.portal-nav-links a:hover,
.portal-nav-links a.active { color: var(--color-text); }

.portal-main {
    padding: 40px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.portal-main h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.text-muted { color: var(--color-muted); font-size: 14px; margin-bottom: 32px; }

.placeholder-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.7;
}

.placeholder-card p + p { margin-top: 8px; }

/* ============================================================
   ADIÇÕES — Fatia 2.1 (LOLA spec 2026-06-28)
   Adicionadas após o bloco existente. Nada acima foi alterado.
   ============================================================ */

/* ---- Nav: scroll horizontal em mobile para 5+ links ---- */
.portal-nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.portal-nav-links::-webkit-scrollbar { display: none; }

/* ---- Dashboard: header de saudação ---- */
.dash-header { margin-bottom: 24px; }
.dash-header h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}
.dash-code {
    color: var(--color-primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ---- Grid de métricas ---- */
.dash-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
@media (min-width: 480px) {
    .dash-metrics { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .dash-metrics { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.dash-metric-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dash-metric-card--primary {
    border-color: rgba(245,158,11,0.3);
    background: linear-gradient(135deg, var(--color-surface) 70%, var(--color-gold-muted) 100%);
}
.dash-metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-muted);
}
.dash-metric-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.dash-metric-value--gold { color: var(--color-gold); }
.dash-metric-sub {
    font-size: 11px;
    color: var(--color-muted);
}

/* ---- CTA link de afiliado ---- */
.dash-link-cta {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 32px;
}
.dash-link-cta__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    margin-bottom: 10px;
}
.dash-link-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
@media (min-width: 480px) {
    .dash-link-row { flex-direction: row; align-items: stretch; }
}
.dash-link-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--color-text);
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    min-height: 44px;
    cursor: text;
    user-select: all;
    width: 100%;
}
.btn-gold {
    background: var(--color-gold);
    color: #000;
    font-weight: 700;
    white-space: nowrap;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, transform 0.1s;
}
.btn-gold:hover  { background: #d97706; }
.btn-gold:active { transform: scale(0.97); }

.dash-link-secondary {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
}
.dash-link-secondary:hover { text-decoration: underline; }

/* ---- Seção genérica ---- */
.dash-section { margin-bottom: 32px; }
.dash-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}
.dash-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}
.dash-section-link {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}
.dash-section-link:hover { text-decoration: underline; }

/* ---- Estado vazio (reutilizável) ---- */
.dash-empty {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
}
.dash-empty__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.dash-empty__sub {
    font-size: 13px;
    color: var(--color-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* ---- Lista de comissões (dashboard resumido) ---- */
.dash-comissao-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dash-comissao-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding: 12px 16px;
    background: var(--color-surface);
    align-items: center;
}
.dash-comissao-data   { font-size: 12px; color: var(--color-muted); grid-column: 1; grid-row: 1; }
.dash-comissao-valor  { font-size: 15px; font-weight: 700; color: var(--color-text); grid-column: 2; grid-row: 1; text-align: right; }
.dash-comissao-origem { font-size: 13px; color: var(--color-text); grid-column: 1; grid-row: 2; }
.dash-comissao-item .badge { grid-column: 2; grid-row: 2; justify-self: end; }

@media (min-width: 640px) {
    .dash-comissao-item {
        grid-template-columns: 110px 1fr auto auto;
        grid-template-rows: auto;
        gap: 0 16px;
    }
    .dash-comissao-data   { grid-column: 1; grid-row: 1; }
    .dash-comissao-origem { grid-column: 2; grid-row: 1; }
    .dash-comissao-valor  { grid-column: 3; grid-row: 1; text-align: right; }
    .dash-comissao-item .badge { grid-column: 4; grid-row: 1; }
}

/* ---- Badges de status ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.badge--disponivel,
.badge--pago {
    background: var(--color-badge-confirmed);
    color: var(--color-positive);
}
.badge--pendente {
    background: var(--color-badge-pending);
    color: var(--color-gold);
}
.badge--cancelado {
    background: var(--color-badge-cancelled);
    color: #fca5a5;
}

/* ---- Link cards (Meus Links) ---- */
.link-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.link-card--primary { border-color: rgba(245,158,11,0.4); }
.link-card__type {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.link-card__badge {
    display: inline-block;
    background: var(--color-gold-muted);
    color: var(--color-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 99px;
}
.link-card__badge--secondary {
    background: rgba(59,130,246,0.12);
    color: var(--color-primary);
}
.link-card__hint { font-size: 13px; color: var(--color-muted); }
.link-card__url-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
@media (min-width: 480px) {
    .link-card__url-row { flex-direction: row; align-items: stretch; }
}
.link-card__stats { font-size: 13px; color: var(--color-muted); }
.link-stat strong { color: var(--color-text); }

/* Botão outline */
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-weight: 700;
    white-space: nowrap;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* ---- Tabela de links e extrato ---- */
.links-table-wrap,
.extrato-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}
.links-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 400px;
}
.links-table th {
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.links-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-surface);
}
.links-table tr:last-child td { border-bottom: none; }
.links-table tbody tr:hover td { background: var(--color-surface-2); }

/* ---- Extrato: card de saldo ---- */
.extrato-saldo {
    background: var(--color-surface);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 480px) {
    .extrato-saldo { flex-direction: row; align-items: center; gap: 24px; }
}
.extrato-saldo__item { display: flex; flex-direction: column; gap: 4px; }
.extrato-saldo__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
}
.extrato-saldo__valor {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.5px;
}
.extrato-saldo__valor--gold { color: var(--color-gold); }
.extrato-saldo__divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
    display: none;
}
@media (min-width: 480px) { .extrato-saldo__divider { display: block; } }
.extrato-saldo__nota {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: auto;
}
@media (min-width: 480px) {
    .extrato-saldo__nota { margin-left: auto; text-align: right; max-width: 180px; }
}

/* Colunas de extrato */
@media (max-width: 479px) { .extrato-col-tipo { display: none; } }
.extrato-col-valor { text-align: right; }
.extrato-td-valor  { text-align: right; font-weight: 700; color: var(--color-positive); }
.extrato-td-data   { color: var(--color-muted); font-size: 13px; white-space: nowrap; }
.extrato-tipo-label { font-size: 12px; color: var(--color-muted); white-space: nowrap; }

/* ---- Paginação ---- */
.extrato-paginacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}
.extrato-pag-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.extrato-pag-btn:hover { background: var(--color-surface-2); }
.extrato-pag-btn--disabled { color: var(--color-muted); cursor: not-allowed; opacity: 0.5; }
.extrato-pag-info { font-size: 13px; color: var(--color-muted); text-align: center; }

/* ---- Form de perfil ---- */
.perfil-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 560px;
}
.perfil-section {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    background: var(--color-surface);
}
.perfil-section__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    padding: 0 4px;
    margin-bottom: 16px;
    display: block;
}
.perfil-section__desc {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}
.perfil-section .form-group + .form-group { margin-top: 14px; }
.perfil-field-hint {
    font-size: 12px;
    color: var(--color-muted);
    line-height: 1.4;
    margin-top: 4px;
    display: block;
}
.form-label-hint {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-muted);
    margin-left: 4px;
}
.form-group input[disabled],
.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--color-border);
}
.perfil-select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--color-text);
    font-size: 15px;
    width: 100%;
    min-height: 44px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    transition: border-color 0.2s;
}
.perfil-select:focus { outline: none; border-color: var(--color-primary); }
.perfil-select option { background: #0f1729; color: #e2e8f0; }
.perfil-actions { margin-top: 4px; max-width: 560px; }
.perfil-senha-link {
    margin-top: 20px;
    max-width: 560px;
    font-size: 13px;
    text-align: right;
}
.perfil-senha-link a { color: var(--color-primary); text-decoration: none; }
.perfil-senha-link a:hover { text-decoration: underline; }

/* ---- Medidor de força de senha (redefinir-senha.php) ---- */
.senha-strength {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}
.senha-strength__bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: transparent;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* ============================================================
   F1 — Re-skin premium (ADR-0029b, fatia F1)
   Tokens de gradiente, glow, selos, grid premium.
   Adicionado abaixo do bloco existente — nada acima alterado.
   ============================================================ */

/* ---- Tokens premium F1 ---- */
:root {
    /* Gradientes de fundo premium */
    --gradient-bg-hero:     linear-gradient(135deg, #0a0e1a 0%, #0f1a2e 50%, #0a1020 100%);
    --gradient-surface:     linear-gradient(135deg, #0f1729 0%, #162035 100%);
    --gradient-gold-card:   linear-gradient(135deg, #0f1729 60%, rgba(245,158,11,0.08) 100%);
    --gradient-gold-card-h: linear-gradient(135deg, #162035 60%, rgba(245,158,11,0.12) 100%);

    /* Glow dourado */
    --glow-gold:    0 0 20px rgba(245,158,11,0.18), 0 2px 8px rgba(0,0,0,0.5);
    --glow-gold-lg: 0 0 40px rgba(245,158,11,0.22), 0 4px 16px rgba(0,0,0,0.6);

    /* Sombra de card padrão */
    --shadow-card:  0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
    --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);

    /* Gradientes de selos por tier */
    --selo-explorer:  linear-gradient(135deg, #334155 0%, #1e293b 100%);
    --selo-bronze:    linear-gradient(135deg, #78350f 0%, #92400e 60%, #b45309 100%);
    --selo-silver:    linear-gradient(135deg, #334155 0%, #64748b 60%, #94a3b8 100%);
    --selo-gold:      linear-gradient(135deg, #92400e 0%, #d97706 50%, #f59e0b 100%);
    --selo-platinum:  linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #60a5fa 100%);
    --selo-diamond:   linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #a78bfa 100%);
    --selo-black-owl: linear-gradient(135deg, #0a0e1a 0%, #1e1b4b 50%, #312e81 100%);

    /* Bordas de selos */
    --border-bronze:    rgba(180,83,9,0.6);
    --border-silver:    rgba(148,163,184,0.5);
    --border-gold:      rgba(245,158,11,0.7);
    --border-platinum:  rgba(96,165,250,0.6);
    --border-diamond:   rgba(167,139,250,0.7);
    --border-black-owl: rgba(99,102,241,0.5);

    /* Radius premium */
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ---- Grid premium de métricas (sobrescreve o existente com glow e sombra) ---- */
.dash-metric-card {
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.15s;
    background: var(--gradient-surface);
}
.dash-metric-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}
.dash-metric-card--primary {
    border-color: rgba(245,158,11,0.35);
    background: var(--gradient-gold-card);
    box-shadow: var(--glow-gold);
}
.dash-metric-card--primary:hover {
    background: var(--gradient-gold-card-h);
    box-shadow: var(--glow-gold-lg);
}

/* ---- partnerCard — card genérico reutilizável ---- */
.partner-card {
    background: var(--gradient-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.15s;
}
.partner-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}
.partner-card--gold {
    border-color: rgba(245,158,11,0.35);
    background: var(--gradient-gold-card);
    box-shadow: var(--glow-gold);
}
.partner-card--gold:hover {
    background: var(--gradient-gold-card-h);
    box-shadow: var(--glow-gold-lg);
}
.partner-card__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-muted);
    margin-bottom: 8px;
}
.partner-card__value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.partner-card__value--gold { color: var(--color-gold); }
.partner-card__sub {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 4px;
}

/* ---- partnerBadge — badge genérico reutilizável ---- */
.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.partner-badge--gold {
    background: var(--color-gold-muted);
    color: var(--color-gold);
    border: 1px solid rgba(245,158,11,0.3);
}
.partner-badge--positive {
    background: var(--color-positive-muted);
    color: var(--color-positive);
    border: 1px solid rgba(16,185,129,0.25);
}
.partner-badge--primary {
    background: rgba(59,130,246,0.12);
    color: var(--color-primary);
    border: 1px solid rgba(59,130,246,0.25);
}
.partner-badge--muted {
    background: rgba(148,163,184,0.08);
    color: var(--color-muted);
    border: 1px solid rgba(148,163,184,0.2);
}

/* ---- partnerSelo — selos de nível/ranking ---- */
.partner-selo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s;
}
.partner-selo--explorer {
    background: var(--selo-explorer);
    color: #94a3b8;
    border-color: rgba(148,163,184,0.3);
}
.partner-selo--bronze {
    background: var(--selo-bronze);
    color: #fbbf24;
    border-color: var(--border-bronze);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.partner-selo--silver {
    background: var(--selo-silver);
    color: #e2e8f0;
    border-color: var(--border-silver);
}
.partner-selo--gold {
    background: var(--selo-gold);
    color: #fff;
    border-color: var(--border-gold);
    box-shadow: 0 0 14px rgba(245,158,11,0.35), 0 2px 8px rgba(0,0,0,0.4);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.partner-selo--platinum {
    background: var(--selo-platinum);
    color: #e0f2fe;
    border-color: var(--border-platinum);
    box-shadow: 0 0 14px rgba(96,165,250,0.3), 0 2px 8px rgba(0,0,0,0.4);
}
.partner-selo--diamond {
    background: var(--selo-diamond);
    color: #ede9fe;
    border-color: var(--border-diamond);
    box-shadow: 0 0 14px rgba(167,139,250,0.35), 0 2px 8px rgba(0,0,0,0.4);
}
.partner-selo--black-owl {
    background: var(--selo-black-owl);
    color: #c7d2fe;
    border-color: var(--border-black-owl);
    box-shadow: 0 0 18px rgba(99,102,241,0.4), 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* ---- Upgrades de seções premium ---- */
.dash-section {
    /* Mantém estrutura existente, adiciona separação visual */
    padding-top: 4px;
}
.dash-section-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}

/* ---- CTA link premium: borda dourada com glow sutil ---- */
.dash-link-cta {
    background: var(--gradient-gold-card);
    border-color: rgba(245,158,11,0.3);
    box-shadow: var(--glow-gold);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s;
}
.dash-link-cta:hover {
    box-shadow: var(--glow-gold-lg);
}

/* ---- Nav: fundo levemente mais escuro premium ---- */
.portal-nav {
    background: #080c18;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 2px 12px rgba(0,0,0,0.3);
}

/* ---- Link cards premium ---- */
.link-card {
    background: var(--gradient-surface);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s, transform 0.15s;
}
.link-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}
.link-card--primary {
    border-color: rgba(245,158,11,0.4);
    background: var(--gradient-gold-card);
    box-shadow: var(--glow-gold);
}
.link-card--primary:hover {
    background: var(--gradient-gold-card-h);
    box-shadow: var(--glow-gold-lg);
}

/* ---- Saldo extrato premium ---- */
.extrato-saldo {
    background: var(--gradient-gold-card);
    box-shadow: var(--glow-gold);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s;
}
.extrato-saldo:hover {
    box-shadow: var(--glow-gold-lg);
}

/* ---- Tabela premium (extrato + links): linha hover mais visível ---- */
.links-table tbody tr:hover td {
    background: var(--color-surface-2);
    transition: background 0.12s;
}

/* ---- Form de perfil premium ---- */
.perfil-section {
    background: var(--gradient-surface);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s;
}

/* ---- Auth card premium ---- */
.auth-card {
    background: var(--gradient-surface);
    box-shadow: var(--shadow-card);
}
