:root {
    --bg: #0b111a;
    --bg-2: #070c13;
    --panel: rgba(15, 21, 32, 0.9);
    --card: rgba(20, 27, 40, 0.9);
    --accent: #2ac3ff;
    --accent-2: #22d3a6;
    --accent-3: #f5c451;
    --text: #e5edf7;
    --muted: #8fa2b7;
    --border: rgba(120, 140, 170, 0.18);
    --shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
    --soft-glow: 0 0 0 1px rgba(42, 195, 255, 0.1), 0 20px 40px rgba(10, 35, 60, 0.45);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(42, 195, 255, 0.18), transparent 60%),
        radial-gradient(1000px 500px at 85% 0%, rgba(34, 211, 166, 0.12), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.15));
    pointer-events: none;
    z-index: 0;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

:where(.app-shell, .auth-shell, .topbar, .page-header, .stats-grid, .grid, .filters-grid, .table-toolbar) > * {
    min-width: 0;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover { color: #7dd3fc; }

.auth-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 20px;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    max-width: 1040px;
    width: 100%;
}

.auth-brand {
    background: linear-gradient(140deg, rgba(42, 195, 255, 0.18), rgba(34, 211, 166, 0.12));
    padding: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 140, 170, 0.2);
    box-shadow: var(--shadow);
}

.auth-brand h1 { font-size: 36px; }

.auth-card {
    background: var(--panel);
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

input, select, textarea {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: rgba(4, 8, 16, 0.72);
    color: var(--text);
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(42, 195, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(42, 195, 255, 0.15);
}

textarea { resize: vertical; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(42, 195, 255, 0.95), rgba(34, 211, 166, 0.95));
    color: #04111d;
    box-shadow: var(--soft-glow);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(42, 195, 255, 0.95), rgba(34, 211, 166, 0.95));
    color: #04111d;
}

.btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-light {
    background: rgba(120, 140, 170, 0.15);
    color: var(--text);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(42, 195, 255, 0.6);
    color: var(--accent);
    box-shadow: none;
}

.btn-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-balance__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    animation: pulseBalance 1.8s ease-in-out infinite;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 211, 166, 0.15);
    border-color: rgba(34, 211, 166, 0.4);
    color: #bbf7d0;
}

.muted { color: var(--muted); font-size: 13px; }

.shell-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 12, 0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 30;
}

.app-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    background: rgba(9, 13, 22, 0.9);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.brand-copy {
    min-width: 0;
}

.brand h1 { font-size: 20px; margin: 0; }

.brand span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(42, 195, 255, 0.35), rgba(34, 211, 166, 0.25));
    border: 1px solid rgba(42, 195, 255, 0.5);
    font-weight: 700;
    flex-shrink: 0;
}

.shell-nav-toggle,
.shell-nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(42, 195, 255, 0.24);
    background: rgba(10, 18, 29, 0.92);
    color: var(--text);
    box-shadow: none;
}

.shell-nav-close {
    margin-left: auto;
}

.sidebar-label {
    margin: 26px 0 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.side-nav {
    display: grid;
    gap: 10px;
}

.nav-link {
    color: var(--text);
    padding: 13px 15px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(120, 140, 170, 0.06), rgba(120, 140, 170, 0.03));
    border: 1px solid transparent;
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
    border-color: rgba(42, 195, 255, 0.35);
    background: rgba(42, 195, 255, 0.08);
    transform: translateX(3px);
    box-shadow: 0 16px 30px rgba(5, 14, 28, 0.24);
}

.nav-link.is-active {
    color: #f8fbff;
    border-color: rgba(42, 195, 255, 0.45);
    background: linear-gradient(135deg, rgba(14, 62, 96, 0.96), rgba(9, 26, 43, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-panel {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 28, 43, 0.95), rgba(11, 17, 26, 0.95));
    border: 1px solid rgba(42, 195, 255, 0.18);
}

.sidebar-panel-label,
.sidebar-panel-meta {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.sidebar-panel strong,
.sidebar-panel b {
    display: block;
    margin-top: 8px;
}

.main {
    padding: 28px 32px 40px;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(120, 140, 170, 0.12);
    border-radius: 20px;
    background: rgba(9, 14, 24, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.context-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(42, 195, 255, 0.1);
    border: 1px solid rgba(42, 195, 255, 0.22);
    color: #c9f2ff;
    font-size: 12px;
    font-weight: 600;
}

.topbar-subtle {
    color: var(--muted);
    font-size: 13px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: rgba(12, 18, 30, 0.9);
    font-size: 12px;
}

.user-chip {
    background: linear-gradient(180deg, rgba(17, 25, 38, 0.96), rgba(10, 15, 24, 0.96));
    padding: 10px 16px;
    border-radius: 16px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(42, 195, 255, 0.3);
    min-width: 140px;
    text-align: right;
}

.page-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(42, 195, 255, 0.12), transparent 60%),
        radial-gradient(420px 180px at 100% 0%, rgba(34, 211, 166, 0.1), transparent 55%),
        rgba(12, 18, 30, 0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(42, 195, 255, 0.16), transparent 68%);
    pointer-events: none;
}

.page-header-copy {
    max-width: 680px;
    min-width: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.page-header h2 { font-size: 28px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(14px);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(42, 195, 255, 0.24);
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.62);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    opacity: 0.6;
    pointer-events: none;
}

.stat-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 8px;
}

.stat-meta {
    font-size: 12px;
    color: var(--muted);
}

.stat-card--accent {
    border-color: rgba(42, 195, 255, 0.5);
    box-shadow: var(--soft-glow);
}

.stat-card--accent::after {
    background: linear-gradient(180deg, transparent, rgba(42, 195, 255, 0.25));
}

.stat-card--blue::after {
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.35));
}

.stat-card--green::after {
    background: linear-gradient(180deg, transparent, rgba(34, 211, 166, 0.35));
}

.stat-card--orange::after {
    background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.35));
}

.stat-card--teal::after {
    background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.35));
}

.stat-card--red::after {
    background: linear-gradient(180deg, transparent, rgba(248, 113, 113, 0.35));
}

.section {
    margin-bottom: 26px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-header h3 {
    margin: 0 0 4px;
}

.pill--accent {
    color: #031421;
    background: linear-gradient(135deg, rgba(42, 195, 255, 0.9), rgba(34, 211, 166, 0.9));
    border: none;
}

.card--soft {
    background: rgba(12, 18, 30, 0.75);
    border-color: rgba(120, 140, 170, 0.22);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-overview-grid {
    align-items: start;
}

.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(42, 195, 255, 0), rgba(42, 195, 255, 0.26), rgba(34, 211, 166, 0.18), rgba(42, 195, 255, 0));
    pointer-events: none;
}

.card .big { font-size: 26px; font-weight: 700; }

[data-async-panel] {
    transition: opacity 0.2s ease, filter 0.2s ease;
}

[data-async-panel].is-loading {
    opacity: 0.55;
    filter: saturate(0.85);
    pointer-events: none;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.table-toolbar--compact {
    margin-bottom: 16px;
}

.table-summary {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(7, 12, 20, 0.55);
    border: 1px solid rgba(120, 140, 170, 0.14);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form--tight {
    align-items: flex-end;
}

.inline-form input, .inline-form select {
    min-width: 140px;
}

.field-inline {
    min-width: 140px;
}

.overview-meta-stack {
    display: grid;
    gap: 12px;
}

.overview-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(7, 12, 20, 0.72);
    border: 1px solid rgba(120, 140, 170, 0.16);
}

.overview-meta-row span {
    color: var(--muted);
    font-size: 13px;
}

.overview-meta-row strong {
    text-align: right;
    word-break: break-word;
}

.overview-empty-state {
    padding: 22px;
    border-radius: 18px;
    background: rgba(7, 12, 20, 0.7);
    border: 1px dashed rgba(120, 140, 170, 0.22);
}

.overview-empty-state strong {
    display: block;
    margin-bottom: 8px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quick-link-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 20px;
    background:
        radial-gradient(160px 80px at 100% 0%, rgba(42, 195, 255, 0.08), transparent 70%),
        rgba(20, 27, 40, 0.92);
    border: 1px solid rgba(120, 140, 170, 0.16);
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-link-card:hover {
    color: var(--text);
    transform: translateY(-3px);
    border-color: rgba(42, 195, 255, 0.28);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.58);
}

.quick-link-card__eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.quick-link-card strong {
    font-size: 18px;
    font-family: 'Sora', sans-serif;
}

.quick-link-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(120, 140, 170, 0.14);
}

.pagination-summary {
    color: var(--muted);
    font-size: 13px;
}

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-ellipsis {
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(120, 140, 170, 0.18);
    background: rgba(7, 12, 20, 0.7);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pagination-link:hover {
    color: var(--text);
    transform: translateY(-1px);
    border-color: rgba(42, 195, 255, 0.32);
    background: rgba(42, 195, 255, 0.12);
}

.pagination-link.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(42, 195, 255, 0.95), rgba(34, 211, 166, 0.95));
    color: #04111d;
    font-weight: 700;
}

.pagination-link.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.pagination-ellipsis {
    min-width: 28px;
    padding-inline: 8px;
    color: var(--muted);
    background: transparent;
    border-style: dashed;
}

.pix-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.pix-summary-item {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(7, 12, 20, 0.65);
    border: 1px solid rgba(120, 140, 170, 0.16);
}

.pix-summary-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pix-card {
    display: grid;
    gap: 18px;
}

.pix-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.pix-card__meta > div {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(7, 12, 20, 0.65);
    border: 1px solid rgba(120, 140, 170, 0.16);
}

.pix-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.pix-copy-label {
    font-size: 12px;
    color: var(--muted);
}

.pix-code {
    min-height: 136px;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.6;
    word-break: break-all;
}

.pix-card__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 50;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 14, 0.82);
    backdrop-filter: blur(10px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(120, 140, 170, 0.18);
    background: linear-gradient(180deg, rgba(10, 15, 24, 0.96), rgba(6, 11, 19, 0.98));
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.modal-panel--pix {
    width: min(1120px, 100%);
}

.modal-panel--success {
    width: min(480px, 100%);
    padding: 26px;
    border-color: rgba(34, 211, 166, 0.24);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(34, 211, 166, 0.08);
}

.modal-panel--balance {
    width: min(460px, 100%);
    padding: 26px;
}

.modal-panel--api-docs {
    width: min(760px, 100%);
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(120, 140, 170, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-right: 48px;
}

.pix-modal-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 26px;
    align-items: start;
}

.pix-modal-qr,
.pix-modal-details {
    display: grid;
    gap: 18px;
}

.pix-qr-card {
    display: grid;
    place-items: center;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.98));
    min-height: 308px;
    box-shadow: inset 0 0 0 1px rgba(12, 18, 30, 0.05);
}

.pix-qr-canvas {
    max-width: 100%;
    height: auto;
}

.pix-qr-caption {
    text-align: center;
}

.pix-timer {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
}

.pix-timer__ring {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--progress) * 1%), rgba(120, 140, 170, 0.12) 0);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    animation: pulseGlow 2.4s ease-in-out infinite;
}

.pix-timer__inner {
    position: absolute;
    width: 188px;
    height: 188px;
    border-radius: 50%;
    background: rgba(8, 13, 21, 0.96);
    border: 1px solid rgba(120, 140, 170, 0.16);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px;
    gap: 6px;
}

.pix-timer__inner strong {
    font-size: 30px;
    font-family: 'Sora', sans-serif;
}

.pix-timer__inner small {
    color: var(--muted);
    line-height: 1.5;
}

.pix-meta-stack {
    display: grid;
    gap: 12px;
}

.pix-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(7, 12, 20, 0.65);
    border: 1px solid rgba(120, 140, 170, 0.16);
}

.pix-meta-row span {
    color: var(--muted);
    font-size: 13px;
}

.pix-meta-row strong {
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(120, 140, 170, 0.18);
    background: rgba(120, 140, 170, 0.08);
    color: var(--text);
}

.status-badge--success {
    background: rgba(34, 211, 166, 0.12);
    border-color: rgba(34, 211, 166, 0.35);
    color: #82f7d1;
}

.status-badge--danger {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.34);
    color: #fecaca;
}

.status-badge--warning {
    background: rgba(245, 196, 81, 0.12);
    border-color: rgba(245, 196, 81, 0.3);
    color: #fde68a;
}

.success-modal {
    display: grid;
    gap: 18px;
    text-align: center;
}

.success-modal__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #04111d;
    background: linear-gradient(135deg, rgba(34, 211, 166, 1), rgba(42, 195, 255, 0.92));
    box-shadow: 0 20px 50px rgba(34, 211, 166, 0.22);
}

.success-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.success-modal__item,
.success-modal__meta {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(7, 12, 20, 0.78);
    border: 1px solid rgba(120, 140, 170, 0.16);
}

.success-modal__item span,
.success-modal__meta span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted);
}

.success-modal__item strong {
    display: block;
    font-size: 22px;
    font-family: 'Sora', sans-serif;
}

.success-modal__actions {
    display: flex;
    justify-content: center;
}

.balance-modal {
    display: grid;
    gap: 18px;
    text-align: center;
}

.balance-modal__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #04111d;
    background: linear-gradient(135deg, rgba(42, 195, 255, 1), rgba(34, 211, 166, 0.95));
    box-shadow: 0 20px 54px rgba(42, 195, 255, 0.22);
}

.balance-modal__form {
    text-align: left;
}

.balance-modal__panel {
    padding: 16px;
    border-radius: 18px;
    background: rgba(7, 12, 20, 0.78);
    border: 1px solid rgba(120, 140, 170, 0.16);
    text-align: center;
}

.balance-modal__panel span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.balance-modal__panel strong {
    display: block;
    font-size: 20px;
    font-family: 'Sora', sans-serif;
}

.balance-modal__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.api-doc {
    display: grid;
    gap: 18px;
}

.api-doc__hero {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 8px 24px 0;
}

.api-doc__icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffd9ee;
    background: radial-gradient(circle at 30% 30%, rgba(255, 86, 164, 0.32), rgba(89, 20, 58, 0.58));
    border: 1px solid rgba(255, 86, 164, 0.24);
    box-shadow: 0 24px 60px rgba(255, 86, 164, 0.12);
}

.api-doc__token-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(7, 12, 20, 0.76);
    border: 1px solid rgba(120, 140, 170, 0.16);
}

.api-doc__label {
    display: block;
    margin-bottom: 10px;
    color: #dbe7f4;
    font-size: 14px;
    font-weight: 600;
}

.api-doc__token-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.api-doc__token-input {
    min-height: 52px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

.api-doc__meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.api-doc__meta-grid--rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.api-doc__meta-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(7, 12, 20, 0.7);
    border: 1px solid rgba(120, 140, 170, 0.14);
}

.api-doc__meta-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.api-doc__meta-card strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    word-break: break-word;
}

.api-doc__item {
    border-radius: 20px;
    background: rgba(7, 12, 20, 0.72);
    border: 1px solid rgba(120, 140, 170, 0.14);
    overflow: hidden;
}

.api-doc__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
}

.api-doc__summary::-webkit-details-marker {
    display: none;
}

.api-doc__summary strong {
    color: var(--text);
}

.api-doc__method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    margin-right: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 166, 0.12);
    border: 1px solid rgba(34, 211, 166, 0.22);
    color: #80f5cf;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.api-doc__hint {
    color: var(--muted);
    font-size: 12px;
}

.api-doc__body {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
}

.api-doc__endpoint-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(4, 8, 16, 0.7);
    border: 1px solid rgba(120, 140, 170, 0.14);
}

.api-doc__endpoint-card code {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(42, 195, 255, 0.08);
    word-break: break-all;
}

.api-doc__params-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.api-doc__param,
.api-doc__rule {
    padding: 16px;
    border-radius: 18px;
    background: rgba(4, 8, 16, 0.68);
    border: 1px solid rgba(120, 140, 170, 0.14);
}

.api-doc__param span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.api-doc__param strong,
.api-doc__rule strong {
    display: block;
    margin-bottom: 8px;
}

.api-doc__param p,
.api-doc__rule p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.api-doc__code {
    margin: 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(4, 8, 16, 0.88);
    border: 1px solid rgba(120, 140, 170, 0.14);
    overflow-x: auto;
    color: #d7e7f7;
    font-size: 12px;
    line-height: 1.7;
}

.api-doc__responses {
    gap: 14px;
}

.api-doc__response {
    display: grid;
    gap: 12px;
}

.api-doc__response-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.api-doc__rules {
    display: grid;
    gap: 12px;
}

.btn[disabled],
input[disabled],
select[disabled],
textarea[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

@keyframes pulseGlow {
    0%,
    100% { transform: scale(1); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28); }
    50% { transform: scale(1.02); box-shadow: 0 20px 70px rgba(42, 195, 255, 0.18); }
}

@keyframes pulseBalance {
    0%,
    100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.18); opacity: 0.82; }
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 16px;
}

table th, table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

table th {
    color: #b7c7d9;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(8, 13, 21, 0.4);
}

table tbody tr:hover { background: rgba(42, 195, 255, 0.08); }

code {
    display: inline-block;
    max-width: 100%;
    font-size: 12px;
    background: rgba(42, 195, 255, 0.12);
    color: #a5e3ff;
    padding: 4px 6px;
    border-radius: 6px;
    white-space: normal;
    overflow-wrap: anywhere;
}

small {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .shell-nav-toggle,
    .shell-nav-close {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(88vw, 360px);
        min-height: 100vh;
        max-width: 360px;
        padding-bottom: 24px;
        overflow-y: auto;
        transform: translateX(-104%);
        transition: transform 0.24s ease;
        z-index: 40;
    }

    body.shell-nav-open {
        overflow: hidden;
    }

    body.shell-nav-open .shell-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.shell-nav-open .sidebar {
        transform: translateX(0);
    }

    .side-nav {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 24px 22px 32px;
    }
}

@media (max-width: 900px) {
    .auth-body {
        padding: 28px 16px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .auth-brand,
    .auth-card {
        padding: 24px;
    }

    .auth-brand h1 {
        font-size: 30px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .user-chip {
        width: 100%;
        text-align: left;
    }

    .pix-card__actions { flex-direction: column; align-items: flex-start; }
    .pix-summary-actions { flex-direction: column; align-items: flex-start; }
    .modal-overlay { padding: 12px; }
    .modal-panel { padding: 20px; border-radius: 22px; max-height: calc(100vh - 24px); }
    .modal-header { padding-right: 54px; }
    .pix-modal-grid { grid-template-columns: 1fr; }
    .pix-timer { min-height: 220px; }
    .pix-timer__ring { width: 210px; height: 210px; }
    .pix-timer__inner { width: 164px; height: 164px; }
    .pix-timer__inner strong { font-size: 24px; }
    .pix-meta-row { flex-direction: column; align-items: flex-start; }
    .success-modal__grid { grid-template-columns: 1fr; }
    .success-modal__actions .btn { width: 100%; }
    .balance-modal__actions { flex-direction: column; }
    .balance-modal__actions .btn { width: 100%; }
    .api-doc__token-row,
    .api-doc__endpoint-card { grid-template-columns: 1fr; }
    .api-doc__meta-grid,
    .api-doc__meta-grid--rules,
    .api-doc__params-grid { grid-template-columns: 1fr; }
    .api-doc__response-head { align-items: flex-start; }
    .overview-meta-row { flex-direction: column; align-items: flex-start; }
    .filters-grid { grid-template-columns: 1fr; }
    .filter-actions { align-items: stretch; }
    .filter-actions .btn,
    .filter-actions a { width: 100%; text-align: center; }
    .pagination-wrap { flex-direction: column; align-items: stretch; }
    .pagination-nav { justify-content: flex-start; }
    .table-toolbar--compact { align-items: stretch; }
    .inline-form--tight { width: 100%; }
    .field-inline { width: 100%; }
    .inline-form {
        width: 100%;
    }
    .inline-form input,
    .inline-form select,
    .inline-form textarea {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .main {
        padding: 20px 14px 28px;
    }

    .topbar,
    .card,
    .page-header,
    .stat-card,
    .auth-brand,
    .auth-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stats-grid,
    .grid,
    .quick-links-grid,
    .pix-summary-grid {
        grid-template-columns: 1fr;
    }

    .table-toolbar,
    .section-header {
        align-items: stretch;
    }

    .table-toolbar .btn,
    .table-toolbar a.btn,
    .section-header .btn,
    .section-header a.btn {
        width: 100%;
    }

    table {
        overflow: visible;
        white-space: normal;
        border-radius: 0;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: grid;
        gap: 12px;
    }

    table tr {
        display: grid;
        gap: 12px;
        padding: 16px;
        border: 1px solid rgba(120, 140, 170, 0.16);
        border-radius: 18px;
        background: rgba(7, 12, 20, 0.74);
    }

    table tbody tr:hover {
        background: rgba(10, 18, 29, 0.9);
    }

    table td {
        display: grid;
        gap: 6px;
        padding: 0;
        border-bottom: none;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
    }

    table td[colspan]::before {
        content: none;
    }

    table td .inline-form,
    table td form {
        width: 100%;
    }

    table td .inline-form {
        display: grid;
    }

    table td .btn,
    table td a.btn {
        width: 100%;
    }
}
