:root {
    --accent: #ff4a2a;
    --accent-dark: #d83a21;
    --accent-rgb: 255 74 42;
    --accent-soft: rgba(255, 74, 42, 0.14);
    --accent-contrast: #ffffff;
    --bg: #050608;
    --bg-soft: #0a0d12;
    --panel: rgba(16, 20, 29, 0.82);
    --panel-strong: #10141d;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f7f8fb;
    --muted: #a1a8b5;
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    --section-base: #050608;
    --section-soft: #080b10;
    --section-warm: #0b0908;
    --section-cool: #070a10;
    --section-divider: rgba(255, 255, 255, 0.1);
    --flow-ring: var(--section-base);
    --font-accessibility-bump: 0px;
    --chart-axis-font-size: 11px;
    --compact-axis-font-size: 10px;
}

body.is-financial-values-hidden [data-financial-privacy-group],
body.is-financial-values-hidden .analytics-revenue-chart canvas,
body.is-financial-values-hidden .analytics-metric-sparkline,
body.is-financial-values-hidden .user-flow-chart,
body.is-financial-values-hidden .analytics-chart-key {
    visibility: hidden !important;
}

body.is-financial-values-hidden .sidebar-revenue {
    min-height: 62px;
}

/* Saque Pix */
.pix-withdrawal-layout {
    display: grid;
    width: min(100%, 1180px);
    gap: 20px;
    padding-top: 28px;
}

.pix-withdrawal-page-head h1 {
    margin: 20px 0 6px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.pix-withdrawal-page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.pix-withdrawal-balance-card {
    display: grid;
    position: relative;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 156px;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid rgb(var(--accent-rgb) / 0.4);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 18%, rgb(var(--accent-rgb) / 0.2), transparent 34%),
        linear-gradient(115deg, rgb(var(--accent-rgb) / 0.1), var(--panel) 58%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03), 0 20px 46px rgb(0 0 0 / 0.1);
}

.pix-withdrawal-balance-card::after {
    position: absolute;
    right: -54px;
    bottom: -92px;
    width: 250px;
    height: 250px;
    border: 1px solid rgb(var(--accent-rgb) / 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.pix-withdrawal-balance-icon,
.pix-withdrawal-history-icon,
.pix-key-add-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
}

.pix-withdrawal-balance-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--accent);
    box-shadow: 0 12px 28px rgb(var(--accent-rgb) / 0.35);
    font-size: 22px;
}

.pix-withdrawal-balance-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.pix-withdrawal-balance-copy small,
.pix-section-heading small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pix-withdrawal-balance-copy strong {
    color: var(--text);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
}

.pix-withdrawal-balance-copy > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.pix-withdrawal-main-action {
    position: relative;
    z-index: 1;
    min-height: 50px;
    padding-inline: 22px;
    border-radius: 15px;
}

.pix-key-add-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 72px;
    padding: 12px 16px;
    border: 1px dashed rgb(var(--accent-rgb) / 0.52);
    border-radius: 18px;
    background: rgb(var(--accent-rgb) / 0.035);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pix-key-add-banner:hover,
.pix-key-add-banner:focus-visible {
    border-color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.08);
    outline: 0;
    transform: translateY(-1px);
}

.pix-key-add-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent);
}

.pix-key-add-banner > span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.pix-key-add-banner strong,
.pix-key-add-banner b {
    font-size: 13px;
    font-weight: 900;
}

.pix-key-add-banner small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.pix-key-add-banner b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
}

.pix-key-section,
.pix-withdrawal-history {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 14px 34px rgb(0 0 0 / 0.08);
}

.pix-key-section {
    padding: 22px;
}

.pix-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pix-section-heading h2,
.pix-withdrawal-history-head h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.pix-section-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.pix-key-empty-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 102px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 17px;
    background: var(--panel-strong);
}

.pix-key-empty-state > span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
    font-size: 20px;
}

.pix-key-empty-state strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.pix-key-empty-state p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pix-key-empty-state .btn {
    min-height: 42px;
}

.pix-withdrawal-security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--panel) 86%, transparent);
    color: var(--muted);
}

.pix-withdrawal-security-note i {
    color: var(--accent);
}

.pix-withdrawal-security-note p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
}

.pix-withdrawal-security-note strong {
    color: var(--text);
}

.pix-withdrawal-history-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.pix-withdrawal-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgb(var(--accent-rgb) / 0.13);
    color: var(--accent);
}

.pix-withdrawal-history-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.pix-withdrawal-history-head select {
    min-width: 140px;
    min-height: 40px;
    padding: 0 36px 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.pix-withdrawal-history-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.pix-withdrawal-history-summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pix-withdrawal-history-summary i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pix-withdrawal-history-summary i.is-paid { background: #22c55e; }
.pix-withdrawal-history-summary i.is-pending { background: #f59e0b; }
.pix-withdrawal-history-summary strong { color: var(--text); }

.pix-withdrawal-history-row {
    display: grid;
    grid-template-columns: auto minmax(190px, 1fr) minmax(110px, 0.5fr) minmax(130px, 0.55fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
}

.pix-withdrawal-history-row:last-child {
    border-bottom: 0;
}

.pix-withdrawal-row-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
    font-size: 12px;
}

.pix-withdrawal-row-main,
.pix-withdrawal-row-date,
.pix-withdrawal-row-value {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pix-withdrawal-row-main strong,
.pix-withdrawal-row-date strong,
.pix-withdrawal-row-value strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.pix-withdrawal-row-main small,
.pix-withdrawal-row-date small,
.pix-withdrawal-row-value small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-withdrawal-row-value {
    text-align: right;
}

.pix-withdrawal-status {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pix-withdrawal-status.is-paid {
    background: rgba(34, 197, 94, 0.13);
    color: #22c55e;
}

.pix-withdrawal-status.is-pending {
    background: rgba(245, 158, 11, 0.13);
    color: #f59e0b;
}

.pix-withdrawal-status.is-failed {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.pix-withdrawal-history-empty,
.pix-withdrawal-filter-empty {
    padding: 42px 20px;
    color: var(--muted);
    text-align: center;
}

.pix-withdrawal-history-empty > span {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 15px;
    background: var(--panel-strong);
    color: var(--muted);
}

.pix-withdrawal-history-empty strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.pix-withdrawal-history-empty p,
.pix-withdrawal-filter-empty {
    margin: 5px 0 0;
    font-size: 11px;
    font-weight: 700;
}

.pix-withdrawal-dialog {
    width: min(calc(100% - 28px), 466px);
    max-height: calc(100dvh - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg) 94%, var(--panel));
    box-shadow: 0 30px 90px rgb(0 0 0 / 0.48);
    color: var(--text);
}

.pix-withdrawal-dialog::backdrop {
    background: rgb(3 5 8 / 0.78);
    backdrop-filter: blur(7px);
}

.pix-dialog-close {
    display: inline-grid;
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
}

.pix-dialog-close:hover,
.pix-dialog-close:focus-visible {
    background: var(--panel-strong);
    color: var(--text);
    outline: 0;
}

.pix-dialog-form {
    display: grid;
    gap: 17px;
    padding: 24px;
}

.pix-dialog-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding-right: 34px;
}

.pix-dialog-head > span {
    color: var(--accent);
    font-size: 20px;
}

.pix-dialog-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.pix-dialog-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.pix-dialog-field {
    display: grid;
    gap: 8px;
}

.pix-dialog-field > span:first-child {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.pix-dialog-field > span b {
    color: var(--accent);
}

.pix-dialog-field input,
.pix-dialog-field select,
.pix-dialog-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid color-mix(in srgb, var(--text) 17%, transparent);
    border-radius: 15px;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.pix-dialog-field > input,
.pix-dialog-field select {
    padding: 0 13px;
}

.pix-dialog-control {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.pix-dialog-control.has-icon > i,
.pix-dialog-control.has-prefix > b {
    flex: 0 0 auto;
    margin-left: 13px;
    color: var(--muted);
    font-size: 12px;
}

.pix-dialog-control select,
.pix-dialog-control input {
    min-width: 0;
    border: 0;
    background: transparent;
    outline: 0;
}

.pix-dialog-field > input:focus,
.pix-dialog-control:focus-within {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1);
}

.pix-dialog-control input:focus,
.pix-dialog-control select:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.pix-dialog-field small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.pix-key-primary-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pix-key-primary-option:hover {
    border-color: rgb(var(--accent-rgb) / 0.52);
    background: rgb(var(--accent-rgb) / 0.035);
}

.pix-key-primary-option input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pix-key-primary-option:has(input[type="checkbox"]:focus-visible) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.14);
}

.pix-key-primary-star {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--accent);
    font-size: 18px;
}

.pix-key-primary-star .fa-solid {
    display: none;
}

.pix-key-primary-option input[type="checkbox"]:checked ~ .pix-key-primary-star .fa-regular {
    display: none;
}

.pix-key-primary-option input[type="checkbox"]:checked ~ .pix-key-primary-star .fa-solid {
    display: block;
    filter: drop-shadow(0 0 7px rgb(var(--accent-rgb) / 0.42));
}

.pix-key-primary-option > span:last-child {
    display: grid;
    gap: 2px;
}

.pix-key-primary-option strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.pix-key-primary-option small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

/* Adquirentes */
.acquirer-layout {
    display: grid;
    gap: 16px;
}

.acquirer-page-head {
    display: grid;
    gap: 16px;
}

.acquirer-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.acquirer-title-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.12);
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
    font-size: 19px;
}

.acquirer-title-row h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.acquirer-title-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.acquirer-active-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 144px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 10%, rgb(var(--accent-rgb) / 0.14), transparent 33%),
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.075), var(--panel) 48%);
    overflow: hidden;
}

.acquirer-active-route.is-active {
    border-color: rgb(var(--accent-rgb) / 0.36);
    box-shadow: inset 3px 0 0 var(--accent);
}

.acquirer-active-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 14px;
}

.acquirer-active-copy > small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.acquirer-provider-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.11);
    border: 1px solid rgb(var(--accent-rgb) / 0.18);
    font-size: 14px;
    font-weight: 900;
}

.acquirer-provider-avatar.has-logo {
    background: #11151d;
}

.acquirer-provider-avatar img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.acquirer-auto-route {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border: 1px dashed rgb(var(--accent-rgb) / 0.25);
    border-radius: 17px;
    background: rgb(var(--accent-rgb) / 0.035);
}

.acquirer-auto-route-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.11);
}

.acquirer-auto-route strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.acquirer-auto-route p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.acquirer-auto-switch {
    position: relative;
    width: 42px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.055);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.acquirer-auto-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 160ms ease, background 160ms ease;
}

.acquirer-auto-switch.is-enabled {
    border-color: rgb(71 215 154 / 0.45);
    background: rgb(71 215 154 / 0.14);
}

.acquirer-auto-switch.is-enabled span {
    background: #47d79a;
    transform: translateX(18px);
}

.acquirer-active-copy h2,
.acquirer-card h3,
.acquirer-section-heading h2 {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.acquirer-active-copy h2 {
    font-size: 20px;
}

.acquirer-active-copy p,
.acquirer-card-copy p,
.acquirer-section-heading p,
.acquirer-provider-note p,
.acquirer-list-empty p,
.acquirer-chart-empty p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.acquirer-active-badges,
.acquirer-card-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.acquirer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 29px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgb(255 255 255 / 0.025);
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.acquirer-pill.is-success {
    color: #47d79a;
    border-color: rgb(71 215 154 / 0.24);
    background: rgb(71 215 154 / 0.08);
}

.acquirer-pill.is-neutral {
    color: var(--text);
}

.acquirer-pill.is-muted {
    opacity: 0.72;
}

.acquirer-provider-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid rgb(var(--accent-rgb) / 0.18);
    border-radius: 16px;
    background: rgb(var(--accent-rgb) / 0.055);
}

.acquirer-provider-note > span {
    color: var(--accent);
    margin-top: 2px;
}

.acquirer-provider-note strong {
    color: var(--text);
    font-size: 12px;
}

.acquirer-provider-note p {
    max-width: 950px;
}

.acquirer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel);
}

.acquirer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 360px;
    min-width: 0;
    padding: 0 8px;
    color: var(--muted);
}

.acquirer-search input {
    width: 100%;
    min-height: 38px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-size: 12px;
}

.acquirer-search input::placeholder {
    color: var(--muted);
}

.acquirer-filters {
    display: flex;
    align-items: center;
    gap: 4px;
}

.acquirer-filters button {
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.acquirer-filters button:hover,
.acquirer-filters button.is-active {
    color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.1);
}

.acquirer-comparison {
    display: grid;
    gap: 24px;
    min-height: 260px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.acquirer-comparison.is-compact {
    min-height: 220px;
}

.acquirer-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.acquirer-section-heading h2 {
    font-size: 16px;
}

.acquirer-section-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.acquirer-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 28px;
    min-height: 170px;
    padding: 0 5% 4px;
    border-bottom: 1px solid var(--line);
}

.acquirer-chart-item {
    display: grid;
    grid-template-rows: auto 125px auto;
    justify-items: center;
    gap: 8px;
    width: min(180px, 42%);
    height: 100%;
}

.acquirer-chart-item strong {
    color: var(--text);
    font-size: 12px;
}

.acquirer-chart-item small {
    max-width: 170px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acquirer-chart-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 40px;
    height: 125px;
    border-radius: 10px 10px 3px 3px;
    background: rgb(255 255 255 / 0.025);
    overflow: hidden;
}

.acquirer-chart-track > span {
    width: 100%;
    min-height: 8px;
    border-radius: inherit;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #ffb14a), var(--accent));
    box-shadow: 0 -6px 22px rgb(var(--accent-rgb) / 0.22);
}

.acquirer-chart-empty,
.acquirer-list-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    min-height: 150px;
    text-align: center;
}

.acquirer-chart-empty > span,
.acquirer-list-empty > i {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: var(--muted);
    background: rgb(255 255 255 / 0.04);
}

.acquirer-chart-empty strong,
.acquirer-list-empty strong {
    color: var(--text);
    font-size: 13px;
}

.acquirer-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.acquirer-card-grid.has-single-card {
    grid-template-columns: minmax(0, 520px);
}

.acquirer-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    overflow: hidden;
    transition: border-color 160ms ease, transform 160ms ease;
}

.acquirer-card.is-selectable {
    cursor: pointer;
}

.acquirer-card.is-selectable:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.acquirer-card[hidden] {
    display: none;
}

.acquirer-card:hover {
    transform: translateY(-2px);
    border-color: rgb(var(--accent-rgb) / 0.3);
}

.acquirer-card.is-active {
    border-color: rgb(71 215 154 / 0.42);
    background:
        radial-gradient(circle at 100% 0, rgb(71 215 154 / 0.09), transparent 34%),
        var(--panel);
}

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

.acquirer-card h3 {
    font-size: 15px;
}

.acquirer-card-conversion {
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.acquirer-card-conversion span,
.acquirer-card-stats dt,
.acquirer-card-footer {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.acquirer-card-conversion strong {
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
}

.acquirer-fee-summary {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 13px;
    background: rgb(34 197 94 / 0.07);
    color: #86efac;
    font-size: 11px;
    font-weight: 800;
}

.acquirer-fee-summary span { display: flex; align-items: center; gap: 7px; }
.acquirer-fee-summary i { width: 16px; color: #4ade80; text-align: center; }
.acquirer-fee-summary strong { margin-left: auto; color: #bbf7d0; font-weight: 900; }

.acquirer-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.acquirer-card-stats div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 11px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.025);
}

.acquirer-card-stats dt,
.acquirer-card-stats dd {
    margin: 0;
}

.acquirer-card-stats dd {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acquirer-card-footer {
    text-transform: none;
    letter-spacing: 0;
}

.acquirer-card-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.acquirer-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    border-radius: 11px;
    color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.075);
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.acquirer-select-button:hover {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
}

.acquirer-switch-lock {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.acquirer-list-empty {
    grid-column: 1 / -1;
    min-height: 210px;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: var(--panel);
}

.acquirer-list-empty[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .acquirer-active-route,
    .acquirer-section-heading,
    .acquirer-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .acquirer-active-badges,
    .acquirer-card-badges {
        justify-content: flex-start;
    }

    .acquirer-filters {
        width: 100%;
        overflow-x: auto;
    }

    .acquirer-card-grid {
        grid-template-columns: 1fr;
    }

    .acquirer-card-grid.has-single-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .acquirer-active-route,
    .acquirer-comparison,
    .acquirer-card {
        padding: 17px;
    }

    .acquirer-card-stats {
        grid-template-columns: 1fr;
    }

    .acquirer-chart {
        padding-inline: 0;
    }

    .acquirer-auto-route {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .acquirer-auto-route form {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

.pix-dialog-balance {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border-radius: 18px;
    background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffb14a));
    color: #fff;
    box-shadow: 0 14px 30px rgb(var(--accent-rgb) / 0.22);
}

.pix-dialog-balance > span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgb(255 255 255 / 0.14);
}

.pix-dialog-balance div {
    display: grid;
    gap: 2px;
}

.pix-dialog-balance small {
    font-size: 11px;
    font-weight: 800;
}

.pix-dialog-balance strong {
    font-size: 24px;
    font-weight: 900;
}

.pix-dialog-fee-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px;
    border-radius: 15px;
    background: rgb(var(--accent-rgb) / 0.11);
    color: color-mix(in srgb, var(--accent) 64%, var(--text));
}

.pix-dialog-fee-note i {
    margin-top: 2px;
}

.pix-dialog-fee-note p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.pix-dialog-provider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
}

.pix-dialog-provider-logo {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 10px;
    background: #111827;
    color: var(--accent);
}

.pix-dialog-provider-logo img { width: 100%; height: 100%; object-fit: cover; }
.pix-dialog-provider span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.pix-dialog-provider small { color: var(--muted); font-size: 10px; font-weight: 800; }
.pix-dialog-provider strong { color: var(--text); font-size: 12px; font-weight: 900; }
.pix-dialog-provider em { overflow: hidden; color: #86efac; font-size: 10px; font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.pix-dialog-provider a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11px; font-weight: 900; white-space: nowrap; }

.pix-dialog-fee-note strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 900;
}

.pix-withdrawal-amount-field > span:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pix-withdrawal-amount-field button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.pix-ui-only-feedback {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid rgb(var(--accent-rgb) / 0.22);
    border-radius: 12px;
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
}

.pix-dialog-submit {
    min-height: 52px;
    border-radius: 15px;
}

.pix-page-alert,
.pix-dialog-errors {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.pix-page-alert.is-success {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.09);
    color: #8ce9ad;
}

.pix-dialog-errors {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.09);
    color: #ff9c9c;
}

.pix-dialog-errors div {
    display: grid;
    gap: 3px;
}

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

.pix-key-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel-strong);
}

.pix-key-card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
}

.pix-key-card-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pix-key-card-copy > span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pix-key-card-copy > span b {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgb(var(--accent-rgb) / 0.13);
    color: var(--accent);
    font-size: 8px;
}

.pix-key-card-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-key-card-copy small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.pix-key-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pix-key-card-actions button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.pix-key-card-actions button:hover,
.pix-key-card-actions button:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    outline: 0;
}

.pix-key-card-actions button.is-danger:hover,
.pix-key-card-actions button.is-danger:focus-visible {
    border-color: #ef4444;
    color: #ef4444;
}

.pix-custom-select {
    position: relative;
    width: 100%;
}

.pix-custom-select-trigger {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--text) 17%, transparent);
    border-radius: 15px;
    background: var(--panel-strong);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.pix-custom-select-trigger > i:first-child {
    color: var(--muted);
    text-align: center;
}

.pix-custom-select-trigger > i:last-child {
    color: var(--muted);
    font-size: 10px;
    transition: transform 160ms ease;
}

.pix-custom-select-trigger strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-custom-select.is-open .pix-custom-select-trigger,
.pix-custom-select-trigger:focus-visible {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1);
}

.pix-custom-select.is-open .pix-custom-select-trigger > i:last-child {
    transform: rotate(180deg);
}

.pix-custom-select-menu {
    display: grid;
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 20;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    border-radius: 15px;
    background: #13141a;
    box-shadow: 0 20px 44px rgb(0 0 0 / 0.44);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.pix-custom-select.is-open .pix-custom-select-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pix-custom-select-menu button {
    display: grid;
    grid-template-columns: 15px 20px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    text-align: left;
}

.pix-custom-select-menu button:hover,
.pix-custom-select-menu button:focus-visible,
.pix-custom-select-menu button[aria-selected="true"] {
    background: rgb(var(--accent-rgb) / 0.18);
    color: color-mix(in srgb, var(--accent) 70%, white);
    outline: 0;
}

.pix-custom-select-check {
    color: var(--accent);
    opacity: 0;
    font-size: 10px;
}

.pix-custom-select-menu button[aria-selected="true"] .pix-custom-select-check {
    opacity: 1;
}

.pix-withdrawal-main-action:disabled,
.pix-dialog-submit:disabled {
    cursor: not-allowed;
    filter: grayscale(0.7);
    opacity: 0.48;
}

.pix-withdrawal-history-head select,
.pix-withdrawal-history-head select option {
    background: var(--panel-strong);
    color: var(--text);
    color-scheme: dark;
}

@media (max-width: 760px) {
    .pix-withdrawal-layout {
        padding-top: 18px;
    }

    .pix-withdrawal-balance-card {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 0;
        padding: 20px;
    }

    .pix-withdrawal-main-action {
        grid-column: 1 / -1;
        width: 100%;
    }

    .pix-key-empty-state {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pix-key-list {
        grid-template-columns: 1fr;
    }

    .pix-key-empty-state .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .pix-withdrawal-history-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pix-withdrawal-row-date {
        display: none;
    }

    .pix-withdrawal-status {
        grid-column: 2;
        width: fit-content;
    }
}

@media (max-width: 520px) {
    .pix-withdrawal-page-head h1 {
        margin-top: 16px;
        font-size: 29px;
    }

    .pix-withdrawal-balance-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .pix-withdrawal-balance-copy strong {
        font-size: 31px;
    }

    .pix-key-add-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pix-key-add-banner b {
        display: none;
    }

    .pix-key-section {
        padding: 16px;
    }

    .pix-withdrawal-history-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pix-withdrawal-history-head select {
        grid-column: 1 / -1;
        width: 100%;
    }

    .pix-withdrawal-history-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .pix-withdrawal-history-row {
        gap: 10px;
        padding-inline: 14px;
    }

    .pix-withdrawal-row-value strong {
        font-size: 11px;
    }

    .pix-dialog-form {
        gap: 15px;
        padding: 21px 17px 18px;
    }
}

:root[data-font-scale="large"] {
    --font-accessibility-bump: 1px;
    --chart-axis-font-size: 12.5px;
    --compact-axis-font-size: 11.5px;
}

:root[data-font-scale="extra"] {
    --font-accessibility-bump: 2px;
    --chart-axis-font-size: 14px;
    --compact-axis-font-size: 12.5px;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 74% 8%, rgb(var(--accent-rgb) / 0.14), transparent 24rem),
        radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.06), transparent 22rem),
        linear-gradient(180deg, #050608 0%, #080a0f 46%, #050608 100%);
    color: var(--text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: calc(16px + var(--font-accessibility-bump));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.08), transparent 28rem),
        radial-gradient(circle at 50% 120%, rgb(var(--accent-rgb) / 0.08), transparent 34rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.34));
    pointer-events: none;
}

:root.light-theme {
    --bg: #f8fafc;
    --bg-soft: #ffffff;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --line: rgba(15, 23, 42, 0.12);
    --text: #111827;
    --muted: #536070;
    --shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    --section-base: #ffffff;
    --section-soft: #f8fafc;
    --section-warm: #fff5f2;
    --section-cool: #f7fbff;
    --section-divider: rgba(15, 23, 42, 0.1);
    --flow-ring: var(--section-base);
}

:root.light-theme body {
    background:
        radial-gradient(circle at 78% 6%, rgb(var(--accent-rgb) / 0.12), transparent 24rem),
        radial-gradient(circle at 6% 12%, rgba(15, 23, 42, 0.05), transparent 22rem),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 52%, #ffffff 100%);
    color: var(--text);
}

:root.light-theme body::before {
    background:
        radial-gradient(circle at 50% -18%, rgba(15, 23, 42, 0.06), transparent 28rem),
        radial-gradient(circle at 50% 120%, rgb(var(--accent-rgb) / 0.08), transparent 34rem);
}

a {
    color: inherit;
    text-decoration: none;
}

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

img {
    max-width: 100%;
}

.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.ms-0 {
    margin-left: 0 !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-4 {
    margin-left: 1.5rem !important;
}

.ms-5 {
    margin-left: 3rem !important;
}

.me-0 {
    margin-right: 0 !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-4 {
    margin-right: 1.5rem !important;
}

.me-5 {
    margin-right: 3rem !important;
}

.mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.mx-1 {
    margin-right: 0.25rem !important;
    margin-left: 0.25rem !important;
}

.mx-2 {
    margin-right: 0.5rem !important;
    margin-left: 0.5rem !important;
}

.mx-3 {
    margin-right: 1rem !important;
    margin-left: 1rem !important;
}

.mx-4 {
    margin-right: 1.5rem !important;
    margin-left: 1.5rem !important;
}

.mx-5 {
    margin-right: 3rem !important;
    margin-left: 3rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.px-1 {
    padding-right: 0.25rem !important;
    padding-left: 0.25rem !important;
}

.px-2 {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

.w-100 {
    width: 100% !important;
}

.hover-lift {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
    will-change: transform;
}

.hover-lift:hover {
    border-color: rgb(var(--accent-rgb) / 0.22);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.78);
    backdrop-filter: blur(18px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1400px, calc(100% - 32px));
    min-height: 82px;
    margin: 0 auto;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
}

.brand > span:last-child span {
    color: var(--accent);
}

.brand-name {
    min-width: 0;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    position: relative;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    flex: 0 0 auto;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.45);
    filter: drop-shadow(0 5px 9px rgb(var(--accent-rgb) / 0.12));
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.nav-links a,
.client-link {
    color: var(--muted);
    font-size: 15px;
    font-weight: 750;
    transition: color 180ms ease;
}

.nav-links a:hover,
.client-link:hover {
    color: var(--accent);
}

.header-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 50px;
    padding: 0;
    border-radius: 999px;
    color: var(--text);
}

.header-profile-link-icon {
    padding: 0;
}

.header-profile-link .user-avatar {
    width: 46px;
    height: 46px;
    font-size: 12px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    font-weight: 850;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
    border-color: rgb(var(--accent-rgb) / 0.44);
    background: rgb(var(--accent-rgb) / 0.08);
    transform: translateY(-1px);
}

.theme-toggle-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: inset -6px -3px 0 rgba(5, 6, 8, 0.72);
}

.theme-toggle-text {
    font-size: 13px;
}

:root.light-theme .theme-toggle-icon {
    box-shadow: inset 0 0 0 3px rgba(17, 24, 39, 0.18);
}

:root.light-theme .site-header {
    background: rgba(255, 255, 255, 0.82);
}

:root.light-theme .brand-mark {
    background: transparent;
}

:root.light-theme .btn-outline,
:root.light-theme .btn-dark-outline,
:root.light-theme .metric,
:root.light-theme .calculator-tabs,
:root.light-theme .rate-input {
    background: rgba(255, 255, 255, 0.72);
}

:root.light-theme .dashboard-wrap::before {
    background: rgba(255, 255, 255, 0.68);
}

:root.light-theme .floating-card {
    background: rgba(255, 255, 255, 0.86);
}

:root.light-theme .flow-number {
    background: #ffffff;
}

:root.light-theme .down-icon {
    border-color: #f8fafc;
}

:root.light-theme .terminal-card {
    border-color: rgba(15, 23, 42, 0.12);
}

:root.light-theme .calc-panel span,
:root.light-theme .calc-panel label,
:root.light-theme .receive-panel small {
    color: #344054;
}

:root.light-theme .calc-panel input.amount-preview,
:root.light-theme .calc-panel input.amount-preview::placeholder {
    color: rgba(17, 24, 39, 0.34);
}

:root.light-theme .user-period-filter select {
    color-scheme: light;
}

.btn {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 32px;
    overflow: hidden;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.3px;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent);
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: none;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 88%, white);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-arrow span {
    display: inline-block;
    transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-arrow:hover span {
    transform: translateX(8px);
}

.btn-outline,
.btn-dark-outline {
    border: 2px solid rgb(var(--accent-rgb) / 0.3);
    background: rgba(var(--accent-rgb), 0.05);
    color: var(--text);
}

.btn-outline:hover,
.btn-dark-outline:hover {
    border-color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(var(--accent-rgb) / 0.15);
}

.btn-border-run::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0deg, transparent 112deg, var(--accent) 162deg, transparent 230deg, transparent 360deg);
    opacity: 0;
    transition: opacity 160ms ease;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-border-run:hover::before {
    opacity: 1;
    animation: border-run 950ms linear infinite;
}

.hero {
    display: grid;
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
    align-items: center;
    gap: 36px;
    width: min(1400px, calc(100% - 32px));
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    padding: 70px 0 96px;
}

.hero-copy,
.pricing-copy,
.developer-copy,
.section-heading,
.cta-panel > div,
.footer-brand,
.footer-column,
.calculator,
.terminal-card,
.flow-step {
    min-width: 0;
}

.hero::after {
    content: "";
    position: absolute;
    top: 12%;
    right: -7%;
    z-index: -1;
    width: 48vw;
    height: 560px;
    border-radius: 999px;
    background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.14), transparent 62%);
    filter: blur(10px);
}

.eyebrow,
.api-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 100%;
    margin-bottom: 28px;
    padding: 10px 17px;
    border: 1px solid rgb(var(--accent-rgb) / 0.22);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.eyebrow span,
.api-pill span {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.hero h1,
.section-heading h2,
.pricing-copy h2,
.developer-copy h2 {
    max-width: 100%;
    margin: 0;
    color: var(--text);
    font-weight: 900;
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(48px, 5vw, 74px);
}

.glass-text {
    display: inline;
    line-height: inherit;
    overflow-wrap: anywhere;
    background: linear-gradient(105deg, var(--accent) 0%, var(--accent) 42%, #ffffff 50%, var(--accent) 58%, var(--accent) 100%);
    background-size: 240% 100%;
    background-position: 120% 0;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 20px rgb(255 74 42 / 0%);
    animation: text-glass 2.8s linear infinite;
}

.hero p,
.section-heading p,
.developer-copy p {
    max-width: min(700px, 100%);
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
}

.hero-actions,
.developer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.metric-icon,
.solution-icon,
.floating-icon {
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
}

.metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 13px;
}

.metric small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.metric strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.hero-media {
    position: relative;
}

.dashboard-wrap {
    position: relative;
    max-width: 690px;
    margin-left: auto;
    padding: 26px 0;
}

.dashboard-wrap::before {
    content: "";
    position: absolute;
    inset: 4px -10px 4px 20px;
    border: 1px solid rgb(var(--accent-rgb) / 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.025);
    transform: rotate(-2deg);
}

.dashboard-wrap img {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero-dashboard-picture {
    display: block;
    position: relative;
    z-index: 2;
}

.dashboard-wrap .hero-dashboard-image-light {
    display: none;
}

.dashboard-wrap .hero-dashboard-image-dark {
    display: block;
}

:root.light-theme .dashboard-wrap .hero-dashboard-image-light {
    display: block;
}

:root.light-theme .dashboard-wrap .hero-dashboard-image-dark {
    display: none;
}

.floating-card {
    display: flex;
    position: absolute;
    z-index: 8;
    align-items: center;
    gap: 14px;
    min-width: 210px;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    background: rgba(10, 13, 18, 0.84);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    animation: float-card 5.2s ease-in-out infinite;
}

.floating-card-top {
    top: 0;
    right: -18px;
}

.floating-card-bottom {
    bottom: 8px;
    left: -28px;
    animation-delay: -1.5s;
}

.floating-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 14px;
    font-size: 15px;
}

.floating-icon.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #dbe4f0;
}

.floating-card small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.floating-card strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

.section {
    --section-bg: var(--section-base);
    position: relative;
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0;
    background: var(--section-bg);
    box-shadow: 0 0 0 100vmax var(--section-bg);
    clip-path: inset(0 -100vmax);
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: var(--section-divider);
    transform: translateX(-50%);
}

.section-heading {
    max-width: 900px;
    margin-bottom: 36px;
}

.section-heading h2,
.pricing-copy h2 {
    font-size: clamp(36px, 4vw, 56px);
}

.solutions {
    --section-bg: var(--section-warm);
    background:
        radial-gradient(circle at 14% 0, rgb(var(--accent-rgb) / 0.1), transparent 28rem),
        var(--section-bg);
}

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

.solution-card,
.calculator,
.calc-panel {
    border: 0;
    background: var(--panel);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
}

.solution-card {
    padding: 30px;
    border-radius: 22px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgb(var(--accent-rgb) / 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.solution-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 14px;
    font-size: 14px;
}

.solution-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 21px;
}

.solution-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.payment-flow {
    --section-bg: var(--section-base);
    --flow-ring: var(--section-bg);
    padding-top: 56px;
}

.flow-timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 10px 0;
}

.flow-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgb(var(--accent-rgb) / 0.62), rgb(var(--accent-rgb) / 0.24), transparent);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    transition: transform 1150ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

.flow-timeline.is-visible::before {
    transform: translateX(-50%) scaleY(1);
}

.flow-event {
    display: grid;
    position: relative;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 112px;
}

.flow-step {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    min-height: 104px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.08), transparent 48%),
        var(--panel);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateX(var(--flow-step-start, 0));
    transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.72, 0.16, 1), border-color 180ms ease, background 180ms ease;
}

.flow-left .flow-step {
    --flow-step-start: -16px;
    grid-column: 1;
    justify-self: end;
}

.flow-right .flow-step {
    --flow-step-start: 16px;
    grid-column: 3;
    justify-self: start;
}

.flow-node {
    display: grid;
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 36px;
    place-self: center;
    place-items: center;
    border: 1px solid rgb(var(--accent-rgb) / 0.44);
    border-radius: 999px;
    background: #11141d;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.78);
    box-shadow: 0 0 0 7px var(--flow-ring);
    transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.72, 0.16, 1);
}

:root.light-theme .flow-node {
    background: #ffffff;
    box-shadow: 0 0 0 7px var(--flow-ring);
}

.flow-event::before {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 32px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / 0.44));
    opacity: 0;
    transition: opacity 420ms ease;
}

.flow-event:nth-child(1) {
    --flow-delay: 190ms;
}

.flow-event:nth-child(2) {
    --flow-delay: 370ms;
}

.flow-event:nth-child(3) {
    --flow-delay: 550ms;
}

.flow-event:nth-child(4) {
    --flow-delay: 730ms;
}

.flow-event:nth-child(5) {
    --flow-delay: 910ms;
}

.flow-timeline.is-visible .flow-event::before,
.flow-timeline.is-visible .flow-step,
.flow-timeline.is-visible .flow-node {
    opacity: 1;
    transition-delay: var(--flow-delay);
}

.flow-timeline.is-visible .flow-step {
    transform: translateX(0);
}

.flow-timeline.is-visible .flow-node {
    transform: scale(1);
}

.flow-left::before {
    left: 50%;
    transform: translateY(-50%) scaleX(-1);
    transform-origin: left center;
}

.flow-right::before {
    right: 50%;
    transform: translateY(-50%) scaleX(-1);
    transform-origin: right center;
}

.flow-step:hover {
    transform: translateY(-3px);
    border-color: rgb(var(--accent-rgb) / 0.36);
    background:
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.12), transparent 52%),
        var(--panel);
}

.flow-timeline.is-visible .flow-step:hover {
    transform: translateY(-3px);
    transition-delay: 0ms;
}

.flow-number {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.flow-step h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 20px;
}

.flow-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.pricing {
    --section-bg: var(--section-cool);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 48px;
    background:
        radial-gradient(circle at 90% 8%, rgb(var(--accent-rgb) / 0.08), transparent 30rem),
        var(--section-bg);
}

.pricing-copy .btn {
    margin-top: 34px;
}

.calculator {
    position: relative;
    padding: 14px;
    border-radius: 24px;
}

.calculator-tabs {
    display: inline-grid;
    grid-template-columns: minmax(120px, 170px);
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.calculator-tabs button {
    min-height: 58px;
    border: 0;
    border-radius: 13px;
    background: var(--accent);
    color: var(--accent-contrast);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
}

.calc-panel {
    display: block;
    position: relative;
    margin-top: 10px;
    padding: 28px;
    border-radius: 18px;
}

.calc-panel span,
.calc-panel label {
    color: #d8dde7;
    font-size: 18px;
    font-weight: 900;
}

.calc-panel strong {
    display: block;
    margin-top: 12px;
    color: var(--text);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 900;
}

.calc-panel input {
    width: min(260px, 80%);
    border: 0;
    background: transparent;
    color: inherit;
    outline: 0;
    font-weight: 900;
}

.calc-panel input.amount-preview {
    color: rgba(247, 248, 251, 0.3);
}

.calc-panel input.amount-preview::placeholder {
    color: rgba(247, 248, 251, 0.3);
    opacity: 1;
}

.calc-panel input.amount-filled {
    color: var(--text);
}

.receive-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
}

.receive-panel small {
    display: block;
    margin-top: 22px;
    color: #d8dde7;
    font-size: 14px;
    font-weight: 900;
}

.receive-panel strong {
    color: var(--accent);
}

.down-icon {
    display: grid;
    position: absolute;
    top: -28px;
    left: 50%;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 9px solid #090b0e;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 28px;
    font-weight: 900;
    transform: translateX(-50%);
}

.fee-info {
    display: grid;
    align-content: center;
    gap: 32px;
    color: var(--muted);
    text-align: right;
}

.fee-info span {
    color: var(--muted);
    font-size: 14px;
}

.current-fee {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
}

.rate-input {
    display: flex;
    align-items: center;
    width: 150px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.rate-input input {
    width: 100%;
    color: var(--text);
    text-align: right;
}

.rate-input span {
    margin-left: 6px;
    color: var(--muted);
}

.current-fee p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.current-fee p strong {
    display: inline;
    margin: 0;
    color: var(--text);
    font-size: inherit;
}

.developer-section {
    margin-top: 34px;
    border-block: 1px solid var(--section-divider);
    background:
        radial-gradient(circle at 78% 28%, rgb(var(--accent-rgb) / 0.12), transparent 28rem),
        linear-gradient(180deg, #080a0f, #050608);
    color: #ffffff;
}

.developer-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    align-items: center;
    gap: 72px;
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 98px 0;
}

.developer-copy h2 {
    max-width: 620px;
    color: #ffffff;
    font-size: clamp(42px, 4.6vw, 68px);
}

.developer-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.developer-list {
    display: grid;
    gap: 18px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.developer-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}

.developer-list span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgb(var(--accent-rgb) / 0.42);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.btn-light {
    background: #f7f8fb;
    color: #090b0e;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}

.developer-section .btn-dark-outline {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.developer-section .btn-dark-outline:hover {
    border-color: rgb(var(--accent-rgb) / 0.55);
    background: rgb(var(--accent-rgb) / 0.1);
}

.terminal-card {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, #171c27 0%, #0f131c 100%);
    box-shadow: var(--shadow);
}

.terminal-badge {
    position: absolute;
    top: -17px;
    right: 28px;
    z-index: 2;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 7px 16px rgb(var(--accent-rgb) / 0.14);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 27px 28px 20px;
    border-bottom: 1px solid var(--line);
}

.terminal-dots {
    display: flex;
    gap: 9px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.terminal-dots .red {
    background: #ff5f57;
}

.terminal-dots .yellow {
    background: #ffbd2e;
}

.terminal-dots .green {
    background: #28c840;
}

.terminal-file {
    color: #b8c4d6;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

.terminal-card pre {
    margin: 0;
    min-height: 286px;
    max-width: 100%;
    overflow-x: auto;
    padding: 28px;
    color: #d1fbe2;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.72;
}

.typing-code {
    white-space: pre;
}

.token-comment {
    color: #70839e;
}

.token-command {
    color: #f7f8fb;
    font-weight: 800;
}

.token-flag {
    color: var(--accent);
}

.token-string,
.token-url {
    color: #7dd3fc;
}

.token-key {
    color: #f0abfc;
}

.token-number {
    color: #fbbf24;
}

.token-escape {
    color: #cbd5e1;
}

.typing-code::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 1.1em;
    margin-left: 3px;
    background: var(--accent);
    vertical-align: -0.18em;
    animation: cursor-blink 800ms steps(2, start) infinite;
}

.terminal-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px 24px;
    border-top: 1px solid var(--line);
    color: #b8c4d6;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.terminal-footer span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 13px;
}

.terminal-footer i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.08);
}

.final-cta {
    --section-bg: var(--section-soft);
    padding-top: 112px;
    background: var(--section-bg);
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: clamp(28px, 5vw, 56px);
    border: 0;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), transparent 48%),
        var(--panel);
    box-shadow: var(--shadow);
}

.cta-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 900;
}

.cta-panel h2 {
    max-width: 860px;
    margin: 0;
    color: var(--text);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;
    line-height: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(140px, 0.7fr));
    gap: 40px;
}

.footer-brand p {
    max-width: 360px;
    margin: 18px 0 22px;
    line-height: 1.6;
}

.footer-company {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.footer-company strong {
    color: var(--text);
    font-size: 13px;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 12px;
}

.footer-column h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 15px;
}

.footer-column a,
.footer-bottom a {
    color: var(--muted);
    font-weight: 700;
    transition: color 180ms ease;
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.footer-bottom div {
    display: flex;
    gap: 22px;
}

.site-footer .brand {
    width: fit-content;
}

.site-footer .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.auth-page,
.dashboard-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgb(var(--accent-rgb) / 0.1), transparent 26rem),
        linear-gradient(180deg, var(--section-base) 0%, var(--section-soft) 100%);
}

.dashboard-page {
    --dashboard-divider: color-mix(in srgb, var(--text) 9%, transparent);
    --dashboard-card-border: color-mix(in srgb, var(--text) 6%, transparent);
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg);
}

:root.light-theme body.dashboard-page {
    background: var(--bg);
}

.dashboard-page::before {
    content: none;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    padding: 32px 16px;
    place-items: center;
}

.auth-card {
    width: min(100%, 480px);
    padding: clamp(28px, 5vw, 44px);
    border: 0;
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-brand {
    width: fit-content;
    margin-bottom: 32px;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.dashboard-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.dashboard-breadcrumb a {
    color: var(--muted);
}

.dashboard-breadcrumb a:hover {
    color: var(--accent);
}

.dashboard-breadcrumb span {
    color: var(--text);
}

.dashboard-breadcrumb a::after {
    margin-left: 8px;
    color: var(--muted);
    content: ">";
}

.auth-heading h1,
.dashboard-empty h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 900;
    line-height: 1;
}

.auth-heading p,
.dashboard-empty p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

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

.auth-form label:not(.auth-check) {
    display: grid;
    gap: 8px;
}

.auth-form label > span:not(.password-field) {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
    color: var(--text);
    outline: 0;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.password-field {
    display: block;
    position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    padding-right: 50px;
}

.password-field button {
    display: grid;
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, color 180ms ease;
}

.password-field button:hover {
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
}

.auth-form input:focus {
    border-color: rgb(var(--accent-rgb) / 0.42);
    box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.1);
}

.auth-form small {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 750;
}

.password-strength {
    display: grid;
    gap: 8px;
    margin-top: -6px;
}

.password-strength-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.password-strength-bars span {
    height: 8px;
    border-radius: 999px;
    background: rgb(148 163 184 / 0.22);
    transition: background 180ms ease, transform 180ms ease;
}

.password-strength p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.password-strength[data-score="1"] .password-strength-bars span:nth-child(-n + 1),
.password-strength[data-score="2"] .password-strength-bars span:nth-child(-n + 2) {
    background: #ef4444;
}

.password-strength[data-score="3"] .password-strength-bars span:nth-child(-n + 3) {
    background: #f59e0b;
}

.password-strength[data-score="4"] .password-strength-bars span:nth-child(-n + 4),
.password-strength[data-score="5"] .password-strength-bars span:nth-child(-n + 5) {
    background: #22c55e;
}

.password-strength[data-score="1"] .password-strength-bars span:nth-child(-n + 1),
.password-strength[data-score="2"] .password-strength-bars span:nth-child(-n + 2),
.password-strength[data-score="3"] .password-strength-bars span:nth-child(-n + 3),
.password-strength[data-score="4"] .password-strength-bars span:nth-child(-n + 4),
.password-strength[data-score="5"] .password-strength-bars span:nth-child(-n + 5) {
    transform: scaleY(1.18);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.auth-form .btn {
    width: 100%;
    margin-top: 4px;
    border: 0;
    cursor: pointer;
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 900;
}

.dashboard-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    min-height: 82px;
    margin: 0 auto;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--section-base);
    backdrop-filter: blur(18px);
}

.dashboard-header .btn {
    min-height: 46px;
}

.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
}

.dashboard-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
    transition: color 180ms ease, background 180ms ease;
}

.dashboard-nav a:hover {
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
}

.user-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(var(--accent-rgb) / 0.28);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-user-copy {
    display: grid;
    min-width: 0;
    line-height: 1.1;
}

.dashboard-user-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.dashboard-user-copy strong {
    max-width: 140px;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 92px;
}

.setup-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    position: relative;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 18px;
    border: 0;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), transparent 62%),
        var(--panel);
    box-shadow: var(--shadow);
    animation: setup-alert-in 420ms ease both;
}

.setup-alert::before {
    content: none;
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--accent);
}

.setup-alert::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -18%;
    width: 24%;
    background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / 0.14), transparent);
    transform: skewX(-16deg);
    animation: setup-alert-sheen 4.6s ease-in-out infinite;
    pointer-events: none;
}

.setup-alert-dev {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-color: rgb(59 130 246 / 0.26);
    background:
        linear-gradient(135deg, rgb(59 130 246 / 0.12), transparent 62%),
        var(--panel);
}

.setup-alert-dev::before {
    background: #3b82f6;
}

.dev-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgb(59 130 246 / 0.28);
    border-radius: 999px;
    background: rgb(59 130 246 / 0.1);
    color: #3b82f6;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.setup-alert strong,
.setup-alert small {
    display: block;
}

.setup-alert strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.setup-alert small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.setup-alert b {
    color: var(--accent);
    font-size: 20px;
    transition: transform 180ms ease;
}

.setup-alert-icon {
    display: grid;
    position: relative;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 900;
    box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.28);
    animation: setup-alert-pulse 2.2s ease-out infinite;
}

.setup-alert-icon i {
    position: relative;
    z-index: 1;
}

.setup-alert:hover b {
    transform: translateX(4px);
}

@keyframes setup-alert-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes setup-alert-pulse {
    0% {
        box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0.28);
    }

    70% {
        box-shadow: 0 0 0 12px rgb(var(--accent-rgb) / 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0);
    }
}

@keyframes setup-alert-sheen {
    0%,
    62% {
        transform: translateX(0) skewX(-16deg);
        opacity: 0;
    }

    72% {
        opacity: 1;
    }

    100% {
        transform: translateX(560%) skewX(-16deg);
        opacity: 0;
    }
}

.setup-alert-complete {
    border-color: rgba(34, 197, 94, 0.28);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.12), transparent 62%),
        var(--panel);
}

.setup-alert-complete::before {
    background: #22c55e;
}

.setup-alert-complete::after {
    display: none;
}

.setup-alert-complete .setup-alert-icon {
    background: #22c55e;
    animation: none;
}

.dashboard-empty {
    padding: 64px 0 0;
    border-top: 1px solid var(--line);
}

.profile-layout {
    display: grid;
    gap: 24px;
}

.profile-intro {
    max-width: 760px;
}

.profile-intro h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1;
}

.profile-intro p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.profile-status {
    width: fit-content;
    margin-top: 18px;
    padding: 11px 14px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    font-size: 14px;
    font-weight: 900;
}

.profile-form {
    display: grid;
    gap: 18px;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.06);
}

.settings-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.settings-tabs button:hover,
.settings-tabs button.is-active {
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--text);
}

.settings-tabs button.is-active i {
    color: var(--accent);
}

.profile-card {
    padding: clamp(22px, 4vw, 32px);
    border: 0;
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.profile-photo-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-photo-preview {
    display: grid;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(var(--accent-rgb) / 0.28);
    border-radius: 24px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-upload {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.profile-upload input {
    max-width: 100%;
}

.profile-upload span,
.profile-section-heading h2,
.profile-grid span {
    color: var(--text);
    font-weight: 900;
}

.profile-upload small,
.profile-grid small,
.field-error {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.field-error {
    color: var(--accent-dark);
}

.profile-section-heading {
    margin-bottom: 22px;
}

.profile-section-heading h2 {
    margin: 0;
    font-size: 24px;
}

.profile-section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.profile-grid label {
    display: grid;
    gap: 8px;
}

.profile-grid b {
    color: var(--accent);
}

.profile-grid input,
.profile-grid textarea,
.profile-grid select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
    color: var(--text);
    outline: 0;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.profile-grid input,
.profile-grid select {
    min-height: 52px;
    padding: 0 16px;
}

.profile-grid input[type="file"] {
    padding: 13px 16px;
}

.profile-grid textarea {
    min-height: 118px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.55;
}

.profile-grid input:focus,
.profile-grid textarea:focus,
.profile-grid select:focus {
    border-color: rgb(var(--accent-rgb) / 0.42);
    box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.1);
}

.profile-grid input:disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.76;
}

.profile-grid-full {
    grid-column: 1 / -1;
}

.profile-choice {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.04);
}

.profile-choice legend {
    padding: 0 6px;
    color: var(--text);
    font-weight: 900;
}

.profile-choice label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--muted);
    font-weight: 800;
}

.profile-choice input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.profile-dev-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgb(var(--accent-rgb) / 0.24);
    border-radius: 16px;
    background: rgb(var(--accent-rgb) / 0.08);
    cursor: pointer;
}

.profile-dev-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--accent);
}

.profile-dev-toggle span {
    display: grid;
    gap: 5px;
}

.profile-dev-toggle strong {
    color: var(--text);
    font-weight: 900;
}

.profile-dev-toggle small,
.profile-dev-message {
    color: var(--muted);
    line-height: 1.45;
}

.profile-dev-message {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 800;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.user-settings-grid,
.user-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.user-settings-card,
.user-settings-link-card,
.user-security-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 0;
    border-radius: 18px;
    background: var(--panel-strong);
}

.user-settings-card-head,
.user-settings-link-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.user-settings-card-head strong,
.user-settings-link-card strong,
.user-security-card strong {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.user-settings-card-head p,
.user-settings-link-card p,
.user-security-card small {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.user-settings-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
    font-size: 16px;
}

.user-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.user-settings-link-card {
    justify-content: space-between;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.user-settings-link-card:hover {
    border-color: rgb(var(--accent-rgb) / 0.28);
    background: rgb(var(--accent-rgb) / 0.05);
    transform: translateY(-2px);
}

.user-settings-link-card > div {
    min-width: 0;
    flex: 1 1 auto;
}

.user-settings-link-card > i:last-child {
    align-self: center;
    color: var(--muted);
    font-size: 13px;
}

.user-security-card {
    gap: 10px;
}

.user-security-card > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.user-security-card strong {
    font-size: 20px;
}

.service-fee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.service-fee-provider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.service-fee-provider small {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-fee-provider h1 {
    margin: 3px 0 6px;
    color: var(--text);
    font-size: clamp(24px, 4vw, 34px);
}

.service-fee-provider p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.service-fee-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgb(16 185 129 / 0.24);
    border-radius: 999px;
    background: rgb(16 185 129 / 0.1);
    color: #34d399;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.service-fee-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 230px;
    padding: clamp(20px, 3vw, 28px);
    border: 0;
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.service-fee-card-highlight {
    border-color: rgb(var(--accent-rgb) / 0.34);
    background:
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), transparent 66%),
        var(--panel);
}

.service-fee-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: rgb(var(--accent-rgb) / 0.11);
    color: var(--accent);
    font-size: 18px;
}

.service-fee-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.service-fee-card strong {
    color: var(--text);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    line-height: 1;
}

.service-fee-card p,
.service-fee-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.service-fee-breakdown {
    overflow: hidden;
}

.fee-breakdown-list {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.fee-breakdown-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.1fr) minmax(180px, 1fr);
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--panel-strong);
}

.fee-breakdown-row + .fee-breakdown-row {
    border-top: 1px solid var(--line);
}

.fee-breakdown-row span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 900;
}

.fee-breakdown-row span i {
    color: var(--accent);
}

.fee-breakdown-row strong {
    color: var(--text);
    font-size: 15px;
}

.fee-breakdown-row small {
    color: var(--muted);
    line-height: 1.45;
}

.service-fee-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.service-fee-note h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 22px;
}

.service-fee-admin-note {
    border-color: rgba(245, 158, 11, 0.26);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent 68%),
        var(--panel);
}

.service-fee-admin-note .service-fee-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.admin-dashboard-intro {
    display: grid;
    gap: 16px;
}

.admin-intro-actions,
.admin-panel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-stat-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 220px;
    padding: 22px;
    border: 0;
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-stat-card-accent {
    border-color: rgb(var(--accent-rgb) / 0.34);
    background:
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), transparent 68%),
        var(--panel);
}

.admin-stat-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: rgb(var(--accent-rgb) / 0.11);
    color: var(--accent);
    font-size: 18px;
}

.admin-stat-card small,
.admin-config-list span,
.admin-log-list span,
.admin-log-list small,
.admin-empty-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.admin-stat-card strong {
    color: var(--text);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    line-height: 1;
}

.admin-stat-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-config-list {
    display: grid;
    gap: 10px;
}

.admin-config-list div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.admin-config-list strong {
    color: var(--text);
    font-size: 15px;
}

.admin-log-list {
    display: grid;
    gap: 10px;
}

.admin-log-list article {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.admin-log-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-log-list span i {
    color: var(--accent);
}

.admin-log-list strong {
    color: var(--text);
}

.admin-user-list {
    display: grid;
    gap: 10px;
}

.admin-user-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.admin-user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.admin-user-list div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.admin-user-list strong,
.admin-user-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-list strong {
    color: var(--text);
    font-size: 14px;
}

.admin-user-list small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-user-list b {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.admin-user-list b.is-ready {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.admin-user-list b.is-pending {
    background: rgba(245, 158, 11, 0.13);
    color: #d97706;
}

.dashboard-shell .admin-console-layout {
    width: min(1480px, 100%);
}

.admin-console-layout {
    display: grid;
    gap: 22px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-kpi-card {
    display: grid;
    align-content: start;
    min-height: 178px;
    gap: 10px;
    padding: 22px;
    border: 0;
    border-radius: 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-kpi-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
    font-size: 18px;
}

.admin-kpi-card small,
.admin-kpi-card p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.admin-kpi-card strong {
    color: var(--text);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    line-height: 1;
}

.admin-kpi-card p {
    margin: 0;
}

.admin-form-errors {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.09);
    color: #ef4444;
    font-weight: 850;
}

.admin-form-errors span {
    color: var(--muted);
    font-size: 13px;
}

.admin-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-chart-card,
.admin-data-card,
.admin-summary-grid article {
    border: 0;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.admin-chart-card,
.admin-data-card {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 22px;
}

.admin-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-section-title h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    line-height: 1.05;
}

.admin-section-title p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.admin-section-title > span {
    color: var(--accent);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-back-link:hover,
.admin-user-link:hover {
    color: var(--accent);
}

.admin-user-profile-card {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 3vw, 28px);
    border: 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgb(var(--accent-rgb) / 0.12), transparent 34%),
        var(--panel);
    box-shadow: var(--shadow);
}

.admin-user-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.admin-user-profile-avatar {
    display: grid;
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(var(--accent-rgb) / 0.22);
    border-radius: 24px;
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
}

.admin-user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-profile-head h1 {
    margin: 6px 0 4px;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
}

.admin-user-profile-head p {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 800;
}

.admin-user-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.admin-definition-grid div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
}

.admin-definition-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-definition-grid dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 900;
}

.admin-note {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgb(var(--accent-rgb) / 0.18);
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.06);
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

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

.admin-moderation-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-moderation-form input,
.admin-moderation-form select,
.admin-moderation-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    color: var(--text);
    outline: 0;
}

.admin-moderation-form textarea {
    min-height: 132px;
    padding: 12px 14px;
    resize: vertical;
}

.admin-form-wide {
    grid-column: 1 / -1;
}

.admin-infraction-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
}

.admin-infraction-item strong,
.admin-infraction-item small {
    display: block;
}

.admin-infraction-item strong {
    color: var(--text);
    font-weight: 900;
}

.admin-infraction-item small,
.admin-infraction-item p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.admin-infraction-item p {
    grid-column: 1 / -1;
    margin: 0;
}

.admin-bar-chart {
    display: grid;
    position: relative;
    grid-template-columns: repeat(14, minmax(20px, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 260px;
    overflow: hidden;
    padding: 18px 10px 4px;
    border: 0;
    border-radius: 18px;
    background: var(--panel-strong);
}

.admin-bar-chart::before {
    position: absolute;
    inset: 18px 10px 34px;
    background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%;
    content: "";
    pointer-events: none;
}

.admin-bar-chart span {
    display: grid;
    position: relative;
    z-index: 1;
    grid-template-rows: minmax(0, 192px) 22px;
    align-items: end;
    gap: 8px;
    min-width: 0;
}

.admin-bar-chart b {
    display: block;
    width: 100%;
    height: var(--bar);
    max-height: 100%;
    min-height: 2px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, var(--accent), rgb(var(--accent-rgb) / 0.42));
}

.admin-bar-chart-blue b {
    background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.36));
}

.admin-bar-chart small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bar-chart.is-empty b {
    background: var(--line);
}

.admin-chart-empty {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.admin-summary-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-summary-grid article {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
}

.admin-summary-grid small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.admin-summary-grid strong {
    color: var(--text);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 900;
    line-height: 1;
}

.admin-filter-row,
.admin-report-filters,
.admin-link-form {
    display: grid;
    gap: 12px;
}

.admin-filter-row {
    grid-template-columns: minmax(260px, 1fr) 210px 210px;
}

.admin-filter-row-compact {
    grid-template-columns: minmax(260px, 1fr) 210px;
}

.admin-filter-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    color: var(--muted);
}

.admin-filter-row input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: 0;
}

.admin-filter-row select,
.admin-report-filters input,
.admin-report-filters select,
.admin-link-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    color: var(--text);
    outline: 0;
}

.admin-report-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-report-filters label,
.admin-link-form > label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.admin-link-form {
    grid-template-columns: minmax(220px, 1.3fr) minmax(140px, 0.7fr) minmax(110px, 0.5fr) minmax(220px, 1fr) auto auto;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgb(var(--accent-rgb) / 0.035);
}

.admin-link-form fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-height: 50px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.admin-link-form legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.admin-link-form fieldset label,
.admin-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.admin-link-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: auto;
    padding: 0;
    accent-color: var(--accent);
}

.admin-inline-check {
    min-height: 50px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: var(--panel);
}

.admin-table-compact {
    min-width: 680px;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td strong {
    color: var(--text);
    font-weight: 900;
}

.admin-table td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.admin-table tr.is-hidden {
    display: none;
}

.admin-table tr[data-row-href] {
    cursor: pointer;
}

.admin-table tr[data-row-href]:hover td {
    background: rgb(var(--accent-rgb) / 0.045);
}

.admin-user-link {
    display: block;
    color: inherit;
}

.admin-value-danger {
    color: #ef4444 !important;
    font-weight: 900;
}

.admin-value-success {
    color: #3b82f6 !important;
    font-weight: 900;
}

.admin-value-accent {
    color: var(--accent) !important;
    font-weight: 900;
}

.admin-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-method-badge,
.admin-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-method-badge {
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--text);
}

.admin-method-badge.is-pix {
    border-color: rgba(16, 185, 129, 0.26);
    color: #10b981;
}

.admin-method-badge.is-card {
    border-color: rgba(59, 130, 246, 0.26);
    color: #3b82f6;
}

.admin-method-badge.is-boleto {
    border-color: rgba(100, 116, 139, 0.3);
    color: var(--muted);
}

.admin-status-chip.is-paid,
.admin-status-chip.is-recovered {
    background: rgba(59, 130, 246, 0.14);
    color: #3b82f6;
}

.admin-status-chip.is-pending {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text);
}

.admin-status-chip.is-abandoned,
.admin-status-chip.is-failed,
.admin-status-chip.is-expired,
.admin-status-chip.is-canceled {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.admin-status-chip.is-user-active {
    background: rgba(34, 197, 94, 0.13);
    color: #16a34a;
}

.admin-status-chip.is-user-analysis {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.admin-status-chip.is-user-suspended {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text);
}

.admin-status-chip.is-user-banned {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.admin-status-chip.is-withdrawal-completed {
    background: rgba(34, 197, 94, 0.13);
    color: #16a34a;
}

.admin-status-chip.is-withdrawal-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.admin-status-chip.is-withdrawal-canceled,
.admin-status-chip.is-withdrawal-failed {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.admin-status-chip.is-webhook-delivered,
.admin-status-chip.is-webhook-success {
    background: rgba(34, 197, 94, 0.13);
    color: #16a34a;
}

.admin-status-chip.is-webhook-pending {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.admin-status-chip.is-webhook-failed {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.admin-status-chip.is-webhook-processed {
    background: rgba(34, 197, 94, 0.13);
    color: #16a34a;
}

.admin-status-chip.is-webhook-duplicate,
.admin-status-chip.is-webhook-ignored {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.admin-status-chip.is-webhook-invalid_signature {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.fake-webhook-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fake-webhook-actions .btn {
    min-height: 42px;
}

.admin-status-chip.is-infraction-low {
    background: rgba(34, 197, 94, 0.13);
    color: #16a34a;
}

.admin-status-chip.is-infraction-medium {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.admin-status-chip.is-infraction-high,
.admin-status-chip.is-infraction-critical {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.admin-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 240px;
}

.admin-action-row-large {
    min-width: 0;
}

.admin-mini-action {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--text);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.admin-mini-action:hover {
    border-color: rgb(var(--accent-rgb) / 0.32);
    color: var(--accent);
    transform: translateY(-1px);
}

.admin-mini-action-danger {
    border-color: rgba(239, 68, 68, 0.24);
    color: #ef4444;
}

.admin-muted-cell {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-log-metadata {
    display: block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-empty-state {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
    color: var(--muted);
    font-weight: 800;
    line-height: 1.5;
}

.admin-empty-state.is-hidden {
    display: none;
}

.admin-icon-action {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
    color: var(--text);
    cursor: pointer;
}

.admin-icon-action:hover {
    border-color: rgb(var(--accent-rgb) / 0.3);
    color: var(--accent);
}

.admin-brand-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
}

.admin-brand-preview .brand-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
}

.admin-brand-preview div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-brand-preview strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.admin-brand-preview small {
    color: var(--muted);
    line-height: 1.45;
}

.admin-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-toggle-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px;
    border: 0;
    border-radius: 16px;
    background: var(--panel-strong);
}

.admin-toggle-card input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.admin-toggle-card span {
    display: grid;
    gap: 5px;
}

.admin-toggle-card strong {
    color: var(--text);
    font-weight: 900;
}

.admin-toggle-card small {
    color: var(--muted);
    line-height: 1.45;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes border-run {
    to {
        --angle: 360deg;
    }
}

@keyframes text-glass {
    0% {
        background-position: 140% 0;
    }

    100% {
        background-position: -80% 0;
    }
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes cursor-blink {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 1040px) {
    .nav-links {
        display: none;
    }

    .navbar {
        gap: 18px;
    }

    .nav-actions {
        gap: 12px;
    }

    .nav-actions .btn,
    .theme-toggle {
        min-height: 46px;
    }

    .nav-actions .btn {
        padding: 0 18px;
    }

    .hero,
    .pricing,
    .developer-inner {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 42px;
    }

    .dashboard-wrap {
        margin: 0 auto;
    }

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

    .floating-card-top {
        right: 10px;
    }

    .floating-card-bottom {
        left: 10px;
    }

    .flow-step {
        width: min(460px, 100%);
    }

    .cta-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 8px 0 10px;
    }

    .navbar,
    .hero,
    .section,
    .developer-inner,
    .site-footer {
        width: min(100% - 24px, 1400px);
    }

    .section {
        padding: 72px 0;
    }

    .navbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "links links";
        min-height: 72px;
        align-items: center;
        gap: 10px 12px;
    }

    .brand {
        grid-area: brand;
    }

    .nav-actions {
        grid-area: actions;
        justify-content: flex-end;
        gap: 8px;
    }

    .nav-links {
        display: flex;
        grid-area: links;
        gap: 8px;
        max-width: 100%;
        overflow-x: auto;
        padding: 2px 0 0;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
        font-size: 12px;
        font-weight: 850;
    }

    :root.light-theme .nav-links a {
        background: rgba(255, 255, 255, 0.78);
    }

    .client-link {
        display: none;
    }

    .brand {
        font-size: 21px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
    }

    .nav-actions .btn {
        width: auto;
        min-height: 44px;
        padding: 0 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .header-profile-link {
        min-height: 46px;
        padding: 0;
    }

    .theme-toggle {
        min-height: 44px;
        padding: 0 12px;
    }

    .hero {
        padding: 42px 0 72px;
    }

    .hero::after {
        top: 2%;
        right: -34%;
        width: 92vw;
        height: 360px;
        opacity: 0.65;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .section-heading h2,
    .pricing-copy h2,
    .developer-copy h2,
    .cta-panel h2 {
        font-size: 34px;
        line-height: 1.04;
    }

    .hero p,
    .section-heading p,
    .developer-copy p {
        font-size: 18px;
    }

    .hero-actions,
    .hero-actions .btn,
    .pricing-copy .btn,
    .developer-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .solution-grid,
    .receive-panel,
    .current-fee {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
    }

    .metric {
        width: 100%;
    }

    .dashboard-wrap {
        padding: 12px 0 0;
    }

    .dashboard-wrap::before {
        display: none;
    }

    .dashboard-wrap img {
        border-radius: 14px;
    }

    .flow-timeline {
        gap: 16px;
        padding-left: 42px;
    }

    .flow-timeline::before {
        left: 17px;
        transform: scaleY(0);
    }

    .flow-timeline.is-visible::before {
        transform: scaleY(1);
    }

    .flow-event {
        display: block;
        min-height: auto;
    }

    .flow-event::before {
        top: 31px;
        left: -25px;
        right: auto;
        width: 25px;
        transform: none;
        background: rgb(var(--accent-rgb) / 0.42);
    }

    .flow-node {
        position: absolute;
        top: 14px;
        left: -42px;
        width: 34px;
        height: 34px;
        box-shadow: 0 0 0 6px var(--flow-ring);
    }

    :root.light-theme .flow-node {
        box-shadow: 0 0 0 6px var(--flow-ring);
    }

    .flow-left .flow-step,
    .flow-right .flow-step {
        --flow-step-start: 0;
        width: 100%;
        min-height: auto;
        padding: 22px;
        justify-self: stretch;
    }

    .flow-number {
        margin-bottom: 20px;
    }

    .fee-info {
        gap: 10px;
        text-align: left;
    }

    .calculator {
        padding: 10px;
        border-radius: 20px;
    }

    .calculator-tabs {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .calc-panel {
        padding: 22px;
    }

    .calc-panel strong {
        font-size: 32px;
    }

    .calc-panel input {
        width: min(190px, calc(100% - 58px));
    }

    .rate-input {
        width: 100%;
    }

    .floating-card {
        position: relative;
        inset: auto;
        width: 100%;
        margin-top: 12px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-bottom div {
        flex-wrap: wrap;
    }

    .developer-inner {
        gap: 44px;
        padding: 72px 0;
    }

    .developer-list li {
        align-items: flex-start;
        font-size: 16px;
        line-height: 1.4;
    }

    .developer-list span {
        flex: 0 0 auto;
        margin-top: 1px;
    }

    .terminal-badge {
        position: static;
        display: inline-flex;
        margin: 18px 18px 0;
    }

    .terminal-header,
    .terminal-card pre,
    .terminal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .terminal-footer {
        flex-direction: column;
    }

    .auth-shell {
        padding: 20px 12px;
    }

    .auth-card {
        border-radius: 20px;
    }

    .dashboard-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
        width: min(100% - 24px, 1180px);
        min-height: auto;
        padding: 10px 0;
        gap: 10px 12px;
    }

    .dashboard-header .brand {
        grid-area: brand;
    }

    .dashboard-nav {
        grid-area: nav;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dashboard-nav::-webkit-scrollbar {
        display: none;
    }

    .dashboard-actions {
        grid-area: actions;
        justify-content: flex-end;
    }

    .dashboard-layout {
        width: min(100% - 24px, 1180px);
        padding: 26px 0 72px;
    }

    .dashboard-empty {
        padding: 54px 0 0;
    }

    .setup-alert {
        align-items: flex-start;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-photo-card {
        align-items: flex-start;
    }

    .final-cta {
        padding-top: 72px;
    }

    .cta-panel {
        gap: 24px;
        border-radius: 20px;
    }

    .cta-actions {
        justify-content: stretch;
    }

}

@media (max-width: 560px) {
    .navbar {
        padding: 2px 0 0;
    }

    .brand {
        flex: 1 1 auto;
    }

    .nav-actions {
        width: auto;
        justify-content: flex-end;
    }

    .nav-actions .btn {
        flex: 0 0 auto;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section-heading h2,
    .pricing-copy h2,
    .developer-copy h2,
    .cta-panel h2 {
        font-size: 30px;
    }

    .hero p,
    .section-heading p,
    .developer-copy p {
        font-size: 16px;
    }

    .btn {
        min-height: 50px;
        padding: 0 18px;
    }

    .solution-card {
        padding: 24px;
        border-radius: 18px;
    }

    .flow-timeline {
        padding-left: 36px;
    }

    .flow-timeline::before {
        left: 15px;
    }

    .flow-event::before {
        left: -21px;
        width: 21px;
    }

    .flow-node {
        left: -36px;
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .flow-left .flow-step,
    .flow-right .flow-step {
        padding: 18px;
    }

    .receive-panel {
        gap: 18px;
    }

    .calc-panel strong {
        font-size: 28px;
    }

    .calc-panel input {
        width: min(150px, calc(100% - 52px));
    }

    .terminal-card {
        border-radius: 18px;
    }

    .terminal-card pre {
        min-height: 230px;
        font-size: 12px;
        line-height: 1.6;
    }

    .terminal-file {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .navbar,
    .hero,
    .section,
    .developer-inner,
    .site-footer {
        width: min(100% - 20px, 1400px);
    }

    .brand {
        font-size: 19px;
    }

    .brand-name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .theme-toggle-text {
        display: none;
    }

    .theme-toggle {
        width: 46px;
        padding: 0;
        justify-content: center;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        padding: 7px 8px;
        font-size: 11px;
    }

    .nav-actions .btn {
        min-width: 98px;
        padding: 0 12px;
        font-size: 13px;
    }

    .header-profile-link .user-avatar {
        width: 42px;
        height: 42px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-heading h2,
    .pricing-copy h2,
    .developer-copy h2,
    .cta-panel h2 {
        font-size: 28px;
    }

    .hero-actions,
    .developer-actions,
    .cta-actions {
        gap: 12px;
    }

    .calc-panel {
        padding: 18px;
    }

    .developer-inner {
        padding: 62px 0;
    }

    .terminal-header,
    .terminal-card pre,
    .terminal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-card {
        padding: 24px;
    }

    .dashboard-header {
        width: min(100% - 20px, 1180px);
    }

    .dashboard-header .brand {
        font-size: 19px;
    }

    .dashboard-header .brand-mark {
        width: 40px;
        height: 40px;
    }

    .dashboard-header .btn {
        min-height: 42px;
        padding: 0 16px;
    }

    .dashboard-user {
        padding: 5px;
    }

    .dashboard-user-copy {
        display: none;
    }

    .dashboard-actions {
        gap: 8px;
    }

    .dashboard-layout {
        width: min(100% - 20px, 1180px);
    }

    .setup-alert {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .setup-alert b {
        display: none;
    }

    .profile-photo-card {
        display: grid;
    }

    .profile-actions .btn {
        width: 100%;
    }
}

.onboarding-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 16% 14%, rgb(var(--accent-rgb) / 0.12), transparent 26rem),
        radial-gradient(circle at 92% 10%, rgba(34, 197, 94, 0.08), transparent 22rem),
        linear-gradient(180deg, var(--section-base) 0%, var(--section-soft) 100%);
}

.onboarding-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    width: min(1240px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 48px) 0;
}

.onboarding-hero {
    display: grid;
    align-content: space-between;
    gap: 36px;
    min-width: 0;
}

.onboarding-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.onboarding-copy {
    max-width: 540px;
}

.onboarding-copy h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 900;
    line-height: 0.98;
}

.onboarding-copy p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.onboarding-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.onboarding-steps span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgb(var(--accent-rgb) / 0.2);
    border-radius: 999px;
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    opacity: 0.72;
}

.onboarding-steps span.is-active,
.onboarding-steps span.is-complete {
    border-color: rgb(var(--accent-rgb) / 0.34);
    background: rgb(var(--accent-rgb) / 0.14);
    color: var(--accent);
    opacity: 1;
}

.onboarding-logout {
    display: flex;
}

.onboarding-logout button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
    transition: color 180ms ease, transform 180ms ease;
}

.onboarding-logout button:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.onboarding-panel {
    min-width: 0;
    align-self: center;
    padding: clamp(32px, 5vw, 48px);
    border: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--panel) 0%, rgba(var(--accent-rgb), 0.02) 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.onboarding-progress {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.onboarding-progress span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.onboarding-progress b {
    color: var(--accent);
}

.onboarding-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}

.onboarding-progress-track span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 260ms ease;
}

.onboarding-form,
.onboarding-group {
    display: grid;
    gap: 28px;
}

.onboarding-step-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgb(var(--accent-rgb) / 0.15);
}

.onboarding-step-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.onboarding-step-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.onboarding-group {
    padding-bottom: 22px;
}

.onboarding-group[hidden] {
    display: none;
}

.onboarding-group.is-active {
    animation: onboarding-step-in 260ms ease both;
}

@keyframes onboarding-step-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.onboarding-grid,
.onboarding-conditional {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.onboarding-grid label,
.onboarding-conditional label {
    display: grid;
    gap: 14px;
}

.onboarding-grid span,
.onboarding-conditional span {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.onboarding-grid b,
.onboarding-conditional b,
.onboarding-choice b {
    color: var(--accent);
}

.onboarding-grid input,
.onboarding-grid textarea,
.onboarding-grid select,
.onboarding-conditional input,
.onboarding-conditional textarea,
.onboarding-conditional select {
    width: 100%;
    border: 2px solid rgb(var(--accent-rgb) / 0.2);
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.02);
    color: var(--text);
    outline: 0;
    font-family: inherit;
    font-size: 15px;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-grid input:hover,
.onboarding-grid textarea:hover,
.onboarding-grid select:hover,
.onboarding-conditional input:hover,
.onboarding-conditional textarea:hover,
.onboarding-conditional select:hover {
    border-color: rgb(var(--accent-rgb) / 0.35);
    background: rgba(var(--accent-rgb), 0.035);
}

.onboarding-grid input,
.onboarding-conditional input {
    min-height: 56px;
    padding: 0 18px;
    font-weight: 500;
}

.onboarding-grid select,
.onboarding-conditional select {
    min-height: 56px;
    padding: 0 18px;
    font-weight: 500;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(var(--text-rgb), 0.55) 50%), linear-gradient(135deg, rgba(var(--text-rgb), 0.55) 50%, transparent 50%);
    background-position: right 18px center, right 18px center;
    background-size: 8px 8px;
    background-repeat: no-repeat;
}

.onboarding-grid textarea,
.onboarding-conditional textarea {
    min-height: 130px;
    padding: 16px 18px;
    resize: vertical;
    line-height: 1.6;
    font-weight: 400;
}

.onboarding-grid input:focus,
.onboarding-grid textarea:focus,
.onboarding-grid select:focus,
.onboarding-conditional input:focus,
.onboarding-conditional textarea:focus,
.onboarding-conditional select:focus {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.04);
    box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / 0.12), 0 4px 16px rgb(var(--accent-rgb) / 0.15);
    transform: translateY(-2px);
}

.onboarding-full {
    grid-column: 1 / -1;
}

.onboarding-choice {
    display: grid;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

.onboarding-choice legend {
    margin-bottom: 2px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.onboarding-choice-grid {
    display: grid;
    gap: 8px;
}

.onboarding-choice-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onboarding-choice-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onboarding-choice-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.onboarding-choice-card {
    position: relative;
    display: grid;
    min-width: 0;
}

.onboarding-choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.onboarding-choice-card span {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.onboarding-choice-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.onboarding-choice-card.is-compact span {
    min-height: 56px;
    place-items: center start;
    padding: 12px 14px;
    font-size: 13px;
}

.onboarding-choice-card.is-featured span {
    min-height: 84px;
}

.onboarding-choice-card:hover span {
    border-color: rgb(var(--accent-rgb) / 0.34);
    transform: translateY(-1px);
}

.onboarding-choice-card input:focus-visible + span,
.onboarding-choice-card input:checked + span {
    border-color: rgb(var(--accent-rgb) / 0.48);
    background: rgb(var(--accent-rgb) / 0.1);
    box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.08);
    color: var(--accent);
}

.onboarding-choice-card input:checked + span strong {
    color: var(--text);
}

.onboarding-dev-choice label {
    align-items: flex-start;
    width: 100%;
}

.onboarding-dev-choice strong {
    color: var(--text);
    font-weight: 900;
}

.onboarding-dev-choice small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid rgb(var(--accent-rgb) / 0.15);
}

.onboarding-actions-next {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.onboarding-actions .btn {
    border: 0;
    cursor: pointer;
}

.onboarding-actions .btn[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .onboarding-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
    }

    .onboarding-hero {
        gap: 24px;
    }

    .onboarding-copy h1 {
        font-size: clamp(34px, 8vw, 48px);
    }

    .onboarding-choice-grid-3,
    .onboarding-choice-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .onboarding-shell {
        width: min(100% - 20px, 1240px);
        padding: 18px 0 32px;
    }

    .onboarding-topbar .brand {
        font-size: 19px;
    }

    .onboarding-topbar .brand-mark {
        width: 40px;
        height: 40px;
    }

    .onboarding-panel {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .onboarding-step-heading {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .onboarding-step-heading h2 {
        font-size: 24px;
    }

    .onboarding-grid,
    .onboarding-conditional {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .onboarding-choice-grid-2,
    .onboarding-choice-grid-3,
    .onboarding-choice-grid-4 {
        grid-template-columns: 1fr;
    }

    .onboarding-actions,
    .onboarding-actions-next {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .onboarding-actions .btn {
        width: 100%;
    }

}

.dashboard-shell {
    --dashboard-sidebar-width: 286px;
    --dashboard-sidebar-collapsed-width: 86px;
    display: grid;
    grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr);
    min-height: 100dvh;
    height: 100dvh;
    align-items: stretch;
    overflow: hidden;
    transition: grid-template-columns 220ms ease;
}

.dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: var(--dashboard-sidebar-collapsed-width) minmax(0, 1fr);
}

.dashboard-sidebar {
    display: grid;
    position: relative;
    grid-template-rows: auto 1fr auto;
    height: 100dvh;
    min-height: 0;
    min-width: 0;
    padding: 0 14px 22px;
    border-right: 1px solid var(--dashboard-divider);
    background: var(--panel-strong);
    overflow: visible;
    transition: padding 220ms ease, background 220ms ease, border-color 220ms ease;
}

.dashboard-sidebar-top {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 70px;
    padding: 0 6px;
    border-bottom: 0;
}

.dashboard-sidebar-top::after {
    content: "";
    position: absolute;
    right: -14px;
    bottom: 0;
    left: -14px;
    height: 1px;
    background: var(--dashboard-divider);
    pointer-events: none;
}

.dashboard-sidebar-collapse-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-sidebar-collapse-toggle:hover,
.dashboard-sidebar-collapse-toggle:focus-visible {
    border-color: rgb(var(--accent-rgb) / 0.3);
    background: rgb(var(--accent-rgb) / 0.09);
    color: var(--accent);
    outline: 0;
    transform: translateY(-1px);
}

.dashboard-notification-hub {
    position: relative;
    flex: 0 0 auto;
    z-index: 35;
}

.dashboard-top-utility-bar {
    display: flex;
    justify-content: flex-end;
    width: min(1120px, 100%);
    margin: 0 auto 18px;
}

.dashboard-notification-toggle {
    display: inline-grid;
    position: relative;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dashboard-notification-toggle:hover,
.dashboard-notification-hub.is-open .dashboard-notification-toggle {
    border-color: rgb(var(--accent-rgb) / 0.28);
    background: rgb(var(--accent-rgb) / 0.08);
    transform: translateY(-1px);
}

.notify-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--panel-strong);
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgb(239 68 68 / 0.55);
    animation: notify-dot-pulse 1.4s ease-out infinite;
}

.notify-dot.is-hidden {
    display: none;
}

.dashboard-sidebar .brand {
    flex: 1 1 auto;
    width: fit-content;
    font-size: 22px;
}

.dashboard-sidebar .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-sidebar .brand-mark {
    width: 44px;
    height: 44px;
}

.dashboard-area-switch {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 50px;
    padding: 7px 10px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.16), transparent 70%),
        var(--panel);
    color: var(--text);
    box-shadow: 0 10px 28px rgb(var(--accent-rgb) / 0.1);
}

.dashboard-area-switch span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 14px;
}

.dashboard-area-switch strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-area-switch:hover {
    border-color: rgb(var(--accent-rgb) / 0.42);
    transform: translateY(-1px);
}

.dashboard-notification-panel {
    display: grid;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: auto;
    z-index: 30;
    gap: 14px;
    width: min(388px, calc(100vw - 28px));
    padding: 16px;
    border: 0;
    border-radius: 20px;
    background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.dashboard-notification-panel[hidden] {
    display: none;
}

.dashboard-notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-notification-panel-head small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-notification-panel-head strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.dashboard-notification-read-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-notification-panel-list {
    display: grid;
    gap: 10px;
    max-height: min(360px, 58vh);
    padding-right: 2px;
    overflow-y: auto;
}

.dashboard-notification-item,
.dashboard-notification-empty {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.dashboard-notification-item:hover {
    border-color: rgb(var(--accent-rgb) / 0.25);
    transform: translateY(-1px);
}

.dashboard-notification-item.is-unread {
    border-color: rgb(var(--accent-rgb) / 0.24);
    background: rgb(var(--accent-rgb) / 0.08);
}

.dashboard-notification-item-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
}

.dashboard-notification-item.is-danger .dashboard-notification-item-icon {
    background: rgb(239 68 68 / 0.12);
    color: #ef4444;
}

.dashboard-notification-item.is-warning .dashboard-notification-item-icon {
    background: rgb(245 158 11 / 0.14);
    color: #f59e0b;
}

.dashboard-notification-item.is-success .dashboard-notification-item-icon {
    background: rgb(34 197 94 / 0.14);
    color: #22c55e;
}

.dashboard-notification-item-copy {
    min-width: 0;
}

.dashboard-notification-item-copy strong,
.dashboard-notification-empty strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.dashboard-notification-item-copy span,
.dashboard-notification-empty span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dashboard-notification-item-copy small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.dashboard-notification-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 0;
    padding: 16px 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}


.sidebar-section {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.sidebar-section::after {
    content: "";
    position: absolute;
    top: 38px;
    bottom: -8px;
    left: 22px;
    width: 1px;
    background: var(--dashboard-divider);
    pointer-events: none;
}

.sidebar-section:last-child::after {
    bottom: 8px;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    min-height: 24px;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-section-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 34px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease;
}

.sidebar-section-toggle:hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
}

.sidebar-section-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.sidebar-section.has-active .sidebar-section-title {
    color: var(--accent);
}

.sidebar-section-toggle > i:first-child {
    flex: 0 0 20px;
    width: 20px;
    font-size: 13px;
    text-align: center;
}

.sidebar-section-chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform 150ms ease;
}

.sidebar-section-toggle[aria-expanded="false"] .sidebar-section-chevron {
    transform: rotate(-90deg);
}

.sidebar-section.is-section-collapsed::after {
    display: none;
}

.sidebar-section-menu {
    display: grid;
    position: relative;
    gap: 3px;
    min-width: 0;
    margin-left: 34px;
}

.sidebar-section-menu[hidden] {
    display: none;
}

.sidebar-link,
.sidebar-group-toggle {
    display: grid;
    position: relative;
    align-items: center;
    width: 100%;
    min-height: 48px;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-link {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    min-height: 42px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
}

.sidebar-coming-soon {
    padding: 3px 5px;
    border-radius: 5px;
    background: rgb(255 255 255 / 0.05);
    font-size: 9px;
    white-space: nowrap;
}

.sidebar-link:focus-visible,
.dashboard-sidebar-footer a:focus-visible,
.sidebar-logout .btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.sidebar-link.is-active {
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
}

.sidebar-link.is-active .sidebar-group-icon {
    color: var(--accent);
}

.sidebar-group-toggle {
    grid-template-columns: 38px minmax(0, 1fr) 14px;
}

.sidebar-link.has-dot,
.sidebar-subitem.has-dot,
.sidebar-group-toggle.has-dot {
    padding-right: 30px;
}

.sidebar-link-dot {
    top: 50%;
    right: 14px;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
}

.sidebar-link:hover,
.sidebar-group-toggle:hover,
.sidebar-group.has-active .sidebar-group-toggle,
.sidebar-group.is-open .sidebar-group-toggle {
    border-color: rgb(var(--accent-rgb) / 0.18);
    background: rgb(var(--accent-rgb) / 0.07);
    color: var(--text);
}

.sidebar-link:hover,
.sidebar-group-toggle:hover {
    background: rgb(255 255 255 / 0.04);
}

.sidebar-group-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 8px;
    background: transparent;
    color: currentColor;
    font-size: 13px;
    font-weight: 900;
}

.sidebar-group-label {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.sidebar-group-arrow {
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.sidebar-group.is-open .sidebar-group-arrow {
    transform: rotate(225deg);
}

.sidebar-submenu {
    display: grid;
    position: relative;
    gap: 4px;
    max-height: 0;
    margin-left: 28px;
    padding: 0 0 0 26px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height 260ms ease, opacity 180ms ease, padding 220ms ease, transform 220ms ease;
}

.sidebar-submenu::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 1px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 34%, var(--line));
    opacity: 0.62;
}

.sidebar-group.is-open .sidebar-submenu {
    max-height: 260px;
    padding: 6px 0 4px 26px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sidebar-subitem {
    display: grid;
    position: relative;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow: hidden;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-subitem-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
}

.sidebar-subitem i {
    color: currentColor;
    font-size: 13px;
    text-align: center;
}

.sidebar-subitem:hover,
.sidebar-subitem.is-active {
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--accent);
}

.sidebar-subitem:hover {
    transform: translateX(2px);
}

.sidebar-subitem[aria-disabled="true"] {
    cursor: default;
    opacity: 0.58;
}

.sidebar-link[aria-disabled="true"] {
    cursor: default;
    opacity: 0.58;
}

.sidebar-link[aria-disabled="true"]:hover,
.sidebar-subitem[aria-disabled="true"]:hover {
    transform: none;
}

.dashboard-sidebar-footer {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px 6px 0;
    border-top: 1px solid var(--dashboard-divider);
}

.sidebar-revenue {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid var(--dashboard-card-border);
    border-radius: 14px;
    background: var(--panel);
}

.sidebar-revenue-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    color: #14b8a6;
    background: rgb(20 184 166 / 0.1);
}

.sidebar-revenue-copy { flex: 1; min-width: 0; }
.sidebar-revenue-copy > small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-revenue-copy > strong { display: block; font-size: 14px; white-space: nowrap; }
.sidebar-revenue-goal { display: grid; gap: 4px; text-align: right; color: var(--muted); font-size: 10px; }
.sidebar-revenue-goal small { font-size: 9px; }
.sidebar-revenue-track { display: block; height: 3px; margin-top: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
.sidebar-revenue-track > span { display: block; height: 100%; background: #14b8a6; }

.dashboard-account-menu { position: relative; margin-left: auto; }
.dashboard-account-menu summary { cursor: pointer; list-style: none; }
.dashboard-account-menu summary::-webkit-details-marker { display: none; }
.dashboard-account-menu summary > i { font-size: 10px; color: var(--muted); }
.dashboard-account-options { position: absolute; right: 0; top: calc(100% + 10px); width: 220px; padding: 6px; border: 1px solid var(--dashboard-divider); border-radius: 12px; background: var(--panel-strong); box-shadow: var(--shadow); }
.dashboard-account-options a, .dashboard-account-options button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dashboard-account-options a:hover, .dashboard-account-options button:hover { background: var(--line); }

.dashboard-sidebar-footer .dashboard-area-switch {
    min-height: 44px;
    padding: 6px 8px;
    border-color: var(--line);
    background: rgb(var(--accent-rgb) / 0.08);
    box-shadow: none;
}

.dashboard-sidebar-footer .dashboard-area-switch span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 50px;
    padding: 7px 8px;
    border: 0;
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sidebar-user-card:hover {
    border-color: rgb(var(--accent-rgb) / 0.24);
    background: rgb(var(--accent-rgb) / 0.06);
    transform: translateY(-1px);
}

.sidebar-user-card .dashboard-user-copy {
    min-width: 0;
}

.sidebar-user-card .dashboard-user-copy strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-toggle-dashboard {
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    background: var(--panel);
}

.font-scale-control {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.font-scale-control > span {
    overflow: hidden;
    color: var(--muted);
    font-size: calc(11px + var(--font-accessibility-bump));
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.font-scale-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.font-scale-options button {
    min-width: 0;
    min-height: 34px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: calc(12px + var(--font-accessibility-bump));
    font-weight: 950;
}

.font-scale-options button:hover,
.font-scale-options button:focus-visible,
.font-scale-options button.is-active {
    border-color: rgb(var(--accent-rgb) / 0.24);
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--text);
    outline: 0;
}

.font-scale-options button[data-font-scale-option="large"] {
    font-size: calc(14px + var(--font-accessibility-bump));
}

.font-scale-options button[data-font-scale-option="extra"] {
    font-size: calc(16px + var(--font-accessibility-bump));
}

.sidebar-logout .btn {
    width: 100%;
    min-height: 44px;
    cursor: pointer;
    justify-content: flex-start;
    padding-left: 16px;
    border: 0;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

@media (min-width: 981px) {
    .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-top {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-top::after {
        right: -10px;
        left: -10px;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-section::after {
        display: none;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-section-menu {
        margin-left: 0;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-revenue-copy,
    .dashboard-shell.is-sidebar-collapsed .sidebar-revenue-goal {
        display: none;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-revenue {
        justify-content: center;
        padding: 8px 0;
    }

    .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar .brand,
    .dashboard-shell.is-sidebar-collapsed .dashboard-notification-hub,
    .dashboard-shell.is-sidebar-collapsed .sidebar-section-title,
    .dashboard-shell.is-sidebar-collapsed .sidebar-section-label,
    .dashboard-shell.is-sidebar-collapsed .sidebar-section-chevron,
    .dashboard-shell.is-sidebar-collapsed .sidebar-coming-soon,
    .dashboard-shell.is-sidebar-collapsed .sidebar-group-label,
    .dashboard-shell.is-sidebar-collapsed .sidebar-group-arrow,
    .dashboard-shell.is-sidebar-collapsed .sidebar-submenu,
    .dashboard-shell.is-sidebar-collapsed .dashboard-area-switch strong,
    .dashboard-shell.is-sidebar-collapsed .sidebar-user-card .dashboard-user-copy,
    .dashboard-shell.is-sidebar-collapsed .sidebar-logout .btn span {
        display: none;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-nav {
        gap: 10px;
        padding: 14px 0;
        overflow-x: hidden;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-section {
        gap: 6px;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-section-toggle,
    .dashboard-shell.is-sidebar-collapsed .sidebar-link,
    .dashboard-shell.is-sidebar-collapsed .sidebar-group-toggle {
        grid-template-columns: 42px;
        justify-content: center;
        min-height: 46px;
        padding: 4px;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-section-icon,
    .dashboard-shell.is-sidebar-collapsed .sidebar-group-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: transparent;
        font-size: 15px;
    }

    .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-footer {
        padding-right: 0;
        padding-left: 0;
    }

    .dashboard-shell.is-sidebar-collapsed .dashboard-area-switch,
    .dashboard-shell.is-sidebar-collapsed .sidebar-user-card,
    .dashboard-shell.is-sidebar-collapsed .sidebar-logout .btn {
        display: grid;
        grid-template-columns: 42px;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        padding: 4px;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-user-card {
        place-items: center;
    }

    .dashboard-shell.is-sidebar-collapsed .dashboard-sidebar-resizer {
        display: none;
    }
}

.dashboard-sidebar-resizer {
    position: absolute;
    top: 0;
    right: -5px;
    width: 10px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: ew-resize;
}

.dashboard-sidebar-resizer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 4px;
    width: 1px;
    height: 100%;
    background: transparent;
}

.dashboard-sidebar-resizer:hover::before,
.dashboard-sidebar.is-resizing .dashboard-sidebar-resizer::before {
    background: rgb(var(--accent-rgb) / 0.42);
}

.dashboard-mobile-sidebar-close,
.dashboard-sidebar-backdrop,
.dashboard-mobile-nav {
    display: none;
}

.dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 74;
    padding: 0;
    border: 0;
    background: rgb(0 0 0 / 0.54);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.dashboard-mobile-nav {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 70;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    min-height: 68px;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--panel-strong) 92%, transparent);
    box-shadow: 0 18px 46px rgb(0 0 0 / 0.24);
    backdrop-filter: blur(18px);
}

.dashboard-mobile-nav-item {
    display: grid;
    position: relative;
    place-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 52px;
    padding: 4px 6px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.dashboard-mobile-nav-item i {
    font-size: 20px;
}

.dashboard-mobile-nav-item span {
    overflow: hidden;
    max-width: 100%;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-mobile-nav-item:hover,
.dashboard-mobile-nav-item:focus-visible,
.dashboard-mobile-nav-item.is-active,
.dashboard-mobile-nav-item[aria-expanded="true"] {
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
    outline: 0;
}

.dashboard-main {
    --dashboard-main-x: clamp(14px, 1.5vw, 24px);
    min-width: 0;
    min-height: 0;
    height: 100dvh;
    padding: 0 var(--dashboard-main-x) 78px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    animation: dashboard-main-in 260ms ease both;
    transition: opacity 150ms ease, transform 150ms ease, filter 150ms ease;
    will-change: opacity, transform;
}

.dashboard-main-header {
    position: sticky;
    top: 0;
    z-index: 45;
    margin: 0 calc(0px - var(--dashboard-main-x));
    border-bottom: 1px solid var(--dashboard-divider);
    background: color-mix(in srgb, var(--panel-strong) 98%, transparent);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.dashboard-main-header.is-scrolled {
    border-color: var(--dashboard-divider);
    background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
    box-shadow: 0 14px 36px rgb(0 0 0 / 0.12);
    backdrop-filter: blur(18px);
}

.dashboard-main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 69px;
    margin: 0 auto;
    padding: 0 var(--dashboard-main-x);
}

.dashboard-main-brand {
    min-width: 0;
    font-size: 22px;
    display: none;
}

.dashboard-main-brand .brand-mark {
    width: 44px;
    height: 44px;
}

.dashboard-main-brand .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sidebar-top .brand {
    min-width: 0;
}

.dashboard-main-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
    max-width: min(280px, 58vw);
    min-height: 44px;
    padding: 5px 8px 5px 5px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--text);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-main-user:hover,
.dashboard-main-user:focus-visible {
    border-color: rgb(var(--accent-rgb) / 0.22);
    background: rgb(var(--accent-rgb) / 0.07);
    outline: 0;
    transform: translateY(-1px);
}

.dashboard-main-user .dashboard-user-copy {
    min-width: 0;
}

.dashboard-main-user .dashboard-user-copy strong {
    display: block;
    overflow: hidden;
    max-width: 190px;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-main.is-leaving {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(10px) scale(0.995);
}

.dashboard-shell .dashboard-layout {
    width: min(1600px, 100%);
    margin: 0 auto;
    padding: 28px 0 0;
}

.dashboard-shell .dashboard-layout > *:not(.setup-alert),
.dashboard-shell .profile-intro,
.dashboard-shell .profile-form > .profile-card,
.dashboard-shell .profile-actions {
    animation: dashboard-panel-in 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dashboard-shell .dashboard-layout > *:not(.setup-alert):nth-child(1),
.dashboard-shell .profile-intro {
    animation-delay: 35ms;
}

.dashboard-shell .dashboard-layout > *:not(.setup-alert):nth-child(2),
.dashboard-shell .profile-form > .profile-card:nth-of-type(1) {
    animation-delay: 95ms;
}

.dashboard-shell .dashboard-layout > *:not(.setup-alert):nth-child(3),
.dashboard-shell .profile-form > .profile-card:nth-of-type(2) {
    animation-delay: 155ms;
}

.dashboard-shell .dashboard-layout > *:not(.setup-alert):nth-child(4),
.dashboard-shell .profile-form > .profile-card:nth-of-type(3),
.dashboard-shell .profile-actions {
    animation-delay: 215ms;
}

.admin-dashboard-empty {
    padding-top: 0;
}

.dashboard-shell .user-dashboard-layout {
    width: min(100%, 1600px);
    gap: 18px;
}

.user-balance-card,
.user-metric-card,
.user-chart-card,
.user-ops-card,
.user-operations-card {
    border: 1px solid var(--dashboard-card-border, var(--line));
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 8px 20px rgb(15 23 42 / 0.07);
}

.user-balance-card {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    isolation: isolate;
    min-height: 320px;
    gap: 24px;
    overflow: visible;
    padding: 32px;
    background: var(--panel);
    z-index: 30;
}

.user-balance-card::before,
.user-balance-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.user-balance-card::before {
    z-index: 0;
    background:
        var(--balance-card-bg, radial-gradient(circle at top right, rgb(var(--accent-rgb) / 0.08), transparent 42%)),
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.04), transparent 62%),
        var(--panel);
    background-position: center;
    background-size: cover;
}

.user-balance-card::after {
    z-index: 1;
    background:
        linear-gradient(90deg, rgb(3 7 18 / 0.78) 0%, rgb(3 7 18 / 0.52) 46%, rgb(3 7 18 / 0.2) 100%),
        linear-gradient(0deg, rgb(3 7 18 / 0.74) 0%, rgb(3 7 18 / 0.08) 70%),
        radial-gradient(circle at top right, rgb(var(--accent-rgb) / 0.18), transparent 34%);
    opacity: 0.16;
}

.user-balance-card.has-custom-background::after {
    opacity: 1;
}

.user-balance-background-viewport {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.user-balance-background-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--balance-card-position-x, 50%) var(--balance-card-position-y, 50%);
    transform: scale(var(--balance-card-zoom, 1));
    transform-origin: var(--balance-card-position-x, 50%) var(--balance-card-position-y, 50%);
}

.user-balance-content,
.user-balance-action,
.balance-background-control {
    position: relative;
    z-index: 2;
}

.user-balance-content {
    min-width: 0;
    padding-right: 42px;
}

.user-balance-card.has-custom-background,
.user-balance-card.has-custom-background small,
.user-balance-card.has-custom-background .user-balance-subtitle,
.user-balance-card.has-custom-background .user-balance-security,
.user-balance-card.has-custom-background .user-balance-security span:last-child {
    color: rgb(255 255 255 / 0.82);
}

.user-balance-card.has-custom-background strong,
.user-balance-card.has-custom-background .user-balance-value-row strong {
    color: #fff;
}

.user-balance-card.has-custom-background .user-balance-pill,
.user-balance-card.has-custom-background .balance-visibility-toggle,
.user-balance-card.has-custom-background .user-balance-action {
    border-color: rgb(255 255 255 / 0.2);
    background: rgb(3 7 18 / 0.38);
    color: #fff;
    backdrop-filter: blur(14px);
}

.balance-background-control {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 80;
}

.balance-background-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 13px;
    background: rgb(3 7 18 / 0.42);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.balance-background-toggle:hover,
.balance-background-toggle:focus-visible,
.balance-background-toggle[aria-expanded="true"] {
    border-color: rgb(var(--accent-rgb) / 0.48);
    background: rgb(var(--accent-rgb) / 0.22);
    color: #fff;
    outline: 0;
    transform: translateY(-1px);
}

.balance-background-popover {
    display: grid;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 250;
    gap: 14px;
    width: min(420px, calc(100vw - 36px));
    max-height: min(520px, 72vh);
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.28);
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.balance-background-popover[hidden] {
    display: none;
}

.user-balance-card .balance-background-popover-head strong {
    display: block;
    margin: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
}

.user-balance-card .balance-background-popover-head small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.balance-background-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.balance-background-grid form {
    min-width: 0;
}

.balance-background-option {
    display: grid;
    position: relative;
    width: 100%;
    gap: 6px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.balance-background-option:hover,
.balance-background-option:focus-visible,
.balance-background-option.is-active {
    border-color: rgb(var(--accent-rgb) / 0.36);
    background: rgb(var(--accent-rgb) / 0.09);
    color: var(--text);
    outline: 0;
    transform: translateY(-1px);
}

.balance-background-option img,
.balance-background-default-preview {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    object-fit: cover;
    background:
        radial-gradient(circle at 80% 10%, rgb(var(--accent-rgb) / 0.28), transparent 46%),
        linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), rgb(3 7 18 / 0.72)),
        var(--panel);
}

.balance-background-default-preview {
    display: grid;
    place-items: center;
    color: var(--accent);
}

.balance-background-option > span:last-of-type {
    overflow: hidden;
    color: currentColor;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-background-check {
    display: grid;
    position: absolute;
    top: 9px;
    right: 9px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 10px;
}

.balance-background-upload {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.balance-background-frame-form {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.balance-background-crop-editor {
    display: grid;
    gap: 10px;
}

.balance-background-crop-editor[hidden] {
    display: none;
}

.balance-background-crop-stage {
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, #6b7280);
    border-radius: 15px;
    background: #343a46;
    box-shadow: inset 0 0 0 999px rgb(15 23 42 / 0.08);
}

.balance-background-crop-viewport {
    position: relative;
    aspect-ratio: 16 / 5;
    border: 2px solid rgb(255 255 255 / 0.9);
    border-radius: 10px;
    background: #0f172a;
    box-shadow: 0 0 0 999px rgb(15 23 42 / 0.34), 0 8px 24px rgb(0 0 0 / 0.24);
    cursor: grab;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.balance-background-crop-viewport.is-dragging {
    cursor: grabbing;
}

.balance-background-crop-viewport img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    will-change: transform, object-position;
}

.balance-background-crop-viewport > span {
    position: absolute;
    right: 8px;
    bottom: 7px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgb(3 7 18 / 0.72);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    pointer-events: none;
}

.balance-background-zoom-control {
    display: grid;
    gap: 7px;
    color: var(--text);
}

.balance-background-zoom-control > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 900;
}

.balance-background-zoom-control output {
    color: var(--accent);
}

.balance-background-zoom-control input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.balance-background-crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.balance-background-crop-actions .btn {
    min-height: 36px;
    padding-inline: 11px;
    border-radius: 11px;
    font-size: 11px;
}

.balance-background-upload > label:first-child {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px;
    border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.06);
    color: var(--text);
    cursor: pointer;
}

.balance-background-upload > label:first-child:focus-within {
    border-color: rgb(var(--accent-rgb) / 0.55);
    outline: 2px solid rgb(var(--accent-rgb) / 0.22);
    outline-offset: 2px;
}

.balance-background-upload [data-balance-background-file] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.balance-background-upload > label:first-child > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
}

.balance-background-upload > label:first-child > small,
.balance-background-error {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.balance-background-upload .btn {
    justify-content: center;
    min-height: 38px;
    border-radius: 12px;
    font-size: 12px;
}

.balance-background-error {
    margin: 0;
    color: #fca5a5;
}

.user-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.user-balance-pill i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #14b8a6;
    box-shadow: 0 0 0 4px rgb(20 184 166 / 0.11);
}

.user-balance-card small,
.user-metric-card small {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.user-balance-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.user-balance-security {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 0;
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.user-balance-subtitle {
    margin: 10px 0 0;
    color: color-mix(in srgb, var(--text) 68%, var(--muted));
    font-size: 13px;
    font-weight: 800;
}

.user-balance-security span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
    text-transform: uppercase;
}

.user-balance-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.balance-visibility-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--text);
    cursor: pointer;
}

.balance-visibility-toggle:hover {
    background: rgb(var(--accent-rgb) / 0.14);
}

.user-balance-action {
    min-height: 54px;
    padding-inline: 24px;
    border: 1px solid rgb(var(--accent-rgb) / 0.18);
    border-radius: 16px;
    background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
    box-shadow: none;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

.user-balance-action:hover,
.user-balance-action:focus-visible {
    border-color: rgb(var(--accent-rgb) / 0.34);
    background: rgb(var(--accent-rgb) / 0.08);
    box-shadow: none;
    color: var(--text);
    outline: 0;
    transform: translateY(-1px);
}

.ranking-floating-button {
    --ranking-floating-bg: color-mix(in srgb, var(--panel-strong) 92%, transparent);
    --ranking-floating-opacity: 0;
    --ranking-floating-y: 14px;
    --ranking-floating-hover-y: 0px;
    --ranking-floating-scale: 0.98;
    display: grid;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(340px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgb(var(--accent-rgb) / 0.28);
    border-radius: 18px;
    background: var(--ranking-floating-bg);
    box-shadow: 0 18px 46px rgb(15 23 42 / 0.18);
    color: var(--text);
    opacity: var(--ranking-floating-opacity);
    pointer-events: none;
    transform: translateY(calc(var(--ranking-floating-y) + var(--ranking-floating-hover-y))) scale(var(--ranking-floating-scale));
    visibility: hidden;
    backdrop-filter: blur(18px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        border-color 180ms ease,
        visibility 180ms ease;
}

.ranking-floating-button.is-visible {
    pointer-events: auto;
    visibility: visible;
}

.ranking-floating-button:hover {
    --ranking-floating-scale: 1;
    --ranking-floating-hover-y: -2px;
    border-color: rgb(var(--accent-rgb) / 0.5);
}

.ranking-floating-button strong,
.ranking-floating-button small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-floating-button strong {
    font-size: 13px;
    font-weight: 900;
}

.ranking-floating-button small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ranking-floating-button > i {
    color: var(--accent);
}

.ranking-floating-avatars {
    display: flex;
    align-items: center;
    min-width: 50px;
    isolation: isolate;
}

.ranking-floating-avatars > span,
.ranking-avatar,
.ranking-current-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
}

.ranking-floating-avatars > span {
    position: relative;
    z-index: var(--avatar-layer, 1);
    width: 30px;
    height: 30px;
    margin-left: -9px;
    border: 3px solid var(--ranking-floating-bg);
    box-shadow: 0 6px 14px rgb(15 23 42 / 0.18);
    font-size: 11px;
}

.ranking-floating-avatars > span:first-child {
    margin-left: 0;
}

.ranking-floating-avatars img,
.ranking-avatar img,
.ranking-current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-layout {
    display: grid;
    gap: 22px;
    width: min(100%, 920px);
    margin: 0 auto;
}

.ranking-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.ranking-back {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--accent);
}

.ranking-header h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 900;
    line-height: 1;
}

.ranking-header p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.ranking-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.ranking-live-badge i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgb(34 197 94 / 0.1);
}

.ranking-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ranking-summary-card,
.ranking-row,
.ranking-notice,
.ranking-empty {
    border: 0;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgb(var(--accent-rgb) / 0.08), transparent 40%),
        var(--panel);
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.08);
}

.ranking-summary-card {
    padding: 18px;
}

.ranking-summary-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
}

.ranking-summary-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    place-items: center;
    color: var(--accent);
}

.ranking-summary-card > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.ranking-summary-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ranking-summary-card strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
}

.ranking-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.ranking-notice i {
    color: var(--muted);
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 42px 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 70px;
    padding: 12px 16px;
}

.ranking-row.is-current-user {
    border-color: rgb(34 197 94 / 0.55);
}

.ranking-position {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
    font-weight: 900;
}

.ranking-avatar {
    width: 42px;
    height: 42px;
    font-size: 13px;
}

.ranking-user {
    min-width: 0;
}

.ranking-user strong,
.ranking-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-user strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.ranking-user small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ranking-amount {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    text-align: right;
}

.ranking-row.is-current-user .ranking-amount {
    color: #22c55e;
}

.ranking-empty {
    padding: 22px;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.user-period-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
}

.user-period-filter label,
.user-period-filter a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--muted);
}

.user-period-filter label {
    gap: 10px;
    padding: 0 14px;
}

.user-period-filter a {
    justify-content: center;
}

.user-period-filter select {
    width: 100%;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text);
    color-scheme: dark;
    outline: 0;
    font-weight: 850;
    text-align: center;
}

.user-period-filter select option {
    background: var(--panel-strong);
    color: var(--text);
}

.user-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.user-metric-card {
    position: relative;
    display: grid;
    align-content: space-between;
    min-height: 142px;
    gap: 14px;
    overflow: hidden;
    padding: 20px 20px 18px;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--metric-color, var(--accent)) 7%, transparent), transparent 42%),
        var(--panel);
}

.user-metric-card::before {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--metric-color, var(--accent));
    content: none;
}

.user-metric-card.is-deposit {
    --metric-color: #14b8a6;
}

.user-metric-card.is-withdrawal {
    --metric-color: #ef4444;
}

.user-metric-card.is-count {
    --metric-color: #06b6d4;
}

.user-metric-card.is-approval {
    --metric-color: #8b5cf6;
}

.user-metric-card > div {
    position: relative;
    z-index: 1;
}

.user-metric-card strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 900;
    line-height: 1;
}

.user-metric-note {
    margin: 12px 0 0;
    color: color-mix(in srgb, var(--text) 54%, var(--muted));
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.user-health-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--line);
}

.user-health-strip article {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    background: var(--panel);
}

.user-health-strip small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-health-strip strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.user-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    gap: 18px;
}

.user-chart-card {
    display: grid;
    align-content: start;
    min-height: 394px;
    gap: 16px;
    padding: 24px;
}

.user-chart-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}

.user-chart-title h2 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.user-chart-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.chart-help {
    display: grid;
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(var(--accent-rgb) / 0.12);
    border-radius: 999px;
    appearance: none;
    background: transparent;
    color: color-mix(in srgb, var(--text) 64%, var(--muted));
    cursor: help;
    font-size: 13px;
    line-height: 1;
    box-shadow: none;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.chart-help i {
    pointer-events: none;
}

.chart-help:hover,
.chart-help:focus-visible {
    border-color: rgb(var(--accent-rgb) / 0.26);
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--accent);
    outline: 0;
    transform: translateY(-1px);
}

.chart-help::after {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    width: min(260px, 70vw);
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
    box-shadow: var(--shadow);
    color: var(--text);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
    visibility: hidden;
    white-space: normal;
}

.chart-help:hover::after,
.chart-help:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.user-hour-chart {
    display: grid;
    position: relative;
    grid-template-columns: repeat(24, minmax(8px, 1fr));
    align-items: end;
    gap: 5px;
    min-height: 270px;
    overflow: hidden;
    padding: 18px 12px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
}

.user-hour-chart::before {
    position: absolute;
    inset: 18px 12px 34px;
    background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%;
    content: "";
    pointer-events: none;
}

.user-hour-chart span {
    display: grid;
    position: relative;
    z-index: 1;
    grid-template-rows: minmax(0, 220px) 20px;
    align-items: end;
    min-width: 0;
}

.user-hour-chart b {
    display: block;
    height: var(--bar);
    max-height: 100%;
    min-height: 0;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, var(--accent), rgb(var(--accent-rgb) / 0.42));
}

.user-hour-chart small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

.user-hour-chart.is-empty b {
    background: transparent;
}

.user-chart-card-trend {
    min-width: 0;
}

.dashboard-page .user-chart-card-trend,
.dashboard-page .user-insight-panel,
.dashboard-page .user-operations-grid {
    display: none !important;
}

.user-financial-chart {
    display: grid;
    min-height: 280px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--panel-strong);
    color: #22d3c5;
}

.user-chart-canvas-wrap {
    position: relative;
    min-height: 320px;
    padding: 18px;
}

.user-chart-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 260px;
}

.user-conversion-chart {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
}

.user-flow-chart.user-chart-canvas-wrap {
    display: block;
    min-height: 320px;
    padding: 18px;
}

.user-flow-chart.user-chart-canvas-wrap > span {
    display: none;
}

.user-line-chart-svg {
    display: block;
    width: 100%;
    height: 280px;
    max-height: 320px;
    overflow: visible;
}

.user-line-chart-plot {
    fill: rgb(255 255 255 / 0.01);
}

.user-line-chart-grid-line {
    stroke: var(--line);
    stroke-dasharray: 4 5;
    stroke-width: 1;
}

.user-line-chart-axis-line {
    stroke: color-mix(in srgb, var(--line) 72%, var(--text));
    stroke-dasharray: 3 4;
    stroke-width: 1.2;
}

.user-line-chart-area {
    fill: url(#salesTrendFill);
}

.user-line-chart-line {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.4;
    filter: drop-shadow(0 4px 10px rgb(34 211 197 / 0.12));
}

.user-line-chart-point {
    fill: currentColor;
    stroke: var(--panel-strong);
    stroke-width: 3;
}

.user-line-chart-y-label,
.user-line-chart-x-label {
    fill: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.user-line-chart-y-label {
    text-anchor: end;
}

.user-line-chart-x-label {
    text-anchor: middle;
}

.user-financial-chart.is-empty {
    color: var(--muted);
}

.user-financial-chart.is-empty .user-line-chart-area {
    opacity: 0;
}

.user-financial-chart.is-empty .user-line-chart-line {
    opacity: 0.44;
    filter: none;
    stroke-width: 2;
}

.user-financial-chart.is-empty .user-line-chart-point {
    opacity: 0.52;
}

.user-chart-empty {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.user-method-chart {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    min-height: 270px;
    padding: 18px;
    border: 0;
    border-radius: 12px;
    background: var(--panel-strong);
}

.user-method-chart-modern {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.user-method-canvas-wrap {
    position: relative;
    width: min(100%, 230px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.user-method-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.user-method-donut {
    position: relative;
    display: block;
    width: min(100%, 190px);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--donut));
    box-shadow: inset 0 0 0 1px var(--line);
}

.user-method-donut::after {
    position: absolute;
    inset: 28%;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--panel-strong);
    content: "";
}

.user-method-donut.is-empty {
    opacity: 0.72;
}

.user-method-legend {
    display: grid;
    gap: 12px;
}

.user-method-legend span {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.user-method-legend i {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.user-method-legend strong {
    color: var(--text);
    font-weight: 900;
}

.user-insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 18px;
}

.user-insight-panel {
    display: grid;
    gap: 16px;
}

.user-insight-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.user-insight-panel-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
}

.user-insight-panel-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.user-dashboard-tabs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.user-dashboard-tabs button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.user-dashboard-tabs button:hover,
.user-dashboard-tabs button.is-active {
    border-color: rgb(var(--accent-rgb) / 0.22);
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--text);
}

.user-dashboard-tab-panels {
    display: grid;
}

.user-dashboard-tab-panels > .user-chart-card,
.user-dashboard-tab-panels > .user-ops-card {
    min-width: 0;
}

.user-dashboard-tab-panels > [hidden] {
    display: none;
}

.user-operations-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 18px;
}

.user-operations-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 286px;
    padding: 22px;
}

.user-operations-card-wide {
    min-height: 286px;
}

.user-funnel-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.user-funnel-summary article,
.user-velocity-list div,
.user-top-products-list article,
.user-sales-row {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--panel-strong) 84%, transparent);
}

.user-funnel-summary article {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.user-funnel-summary small,
.user-velocity-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.user-funnel-summary strong {
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
}

.user-funnel-summary span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.user-funnel-bar {
    display: flex;
    gap: 10px;
    min-height: 16px;
}

.user-funnel-bar i {
    display: block;
    flex: 0 0 var(--segment);
    min-width: 8%;
    border-radius: 999px;
}

.user-funnel-bar .is-paid {
    background: linear-gradient(90deg, #14b8a6, rgb(20 184 166 / 0.48));
}

.user-funnel-bar .is-pending {
    background: linear-gradient(90deg, #f59e0b, rgb(245 158 11 / 0.48));
}

.user-funnel-bar .is-failed {
    background: linear-gradient(90deg, #ef4444, rgb(239 68 68 / 0.48));
}

.user-operations-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    min-height: 100%;
    padding: 26px;
    text-align: center;
}

.user-operations-empty span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 16px;
}

.user-operations-empty strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.user-operations-empty p {
    max-width: 320px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.user-velocity-metric {
    display: grid;
    gap: 4px;
}

.user-velocity-metric strong {
    color: var(--text);
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 900;
    line-height: 1;
}

.user-velocity-metric small,
.user-top-products-list small,
.user-sales-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.user-velocity-list,
.user-top-products-list,
.user-sales-list {
    display: grid;
    gap: 10px;
}

.user-velocity-list div,
.user-top-products-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.user-velocity-list dd,
.user-top-products-list em {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
}

.user-top-products-list strong,
.user-sales-row strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.user-sales-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.user-sales-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
}

.user-sales-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.user-sales-tabs button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    min-height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    font-size: 11px;
}

.user-sales-tabs button.is-active,
.user-sales-tabs button:hover,
.user-sales-tabs button:focus-visible {
    border-color: rgb(var(--accent-rgb) / 0.22);
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--text);
    outline: 0;
}

.user-sales-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.user-sales-row em {
    color: var(--text);
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
}

.quick-pix-modal {
    width: min(100% - 24px, 520px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    box-shadow: 0 24px 70px rgb(0 0 0 / 0.34);
    color: var(--text);
}

.quick-pix-modal::backdrop {
    background: rgb(5 6 8 / 0.72);
    backdrop-filter: blur(6px);
}

.quick-pix-modal-shell {
    display: flex;
    justify-content: flex-end;
}

.quick-pix-close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 10px 10px 0 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.quick-pix-modal-card {
    display: grid;
    gap: 18px;
    padding: 0 24px 24px;
}

.quick-pix-head h2 {
    margin: -18px 0 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 34px);
    font-weight: 900;
    text-align: center;
}

.quick-pix-callout {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgb(var(--accent-rgb) / 0.12);
    border-radius: 20px;
    background: rgba(96, 42, 8, 0.38);
}

.quick-pix-callout strong,
.quick-pix-field > span {
    color: #ffba74;
    font-size: 14px;
    font-weight: 900;
}

.quick-pix-callout ol {
    margin: 0;
    padding-left: 18px;
    color: #f4c292;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.quick-pix-feedback {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
}

.quick-pix-feedback.is-error {
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(127, 29, 29, 0.28);
    color: #fecaca;
}

.quick-pix-feedback p {
    margin: 0;
}

.quick-pix-form,
.quick-pix-field {
    display: grid;
    gap: 14px;
}

.quick-pix-field input {
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.quick-pix-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-pix-preset {
    min-height: 52px;
    border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    border-radius: 18px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.quick-pix-preset.is-active,
.quick-pix-preset:hover,
.quick-pix-preset:focus-visible {
    border-color: rgb(var(--accent-rgb) / 0.42);
    background: rgb(var(--accent-rgb) / 0.16);
    outline: 0;
    transform: translateY(-1px);
}

.quick-pix-tip {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

.quick-pix-submit {
    min-height: 58px;
    border-radius: 18px;
}

.transaction-qr-box {
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
}

.transaction-qr-box img {
    width: min(100%, 260px);
    border-radius: 18px;
}

.user-flow-card {
    min-height: 360px;
}

.user-flow-chart {
    display: grid;
    position: relative;
    grid-template-columns: repeat(14, minmax(16px, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 232px;
    overflow: hidden;
    padding: 18px 12px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.user-flow-chart::before {
    position: absolute;
    inset: 18px 12px 36px;
    background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%;
    content: "";
    pointer-events: none;
}

.user-flow-chart span {
    display: grid;
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 170px) 22px;
    align-items: end;
    gap: 3px;
    min-width: 0;
}

.user-flow-chart i {
    display: block;
    height: var(--bar);
    max-height: 100%;
    min-height: 0;
    border-radius: 999px 999px 4px 4px;
}

.user-flow-chart i.is-deposit {
    background: linear-gradient(180deg, #14b8a6, rgba(20, 184, 166, 0.34));
}

.user-flow-chart i.is-withdrawal {
    background: linear-gradient(180deg, #ef4444, rgba(239, 68, 68, 0.28));
}

.user-flow-chart small {
    grid-column: 1 / -1;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.user-flow-chart.is-empty i {
    background: transparent;
}

.user-ops-card {
    display: grid;
    align-content: start;
    min-height: 360px;
    gap: 14px;
    padding: 20px;
}

.user-status-list {
    display: grid;
    gap: 12px;
}

.user-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.user-status-row span,
.user-status-row strong,
.user-status-row small {
    display: block;
}

.user-status-row strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.user-status-row small,
.user-status-row b {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.user-status-row i {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.user-status-row i::before {
    display: block;
    width: var(--progress);
    height: 100%;
    border-radius: inherit;
    background: var(--status-color, var(--accent));
    content: "";
}

.user-status-row.is-paid {
    --status-color: #14b8a6;
}

.user-status-row.is-pending {
    --status-color: #f59e0b;
}

.user-status-row.is-failed {
    --status-color: #ef4444;
}

.user-activity-list {
    display: grid;
    gap: 10px;
    padding-top: 6px;
}

.user-activity-list h3 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.user-activity-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.user-activity-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    font-size: 13px;
}

.user-activity-icon.is-transaction {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.user-activity-icon.is-withdrawal {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.user-activity-row strong,
.user-activity-row small,
.user-activity-row em {
    display: block;
}

.user-activity-row strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-activity-row small {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.user-activity-row em {
    color: var(--text);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.user-transactions-layout {
    width: min(100%, 944px);
    gap: 18px;
}

.user-transactions-header {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.user-transactions-header h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    line-height: 1;
}

.user-transactions-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 800;
}

.user-transaction-filters {
    position: relative;
    flex: 0 0 auto;
}

.user-transaction-filters summary {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--button-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    list-style: none;
}

.user-transaction-filters summary::-webkit-details-marker {
    display: none;
}

.user-transaction-filters form {
    display: grid;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 12px;
    width: min(440px, calc(100vw - 34px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.user-transaction-filters:not([open]) form { display: none; }

.user-transaction-filters label {
    display: grid;
    gap: 6px;
}

.user-transaction-filters label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.user-transaction-filters select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
    color: var(--text);
    font-weight: 850;
}

.user-transaction-filters .btn {
    min-height: 42px;
}

.user-transactions-card {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 12px 30px rgb(15 23 42 / 0.06);
}

.user-transactions-table {
    display: grid;
}

.user-transactions-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.78fr) minmax(120px, 0.76fr) minmax(140px, 0.86fr) 24px;
    align-items: center;
    gap: 16px;
    min-height: 52px;
    padding: 12px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.user-transactions-row:not(.user-transactions-head),
.admin-table tr[data-transaction-modal] {
    cursor: pointer;
}

.user-transactions-row:not(.user-transactions-head):hover,
.user-transactions-row:not(.user-transactions-head):focus-visible,
.admin-table tr[data-transaction-modal]:hover,
.admin-table tr[data-transaction-modal]:focus-visible {
    background: rgb(var(--accent-rgb) / 0.06);
    outline: 0;
}

.user-transactions-row:last-child {
    border-bottom: 0;
}

.user-transactions-head {
    min-height: 50px;
    background: var(--panel-strong);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.transaction-type {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 900;
}

.transaction-type i {
    color: #14b8a6;
    font-size: 12px;
}

.transaction-type.is-withdrawal i {
    color: #f43f5e;
}

.transaction-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.transaction-status.is-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
}

.transaction-status.is-completed {
    background: rgba(34, 197, 94, 0.16);
    color: #22c55e;
}

.transaction-status.is-failed,
.transaction-status.is-canceled,
.transaction-status.is-expired {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
}

.transaction-amount,
.transaction-date strong {
    color: var(--text);
    font-weight: 900;
}

.transaction-date {
    display: grid;
    gap: 1px;
}

.transaction-date small {
    color: var(--muted);
    font-weight: 800;
}

.transaction-chevron {
    color: var(--muted);
    text-align: right;
}

.user-transactions-empty {
    margin: 0;
    padding: 32px 16px;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.user-transactions-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-weight: 850;
}

.user-transactions-pagination div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-transactions-pagination a,
.user-transactions-pagination .pagination-disabled {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-weight: 900;
}

.user-transactions-pagination .pagination-disabled {
    color: var(--muted);
    opacity: 0.62;
}

.user-transactions-pagination strong {
    color: var(--text);
}

.transaction-detail-modal {
    width: min(100% - 28px, 560px);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgb(0 0 0 / 0.34);
    color: var(--text);
}

.transaction-detail-modal::backdrop {
    background: rgb(5 6 8 / 0.72);
    backdrop-filter: blur(5px);
}

.transaction-detail-modal-card {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.transaction-detail-modal-head,
.transaction-detail-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.transaction-detail-modal-head small,
.transaction-detail-page-head small {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.transaction-detail-modal-head h2,
.transaction-detail-page-head h1 {
    margin: 3px 0 0;
    color: var(--text);
    font-weight: 950;
    line-height: 1.05;
}

.transaction-detail-modal-head h2 {
    font-size: 22px;
}

.transaction-detail-modal-head button {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-strong);
    color: var(--muted);
    cursor: pointer;
}

.transaction-detail-list,
.transaction-detail-metrics {
    display: grid;
    gap: 14px;
    margin: 0;
}

.transaction-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transaction-detail-list div,
.transaction-detail-metrics div {
    min-width: 0;
}

.transaction-detail-list dt,
.transaction-detail-metrics dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.transaction-detail-list dd,
.transaction-detail-metrics dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 900;
}

.transaction-detail-list code,
.transaction-detail-metrics code {
    color: inherit;
    font: inherit;
}

.transaction-detail-modal-section {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.transaction-detail-modal-section h3 {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
}

.transaction-detail-modal-actions {
    justify-content: flex-end;
    padding-top: 4px;
}

.transaction-detail-modal-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.transaction-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 98px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel-strong);
}

.transaction-modal-summary > div {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.transaction-modal-summary small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.13);
    color: #60a5fa;
    font-size: 10px;
    font-weight: 900;
}

.transaction-modal-summary > strong {
    color: var(--text);
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.transaction-modal-rows {
    display: grid;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel-strong);
}

.transaction-modal-rows > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.55fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 42px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
}

.transaction-modal-rows > div:last-child {
    border-bottom: 0;
}

.transaction-modal-rows dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.transaction-modal-rows dd {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.transaction-modal-rows code {
    overflow: hidden;
    color: inherit;
    font: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-modal-identifiers button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.transaction-modal-identifiers button:hover,
.transaction-modal-identifiers button:focus-visible {
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
    outline: 0;
}

.transaction-detail-modal-actions .btn {
    min-height: 44px;
    padding-inline: 17px;
    font-size: 12px;
}

.transaction-detail-page {
    display: grid;
    gap: 24px;
}

.transaction-detail-page-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.transaction-detail-page-head h1 {
    font-size: clamp(24px, 3vw, 34px);
}

.transaction-detail-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
    gap: 24px;
}

.transaction-detail-page-main,
.transaction-detail-page-side,
.transaction-detail-panel {
    min-width: 0;
    display: grid;
    gap: 18px;
    align-content: start;
}

.transaction-detail-panel {
    padding: 24px;
    border: 0;
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.transaction-detail-panel-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
}

.transaction-detail-panel-title > span {
    width: 4px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent);
}

.transaction-detail-panel-title h2 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 950;
}

.transaction-detail-panel-title p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-weight: 850;
}

.transaction-detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transaction-detail-metrics dd {
    font-size: 18px;
}

.transaction-detail-metrics dd.is-success {
    color: #34d399;
}

.transaction-payer-card,
.transaction-method-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.transaction-payer-avatar,
.transaction-method-box span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
}

.transaction-payer-card strong,
.transaction-method-box strong {
    color: var(--text);
    font-weight: 950;
}

.transaction-method-box {
    padding: 12px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.035);
}

.transaction-reference-inline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.transaction-reference-inline code { overflow-wrap: anywhere; font-size: 12px; }
.transaction-copy-button { display: inline-grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: rgb(255 255 255 / 0.05); color: var(--muted); cursor: pointer; }
.transaction-copy-button:hover, .transaction-copy-button.is-copied { background: var(--accent-soft); color: var(--accent); }
.transaction-money-metrics { gap: 16px; padding: 12px 0 24px; border-bottom: 1px solid var(--line); }
.dashboard-page .transaction-detail-metrics.transaction-money-metrics dd { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.04em; }
.transaction-meta-metrics { gap: 18px; }
.dashboard-page .transaction-detail-metrics.transaction-meta-metrics dd, .dashboard-page .transaction-detail-metrics.transaction-payer-metrics dd { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.transaction-detail-page-side .transaction-detail-list { grid-template-columns: 1fr; }
.transaction-payer-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.transaction-detail-panel-title h2 i { color: var(--accent); margin-right: 5px; font-size: 17px; }
.transaction-side-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 17px; }
.transaction-side-title i { color: var(--accent); }
.transaction-reference-help { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0; }
.transaction-pix-copy { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 0.04); min-width: 0; }
.transaction-pix-copy code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.transaction-qr-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.transaction-qr-head h2 { margin: 0; font-size: 20px; }
.transaction-qr-dialog { width: min(400px, calc(100vw - 32px)); padding: 24px; }
.transaction-qr-dialog p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.transaction-qr-dialog > strong { display: block; margin: 16px 0; text-align: center; font-size: 26px; }
.transaction-qr-dialog > .btn { width: 100%; }
.transaction-modal-qr { margin-top: 14px; }
.transaction-modal-qr > summary { color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 700; padding: 10px 0; }
.transaction-modal-qr > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Internal transfers reuse the dashboard's palette, spacing and form controls. */
.internal-transfer-layout { display: grid; gap: 24px; max-width: 1180px; }
.transfer-page-heading { display: flex; align-items: center; gap: 16px; }
.transfer-page-heading h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; margin: 0 0 6px; }
.transfer-page-heading p, .transfer-section-heading p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
.transfer-heading-icon, .transfer-balance-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; color: var(--accent); background: var(--accent-soft); font-size: 20px; }
.transfer-workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.transfer-compose, .transfer-history { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); min-width: 0; }
.transfer-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.transfer-section-heading h2 { margin: 0 0 5px; font-size: 18px; }
.transfer-step { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; font-size: 13px; font-weight: 800; }
.transfer-form { display: grid; gap: 10px; }
.transfer-form label { margin-top: 10px; color: var(--text); font-size: 13px; font-weight: 700; }
.transfer-form input { width: 100%; min-width: 0; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; font-size: 14px; outline: none; }
.transfer-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.transfer-form small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.transfer-form > .btn { margin-top: 16px; min-height: 48px; gap: 10px; }
.transfer-money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.transfer-money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.transfer-money-input > span { padding-left: 14px; color: var(--muted); font-weight: 700; font-size: 14px; }
.transfer-money-input input, .transfer-money-input input:focus { border: 0; box-shadow: none; background: transparent; font-size: 20px; font-weight: 700; }
.transfer-info-column { display: grid; gap: 20px; min-width: 0; }
.transfer-balance-card { padding: 26px; border-radius: 20px; background: linear-gradient(135deg, rgb(var(--accent-rgb) / .12), var(--panel) 75%); border: 1px solid rgb(var(--accent-rgb) / .24); display: grid; justify-items: start; gap: 12px; }
.transfer-balance-card > small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.transfer-balance-card > strong { color: var(--text); font-size: clamp(30px, 3vw, 40px); letter-spacing: -.04em; line-height: 1.2; }
.transfer-balance-card p { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.transfer-free { color: #34d399; font-size: 12px; font-weight: 700; }
.transfer-info-note { display: flex; align-items: start; gap: 12px; padding: 4px 8px; color: var(--muted); }
.transfer-info-note > i { color: var(--accent); margin-top: 3px; }
.transfer-info-note h3 { color: var(--text); font-size: 13px; margin: 0 0 8px; }
.transfer-info-note p { margin: 0; line-height: 1.8; font-size: 12px; }
.transfer-empty { display: grid; justify-items: center; gap: 12px; padding: 26px 10px; text-align: center; }
.transfer-empty > i { padding: 16px; border-radius: 14px; background: rgb(255 255 255 / .035); color: var(--muted); }
.transfer-empty h3 { margin: 0; font-size: 15px; }
.transfer-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.transfer-history-row { display: flex; width: 100%; align-items: center; gap: 14px; padding: 18px 0; color: var(--text); border: 0; border-top: 1px solid var(--line); background: transparent; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.internal-transfer-dialog .transfer-review-amounts { margin: 0; }
.transfer-history-row:hover .transfer-history-person strong { color: var(--accent); }
.transfer-direction { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; background: var(--accent-soft); color: var(--accent); }
.transfer-direction.is-incoming { color: #34d399; background: rgb(52 211 153 / .09); }
.transfer-history-person { flex: 1; min-width: 0; }
.transfer-history-person strong, .transfer-history-value strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.transfer-history-person small, .transfer-history-value small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.transfer-history-value { text-align: right; }
.transfer-history-value small { color: #34d399; }
.transfer-history-row > i { color: var(--muted); font-size: 11px; }
.transfer-recipient-preview { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.transfer-recipient-preview > div { flex: 1; min-width: 0; }
.transfer-recipient-preview strong { font-size: 14px; overflow-wrap: anywhere; }
.transfer-recipient-preview small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.transfer-recipient-preview > i { color: #34d399; }
.transfer-review-amounts { display: grid; gap: 16px; margin: 24px 0; }
.transfer-review-amounts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.transfer-review-amounts dt { color: var(--muted); }
.transfer-review-amounts dd { margin: 0; font-weight: 700; }
.transfer-review-amounts > div:last-child { border-top: 1px solid var(--line); padding-top: 16px; }
.transfer-back-link { text-align: center; color: var(--muted); font-size: 12px; padding: 10px; }
.transfer-feedback { display: flex; gap: 12px; padding: 16px 20px; border-radius: 14px; font-size: 13px; line-height: 1.7; }
.transfer-feedback.is-success { background: rgb(52 211 153 / .09); color: #6ee7b7; }
.transfer-feedback.is-error { background: rgb(248 113 113 / .1); color: #fca5a5; }
.transfer-feedback > i { margin-top: 4px; }
.transfer-feedback a { display: block; color: inherit; margin-top: 6px; text-decoration: underline; }
@media (max-width: 1000px) {
    .transfer-workspace { grid-template-columns: 1fr; }
    .transfer-info-column { grid-row: 1; grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (max-width: 700px) {
    .transaction-detail-page-head { grid-template-columns: auto minmax(0, 1fr); }
    .transaction-receipt-link { grid-column: 1 / -1; justify-self: start; }
    .transaction-detail-page-grid { grid-template-columns: 1fr; }
    .transaction-detail-metrics.transaction-money-metrics { grid-template-columns: 1fr; gap: 14px; }
    .transaction-money-metrics > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
    .transaction-money-metrics dd { margin: 0; }
    .transaction-payer-metrics { grid-template-columns: 1fr; }
    .transfer-info-column { grid-template-columns: 1fr; }
    .transfer-info-note { display: none; }
    .transfer-compose, .transfer-history, .transfer-balance-card { padding: 20px; }
    .transfer-page-heading { align-items: start; }
    .transfer-history-row { flex-wrap: wrap; gap: 10px; }
    .transfer-history-person { flex-basis: calc(100% - 52px); }
    .transfer-history-value { margin-left: 48px; text-align: left; }
}

.dashboard-page .sidebar-group-label {
    font-size: calc(14px + var(--font-accessibility-bump));
}

.dashboard-page .sidebar-section-label {
    font-size: calc(13px + var(--font-accessibility-bump));
}

.dashboard-page .sidebar-subitem {
    font-size: calc(13px + var(--font-accessibility-bump));
}

.dashboard-page .dashboard-user-copy small {
    font-size: calc(11px + var(--font-accessibility-bump));
}

.dashboard-page .dashboard-user-copy strong {
    max-width: min(180px, 100%);
    font-size: calc(14px + var(--font-accessibility-bump));
}

.dashboard-page .user-chart-title h2 {
    font-size: calc(20px + var(--font-accessibility-bump));
}

.dashboard-page .user-chart-title p,
.dashboard-page .admin-section-title p,
.dashboard-page .user-insight-panel-head p,
.dashboard-page .transaction-date small,
.dashboard-page .transaction-detail-list dt,
.dashboard-page .transaction-detail-metrics dt {
    font-size: calc(12px + var(--font-accessibility-bump));
}

.dashboard-page .user-method-legend span,
.dashboard-page .user-transactions-row,
.dashboard-page .admin-table,
.dashboard-page .transaction-detail-list dd,
.dashboard-page .transaction-method-box strong {
    font-size: calc(14px + var(--font-accessibility-bump));
}

.dashboard-page .transaction-status,
.dashboard-page .admin-status-chip,
.dashboard-page .admin-method-badge {
    font-size: calc(12px + var(--font-accessibility-bump));
}

.dashboard-page .admin-bar-chart small,
.dashboard-page .user-hour-chart small,
.dashboard-page .user-flow-chart small {
    font-size: var(--compact-axis-font-size);
}

.dashboard-page .transaction-detail-metrics dd {
    font-size: calc(18px + var(--font-accessibility-bump));
}

.admin-user-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.06);
}

.admin-user-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-user-tabs button:hover,
.admin-user-tabs button.is-active {
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--text);
}

.admin-user-tabs button.is-active i {
    color: var(--accent);
}

.admin-user-panel {
    display: grid;
    gap: 16px;
}

.admin-user-panel[hidden] {
    display: none;
}

.admin-user-finance-bars {
    display: grid;
    gap: 18px;
    align-content: center;
    min-height: 220px;
}

.admin-user-finance-bars div {
    display: grid;
    gap: 9px;
}

.admin-user-finance-bars span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--text);
    font-weight: 900;
}

.admin-user-finance-bars small {
    color: var(--muted);
    font-weight: 900;
}

.admin-user-finance-bars i {
    display: block;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.admin-user-finance-bars i::before {
    display: block;
    width: var(--bar);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), rgb(var(--accent-rgb) / 0.35));
    content: "";
}

@media (max-width: 760px) {
    :root[data-font-scale="extra"] {
        --chart-axis-font-size: 12.5px;
        --compact-axis-font-size: 11.5px;
    }

    .user-transactions-header,
    .user-transactions-pagination {
        display: grid;
    }

    .user-transaction-filters {
        width: 100%;
    }

    .user-transaction-filters summary {
        justify-content: center;
        width: 100%;
    }

    .user-transaction-filters form {
        left: 0;
        right: auto;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .user-transactions-card {
        border-radius: 16px;
    }

    .user-transactions-head {
        display: none;
    }

    .user-transactions-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 14px;
    }

    .user-transactions-row > span:nth-child(2) {
        justify-self: end;
    }

    .transaction-amount {
        grid-column: 1;
    }

    .transaction-date {
        justify-self: end;
        text-align: right;
    }

    .transaction-chevron {
        display: none;
    }

    .user-transactions-pagination div {
        flex-wrap: wrap;
    }

    .transaction-detail-list,
    .transaction-detail-metrics,
    .transaction-detail-page-grid {
        grid-template-columns: 1fr;
    }

    .transaction-detail-panel-title {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .transaction-detail-panel-title .transaction-status {
        grid-column: 2;
        width: fit-content;
    }

    .transaction-detail-modal-card,
    .transaction-detail-panel {
        padding: 18px;
    }
}

.dashboard-empty-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    place-items: center;
    border: 1px solid rgb(var(--accent-rgb) / 0.22);
    border-radius: 16px;
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
    font-size: 20px;
}

@keyframes dashboard-main-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes dashboard-panel-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

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

.user-notice-layout {
    display: grid;
    gap: 18px;
}

.notice-journal-header {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.notice-journal-kicker {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notice-journal-header h1 {
    margin: 10px 0 12px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.02;
}

.notice-journal-header p {
    max-width: 64ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.notice-journal-summary {
    display: grid;
    gap: 12px;
}

.notice-journal-summary article,
.notice-journal-board,
.notice-empty-state {
    border: 0;
    border-radius: 22px;
    background: var(--panel);
}

.notice-journal-summary article {
    padding: 18px 20px;
}

.notice-journal-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.notice-journal-summary strong {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 32px;
    font-weight: 900;
}

.notice-journal-board {
    display: grid;
    overflow: hidden;
}

.notice-journal-entry {
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr);
    min-width: 0;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.notice-journal-entry:last-child {
    border-bottom: 0;
}

.notice-journal-entry-bar {
    background: rgb(var(--accent-rgb) / 0.28);
}

.notice-journal-entry.is-danger .notice-journal-entry-bar,
.notice-journal-entry.is-critical .notice-journal-entry-bar,
.notice-journal-entry.is-high .notice-journal-entry-bar {
    background: rgb(239 68 68 / 0.8);
}

.notice-journal-entry.is-warning .notice-journal-entry-bar,
.notice-journal-entry.is-medium .notice-journal-entry-bar {
    background: rgb(245 158 11 / 0.82);
}

.notice-journal-entry.is-success .notice-journal-entry-bar {
    background: rgb(34 197 94 / 0.82);
}

.notice-journal-entry.is-info .notice-journal-entry-bar,
.notice-journal-entry.is-low .notice-journal-entry-bar,
.notice-journal-entry.is-unread .notice-journal-entry-bar {
    background: rgb(var(--accent-rgb) / 0.82);
}

.notice-journal-entry-main {
    padding: 22px 22px 20px;
}

.notice-journal-entry-topline,
.notice-journal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.notice-journal-section,
.notice-journal-date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.notice-journal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.notice-journal-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
}

.notice-journal-entry h2 {
    margin: 0;
    color: var(--text);
    font-size: 23px;
    line-height: 1.15;
}

.notice-journal-entry p,
.notice-journal-quote blockquote {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.notice-journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.notice-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.notice-pill.is-neutral {
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--text);
}

.notice-pill.is-danger {
    background: rgb(239 68 68 / 0.12);
    color: #ef4444;
}

.notice-pill.is-warning {
    background: rgb(245 158 11 / 0.14);
    color: #f59e0b;
}

.notice-pill.is-success {
    background: rgb(34 197 94 / 0.14);
    color: #22c55e;
}

.notice-journal-quote {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 3px solid rgb(var(--accent-rgb) / 0.48);
    border-radius: 0 14px 14px 0;
    background: rgb(var(--accent-rgb) / 0.04);
}

.notice-journal-quote span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice-journal-quote blockquote {
    margin: 10px 0 0;
}

.notice-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.notice-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 42px 24px;
    text-align: center;
}

.notice-empty-state-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    background: rgb(var(--accent-rgb) / 0.1);
    color: var(--accent);
    font-size: 22px;
}

.notice-empty-state strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.notice-empty-state p {
    max-width: 46ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.notify-snackbar-stack {
    display: grid;
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 160;
    gap: 10px;
    width: min(420px, calc(100vw - 28px));
}

.notify-snackbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
    opacity: 0;
    backdrop-filter: blur(18px);
    transform: translateY(14px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.notify-snackbar.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.notify-snackbar-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
}

.notify-snackbar-icon img,
.notification-settings-preview-mark img,
.dashboard-notification-item-icon img,
.notice-journal-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.notify-snackbar-icon img { width: 34px; height: 34px; }
.dashboard-notification-item-icon img,
.notice-journal-icon img { width: 24px; height: 24px; }

.notify-snackbar.is-danger .notify-snackbar-icon {
    background: rgb(239 68 68 / 0.12);
    color: #ef4444;
}

.notify-snackbar.is-warning .notify-snackbar-icon {
    background: rgb(245 158 11 / 0.14);
    color: #f59e0b;
}

.notify-snackbar.is-success .notify-snackbar-icon {
    background: rgb(34 197 94 / 0.14);
    color: #22c55e;
}

.notify-snackbar-copy strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.notify-snackbar-copy p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.notify-snackbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notify-snackbar-action,
.notify-snackbar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.notify-snackbar-action {
    padding: 0 10px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
}

.notify-snackbar-close {
    width: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

@keyframes notify-dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgb(239 68 68 / 0.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgb(239 68 68 / 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgb(239 68 68 / 0);
    }
}

.cookie-consent {
    display: grid;
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 120;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: min(1040px, calc(100% - 32px));
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel-strong) 94%, transparent);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    opacity: 0;
    backdrop-filter: blur(18px);
    transform: translate(-50%, 18px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-consent-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: rgb(var(--accent-rgb) / 0.12);
    color: var(--accent);
    font-size: 18px;
}

.cookie-consent-copy {
    min-width: 0;
}

.cookie-consent-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
}

.cookie-consent-copy p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-actions .btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .dashboard-page {
        min-height: 100vh;
        height: auto;
        overflow: auto;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }

    .dashboard-sidebar {
        display: grid;
        position: relative;
        grid-template-rows: auto auto auto;
        height: auto;
        min-height: auto;
        padding: 14px 12px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow: visible;
    }

    .dashboard-sidebar-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 2px 12px;
    }

    .dashboard-sidebar-top .brand {
        display: none;
    }

    .dashboard-sidebar-collapse-toggle {
        display: none;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
        overflow: visible;
        overscroll-behavior: auto;
        scrollbar-gutter: auto;
    }

    .sidebar-section {
        gap: 6px;
    }

    .sidebar-submenu {
        margin-left: 18px;
        padding-left: 20px;
    }

    .sidebar-group.is-open .sidebar-submenu {
        padding-left: 20px;
    }

    .dashboard-sidebar-footer {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 2px 0;
    }

    .sidebar-logout .btn {
        width: auto;
        padding: 0 18px;
    }

    .dashboard-sidebar-resizer {
        display: none;
    }

    .dashboard-main {
        height: auto;
        padding: 0 12px 72px;
        overflow: visible;
    }

    .dashboard-main-header {
        position: sticky;
        top: 0;
        z-index: 52;
        margin-right: -12px;
        margin-left: -12px;
    }

    .dashboard-main-header-inner {
        min-height: 64px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .dashboard-main-brand {
        display: inline-flex;
        max-width: min(62vw, 240px);
    }

    .dashboard-shell .dashboard-layout {
        width: min(100%, 1120px);
        padding-top: 24px;
    }

    .service-fee-grid {
        grid-template-columns: 1fr;
    }

    .service-fee-provider {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .service-fee-provider-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .admin-stat-grid,
    .admin-panel-grid,
    .admin-kpi-grid,
    .admin-toggle-grid {
        grid-template-columns: 1fr;
    }

    .admin-stat-card {
        min-height: auto;
    }

    .admin-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-chart-grid,
    .admin-summary-grid,
    .admin-summary-grid-compact,
    .admin-filter-row,
    .admin-report-filters,
    .admin-link-form,
    .admin-user-detail-grid,
    .admin-moderation-form,
    .admin-definition-grid,
    .user-chart-grid,
    .user-insight-grid,
    .user-settings-grid,
    .user-security-grid {
        grid-template-columns: 1fr;
    }

    .ranking-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ranking-live-badge {
        grid-column: 2;
    }

    .ranking-summary-card > div {
        grid-template-columns: 1fr;
    }

    .user-metric-grid,
    .user-health-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-profile-head {
        align-items: flex-start;
    }

    .service-fee-card {
        min-height: auto;
    }

    .fee-breakdown-row {
        grid-template-columns: 1fr;
    }

    .cookie-consent {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
    }

    .cookie-consent-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .notice-journal-header {
        grid-template-columns: 1fr;
    }

    .dashboard-notification-panel {
        right: 0;
        left: auto;
    }
}

@media (max-width: 560px) {
    .dashboard-sidebar {
        padding: 12px 10px;
    }

    .dashboard-sidebar-top {
        flex-wrap: nowrap;
    }

    .dashboard-notification-hub {
        margin-left: auto;
    }

    .dashboard-sidebar .brand {
        font-size: 19px;
    }

    .dashboard-sidebar .brand-mark {
        width: 40px;
        height: 40px;
    }

    .admin-user-profile-head {
        flex-direction: column;
    }

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

    .dashboard-sidebar-footer {
        grid-template-columns: 1fr;
    }

    .font-scale-control > span {
        white-space: normal;
    }

    .font-scale-options button {
        min-height: 38px;
        padding: 0 4px;
    }

    .user-balance-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-balance-subtitle {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.25;
    }

    .user-balance-security {
        display: none;
    }

    .balance-background-control {
        top: 14px;
        right: 14px;
    }

    .balance-background-popover {
        right: -4px;
        width: min(330px, calc(100vw - 28px));
    }

    .balance-background-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-balance-value-row {
        align-items: flex-start;
    }

    .user-balance-action {
        width: 100%;
    }

    .user-metric-grid,
    .user-method-chart,
    .user-health-strip {
        grid-template-columns: 1fr;
    }

    .user-chart-card,
    .user-metric-card,
    .user-balance-card {
        padding: 18px;
    }

    .ranking-floating-button {
        right: 12px;
        bottom: 12px;
    }

    .ranking-row {
        grid-template-columns: 34px 38px minmax(0, 1fr);
    }

    .ranking-amount {
        grid-column: 3;
        text-align: left;
    }

    .user-method-donut {
        width: min(100%, 170px);
    }

    .service-fee-note {
        grid-template-columns: 1fr;
    }

    .sidebar-logout .btn {
        width: 100%;
    }

    .dashboard-main {
        padding: 0 10px 68px;
    }

    .dashboard-main-header {
        margin-right: -10px;
        margin-left: -10px;
    }

    .cookie-consent {
        width: min(100% - 20px, 1040px);
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .cookie-consent-icon {
        display: none;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .dashboard-page {
        --dashboard-mobile-header-height: calc(60px + env(safe-area-inset-top));
    }

    .dashboard-page {
        min-height: 100dvh;
        height: auto;
        overflow: auto;
    }

    .dashboard-page.has-mobile-sidebar-open {
        overflow: hidden;
    }

    .dashboard-shell {
        display: block;
        min-height: 100dvh;
        height: auto;
        overflow: visible;
    }

    .dashboard-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 80;
        grid-template-rows: auto 1fr auto;
        width: min(86vw, 326px);
        height: 100dvh;
        min-height: 100dvh;
        padding: 16px 12px;
        border-right: 1px solid var(--dashboard-divider);
        border-bottom: 0;
        background: color-mix(in srgb, var(--panel-strong) 96%, transparent);
        box-shadow: 30px 0 70px rgb(0 0 0 / 0.32);
        overflow: hidden;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
        backdrop-filter: blur(20px);
    }

    .dashboard-sidebar.is-mobile-open {
        transform: translateX(0);
        visibility: visible;
    }

    .dashboard-sidebar-top {
        padding: 0 2px 14px;
    }

    .dashboard-sidebar-top::after {
        right: -12px;
        left: -12px;
    }

    .sidebar-section::after {
        bottom: -4px;
    }

    .sidebar-section:last-child::after {
        bottom: 8px;
    }

    .dashboard-sidebar-top .brand {
        display: inline-flex;
        max-width: min(52vw, 190px);
        font-size: 19px;
    }

    .dashboard-sidebar-top .brand-mark {
        width: 40px;
        height: 40px;
    }

    .dashboard-mobile-sidebar-close {
        display: grid;
        flex: 0 0 auto;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--panel);
        color: var(--text);
        cursor: pointer;
    }

    .dashboard-mobile-sidebar-close:hover,
    .dashboard-mobile-sidebar-close:focus-visible {
        border-color: rgb(var(--accent-rgb) / 0.28);
        color: var(--accent);
        outline: 0;
    }

    .dashboard-sidebar-backdrop.is-visible {
        display: block;
    }

    .dashboard-mobile-nav {
        display: grid;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .dashboard-sidebar-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 12px 2px 0;
    }

    .dashboard-sidebar-resizer {
        display: none;
    }

    .dashboard-main {
        height: auto;
        min-height: 100dvh;
        padding: var(--dashboard-mobile-header-height) 10px calc(108px + env(safe-area-inset-bottom));
        overflow: visible;
        animation: none;
        transform: none;
        will-change: auto;
    }

    .dashboard-main-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 58;
        margin: 0;
        padding-top: env(safe-area-inset-top);
    }

    .dashboard-main-header-inner {
        min-height: 60px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .dashboard-main-brand {
        display: inline-flex;
        max-width: min(62vw, 220px);
        font-size: 19px;
    }

    .dashboard-main-brand .brand-mark {
        width: 40px;
        height: 40px;
    }

    .dashboard-shell .user-dashboard-layout {
        width: 100%;
        gap: 12px;
    }

    .user-balance-card {
        min-height: auto;
        gap: 16px;
        padding: 20px;
        border-radius: 22px;
    }

    .user-balance-subtitle {
        font-size: 11px;
    }

    .user-balance-content {
        width: 100%;
        padding-right: 44px;
    }

    .user-balance-card strong {
        font-size: clamp(36px, 12vw, 46px);
    }

    .user-balance-action {
        width: 100%;
        min-height: 52px;
        justify-content: center;
    }

    .user-period-filter {
        min-height: 44px;
    }

    .user-health-strip,
    .user-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .user-metric-card {
        aspect-ratio: 0 / 1;
        min-height: 0;
        gap: 8px;
        padding: 14px;
        border-radius: 18px;
    }

    .user-metric-card::before {
        top: 14px;
        bottom: 14px;
        width: 3px;
    }

    .user-metric-card small {
        font-size: clamp(10px, 3vw, 12px);
        line-height: 1.25;
    }

    .user-metric-card strong {
        margin-top: 6px;
        font-size: clamp(19px, 6.4vw, 25px);
    }

    .user-metric-note {
        margin-top: 10px;
        font-size: 10px;
        line-height: 1.35;
    }

    .user-chart-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-chart-card,
    .user-ops-card {
        min-height: auto;
        gap: 12px;
        padding: 16px;
        border-radius: 18px;
    }

    .user-chart-title h2,
    .user-insight-panel-head h2 {
        font-size: clamp(17px, 5vw, 20px);
    }

    .user-chart-title p,
    .user-insight-panel-head p {
        font-size: 11px;
        white-space: normal;
    }

    .user-financial-chart {
        min-height: 214px;
    }

    .user-line-chart-svg {
        height: 214px;
    }

    .user-insight-panel {
        gap: 12px;
    }

    .user-insight-panel-head {
        align-items: stretch;
        gap: 10px;
    }

    .user-dashboard-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        padding: 5px;
    }

    .user-dashboard-tabs button {
        min-height: 34px;
        padding: 0 8px;
        font-size: 11px;
    }

    .user-flow-card {
        min-height: auto;
    }

    .user-flow-chart {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        min-height: 190px;
        gap: 6px;
        padding: 14px 8px 6px;
    }

    .user-flow-chart span {
        grid-template-rows: minmax(0, 132px) 22px;
        gap: 2px;
    }

    .user-flow-chart span:nth-child(-n+7) {
        display: none;
    }

    .user-status-list {
        gap: 8px;
    }

    .user-status-row {
        padding: 10px;
    }

    .user-operations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-operations-card {
        min-height: auto;
        padding: 16px;
        border-radius: 18px;
    }

    .user-funnel-summary {
        gap: 8px;
    }

    .user-funnel-summary article {
        padding: 12px;
    }

    .user-funnel-summary strong,
    .user-velocity-metric strong {
        font-size: clamp(22px, 7vw, 28px);
    }

    .user-sales-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .user-sales-row {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 8px;
    }

    .quick-pix-modal {
        width: min(100% - 14px, 520px);
        border-radius: 24px;
    }

    .quick-pix-modal-card {
        padding: 0 16px 18px;
    }

    .quick-pix-head h2 {
        margin-top: -14px;
        font-size: 22px;
    }

    .quick-pix-callout,
    .quick-pix-feedback {
        padding: 14px;
    }

    .quick-pix-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-pix-field input,
    .quick-pix-submit {
        min-height: 52px;
        border-radius: 16px;
    }

    .ranking-floating-button {
        right: 14px;
        bottom: calc(98px + env(safe-area-inset-bottom));
    }

    .cookie-consent {
        bottom: calc(92px + env(safe-area-inset-bottom));
    }
}

.docs-code {
    border: 1px solid var(--line);
    background: rgba(3, 7, 18, 0.72);
    color: #f8fafc;
}

.docs-status-stack {
    display: grid;
    gap: 12px;
}

.docs-status-stack span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.docs-status-stack i {
    color: var(--accent);
}

.docs-page {
    min-height: 100vh;
    background: var(--bg);
}

.docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 280px;
    height: 100vh;
    padding: 24px;
    border-right: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.88);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.docs-sidebar:hover {
    scrollbar-color: rgb(var(--accent-rgb) / 0.48) transparent;
}

.docs-sidebar::-webkit-scrollbar {
    width: 8px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: transparent;
    background-clip: padding-box;
}

.docs-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgb(var(--accent-rgb) / 0.5);
    background-clip: padding-box;
}

.docs-sidebar nav {
    display: grid;
    gap: 8px;
}

.docs-sidebar nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.docs-sidebar nav a:hover {
    background: var(--panel-strong);
    color: var(--text);
}

.docs-nav-divider {
    margin: 14px 0 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.docs-main {
    width: min(calc(100% - 280px), 1320px);
    margin-left: 280px;
    padding: 42px clamp(18px, 4vw, 54px) 70px;
}

.docs-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -42px calc(clamp(18px, 4vw, 54px) * -1) 28px;
    padding: 18px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.88);
    backdrop-filter: blur(16px);
}

.docs-toolbar-group,
.docs-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.docs-toolbar label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.docs-toolbar select {
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: var(--panel-strong);
    color: #22d3ee;
    font-size: 12px;
    font-weight: 950;
    outline: 1px solid transparent;
}

.docs-toolbar select option,
.docs-settings-popover select option {
    background: var(--panel-strong);
    color: var(--text);
}

:root.light-theme .docs-toolbar select,
:root.light-theme .docs-settings-popover select {
    background: #ffffff;
    color: var(--accent);
}

:root.light-theme .docs-toolbar select option,
:root.light-theme .docs-settings-popover select option {
    background: #ffffff;
    color: #111827;
}

.docs-toolbar select:focus {
    outline-color: rgb(var(--accent-rgb) / 0.55);
}

.docs-public-chip,
.docs-postman-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 950;
}

.docs-public-chip {
    color: var(--text);
}

.docs-postman-button {
    padding: 0 14px;
    background: #ff6c37;
    color: #ffffff;
}

.docs-hero,
.docs-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.docs-hero h1 {
    max-width: 780px;
    margin: 8px 0 12px;
    color: var(--text);
    font-size: clamp(36px, 7vw, 72px);
    line-height: 0.96;
}

.docs-hero p,
.docs-section p {
    max-width: 760px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.7;
}

.docs-section h2,
.docs-section h3 {
    color: var(--text);
}

.docs-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    font-size: clamp(24px, 4vw, 36px);
}

.docs-section h3 {
    margin: 24px 0 10px;
    font-size: 18px;
}

.docs-code {
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    padding: 18px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.docs-code code {
    color: #f8fafc;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre;
}

.docs-code-panel {
    display: none;
    margin: 16px 0 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.42);
    overflow: hidden;
}

.docs-code-panel.is-active {
    display: block;
}

.docs-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 0.04);
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
}

.docs-code-head small {
    color: var(--muted);
    font-weight: 900;
}

.docs-code-panel .docs-code {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.docs-method {
    display: inline;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.docs-method-get {
    background: transparent;
    color: #4ade80;
}

.docs-method-post {
    background: transparent;
    color: #fb923c;
}

.docs-sidebar .docs-method {
    font-size: 9px;
}

.docs-error-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.docs-error-grid span,
.docs-production-note {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    color: var(--muted);
    font-weight: 900;
}

.docs-error-grid strong {
    margin-right: 8px;
    color: var(--accent);
}

.docs-page {
    --docs-sidebar-width: 280px;
    --docs-toolbar-height: 78px;
}

.docs-page.light-theme,
:root.light-theme .docs-page {
    background:
        radial-gradient(circle at 84% 4%, rgb(var(--accent-rgb) / 0.1), transparent 24rem),
        #f8fafc;
}

.docs-toolbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--docs-sidebar-width);
    z-index: 80;
    min-height: var(--docs-toolbar-height);
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.72);
    backdrop-filter: blur(18px);
}

:root.light-theme .docs-toolbar {
    background: rgba(248, 250, 252, 0.78);
}

.docs-main {
    width: auto;
    max-width: none;
    margin-left: var(--docs-sidebar-width);
    padding: calc(var(--docs-toolbar-height) + 34px) clamp(24px, 3.6vw, 62px) 78px;
}

.docs-split-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.docs-page.docs-single-column .docs-split-section {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1040px;
}

.docs-page.docs-single-column .docs-copy p,
.docs-page.docs-single-column .docs-check-list {
    max-width: 880px;
}

.docs-copy {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.docs-copy h1,
.docs-copy h2,
.docs-copy p {
    margin: 0;
}

.docs-copy h1 {
    max-width: 780px;
    color: var(--text);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.96;
}

.docs-copy h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: clamp(24px, 3.2vw, 38px);
    line-height: 1.08;
}

.docs-copy p,
.docs-check-list {
    max-width: 720px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.72;
}

.docs-check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-check-list li {
    position: relative;
    padding-left: 22px;
}

.docs-check-list li::before {
    content: "";
    position: absolute;
    top: 0.74em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.docs-reference-card,
.docs-example-panel {
    min-width: 0;
    border: 0;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.045);
    box-shadow: var(--shadow);
    overflow: hidden;
}

:root.light-theme .docs-reference-card,
:root.light-theme .docs-example-panel {
    background: rgba(255, 255, 255, 0.86);
}

.docs-reference-card {
    display: grid;
    gap: 0;
}

.docs-reference-card span {
    display: grid;
    gap: 7px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.docs-reference-card span:last-child {
    border-bottom: 0;
}

.docs-reference-card strong {
    color: var(--text);
}

.docs-reference-card code {
    overflow-wrap: anywhere;
    color: var(--accent);
}

.docs-toolbar-group {
    flex: 1;
    min-width: 0;
}

.docs-control select,
.docs-language-trigger,
.docs-icon-button {
    border: 1px solid transparent;
    background: rgb(255 255 255 / 0.04);
}

.docs-language-control,
.docs-settings-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.docs-language-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    max-width: min(330px, 38vw);
    padding: 0 12px;
    border-radius: 10px;
    color: #22d3ee;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.docs-language-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-language-menu,
.docs-settings-popover {
    position: absolute;
    top: calc(100% + 10px);
    z-index: 120;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #1f1f20;
    color: #f8fafc;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.docs-language-menu[hidden],
.docs-settings-popover[hidden] {
    display: none !important;
}

.docs-language-menu {
    left: 84px;
    display: grid;
    width: min(300px, calc(100vw - 42px));
    max-height: 402px;
    padding: 8px;
    overflow-y: auto;
}

.docs-language-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    padding: 0 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.docs-language-menu button::before {
    content: "";
    width: 13px;
}

.docs-language-menu button.is-active {
    background: rgba(255, 255, 255, 0.08);
}

.docs-language-menu button.is-active::before {
    content: "✓";
    color: #9ca3af;
}

.docs-icon-button,
.docs-copy-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 10px;
    background: rgb(var(--accent-rgb) / 0.08);
    color: var(--accent);
    cursor: pointer;
}

.docs-icon-button:hover,
.docs-copy-button:hover {
    border-color: rgb(var(--accent-rgb) / 0.38);
    color: var(--text);
}

.docs-settings-popover {
    right: 0;
    display: grid;
    gap: 14px;
    width: min(360px, calc(100vw - 42px));
    padding: 18px;
    text-transform: none;
}

.docs-settings-popover strong {
    font-size: 15px;
}

.docs-settings-popover p {
    margin: -6px 0 0;
    color: #b7bdc7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.docs-settings-popover label {
    display: grid;
    gap: 6px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 900;
}

.docs-settings-popover input,
.docs-settings-popover select {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #f8fafc;
}

.docs-checkbox-row {
    grid-template-columns: 18px 1fr;
    align-items: center;
}

.docs-checkbox-row input {
    min-height: 18px;
    accent-color: var(--accent);
}

.docs-theme-toggle {
    min-height: 36px;
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.04);
}

.docs-code-head {
    min-height: 48px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
}

.docs-code-head::before {
    content: "";
    flex: 0 0 auto;
    width: 42px;
    height: 12px;
    background:
        radial-gradient(circle at 6px 50%, #ff5f57 0 5px, transparent 5.4px),
        radial-gradient(circle at 21px 50%, #ffbd2e 0 5px, transparent 5.4px),
        radial-gradient(circle at 36px 50%, #28c840 0 5px, transparent 5.4px);
}

.docs-code-head span {
    margin-right: auto;
}

.docs-code {
    display: block;
    border: 0;
    border-radius: 0;
    background: rgba(3, 7, 18, 0.74);
    box-shadow: none;
}

:root.light-theme .docs-code {
    background: #111827;
}

.docs-code code {
    color: #d7deea;
    tab-size: var(--docs-tab-size, 2);
}

.docs-code-stack > .docs-code[data-docs-language-panel],
.docs-response-box > .docs-code[data-docs-tab-panel] {
    display: none;
}

.docs-code-stack > .docs-code[data-docs-language-panel].is-active,
.docs-response-box > .docs-code[data-docs-tab-panel].is-active {
    display: block;
}

.docs-response-box {
    border-top: 1px solid var(--line);
}

.docs-response-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.docs-response-head strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.docs-tab-list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.docs-tab-list button {
    min-height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.docs-tab-list button.is-active {
    background: rgb(var(--accent-rgb) / 0.14);
    color: var(--accent);
}

.docs-token-comment {
    color: #7c8798;
}

.docs-token-keyword,
.docs-token-method-post {
    color: #fb923c;
}

.docs-token-method-get {
    color: #4ade80;
}

.docs-token-string,
.docs-token-url {
    color: #a3e635;
}

.docs-token-key {
    color: #f472b6;
}

.docs-token-number {
    color: #facc15;
}

.docs-token-header,
.docs-token-flag {
    color: #38bdf8;
}

.docs-token-command {
    color: #e879f9;
}

.docs-token-brace {
    color: #cbd5e1;
}

.docs-copy-button.is-copied {
    border-color: rgba(34, 197, 94, 0.38);
    color: #22c55e;
}

.docs-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 180;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 13px 15px;
    border: 1px solid rgb(var(--accent-rgb) / 0.28);
    border-radius: 14px;
    background: rgba(5, 6, 8, 0.92);
    color: var(--text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

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

.docs-toast i {
    color: var(--accent);
}

.docs-toast strong {
    display: block;
    font-size: 13px;
    font-weight: 950;
}

.docs-toast small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.integration-provider-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.integration-provider-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    overflow: hidden;
}

.integration-provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
}

.admin-checkbox-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.admin-integration-steps {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--muted);
    font-weight: 800;
}

.checkout-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% 12%, rgb(var(--accent-rgb) / 0.15), transparent 24rem),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
    gap: 22px;
    width: min(100% - 32px, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    align-items: center;
    padding: 42px 0;
}

.checkout-panel {
    display: grid;
    gap: 24px;
    padding: 28px;
    border: 0;
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.checkout-product h1 {
    margin: 10px 0 8px;
    color: var(--text);
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1;
}

.checkout-product strong {
    display: block;
    color: var(--accent);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 950;
}

.checkout-product p,
.checkout-hint {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.6;
}

.checkout-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
}

.checkout-status span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.checkout-status.is-paid span {
    background: rgba(34, 197, 94, 0.13);
    color: #16a34a;
}

.checkout-status.is-failed span,
.checkout-status.is-expired span {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
}

.checkout-status strong,
.checkout-status small {
    display: block;
}

.checkout-status strong {
    color: var(--text);
    font-weight: 950;
}

.checkout-status small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.checkout-payment-card {
    align-content: start;
}

.checkout-qr {
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
}

.checkout-qr img {
    width: min(100%, 220px);
    aspect-ratio: 1;
}

.checkout-copy {
    display: grid;
    gap: 8px;
}

.checkout-copy span {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.checkout-copy textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
}

.admin-code-block {
    margin: 0;
    padding: 16px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
}

.admin-risk-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.admin-risk-list li {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.transaction-receipt-body {
    min-height: 100vh;
}

.transaction-receipt-shell {
    width: min(100% - 32px, 980px);
    margin: 0 auto;
    padding: 48px 0;
}

.transaction-receipt-card {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 0;
    border-radius: 22px;
    background: var(--panel-strong);
    box-shadow: var(--shadow-soft);
}

.transaction-receipt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.transaction-receipt-head h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
}

.transaction-receipt-head small,
.transaction-receipt-footer span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.transaction-receipt-footer {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.transaction-receipt-footer code {
    overflow-wrap: anywhere;
}

@media print {
    .transaction-receipt-body {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .transaction-receipt-shell {
        width: 100%;
        padding: 0;
    }

    .transaction-receipt-card {
        border: 0;
        box-shadow: none;
    }

    .transaction-receipt-head .btn,
    .transaction-receipt-head .ranking-back {
        display: none;
    }
}

@media (max-width: 920px) {
    .checkout-shell,
    .docs-page {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .docs-main {
        width: 100%;
        margin-left: 0;
    }

    .docs-toolbar {
        position: static;
        margin-top: -42px;
    }

    .docs-sidebar nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .docs-sidebar nav a {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .checkout-shell {
        width: min(100% - 20px, 1040px);
    }

    .checkout-panel {
        padding: 20px;
    }
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.analytics-metric,
.analytics-panel {
    min-width: 0;
    border: 1px solid var(--dashboard-card-border);
    border-radius: 15px;
    background: var(--panel-strong);
}

.analytics-metric {
    --metric-ink: #a1a8b5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 206px;
    padding: 20px;
}

.analytics-metric.is-revenue { --metric-ink: #14b8a6; }
.analytics-metric.is-pending { --metric-ink: #f5b942; }
.analytics-metric.is-conversion { --metric-ink: var(--accent); }
.analytics-metric.is-ticket { --metric-ink: #94a3b8; }
.analytics-metric-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.analytics-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 11px; color: var(--metric-ink); background: color-mix(in srgb, var(--metric-ink) 11%, transparent); }
.analytics-growth { align-self: flex-start; padding: 4px 7px; border-radius: 12px; color: #14b8a6; background: rgb(20 184 166 / 0.1); font-size: 10px; }
.analytics-growth.is-negative { color: #f87171; background: rgb(248 113 113 / 0.1); }
.analytics-metric > small { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.analytics-metric > strong { margin-top: 6px; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
.analytics-metric > p { margin: 6px 0 18px; color: var(--muted); font-size: 11px; }
.analytics-metric-sparkline {
    display: block;
    width: 100%;
    height: 34px;
    margin-top: auto;
    overflow: visible;
    color: var(--metric-ink);
    pointer-events: none;
}
.analytics-metric-sparkline-area { fill: color-mix(in srgb, currentColor 12%, transparent); }
.analytics-metric-sparkline-line { fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.analytics-period { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.analytics-period > span { display: flex; align-items: center; gap: 9px; }
.analytics-period nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel-strong); }
.analytics-period a, .analytics-period button { padding: 8px 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.analytics-period .is-active { color: var(--text); background: var(--bg); }
.analytics-period a:hover, .analytics-period button:hover { color: var(--text); }
.analytics-custom-period { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 16px; margin-bottom: 24px; border: 1px solid var(--dashboard-divider); border-radius: 12px; background: var(--panel-strong); }
.analytics-custom-period[hidden], .analytics-sale[hidden], [data-sales-empty][hidden] { display: none; }
.analytics-custom-period label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.analytics-custom-period input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); color-scheme: dark; font: inherit; }
.analytics-custom-period small { color: var(--muted); }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.analytics-column { display: grid; gap: 20px; min-width: 0; }
.analytics-panel { padding: 22px; }
.analytics-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.analytics-panel-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; font-weight: 750; }
.analytics-panel-heading h2 > i { color: var(--accent); font-size: 14px; }
.analytics-panel-heading p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.analytics-total { flex-shrink: 0; text-align: right; }
.analytics-total small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.analytics-total strong { display: block; margin-top: 5px; color: var(--accent); font-size: 20px; }
.analytics-chart-key { display: flex; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.analytics-chart-key span::before { content: ""; display: inline-block; width: 12px; margin-right: 5px; vertical-align: middle; border-top: 2px solid var(--accent); }
.analytics-chart-key span + span::before { border-top: 2px dashed var(--muted); }
.analytics-revenue-chart { position: relative; height: 290px; }
.analytics-subtle-link { color: var(--accent); font-size: 10px; white-space: nowrap; }
.analytics-ranking { padding: 0; margin: 0; list-style: none; }
.analytics-ranking li:not(.analytics-empty) { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; }
.analytics-ranking li + li { border-top: 1px solid var(--dashboard-card-border); }
.analytics-ranking strong, .analytics-sale strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.analytics-ranking small, .analytics-sale small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.analytics-ranking b { color: var(--accent); font-size: 12px; }
.analytics-rank-position { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--line); font-size: 12px; font-weight: 700; }
.is-rank-1 { background: #ba851e; color: #fff; }
.is-rank-2 { background: #738094; color: #fff; }
.is-rank-3 { background: #a45732; color: #fff; }
.analytics-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; min-height: 148px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.analytics-empty > i { display: grid; place-items: center; width: 46px; height: 46px; background: var(--line); border-radius: 13px; font-size: 18px; }
.analytics-empty-caption { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.analytics-status-total { display: grid; justify-items: center; gap: 8px; padding: 25px 0; }
.analytics-status-total > strong { font-size: 32px; }
.analytics-status-total > small { font-size: 11px; color: var(--muted); }
.analytics-status-bar { display: flex; overflow: hidden; height: 5px; border-radius: 5px; background: var(--line); margin-bottom: 18px; }
.analytics-status-bar .is-paid, .analytics-status-legend .is-paid { background: #22c55e; }
.analytics-status-bar .is-pending, .analytics-status-legend .is-pending { background: #f59e0b; }
.analytics-status-bar .is-failed, .analytics-status-legend .is-failed { background: #ef4444; }
.analytics-status-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.analytics-status-legend > span { display: flex; align-items: center; gap: 6px; }
.analytics-status-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.analytics-status-legend b { color: var(--text); }
.analytics-conversion { text-align: center; }
.analytics-conversion-ring { display: grid; place-items: center; position: relative; width: 126px; height: 126px; border-radius: 50%; margin: 24px auto; background: conic-gradient(var(--accent) var(--conversion), var(--line) 0); }
.analytics-conversion-ring::before { content: ""; position: absolute; inset: 12px; border-radius: inherit; background: var(--panel-strong); }
.analytics-conversion-ring strong { position: relative; font-size: 25px; color: var(--accent); }
.analytics-conversion-ring strong.is-compact { font-size: 20px; letter-spacing: -0.04em; }
.analytics-conversion > small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.analytics-sales .user-sales-tabs { flex-wrap: wrap; }
.analytics-sales-list { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.analytics-sale { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 15px 0; }
.analytics-sale + .analytics-sale { border-top: 1px solid var(--dashboard-card-border); }
.analytics-sale > i { color: #f59e0b; }
.analytics-sale > i.is-paid, .analytics-sale b { color: #14b8a6; }
.analytics-sale b { font-size: 11px; }
.analytics-methods { display: grid; gap: 15px; font-size: 12px; }
.analytics-methods > div { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.analytics-methods span { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.analytics-methods .analytics-method-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--method-color) 13%, transparent);
    color: var(--method-color);
    font-size: 13px;
}

@media (max-width: 1150px) {
    .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 14px; }
    .analytics-panel { padding: 16px; }
}

@media (max-width: 680px) {
    .analytics-grid { grid-template-columns: 1fr; }
    .analytics-metrics { gap: 10px; margin-bottom: 18px; }
    .analytics-metric { min-height: 176px; padding: 14px; }
    .analytics-metric > strong { font-size: 24px; }
    .analytics-metric > small { font-size: 9px; }
    .analytics-period nav { width: 100%; }
    .analytics-period a, .analytics-period button { padding: 8px; font-size: 11px; }
    .analytics-panel-heading h2 { font-size: 14px; }
    .analytics-revenue-chart { height: 240px; }
    .analytics-total strong { font-size: 16px; }
    .analytics-custom-period label { flex: 1; min-width: 125px; }
}

@media (prefers-reduced-motion: reduce) {
    .hover-lift,
    .dashboard-main,
    .dashboard-shell .dashboard-layout > *:not(.setup-alert),
    .dashboard-shell .profile-intro,
    .dashboard-shell .profile-form > .profile-card,
    .dashboard-shell .profile-actions {
        animation: none;
        transition: none;
    }

    .hover-lift:hover {
        transform: none;
    }

    .dashboard-main.is-leaving {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* Interações globais: botões planos e feedback de envio sem duplo clique. */
.btn,
button.btn,
input[type="submit"] { background-image: none; }

.btn:disabled,
button:disabled,
input[type="submit"]:disabled {
    box-shadow: none !important;
    background-image: none !important;
}

.is-submit-loading {
    position: relative !important;
    min-width: var(--submit-width, auto);
    color: transparent !important;
    pointer-events: none;
}

.is-submit-loading > * { visibility: hidden !important; }

.is-submit-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgb(255 255 255 / 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
    animation: sushipay-button-spin 700ms linear infinite;
}

dialog[open],
.quick-pix-modal[open],
.transaction-detail-modal[open] {
    animation: sushipay-dialog-in 190ms cubic-bezier(.2, .8, .2, 1) both;
}

dialog[open]::backdrop { animation: sushipay-backdrop-in 190ms ease-out both; }

@keyframes sushipay-dialog-in {
    from { opacity: 0; transform: translateY(14px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sushipay-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sushipay-button-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    dialog[open], .quick-pix-modal[open], .transaction-detail-modal[open], .is-submit-loading::after { animation: none; }
}

/* Análises do cliente */
.dashboard-shell .analysis-layout { width: min(1360px, 100%); display: grid; gap: 22px; padding-bottom: 70px; }
.analysis-page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.analysis-title-row { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.analysis-section-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; color: var(--accent); background: rgb(var(--accent-rgb) / .12); font-size: 20px; }
.analysis-title-row h1 { margin: 0; color: var(--text); font-size: clamp(27px, 2.6vw, 38px); line-height: 1.1; }
.analysis-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.analysis-period-form { display: grid; justify-items: end; gap: 10px; flex: none; }
.analysis-period-form > label { color: var(--muted); font-size: 12px; }
.analysis-period-form > label i { margin-right: 6px; color: var(--accent); }
.analysis-period-controls { display: flex; align-items: end; flex-wrap: wrap; justify-content: end; gap: 8px; }
.analysis-period-controls select, .analysis-custom-dates input { min-height: 39px; padding: 8px 11px; border: 1px solid var(--dashboard-card-border); border-radius: 10px; color: var(--text); background: var(--panel-strong); color-scheme: dark; font: inherit; font-size: 12px; }
.analysis-period-controls select { min-width: 160px; cursor: pointer; }
.analysis-period-controls select option { background: var(--panel-strong); color: var(--text); }
.analysis-period-controls select:focus-visible, .analysis-custom-dates input:focus-visible, .analysis-period-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.analysis-custom-dates { display: flex; gap: 7px; }
.analysis-custom-dates[hidden] { display: none; }
.analysis-custom-dates label { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.analysis-period-submit { min-height: 39px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.analysis-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.analysis-stat, .analysis-panel { min-width: 0; border: 1px solid var(--dashboard-card-border); border-radius: 17px; background: var(--panel-strong); }
.analysis-stat { display: grid; align-content: start; gap: 8px; min-height: 131px; padding: 15px; }
.analysis-stat.is-revenue { border-color: rgb(var(--accent-rgb) / .38); background: linear-gradient(135deg, rgb(var(--accent-rgb) / .15), var(--panel-strong) 84%); }
.analysis-stat-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: var(--accent); background: rgb(var(--accent-rgb) / .12); font-size: 13px; }
.analysis-stat.is-revenue .analysis-stat-icon { background: var(--accent); color: #fff; }
.analysis-stat small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.analysis-stat strong { color: var(--text); font-size: clamp(17px, 1.55vw, 22px); line-height: 1.15; overflow-wrap: anywhere; }
.analysis-section { display: grid; gap: 16px; }
.analysis-section-heading { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.analysis-section-icon { width: 36px; height: 36px; border-radius: 12px; font-size: 14px; }
.analysis-section-heading h2 { margin: 0; color: var(--text); font-size: 17px; }
.analysis-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.analysis-sales-grid, .analysis-funnel-grid, .analysis-sources-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, .9fr); gap: 16px; }
.analysis-funnel-grid, .analysis-sources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analysis-panel { padding: 22px; }
.analysis-panel-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.analysis-panel-heading h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 14px; }
.analysis-panel-heading h3 i { color: var(--accent); font-size: 13px; }
.analysis-panel-heading > span { color: var(--muted); font-size: 11px; }
.analysis-chart-wrap { position: relative; height: 288px; }
.analysis-chart-wrap.is-short { height: 220px; }
.analysis-chart-empty { margin: 8px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.analysis-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 235px; color: var(--muted); text-align: center; font-size: 12px; }
.analysis-empty-state i { font-size: 24px; opacity: .65; }
.analysis-empty-state p { margin: 0; }
.analysis-status-total { display: grid; gap: 2px; justify-items: center; padding: 40px 0 28px; }
.analysis-status-total strong { font-size: 38px; color: var(--text); }
.analysis-status-total span { color: var(--muted); font-size: 11px; }
.analysis-status-track { display: flex; overflow: hidden; height: 7px; border-radius: 99px; background: var(--line); }
.analysis-status-track > span { display: block; height: 100%; }
.analysis-status-track .is-paid, .analysis-status-list .is-paid { background: #24c58b; }
.analysis-status-track .is-pending, .analysis-status-list .is-pending { background: #f3ac2d; }
.analysis-status-track .is-other, .analysis-status-list .is-other { background: #e45c62; }
.analysis-status-list { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 10px; }
.analysis-status-list span { display: inline-flex; align-items: center; gap: 6px; }
.analysis-status-list i { width: 7px; height: 7px; border-radius: 50%; }
.analysis-status-list strong { color: var(--text); }
.analysis-funnel-steps { display: grid; gap: 2px; }
.analysis-funnel-steps > div { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 52px; border-bottom: 1px solid var(--dashboard-card-border); }
.analysis-funnel-steps span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgb(var(--accent-rgb) / .15); color: var(--accent); font-size: 11px; font-weight: 800; }
.analysis-funnel-steps label { color: var(--muted); font-size: 12px; }
.analysis-funnel-steps strong { color: var(--text); font-size: 14px; }
.analysis-funnel-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 22px; }
.analysis-funnel-summary > div { display: grid; gap: 5px; }
.analysis-funnel-summary small { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.analysis-funnel-summary strong { color: var(--accent); font-size: 20px; }
.analysis-ring-panel { display: grid; justify-items: center; }
.analysis-ring-panel .analysis-panel-heading { justify-self: stretch; }
.analysis-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; width: 164px; height: 164px; margin: 5px 0 12px; border-radius: 50%; background: conic-gradient(var(--accent) var(--ring-value), var(--line) 0); }
.analysis-ring::before { position: absolute; inset: 13px; border-radius: inherit; background: var(--panel-strong); content: ''; }
.analysis-ring strong, .analysis-ring small { position: relative; }
.analysis-ring strong { color: var(--accent); font-size: 27px; }
.analysis-ring small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.analysis-ring-panel > p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.analysis-source-list { display: grid; gap: 20px; padding-top: 10px; }
.analysis-source-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.analysis-source-row strong { color: var(--text); font-size: 11px; }
.analysis-source-track { overflow: hidden; height: 7px; margin-top: 9px; border-radius: 99px; background: var(--line); }
.analysis-source-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.analysis-heatmap { display: grid; gap: 6px; padding-top: 5px; }
.analysis-heatmap-head, .analysis-heatmap-row { display: grid; grid-template-columns: 38px repeat(4, minmax(0, 1fr)); align-items: center; gap: 6px; }
.analysis-heatmap-head small { overflow: hidden; color: var(--muted); font-size: 9px; text-align: center; text-overflow: ellipsis; text-transform: uppercase; }
.analysis-heatmap-row > span:first-child { color: var(--muted); font-size: 10px; }
.analysis-heatmap-cell { display: block; height: 21px; border: 1px solid var(--line); border-radius: 5px; background: rgb(var(--accent-rgb) / var(--cell-opacity)); }
.analysis-panel-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.analysis-top-links .analysis-empty-state { min-height: 100px; }
.analysis-top-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; }
.analysis-top-link + .analysis-top-link { border-top: 1px solid var(--dashboard-card-border); }
.analysis-link-position { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: rgb(var(--accent-rgb) / .12); color: var(--accent); font-size: 11px; font-weight: 800; }
.analysis-top-link strong, .analysis-top-link small { display: block; }
.analysis-top-link strong { color: var(--text); font-size: 12px; }
.analysis-top-link small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.analysis-top-link b { color: var(--accent); font-size: 12px; }
.analysis-method-note { margin: -5px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 1180px) {
    .analysis-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .analysis-page-head { align-items: start; flex-direction: column; }
    .analysis-period-form { justify-items: start; width: 100%; }
    .analysis-period-controls { justify-content: start; }
    .analysis-sales-grid, .analysis-funnel-grid, .analysis-sources-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .analysis-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .analysis-stat { min-height: 114px; padding: 12px; }
    .analysis-stat strong { font-size: 18px; }
    .analysis-panel { padding: 16px; }
    .analysis-chart-wrap { height: 230px; }
    .analysis-custom-dates { flex-wrap: wrap; }
    .analysis-period-controls select { min-width: 0; }
    .analysis-source-row > div:first-child { flex-wrap: wrap; }
}

/* Preferências de notificações no painel */
.dashboard-shell .notification-settings-layout { display: grid; gap: 18px; max-width: 1260px; padding-bottom: 70px; }
.notification-settings-heading h1 { margin: 0 0 6px; color: var(--text); font-size: clamp(27px, 3vw, 38px); }
.notification-settings-heading p, .notification-settings-card-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.notification-settings-form { display: grid; gap: 16px; }
.notification-settings-banner { display: flex; align-items: center; gap: 15px; padding: 19px 23px; border: 1px solid rgb(var(--accent-rgb) / .24); border-radius: 17px; background: linear-gradient(110deg, rgb(var(--accent-rgb) / .17), var(--panel) 65%); }
.notification-settings-banner-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: rgb(var(--accent-rgb) / .2); color: var(--accent); }
.notification-settings-banner h2 { margin: 0 0 3px; color: var(--text); font-size: 15px; }
.notification-settings-banner p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.notification-settings-master { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--accent); font-size: 13px; font-weight: 800; cursor: pointer; }
.notification-settings-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.notification-settings-card { min-width: 0; padding: 24px; border: 1px solid var(--dashboard-card-border); border-radius: 18px; background: var(--panel); }
.notification-settings-card-head { min-height: 70px; margin-bottom: 13px; }
.notification-settings-card-head h2 { margin: 0 0 5px; color: var(--text); font-size: 17px; }
.notification-settings-eyebrow { display: block; margin: 21px 0 11px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notification-settings-field { display: grid; gap: 6px; margin-bottom: 13px; color: var(--text); font-size: 12px; font-weight: 700; }
.notification-settings-field small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.notification-settings-field select, .notification-settings-name-field input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--text); color-scheme: dark; font: inherit; font-size: 12px; }
.notification-settings-field select option { background: var(--panel-strong); color: var(--text); }
.notification-settings-field select:focus-visible, .notification-settings-name-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.notification-settings-choices { display: grid; gap: 8px; }
.notification-settings-choices label { display: flex; align-items: center; gap: 10px; min-height: 41px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; }
.notification-settings-choices label:has(input:checked) { border-color: rgb(var(--accent-rgb) / .5); background: rgb(var(--accent-rgb) / .12); }
.notification-settings-choices input { accent-color: var(--accent); }
.notification-settings-choices label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.notification-settings-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.notification-settings-master input, .notification-settings-switch-row input { appearance: none; position: relative; flex: 0 0 42px; width: 42px; height: 24px; margin: 0; border: 1px solid var(--line); border-radius: 99px; background: var(--bg-soft); cursor: pointer; }
.notification-settings-master input::after, .notification-settings-switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .18s ease; }
.notification-settings-master input:checked, .notification-settings-switch-row input:checked { border-color: var(--accent); background: var(--accent); }
.notification-settings-master input:checked::after, .notification-settings-switch-row input:checked::after { background: #fff; transform: translateX(18px); }
.notification-settings-master input:focus-visible, .notification-settings-switch-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.notification-settings-name-field { display: flex; align-items: center; gap: 8px; }
.notification-settings-name-field small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.notification-settings-hint { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-settings-preview { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-soft); box-shadow: 0 18px 34px -22px rgb(15 23 42 / .9), 0 10px 20px -16px rgb(0 0 0 / .95); }
.notification-settings-preview-mark { display: grid; place-items: center; flex: 0 0 38px; height: 38px; padding: 4px; border-radius: 10px; background: rgb(var(--accent-rgb) / .15); color: var(--accent); }
.notification-settings-preview div { flex: 1; min-width: 0; }
.notification-settings-preview strong, .notification-settings-preview small { display: block; overflow-wrap: anywhere; }
.notification-settings-preview strong { color: var(--text); font-size: 11px; }
.notification-settings-preview small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.notification-settings-preview time { align-self: start; color: var(--muted); font-size: 9px; white-space: nowrap; }
.notification-settings-minor { margin-top: 25px; padding-top: 3px; border-top: 1px solid var(--line); }
.notification-settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.notification-settings-actions p { margin: 0; color: var(--muted); font-size: 11px; }
@media (max-width: 930px) {
    .notification-settings-columns { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .notification-settings-banner { flex-wrap: wrap; padding: 16px; }
    .notification-settings-master { width: 100%; justify-content: space-between; }
    .notification-settings-card { padding: 17px; }
    .notification-settings-actions { align-items: stretch; flex-direction: column; }
}
