:root {
    --bg: #09090b;
    --bg-card: #121218;
    --bg-elevated: #1a1a22;
    --bg-input: #0f0f14;
    --border: #2a2a36;
    --border-subtle: #1f1f28;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    /* RushPay — índigo / ciano */
    --accent: #818cf8;
    --accent-dim: #6366f1;
    --accent-bright: #a5b4fc;
    --accent-cyan: #22d3ee;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-soft: rgba(99, 102, 241, 0.12);
    --accent-border: rgba(129, 140, 248, 0.35);
    --accent-on: #fff;
    --pix-teal: #22d3ee;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --font: 'DM Sans', system-ui, sans-serif;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Bloqueio de inspetor (DevTools) */
html.devtools-blocked body {
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

#devtools-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(9, 9, 11, 0.94);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

#devtools-guard-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.devtools-guard__panel {
    max-width: 22rem;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.devtools-guard__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--warning);
}

.devtools-guard__title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.devtools-guard__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.devtools-guard__hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.devtools-guard__hint kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    font-family: inherit;
    font-size: 0.7rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 100% 50%, rgba(34, 211, 238, 0.06), transparent),
        radial-gradient(ellipse 40% 30% at 0% 85%, rgba(99, 102, 241, 0.05), transparent);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

body.pix-page .container {
    max-width: 400px;
    padding: 1rem 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

body.auth-page {
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

body.auth-page .site-header { position: absolute; top: 0; left: 0; right: 0; }
body.auth-page .container { width: 100%; max-width: 420px; margin: auto; padding-top: 4rem; }
body.auth-page .site-footer { margin-top: auto; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-user { display: flex; align-items: center; gap: 1rem; }
.nav-email { color: var(--text-muted); font-size: 0.875rem; display: none; }

@media (min-width: 640px) {
    .nav-email { display: block; }
}

.container {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem;
}

.container-wide {
    max-width: 960px;
}

.nav-guest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Landing — minimal com detalhes */
body.landing-page {
    background-image:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(99, 102, 241, 0.14), transparent),
        radial-gradient(ellipse 40% 30% at 100% 60%, rgba(34, 211, 238, 0.06), transparent);
}

body.landing-page .container-wide {
    max-width: 680px;
}

body.landing-page .site-header {
    background: rgba(9, 9, 11, 0.6);
    border-bottom-color: var(--border-subtle);
}

.landing {
    padding: 0.25rem 0 2.5rem;
}

.landing-hero {
    position: relative;
    text-align: center;
    padding: 2rem 0 2.25rem;
}

.landing-hero__glow {
    position: absolute;
    top: -2rem;
    left: 50%;
    width:  min(420px, 90vw);
    height: 200px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2), transparent 70%);
    pointer-events: none;
}

.landing-eyebrow {
    position: relative;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 0.85rem;
}

.landing-hero__title {
    position: relative;
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.landing-hero__brand {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-hero__lead {
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 28rem;
    margin: 0 auto 1.5rem;
}

.landing-hero__lead strong {
    color: var(--text);
    font-weight: 600;
}

.landing-hero__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.landing-features {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .landing-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
}

.landing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(18, 18, 24, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}

.landing-features li:hover {
    border-color: var(--border);
    background: var(--bg-card);
}

.landing-features__icon {
    flex-shrink: 0;
    display: flex;
    color: var(--accent);
    margin-top: 0.1rem;
}

.landing-features__icon svg {
    width: 20px;
    height: 20px;
}

.landing-features strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.landing-features li > div > span {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.landing-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.1rem;
    margin-bottom: 2rem;
}

.landing-panel__head {
    margin-bottom: 1rem;
}

.landing-panel__title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.landing-panel__desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.landing-stats__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.landing-kpi {
    padding: 0.65rem 0.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
}

.landing-kpi__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.landing-kpi:first-child .landing-kpi__value {
    color: var(--accent-bright);
}

.landing-kpi__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.landing-chart-wrap {
    position: relative;
    height: 180px;
    margin: 0 -0.25rem;
}

.landing-section {
    margin-bottom: 2rem;
}

.landing-section__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    text-align: center;
}

.landing-steps {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    counter-reset: none;
}

@media (min-width: 600px) {
    .landing-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.landing-steps li {
    padding: 1rem;
    border-left: 2px solid var(--accent-border);
    background: linear-gradient(90deg, var(--accent-soft), transparent 80%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.landing-steps__n {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.landing-steps h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.landing-steps p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.landing-detail__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.landing-detail__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.landing-detail__list li {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
}

.landing-detail__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.landing-cta {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
    border-top: 1px solid var(--border-subtle);
}

.landing-cta__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.landing-live-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(320px, calc(100vw - 2rem));
    padding: 0.7rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-live-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.landing-live-toast.is-deposit {
    border-color: rgba(129, 140, 248, 0.35);
}

.landing-live-toast.is-withdraw {
    border-color: rgba(34, 211, 238, 0.3);
}

.landing-live-toast__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
}

.landing-live-toast.is-deposit .landing-live-toast__icon {
    color: var(--accent-bright);
    background: var(--accent-soft);
}

.landing-live-toast.is-withdraw .landing-live-toast__icon {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
}

.landing-live-toast__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.landing-live-toast__line {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.landing-live-toast__line strong {
    color: var(--text);
    font-weight: 600;
}

.landing-live-toast__meta {
    font-size: 0.68rem;
    color: var(--text-dim);
}

.landing-live-toast__amount {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-live-toast.is-deposit .landing-live-toast__amount {
    color: var(--accent-bright);
}

.landing-live-toast.is-withdraw .landing-live-toast__amount {
    color: var(--accent-cyan);
}

@media (max-width: 400px) {
    .landing-stats__kpis {
        grid-template-columns: 1fr;
    }

    .landing-kpi {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 0.6rem 0.75rem;
    }

    .landing-kpi__value {
        margin-bottom: 0;
    }

    .landing-live-toast {
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-live-toast {
        transition: opacity 0.2s ease;
        transform: none;
    }

    .landing-live-toast.is-visible {
        transform: none;
    }
}

/* Auth — animações de entrada e envio */
.auth-card--animate {
    position: relative;
    overflow: hidden;
    animation: authCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
}

.auth-card--animate h1,
.auth-card--animate .subtitle {
    animation: authFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.auth-card--animate .form-footer {
    animation: authFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
    opacity: 0;
    transform: translateY(8px);
}

.auth-card--animate .form label {
    animation: authFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(12px);
}

.auth-card--animate .btn-block {
    animation: authFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
    opacity: 0;
    transform: translateY(10px);
}

/* Splash fullscreen — login / cadastro */
.auth-splash {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    pointer-events: none;
}

.auth-splash.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.auth-splash-open {
    overflow: hidden;
}

.auth-splash__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.88);
    backdrop-filter: blur(12px);
}

.auth-splash__panel {
    position: relative;
    text-align: center;
    max-width: 20rem;
    animation: authSplashIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-splash.is-active .auth-splash__panel {
    animation: authSplashIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-splash__brand {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.auth-splash__brand span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-splash__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-right-color: var(--accent-cyan);
    animation: authSpin 0.7s linear infinite;
}

.auth-splash__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-splash__message {
    font-size: 0.875rem;
    color: var(--text-muted);
    min-height: 1.35em;
    transition: opacity 0.2s ease;
}

.auth-splash__message.is-fading {
    opacity: 0;
}

@keyframes authCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

@keyframes authSplashIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card--animate,
    .auth-card--animate h1,
    .auth-card--animate .subtitle,
    .auth-card--animate .form label,
    .auth-card--animate .btn-block,
    .auth-card--animate .form-footer {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .auth-splash__spinner {
        animation-duration: 1.2s;
    }

    .auth-splash__panel {
        animation: none;
    }
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    border-top: 1px solid var(--border);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.card.narrow, .auth-card { max-width: 420px; margin-left: auto; margin-right: auto; }

.auth-card { position: relative; }

.auth-card h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.25rem; }
h1 { font-size: 1.375rem; font-weight: 600; }
h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-muted); }

.subtitle { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }

.balance-card {
    background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-card) 50%, #0d0d0f 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.balance-value {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.balance-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form label {
    display: block;
    margin-bottom: 1rem;
}

.form label span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.15s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-dim) 100%);
    color: var(--accent-on);
    box-shadow: 0 2px 14px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    color: var(--accent-on);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--bg-elevated); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-success { background: var(--accent-soft); color: var(--accent-bright); border: 1px solid var(--accent-border); }

.form-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-footer a { color: var(--accent); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.link-back:hover { color: var(--text); }

.link-back svg,
.tx-form-card__back svg,
.pix-card__back svg {
    display: block;
    flex-shrink: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
}

.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th { color: var(--text-muted); font-weight: 500; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-paid { background: var(--accent-soft); color: var(--accent-bright); }
.badge-failed, .badge-cancelled, .badge-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.badge-pending_approval { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row !important;
}

.checkbox-label input { width: auto; }

.empty-state { color: var(--text-muted); font-size: 0.9375rem; }

/* ─── PIX (minimal) ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pix-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: visible;
}

.pix-card__back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem;
}

.pix-card__back:hover { color: var(--text); }

.pix-card__title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.pix-card__amount-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    overflow: visible;
}

.pix-card__amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.1;
}

.pix-info-btn {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-dim);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pix-info-btn:hover,
.pix-info-btn[aria-expanded="true"] {
    color: var(--accent-bright);
    border-color: var(--accent-border);
    background: var(--accent-soft);
}

.pix-fee-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: min(260px, calc(100vw - 3rem));
    padding: 1rem;
    text-align: left;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.pix-fee-popover[hidden]:not(.is-visible) { display: none; }

.pix-fee-popover.is-visible {
    display: block;
}

.pix-fee-popover__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin: 0 0 0.75rem;
}

.pix-fee-popover__list {
    margin: 0;
}

.pix-fee-popover__list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    padding: 0.35rem 0;
}

.pix-fee-popover__list dt {
    color: var(--text-muted);
    font-weight: 400;
}

.pix-fee-popover__list dd {
    margin: 0;
    font-weight: 500;
}

.pix-fee-popover__credit dd {
    color: var(--accent);
    font-weight: 600;
}

.pix-fee-popover__warn {
    margin: 0;
    font-size: 0.85rem;
    color: var(--danger, #e74c3c);
    line-height: 1.4;
}

.pix-card__qr {
    display: inline-block;
    padding: 0.75rem;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.pix-card__qr img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.pix-card__copy {
    margin-bottom: 1rem;
    font-weight: 600;
}

.pix-card__copy.is-copied {
    background: var(--accent-dim);
    color: #fff;
}

.pix-card__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.pix-card__status--ok {
    color: var(--accent);
}

.pix-card__dot {
    width: 6px;
    height: 6px;
    background: var(--warning);
    border-radius: 50%;
    animation: pixPulse 1.5s ease-in-out infinite;
}

@keyframes pixPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.limits-list {
    list-style: none;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.limits-list li { padding: 0.2rem 0; }

.fee-preview {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: -0.5rem 0 1rem;
    min-height: 1.25rem;
}

.fee-preview.active { color: var(--accent); }

.app-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

.app-nav .nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
}

.app-nav .nav-link:hover { color: var(--text); }

.nav-dot {
    display: inline-block;
    min-width: 1.1rem;
    padding: 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
    background: var(--accent-dim);
    color: var(--accent-on);
    border-radius: 999px;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header-row h2 { margin: 0; }

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.quick-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9375rem;
}

.account-alert { margin-bottom: 1rem; }

.alert-info {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

.alert-info a { color: #bfdbfe; }

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.filter-form label { margin: 0; flex: 1; min-width: 120px; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
}

.pagination .btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notification-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.notification-item.is-unread {
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
}

.notification-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.badge-important { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-urgent { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.receipt-card { max-width: 480px; margin: 0 auto; }

.receipt-header { text-align: center; margin-bottom: 1.5rem; }

.receipt-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 0;
}

.receipt-list > div {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.receipt-list dt { color: var(--text-muted); font-weight: 400; }
.receipt-list dd { margin: 0; text-align: right; }

.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 360px;
    overflow-y: auto;
}

.chat-msg {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    max-width: 90%;
}

.chat-msg--admin { align-self: flex-end; border-color: var(--accent-border); }

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.link-back:hover { color: var(--text); }

.link-back svg,
.tx-form-card__back svg,
.pix-card__back svg {
    display: block;
    flex-shrink: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
}

@media print {
    .site-header, .site-footer, .receipt-actions, .nav-user,
    .app-sidebar, .app-topbar, .app-footer, .no-print { display: none !important; }
    body, .app-panel { background: #fff; color: #000; }
    .app-main { margin: 0; }
    .app-content { padding: 0; max-width: none; }
    .receipt-card { border: none; box-shadow: none; }
}

@media (max-width: 640px) {
    .app-nav .nav-link { font-size: 0.75rem; }
}
