:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    background: #07111f;
    color: #eef6ff;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #07111f;
}

nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
}

nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 7px;
    color: #8dc5ff;
    text-decoration: none;
}

nav a[aria-current="page"] {
    background: #132a45;
    color: #ffffff;
}

main {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 8px 10px 18px;
}

.card {
    width: 100%;
    padding: 14px;
    border: 1px solid #24415f;
    border-radius: 12px;
    background: #10243d;
}

h1 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    line-height: 1.25;
}

h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

p,
dl,
form {
    margin: 0;
}

form + form,
.message + form,
.result + form {
    margin-top: 10px;
}

label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 650;
}

input,
select,
textarea,
button {
    width: 100%;
    min-height: 44px;
    border: 1px solid #3b5876;
    border-radius: 8px;
    padding: 9px 10px;
    font: inherit;
}

.auth-main,
.panel-main {
    display: grid;
    min-height: 100vh;
    align-items: center;
}
.auth-main { justify-items:center; padding-inline:16px; }

.auth-card,
.blank-panel {
    width: 100%;
    padding: 14px;
    border: 1px solid #24415f;
    border-radius: 12px;
    background: #10243d;
}

.eyebrow {
    margin-bottom: 5px;
    color: #8dc5ff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.intro {
    margin-bottom: 10px;
    color: #bfd0e2;
    font-size: .92rem;
}

.field + .field {
    margin-top: 8px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
}

.auth-links a,
.panel-nav a {
    color: #8dc5ff;
}

.otp-input {
    letter-spacing: .3em;
    text-align: center;
}

input,
select,
textarea {
    background: #071727;
    color: #ffffff;
}

textarea {
    resize: vertical;
}

small,
.muted {
    color: #aebfd1;
    font-size: .82rem;
}

button {
    margin-top: 10px;
    border-color: #52a7ff;
    background: #4aa2fa;
    color: #06111c;
    font-weight: 750;
    cursor: pointer;
}

button:hover {
    background: #69b2fb;
}

button:active {
    transform: translateY(1px);
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: .55;
}

a:focus-visible,
input:focus-visible,
button:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 2px;
}

.message {
    margin: 0 0 10px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.error {
    border-color: #b65769;
    background: #56202a;
}

.success {
    border-color: #3b8d69;
    background: #174936;
}

.warning {
    border-color: #a98232;
    background: #4a3917;
}

.info {
    border-color: #397caf;
    background: #173b59;
}

.result {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 6px 8px;
    margin: 0 0 10px;
}

.result dt {
    color: #b7c9dc;
    font-weight: 650;
}

.result dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.panel-header {
    border-bottom: 1px solid #1c3551;
    background: #0b1b2d;
}

.panel-header-inner {
    display: flex;
    width: 100%;
    max-width: 760px;
    min-height: 52px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
}

.brand {
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.admin-menu {
    position: relative;
}

.admin-menu summary {
    min-width: 76px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #3b5876;
    border-radius: 8px;
    color: #eef6ff;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    list-style: none;
}

.admin-menu summary::-webkit-details-marker { display: none; }

.panel-nav {
    position: absolute;
    z-index: 20;
    top: 46px;
    right: 0;
    display: grid;
    width: min(560px, calc(100vw - 20px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid #24415f;
    border-radius: 10px;
    background: #10243d;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.panel-nav section {
    display: grid;
    align-content: start;
    gap: 2px;
}

.panel-nav section strong {
    padding: 4px 9px;
    color: #aebfd1;
    font-size: .78rem;
    text-transform: uppercase;
}

.panel-nav a,
.link-button {
    display: inline-flex;
    width: auto;
    min-height: 40px;
    margin: 0;
    align-items: center;
    border: 0;
    border-radius: 7px;
    padding: 6px 9px;
    background: transparent;
    color: #8dc5ff;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
}

.panel-nav a[aria-current='page'] {
    background: #132a45;
    color: #ffffff;
}

.link-button:hover,
.panel-nav a:hover {
    background: #132a45;
}

.nav-form {
    margin: 0;
}

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

.stat-card {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #24415f;
    border-radius: 10px;
    background: #10243d;
    color: #bfd0e2;
    text-decoration: none;
}

.stat-card strong { color: #fff; font-size: 1.35rem; }
.today-wallets { margin-top: 10px; padding: 14px; border: 1px solid #24415f; border-radius: 10px; background: #10243d; }
.today-wallets dl { display: grid; gap: 8px; }
.today-wallets dl div { display: flex; justify-content: space-between; gap: 10px; }
.today-wallets dt { color: #aebfd1; }
.today-wallets dd { margin: 0; font-weight: 700; }
.today-wallets dd { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.inline-action { margin: 0; }
.inline-action button { width: auto; min-height: 34px; padding: 7px 11px; }
.address-result { display: grid; gap: 9px; text-align: center; }
.address-result code { padding: 9px; border: 1px solid #315170; border-radius: 8px; background: #071727; overflow-wrap: anywhere; color: #dff3ff; }
.address-qr { display: block; width: 148px; height: 148px; margin: 0 auto; border-radius: 8px; background: #fff; }
.branded-address-image { display: block; width: min(100%, 360px); height: auto; margin: 4px auto; border-radius: 16px; box-shadow: 0 18px 45px rgba(0, 0, 0, .28); }
.generated-brand {
    display: inline-flex;
    width: fit-content;
    margin: 2px auto 0;
    padding: 7px 12px;
    border: 1px solid rgba(63, 224, 172, .35);
    border-radius: 999px;
    align-items: center;
    gap: 6px;
    color: #cffff0;
    background: linear-gradient(135deg, rgba(30, 124, 91, .38), rgba(21, 72, 91, .42));
    box-shadow: 0 8px 22px rgba(24, 192, 142, .1), inset 0 1px rgba(255, 255, 255, .08);
    text-decoration: none;
}
.generated-brand span { color: #4be9ae; font-weight: 800; }
.generated-brand strong { color: #fff; }
.expiry-panel {
    display: flex;
    padding: 9px 11px;
    border: 1px solid rgba(255, 190, 74, .28);
    border-radius: 9px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #f5dba9;
    background: rgba(92, 59, 12, .24);
}
.expiry-countdown {
    min-width: 58px;
    padding: 4px 8px;
    border-radius: 7px;
    color: #fff3c4;
    background: rgba(238, 164, 43, .2);
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 0 0 1px rgba(255, 198, 94, .18);
}
.expiry-countdown.is-expired { color: #ffd2d8; background: rgba(168, 44, 62, .26); }
.reference-id {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #7f96ad;
    font-size: .69rem;
}
.reference-id span {
    flex: 0 0 auto;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.address-result .reference-id code {
    min-width: 0;
    padding: 3px 6px;
    border-color: rgba(91, 133, 173, .24);
    color: #9eb4c9;
    background: rgba(5, 18, 31, .58);
    font-size: .67rem;
}
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); align-items: start; gap: 12px; }
.plan-card { display: flex; min-width: 0; min-height: 250px; flex-direction: column; gap: 12px; overflow: hidden; }
.plan-card-head { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }
.plan-card-head h2 { margin: 0; }
.plan-card-head .status { flex: 0 0 auto; }
.plan-price { display: flex; align-items: baseline; gap: 6px; color: #fff; }
.plan-price strong { font-size: 1.65rem; line-height: 1; }
.plan-price span { color: #8fa8c0; font-size: .75rem; font-weight: 700; }
.plan-facts { display: grid; gap: 7px; }
.plan-facts p { display: flex; margin: 0; justify-content: space-between; gap: 10px; color: #8fa8c0; }
.plan-facts strong { color: #dcecff; }
.plan-current-note { margin: auto 0 0; color: #8fa8c0; }
.plan-select-form { width: 100%; margin-top: auto; }
.plan-select-form button { width: 100%; }
.payment-head { width: min(680px,100%); margin-inline: auto; }
.plan-checkout { display: grid; width: min(680px,100%); margin-inline: auto; gap: 14px; text-align: center; }
.plan-checkout-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.plan-checkout-summary div { display: grid; gap: 4px; padding: 10px; border: 1px solid rgba(85,210,220,.22); border-radius: 9px; background: rgba(6,25,43,.56); }
.plan-checkout-summary span { color: #8faac0; font-size: .72rem; }
.plan-checkout-qr { width: 180px; margin-inline: auto; padding: 10px; border-radius: 12px; background: #fff; }
.plan-checkout-qr svg { display: block; width: 100%; height: auto; }
.plan-checkout-note { margin: 0; padding: 11px; border-radius: 9px; color: #c7f7f1; background: rgba(26,126,112,.2); }
.plan-checkout-meta { display: grid; gap: 5px; color: #9db6ca; }
.plan-checkout-meta span:first-child { color: #52e5cb; font-weight: 800; }
.plan-checkout-meta small { overflow-wrap: anywhere; }
@media (max-width:600px) { .plan-checkout-summary { grid-template-columns: 1fr; } }
.plan-wallet-address { display: block; width: 100%; max-width: 100%; padding: 8px; overflow-wrap: anywhere; word-break: break-all; text-align: center; font-size: .7rem; }
.report-card .pager form { margin: 0; }
.report-card .pager button { width: auto; }
.user-report-panel { width: 100%; }
.user-report-panel .report-count { color: #9db1c6; }
.user-report-panel .report-count strong { color: #fff; }
.user-report-panel .empty-report { padding: 22px 10px; text-align: center; color: #8399af; }
.user-report-panel .pagination { margin-top: 10px; }
.user-report-panel .small-button { white-space: nowrap; }

@media (max-width: 599px) {
    .expiry-panel { align-items: stretch; flex-direction: column; }
    .expiry-countdown { width: 100%; }
    .reference-id { align-items: flex-start; flex-direction: column; }
    .address-result .reference-id code { width: 100%; }
    .user-report-panel .report-toolbar { align-items: stretch; flex-direction: column; }
    .user-report-panel .search-form { flex-basis: auto; }
    .user-report-panel .search-form input { max-width: none; }
}

.panel-main {
    display: block;
    max-width: 1120px;
    min-height: calc(100vh - 53px);
    padding-top: 12px;
}

.blank-panel {
    min-height: 120px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.primary-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border-radius: 8px;
    padding: 8px 12px;
    background: #4aa2fa;
    color: #06111c;
    font-weight: 750;
    text-decoration: none;
}

.page-head h1 {
    margin-bottom: 3px;
}

.form-card {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 10px;
}

.section-gap {
    margin-top: 10px;
}

.report-panel {
    padding: 10px;
}

.report-toolbar,
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.report-toolbar {
    margin-bottom: 9px;
}

.search-form,
.pagination form {
    display: flex;
    flex: 1 1 280px;
    justify-content: flex-end;
    gap: 6px;
}

.search-form input {
    max-width: 280px;
}

.search-form button,
.small-button,
.pagination button {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 6px 9px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #24415f;
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: .88rem;
}

.wide-table {
    min-width: 1050px;
}

th,
td {
    padding: 8px;
    border-bottom: 1px solid #24415f;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #0b1b2d;
    color: #c9d8e8;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td form {
    margin: 0;
}

.address-text {
    min-width: 230px;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .8rem;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border-radius: 999px;
    padding: 3px 8px;
    background: #24394e;
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.status.active,
.status.sufficient {
    background: #174936;
    color: #c9f7e1;
}

.status.inactive,
.status.empty {
    background: #56202a;
    color: #ffd7df;
}

.status.low {
    background: #4a3917;
    color: #ffe3a2;
}

.pagination {
    margin-top: 9px;
}

.row-actions {
    min-width: 150px;
}

.row-actions summary {
    color: #8dc5ff;
    cursor: pointer;
    font-weight: 700;
}

.row-actions form {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #24415f;
}

.row-actions label {
    margin: 0;
    font-size: .78rem;
}

.row-actions input,
.row-actions select {
    min-height: 36px;
    margin-top: 3px;
    padding: 6px 7px;
}

.secondary-button {
    border-color: #3b5876;
    background: #17324f;
    color: #eef6ff;
}

.danger-button {
    border-color: #b65769;
    background: #56202a;
    color: #ffffff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (min-width: 600px) {
    main {
        padding-top: 14px;
    }

    .card {
        padding: 16px;
    }

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

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

@media (max-width: 599px) {
    .panel-nav { grid-template-columns: 1fr; max-height: calc(100vh - 70px); overflow-y: auto; }

    .report-toolbar,
    .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form,
    .pagination form {
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .search-form input {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Final responsive user-panel sizing and layout balance. */
.user-app {
    font-size: 15px;
}

.user-app .panel-main {
    min-height: calc(100svh - 126px);
    padding-top: clamp(18px, 2.4vw, 30px);
    padding-bottom: 28px;
}

.user-app .panel-content {
    width: min(100%, 1280px);
}

.user-app .page-head {
    margin-bottom: 14px;
}

.user-app .page-head h1 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.user-app .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.user-app .stat-card {
    min-height: 108px;
    padding: 15px;
}

.user-app .stat-card strong {
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.user-app .panel-nav {
    width: min(94vw, 620px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
}

.user-app .panel-nav section {
    gap: 0;
    padding: 5px;
    border-radius: 10px;
}

.user-app .panel-nav section strong {
    padding: 4px 7px;
    font-size: .66rem;
}

.user-app .panel-nav a,
.user-app .panel-nav .link-button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: .82rem;
}

.centered-form-page .panel-main {
    display: grid;
    min-height: calc(100svh - 136px);
    align-content: center;
}

.centered-form-page .panel-content {
    width: min(100%, 660px);
}

.centered-form-page .form-card {
    padding: clamp(14px, 2.4vw, 20px);
}

.app-footer {
    width: min(calc(100% - 24px), 1280px);
    min-height: 46px;
    padding: 12px 4px 18px;
    border-top: 1px solid rgba(137, 174, 235, .12);
    align-items: center;
    color: #7187a7;
}

.app-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.app-footer a {
    color: #82bfff;
    text-decoration: none;
}

.app-footer a:hover {
    color: #b6dcff;
}

@media (max-width: 960px) {
    .user-app .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 759px) {
    .user-app {
        font-size: 14px;
    }

    .user-app .panel-header-inner {
        min-height: 58px;
        padding: 7px 12px;
    }

    .user-app .panel-header .brand b {
        font-size: .9rem;
    }

    .user-app .admin-menu summary {
        min-width: 80px;
        min-height: 38px;
        padding: 7px 10px;
        font-size: .82rem;
    }

    .user-app .panel-nav {
        top: 62px;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100svh - 70px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
    }

    .user-app .panel-main {
        min-height: calc(100svh - 116px);
        padding: 16px 10px 22px;
    }

    .user-app .page-head {
        margin-bottom: 11px;
    }

    .user-app .page-head h1 {
        font-size: 1.3rem;
        line-height: 1.15;
    }

    .user-app .eyebrow {
        font-size: .68rem;
    }

    .user-app .card,
    .user-app .form-card,
    .user-app .report-card {
        border-radius: 13px;
    }

    .user-app .stat-card {
        min-height: 92px;
        padding: 12px;
        border-radius: 13px;
    }

    .user-app .stat-card strong {
        font-size: 1.12rem;
    }

    .user-app input,
    .user-app select,
    .user-app textarea,
    .user-app button,
    .user-app .button {
        min-height: 42px;
        font-size: .88rem;
    }

    .docs-section {
        margin-bottom: 10px;
        padding: 12px;
    }

    .docs-section h2 {
        font-size: 1rem;
    }

    .docs-section p,
    .docs-section li {
        font-size: .85rem;
        line-height: 1.5;
    }

    .docs-section pre {
        padding: 10px;
        border-radius: 9px;
        font-size: 10.5px;
        line-height: 1.5;
    }

    .branded-address-image {
        width: min(100%, 300px);
    }

    .app-footer {
        min-height: 58px;
        padding: 11px 6px 16px;
        gap: 5px;
        font-size: .68rem;
    }

    .app-footer nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .user-app .panel-nav {
        grid-template-columns: 1fr;
    }

    .user-app .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .user-app .stat-card {
        min-height: 84px;
    }

    .centered-form-page .panel-main {
        align-content: start;
    }

    .docs-actions,
    .docs-actions form,
    .docs-actions button {
        width: 100%;
    }

    .docs-head {
        gap: 10px;
    }
}

.api-overview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.api-overview-grid article { display:grid; min-width:0; gap:8px; }
.api-overview-grid article > span { color:var(--aurora-muted); font-size:.76rem; }
.api-overview-grid strong { overflow-wrap:anywhere; font-size:1rem; }
.api-secret { display:grid; gap:14px; margin-bottom:14px; border-color:rgba(65,226,208,.36)!important; }
.api-secret code { display:block; padding:13px; overflow-wrap:anywhere; border:1px dashed rgba(65,226,208,.35); border-radius:11px; color:#bffdf3; background:rgba(3,12,25,.7); }
.api-actions { margin:14px 0; }
.danger-button { border-color:#ff709e!important; background:linear-gradient(100deg,#ff709e,#bb5dff)!important; }
.docs-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; }
.docs-actions { display:flex; flex-wrap:wrap; gap:8px; }
.docs-actions form,.docs-actions button { width:auto; margin:0; }
.docs-section { margin-bottom:14px; }
.docs-section h2 { margin-bottom:9px; font-size:1.18rem; }
.docs-section h3 { margin:16px 0 7px; color:#bcd1ed; font-size:.85rem; }
.docs-section p,.docs-section li { color:#a9bad2; }
.docs-section li + li { margin-top:6px; }
.docs-section pre { max-width:100%; margin:10px 0; padding:14px; overflow:auto; border:1px solid rgba(137,174,235,.15); border-radius:12px; color:#bffdf3; background:#050d1b; font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; }
.docs-endpoint,.endpoint { display:inline-flex; width:max-content; max-width:100%; margin-bottom:10px; padding:7px 10px; overflow-wrap:anywhere; border:1px solid rgba(65,226,208,.24); border-radius:9px; color:#aef9ed; background:rgba(65,226,208,.07); font:700 .74rem ui-monospace,SFMono-Regular,Consolas,monospace; }
.endpoint b { margin-right:8px; color:var(--aurora-cyan); }
@media(max-width:760px){.api-overview-grid{grid-template-columns:1fr}.docs-head{align-items:flex-start;flex-direction:column}.docs-actions{width:100%}.docs-actions form,.docs-actions button{flex:1 1 150px}}
@media print {
 body.user-app { color:#172235!important; background:#fff!important; }
 .panel-header,.app-ambient,.app-footer,.docs-actions,.user-app>.message.error { display:none!important; }
 .panel-main { padding:0!important; }
 .panel-content { width:100%!important; }
 .user-app .card,.docs-section { break-inside:avoid; border:1px solid #cbd5e1!important; color:#172235!important; background:#fff!important; box-shadow:none!important; }
 .docs-section p,.docs-section li,.page-head p { color:#40516a!important; }
 .docs-section pre { white-space:pre-wrap; color:#172235!important; background:#f3f6fa!important; }
 .endpoint,.docs-endpoint { color:#075e54!important; background:#edfdf9!important; }
}

/* Admin presentation theme: visual hierarchy only; existing type and control sizes remain unchanged. */
:root {
    --admin-surface-1: #0c1d31;
    --admin-surface-2: #112943;
    --admin-line: #274968;
    --admin-blue: #55a9ff;
    --admin-cyan: #35d0c5;
    --admin-green: #42cf88;
    --admin-amber: #f1b84b;
    --admin-violet: #a986ff;
    --admin-rose: #ef6f89;
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(44, 116, 183, .12), transparent 28%),
        radial-gradient(circle at 92% 100%, rgba(53, 208, 197, .06), transparent 30%),
        #07111f;
}

.card,
.auth-card,
.blank-panel,
.report-panel {
    border-color: var(--admin-line);
    background: linear-gradient(145deg, var(--admin-surface-2), var(--admin-surface-1));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

input,
select,
textarea {
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #52799d;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--admin-cyan);
    background: #0a2034;
    box-shadow: 0 0 0 3px rgba(53, 208, 197, .12);
}

button {
    border-color: #67b6ff;
    background: linear-gradient(135deg, #5ab1ff, #388de4);
}

button:hover {
    background: linear-gradient(135deg, #72beff, #449bf0);
    box-shadow: 0 7px 18px rgba(55, 143, 229, .22);
}

.panel-header {
    border-bottom-color: var(--admin-line);
    background: rgba(9, 27, 45, .96);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}

.panel-header-inner {
    max-width: 1120px;
}

.brand {
    text-shadow: 0 0 18px rgba(85, 169, 255, .3);
}

.admin-menu summary {
    border-color: #3e6487;
    background: linear-gradient(145deg, #102a45, #0a1d31);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.admin-menu[open] summary {
    border-color: var(--admin-cyan);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(53, 208, 197, .1);
}

.panel-nav {
    border-color: #315779;
    background: linear-gradient(145deg, #142d49, #0d2138);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .48);
}

.panel-nav section {
    padding-left: 5px;
    border-left: 2px solid var(--admin-blue);
}

.panel-nav section:nth-child(2) { border-left-color: var(--admin-cyan); }
.panel-nav section:nth-child(3) { border-left-color: var(--admin-violet); }
.panel-nav section:nth-child(4) { border-left-color: var(--admin-amber); }

.panel-nav a[aria-current='page'] {
    background: linear-gradient(90deg, rgba(85, 169, 255, .24), rgba(53, 208, 197, .08));
    box-shadow: inset 3px 0 var(--admin-cyan);
}

.link-button:hover,
.panel-nav a:hover {
    background: rgba(85, 169, 255, .12);
    color: #ffffff;
}

.stat-card {
    position: relative;
    overflow: hidden;
    border-color: var(--admin-line);
    background: linear-gradient(145deg, var(--admin-surface-2), var(--admin-surface-1));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.stat-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--admin-blue);
    content: '';
}

.stat-card:nth-child(4n+2)::before { background: var(--admin-cyan); }
.stat-card:nth-child(4n+3)::before { background: var(--admin-violet); }
.stat-card:nth-child(4n+4)::before { background: var(--admin-amber); }
.stat-card:last-child::before { background: var(--admin-rose); }

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #47769e;
    box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
}

.today-wallets {
    border-color: var(--admin-line);
    background: linear-gradient(100deg, rgba(53, 208, 197, .09), transparent 45%), var(--admin-surface-2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .13);
}

.primary-action {
    border: 1px solid #67b6ff;
    background: linear-gradient(135deg, #5ab1ff, #388de4);
    box-shadow: 0 7px 18px rgba(55, 143, 229, .2);
}

.primary-action:hover {
    background: linear-gradient(135deg, #72beff, #449bf0);
}

.table-wrap {
    border-color: var(--admin-line);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

th {
    background: #091c2f;
    box-shadow: inset 0 -1px #315777;
}

tbody tr:nth-child(even) { background: rgba(85, 169, 255, .025); }
tbody tr:hover { background: rgba(53, 208, 197, .065); }

.status.active,
.status.sufficient {
    background: linear-gradient(135deg, #176044, #174936);
    box-shadow: 0 0 0 1px rgba(66, 207, 136, .12);
}

.status.inactive,
.status.empty {
    background: linear-gradient(135deg, #702936, #56202a);
    box-shadow: 0 0 0 1px rgba(239, 111, 137, .12);
}

.status.low {
    background: linear-gradient(135deg, #654b18, #4a3917);
    box-shadow: 0 0 0 1px rgba(241, 184, 75, .12);
}

.secondary-button {
    border-color: #486d8e;
    background: linear-gradient(135deg, #214666, #17324f);
}

.danger-button {
    border-color: #d06a7d;
    background: linear-gradient(135deg, #7b2b3b, #56202a);
}

.error { box-shadow: inset 3px 0 var(--admin-rose); }
.success { box-shadow: inset 3px 0 var(--admin-green); }
.warning { box-shadow: inset 3px 0 var(--admin-amber); }
.info { box-shadow: inset 3px 0 var(--admin-blue); }

@media (max-width: 599px) {
    .panel-header-inner { max-width: 100%; }
    .stat-card:hover { transform: none; }
}

.centered-form-page .page-head,
.centered-form-page .message {
    width: 100%;
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.centered-form-page .page-head {
    justify-content: flex-start;
}

.consent-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.check-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin: 0;
    padding: 9px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(7, 23, 39, .5);
    font-weight: 500;
}

.check-field input {
    width: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--admin-cyan);
}

.legal-link {
    margin-top: 10px;
}

.legal-link a,
.legal-copy a {
    color: #8dc5ff;
}

.legal-copy {
    display: grid;
    gap: 10px;
}

.legal-copy h2,
.legal-copy p {
    margin: 0;
}

.user-panel-nav {
    width: min(320px, calc(100vw - 20px));
    grid-template-columns: 1fr;
}

.setup-shell {
    width: 100%;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.setup-shell .page-head {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.plan-pill {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    border: 1px solid rgba(53, 208, 197, .35);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(53, 208, 197, .1);
    color: #bffaf4;
    font-weight: 750;
    white-space: nowrap;
}

.plan-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--admin-cyan);
    box-shadow: 0 0 0 4px rgba(53, 208, 197, .12);
}

.setup-notice {
    margin-bottom: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(241, 184, 75, .4);
    border-left: 4px solid var(--admin-amber);
    border-radius: 5px 10px 10px 5px;
    background: linear-gradient(90deg, rgba(241, 184, 75, .16), rgba(241, 184, 75, .06));
    color: #ffe7b4;
}

.setup-notice strong,
.setup-notice p {
    display: block;
    margin: 0;
}

.setup-notice p {
    margin-top: 3px;
    color: #e6d7b7;
}

.setup-form {
    display: grid;
    gap: 12px;
}

.setup-section {
    max-width: none;
    margin: 0;
}

.setup-section-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 13px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--admin-line);
}

.setup-section-head > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--admin-cyan), #238f9a);
    color: #031a20;
    font-weight: 850;
}

.setup-section-head h2,
.setup-section-head p {
    margin: 0;
}

.setup-section-head p {
    margin-top: 2px;
    color: #aebfd1;
}

.setup-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 12px;
}

.setup-fields .field label {
    margin-top: 0;
}

.setup-fields small,
.check-field small {
    display: block;
    margin-top: 3px;
    color: #9fb3c8;
    font-weight: 500;
}

.address-input {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.setup-shell .check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border-color: #2c506f;
    background: rgba(7, 23, 39, .55);
    cursor: pointer;
}

.setup-shell .check-field:hover {
    border-color: #47799f;
    background: rgba(20, 52, 79, .65);
}

.setup-shell .check-field.critical {
    border-color: rgba(241, 184, 75, .42);
    background: rgba(241, 184, 75, .07);
}

.setup-shell .check-field input[type='checkbox'] {
    appearance: auto;
    -webkit-appearance: checkbox;
    display: inline-block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex: 0 0 20px;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--admin-cyan);
}

.setup-shell .check-field > span {
    min-width: 0;
}

.setup-shell .check-field strong {
    display: block;
    color: #eef6ff;
}

.setup-submit {
    margin-top: 0;
}

@media (min-width: 600px) {
    .setup-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .setup-fields .full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 599px) {
    .setup-shell .page-head {
        align-items: flex-start;
    }
}

/* Focused secure-access backdrop. */
.auth-main { position:relative; isolation:isolate; overflow:hidden; max-width:none; padding-inline:16px; background:linear-gradient(rgba(78,145,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(78,145,255,.035) 1px,transparent 1px),radial-gradient(circle at 18% 25%,rgba(53,208,197,.18),transparent 24rem),radial-gradient(circle at 82% 72%,rgba(169,134,255,.16),transparent 27rem); background-size:32px 32px,32px 32px,auto,auto; }
.auth-main::before,.auth-main::after { position:absolute; z-index:-1; width:min(42vw,520px); aspect-ratio:1; border:1px solid rgba(85,169,255,.12); border-radius:50%; content:""; background:repeating-radial-gradient(circle,transparent 0 30px,rgba(85,169,255,.055) 31px 32px); box-shadow:0 0 80px rgba(53,208,197,.09); }
.auth-main::before { top:-18%; left:-8%; }
.auth-main::after { right:-10%; bottom:-25%; border-color:rgba(169,134,255,.12); }
.auth-card { width:100%; max-width:440px; margin-inline:auto; justify-self:center; border-color:rgba(92,170,244,.34); background:linear-gradient(145deg,rgba(19,45,75,.94),rgba(8,23,42,.94)); box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.06),0 0 45px rgba(53,208,197,.06); backdrop-filter:blur(18px); }
.balance-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.balance-summary .stat-card { min-height:auto; }
.transfer-blocked { border-left:3px solid #f0b53c; background:rgba(240,181,60,.12); }
@media (max-width:520px) { .balance-summary { grid-template-columns:1fr; } }

.settlement-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
.settlement-action { display:flex; justify-content:flex-end; margin:0 0 12px; }
.settlement-action button { width:auto; min-width:210px; margin:0; }
@media (max-width:900px) { .settlement-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .settlement-summary { grid-template-columns:1fr; } .settlement-action button { width:100%; } }

/* Coinvro Aurora interface: shared authentication and user workspace. */
:root {
    --aurora-bg: #050b18;
    --aurora-panel: rgba(13, 27, 52, .78);
    --aurora-panel-solid: #0d1b34;
    --aurora-line: rgba(138, 177, 255, .17);
    --aurora-text: #f4f8ff;
    --aurora-muted: #8fa6c5;
    --aurora-blue: #62a5ff;
    --aurora-cyan: #41e2d0;
    --aurora-violet: #a77bff;
    --aurora-pink: #ff6eb4;
    --aurora-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

body.auth-body,
body.user-app {
    color: var(--aurora-text);
    background: var(--aurora-bg);
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(145deg, var(--aurora-cyan), #507cff 52%, var(--aurora-violet));
    box-shadow: inset 0 1px rgba(255,255,255,.35), 0 10px 30px rgba(80,124,255,.3);
    transform: perspective(80px) rotateY(-8deg) rotateX(5deg);
}

/* Authentication experience */
.auth-body { overflow-x: hidden; }
.auth-main {
    position: relative;
    display: grid;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    padding: 20px;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(rgba(104,145,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104,145,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 12% 15%, rgba(65,226,208,.16), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(167,123,255,.18), transparent 32%),
        #050b18;
    background-size: 38px 38px, 38px 38px, auto, auto, auto;
}
.auth-main::after {
    position: absolute;
    z-index: -2;
    width: 64vw;
    height: 64vw;
    border-radius: 50%;
    content: "";
    background: conic-gradient(from 120deg, transparent, rgba(65,226,208,.08), transparent 30%, rgba(167,123,255,.1), transparent 66%);
    filter: blur(30px);
    animation: aurora-spin 24s linear infinite;
}
.auth-orbit { position:absolute; z-index:-1; border:1px solid rgba(120,164,255,.12); border-radius:50%; pointer-events:none; }
.auth-orbit::before,.auth-orbit::after { position:absolute; border:inherit; border-radius:inherit; content:""; inset:11%; }
.auth-orbit::after { inset:23%; }
.auth-orbit-one { width:480px; height:480px; top:-260px; right:-170px; }
.auth-orbit-two { width:560px; height:560px; bottom:-350px; left:-230px; border-color:rgba(65,226,208,.1); }
.auth-story { display:none; }
.auth-card {
    position: relative;
    width: min(100%, 460px);
    padding: clamp(22px, 5vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(139,179,255,.25);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(18,38,70,.93), rgba(8,18,36,.96));
    box-shadow: var(--aurora-shadow), inset 0 1px rgba(255,255,255,.06), 0 0 60px rgba(65,226,208,.05);
    backdrop-filter: blur(22px);
}
.auth-card-glow { position:absolute; width:180px; height:180px; top:-100px; right:-70px; border-radius:50%; background:rgba(98,165,255,.22); filter:blur(45px); pointer-events:none; }
.auth-card h1 { margin-bottom:8px; font-size:clamp(1.65rem,6vw,2.25rem); letter-spacing:-.035em; }
.auth-card .intro { margin-bottom:22px; color:var(--aurora-muted); }
.auth-card label { color:#cbd9ef; font-size:.8rem; letter-spacing:.02em; }
.auth-card input { min-height:50px; border-color:rgba(137,174,235,.22); border-radius:12px; background:rgba(3,11,25,.68); box-shadow:inset 0 1px 8px rgba(0,0,0,.2); transition:border-color .2s,box-shadow .2s,transform .2s; }
.auth-card input:focus { border-color:var(--aurora-cyan); box-shadow:0 0 0 4px rgba(65,226,208,.1),inset 0 1px 8px rgba(0,0,0,.2); transform:translateY(-1px); }
.auth-card button:not(.link-button) { min-height:50px; margin-top:18px; border:0; border-radius:12px; background:linear-gradient(100deg,var(--aurora-cyan),var(--aurora-blue) 52%,var(--aurora-violet)); box-shadow:0 12px 28px rgba(80,124,255,.25),inset 0 1px rgba(255,255,255,.35); transition:transform .2s,filter .2s,box-shadow .2s; }
.auth-card button:not(.link-button):hover { filter:brightness(1.08); transform:translateY(-2px); box-shadow:0 16px 34px rgba(80,124,255,.34); }
.auth-card .auth-links { justify-content:space-between; padding-top:4px; }
.auth-card .auth-links a { color:#9ccaff; text-decoration:none; }
.auth-security-note { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:22px; color:#7187a7; font-size:.72rem; }
.auth-security-note span,.nav-security span { width:7px; height:7px; border-radius:50%; background:var(--aurora-cyan); box-shadow:0 0 12px var(--aurora-cyan); }
.auth-card .message { border-radius:12px; }

/* User workspace */
.user-app { min-height:100svh; background:radial-gradient(circle at 80% 0,rgba(96,108,255,.12),transparent 28rem),radial-gradient(circle at 8% 75%,rgba(65,226,208,.08),transparent 30rem),var(--aurora-bg); }
.app-ambient { position:fixed; z-index:0; inset:0; overflow:hidden; pointer-events:none; }
.app-ambient span { position:absolute; border:1px solid rgba(119,158,235,.08); border-radius:50%; }
.app-ambient span:nth-child(1){width:420px;height:420px;right:-180px;top:12%;box-shadow:inset 0 0 80px rgba(167,123,255,.03)}
.app-ambient span:nth-child(2){width:260px;height:260px;right:-45px;top:25%}
.app-ambient span:nth-child(3){width:380px;height:380px;left:-250px;bottom:-100px;border-color:rgba(65,226,208,.07)}
.panel-header { position:sticky; z-index:50; top:0; border-bottom:1px solid rgba(135,173,236,.15); background:rgba(5,12,26,.78); box-shadow:0 10px 40px rgba(0,0,0,.18); backdrop-filter:blur(20px); }
.panel-header-inner { width:min(100%,1440px); min-height:70px; margin:auto; padding:10px clamp(14px,3vw,32px); }
.panel-header .brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; }
.panel-header .brand > span:last-child { display:grid; }
.panel-header .brand b { font-size:1rem; line-height:1.15; }
.panel-header .brand small { color:#6f86a6; font-size:.62rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.panel-header .brand-mark { width:36px; height:36px; border-radius:11px; }
.admin-menu summary { display:flex; min-width:94px; min-height:42px; align-items:center; justify-content:center; gap:9px; border:1px solid rgba(137,174,235,.25); border-radius:12px; color:#eaf2ff; background:linear-gradient(145deg,rgba(24,48,82,.9),rgba(11,25,48,.9)); box-shadow:inset 0 1px rgba(255,255,255,.06); cursor:pointer; list-style:none; }
.admin-menu summary::-webkit-details-marker { display:none; }
.menu-icon { display:grid; width:18px; gap:3px; }
.menu-icon i { height:2px; border-radius:2px; background:linear-gradient(90deg,var(--aurora-cyan),var(--aurora-blue)); transition:transform .2s,opacity .2s; }
.admin-menu[open] .menu-icon i:nth-child(1){transform:translateY(5px) rotate(45deg)}
.admin-menu[open] .menu-icon i:nth-child(2){opacity:0}
.admin-menu[open] .menu-icon i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
.panel-nav { top:62px; right:clamp(10px,3vw,32px); width:min(94vw,760px); max-height:calc(100svh - 78px); padding:14px; overflow:auto; border:1px solid rgba(137,174,235,.2); border-radius:18px; background:rgba(7,17,35,.97); box-shadow:0 26px 70px rgba(0,0,0,.48); backdrop-filter:blur(24px); }
.panel-nav section { border:1px solid rgba(137,174,235,.1); border-radius:12px; background:rgba(18,37,67,.45); }
.panel-nav section strong { color:#748bab; }
.panel-nav a { border-radius:9px; color:#aec3df; transition:color .18s,background .18s,transform .18s; }
.panel-nav a:hover { color:#fff; background:rgba(98,165,255,.11); transform:translateX(3px); }
.panel-nav a[aria-current='page'] { color:#fff; background:linear-gradient(90deg,rgba(65,226,208,.17),rgba(98,165,255,.16)); box-shadow:inset 3px 0 var(--aurora-cyan); }
.nav-security { display:flex; align-items:center; justify-content:center; gap:7px; color:#7187a7; font-size:.72rem; }
.panel-main { position:relative; z-index:1; display:block; width:100%; max-width:none; min-height:calc(100svh - 112px); padding:clamp(18px,3vw,38px) clamp(12px,3vw,32px) 40px; }
.panel-content { width:min(100%,1360px); margin-inline:auto; }
.page-head { margin-bottom:18px; }
.page-head h1 { font-size:clamp(1.45rem,3vw,2rem); letter-spacing:-.035em; }
.page-head p { color:var(--aurora-muted); }
.user-app .eyebrow { color:var(--aurora-cyan); letter-spacing:.12em; }
.user-app .card,.user-app .stat-card,.user-app .form-card,.user-app .report-card { border-color:var(--aurora-line); border-radius:18px; background:linear-gradient(145deg,rgba(18,38,70,.82),rgba(9,21,42,.88)); box-shadow:0 16px 44px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.045); backdrop-filter:blur(14px); }
.dashboard-grid { gap:12px; }
.stat-card { position:relative; min-height:126px; padding:17px; overflow:hidden; transition:transform .22s,border-color .22s,box-shadow .22s; }
.stat-card::after { position:absolute; width:110px; height:110px; right:-58px; bottom:-64px; border:1px solid rgba(98,165,255,.12); border-radius:50%; content:""; box-shadow:0 0 0 18px rgba(98,165,255,.025),0 0 0 36px rgba(98,165,255,.018); }
.stat-card:hover { transform:translateY(-4px); border-color:rgba(98,165,255,.32); box-shadow:0 22px 50px rgba(0,0,0,.28),0 0 32px rgba(98,165,255,.06); }
.stat-card strong { font-size:clamp(1.15rem,2vw,1.5rem); letter-spacing:-.02em; }
.stat-card small { color:#7189a9; }
.user-app input,.user-app select,.user-app textarea { min-height:48px; border-color:rgba(137,174,235,.2); border-radius:11px; background:rgba(3,11,25,.65); }
.user-app input:focus,.user-app select:focus,.user-app textarea:focus { border-color:var(--aurora-cyan); box-shadow:0 0 0 4px rgba(65,226,208,.09); }
.user-app button,.user-app .button { border-radius:11px; background:linear-gradient(100deg,var(--aurora-cyan),var(--aurora-blue)); box-shadow:0 10px 24px rgba(71,132,239,.18),inset 0 1px rgba(255,255,255,.25); transition:transform .18s,filter .18s; }
.user-app button:hover,.user-app .button:hover { filter:brightness(1.08); transform:translateY(-1px); }
.table-wrap { border-color:rgba(137,174,235,.16); border-radius:14px; background:rgba(5,15,31,.45); scrollbar-color:var(--aurora-blue) rgba(8,18,35,.8); }
.user-app table thead { background:rgba(24,49,82,.8); }
.user-app table th { color:#a8c4e7; }
.user-app table tr { transition:background .16s; }
.user-app table tbody tr:hover { background:rgba(98,165,255,.055); }
.plan-card { isolation:isolate; transition:transform .22s,border-color .22s; }
.plan-card:hover { transform:translateY(-5px); border-color:rgba(65,226,208,.32); }
.plan-checkout-qr { border:8px solid #fff; box-shadow:0 18px 48px rgba(0,0,0,.35),0 0 35px rgba(65,226,208,.12); }
.message { border-radius:12px; box-shadow:inset 0 1px rgba(255,255,255,.04); }
.app-footer { position:relative; z-index:1; display:flex; width:min(100%,1360px); margin:0 auto; padding:0 20px 24px; justify-content:space-between; gap:12px; color:#536985; font-size:.72rem; }

@media (min-width: 760px) {
    .auth-main { grid-template-columns:minmax(300px,560px) minmax(380px,460px); gap:clamp(40px,8vw,130px); padding:clamp(32px,6vw,90px); }
    .auth-story { display:flex; max-width:560px; flex-direction:column; align-items:flex-start; gap:28px; }
    .auth-brand { display:flex; align-items:center; gap:12px; color:#fff; font-size:1.1rem; font-weight:850; text-decoration:none; }
    .auth-story-copy { display:grid; gap:16px; }
    .auth-kicker { width:max-content; padding:7px 11px; border:1px solid rgba(65,226,208,.2); border-radius:999px; color:var(--aurora-cyan); background:rgba(65,226,208,.06); font-size:.72rem; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
    .auth-story h2 { max-width:520px; margin:0; font-size:clamp(2.8rem,5vw,5rem); line-height:.98; letter-spacing:-.065em; background:linear-gradient(125deg,#fff 25%,#a9d6ff 58%,#bfa7ff); -webkit-background-clip:text; color:transparent; }
    .auth-story p { max-width:510px; color:#8299b9; font-size:1rem; }
    .auth-trust { display:flex; flex-wrap:wrap; gap:9px; }
    .auth-trust span { padding:8px 11px; border:1px solid rgba(137,174,235,.13); border-radius:10px; color:#8299b9; background:rgba(13,28,53,.45); font-size:.72rem; }
}

@media (max-width: 759px) {
    .auth-main { padding:14px; }
    .auth-card { border-radius:20px; }
    .panel-header-inner { min-height:62px; }
    .panel-nav { position:fixed; top:68px; right:10px; left:10px; width:auto; grid-template-columns:1fr; }
    .panel-main { padding-top:20px; }
    .stat-card:hover,.plan-card:hover { transform:none; }
    .app-footer { flex-direction:column; align-items:center; text-align:center; }
}

@media (max-width: 390px) {
    .panel-header .brand small { display:none; }
    .panel-header .brand-mark { width:33px; height:33px; }
    .admin-menu summary { min-width:82px; }
    .auth-card { padding:20px 16px; }
    .dashboard-grid { grid-template-columns:1fr; }
    .stat-card { min-height:112px; }
}

@keyframes aurora-spin { to { transform:rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
    .auth-main::after { animation:none; }
    .stat-card,.plan-card,.panel-nav a,.auth-card input,.auth-card button { transition:none; }
}

/* Clickable user summaries and compact report recovery actions. */
.stat-link { color:inherit; text-decoration:none; cursor:pointer; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.stat-link:hover,.stat-link:focus-visible { transform:translateY(-2px); border-color:#4ca8d9; box-shadow:0 14px 32px rgba(0,0,0,.25),0 0 0 1px rgba(53,208,197,.12); }
.stat-link small { display:block; margin-top:5px; color:#78bdf5; font-size:.7rem; font-weight:650; }
.user-report-panel .row-actions { display:flex; min-width:205px; align-items:center; gap:6px; }
.user-report-panel .row-actions button { width:auto; margin:0; white-space:nowrap; }

/* Footer rules stay last so the legacy theme cannot replace them. */
.user-app .app-footer {
    width: min(calc(100% - 24px), 1280px);
    min-height: 46px;
    padding: 12px 4px 18px;
    border-top: 1px solid rgba(137, 174, 235, .12);
    align-items: center;
    color: #7187a7;
}

@media (max-width: 759px) {
    .user-app .app-footer {
        min-height: 58px;
        padding: 11px 6px 16px;
        gap: 5px;
        font-size: .68rem;
    }
}
