/* ============================================================
   dz API · Premium Tech Theme
   ------------------------------------------------------------
   目标：深空底色 + 冷色极光 + 克制毛玻璃 + 精细高光
   性能：模糊只用于固定骨架/弹窗/首屏；不使用持续 JS 动画；
        页面过渡只跑 transform / opacity，移动端关闭 backdrop-filter。
   ============================================================ */

:root,
html[data-theme="dark"] {
    --bg: #04070d;
    --surface: rgba(10, 17, 29, .78);
    --surface-2: rgba(17, 28, 46, .62);
    --border: rgba(113, 176, 255, .16);
    --border-strong: rgba(113, 176, 255, .32);
    --text: #eef7ff;
    --text-soft: #a3b6cd;
    --text-faint: #6e829b;

    --primary: #46d8ff;
    --primary-deep: #1fb6e8;
    --primary-soft: rgba(70, 216, 255, .10);

    --amber: #ffc56d;
    --amber-soft: rgba(255, 197, 109, .10);
    --celadon: #5ff0c2;
    --celadon-soft: rgba(95, 240, 194, .10);
    --rust: #ff8492;
    --rust-soft: rgba(255, 132, 146, .10);
    --clay: #aabdd2;
    --clay-soft: rgba(170, 189, 210, .10);
    --plum: #b9a6ff;
    --plum-soft: rgba(185, 166, 255, .10);

    --r-xs: 7px;
    --r-sm: 9px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    --shadow-xs: 0 1px 0 rgba(255, 255, 255, .03) inset;
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 28px rgba(0, 0, 0, .28);
    --shadow-md: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 22px 60px rgba(0, 0, 0, .36);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 36px 100px rgba(0, 0, 0, .55);

    --brand-grad: linear-gradient(135deg, #64e8ff 0%, #2d8cff 52%, #28f0c2 100%);
    --glass-grad: linear-gradient(155deg, rgba(20, 34, 56, .74), rgba(7, 13, 24, .70));
    --glass-grad-soft: linear-gradient(155deg, rgba(20, 34, 56, .48), rgba(7, 13, 24, .44));
    --grid-line: rgba(105, 174, 255, .075);
    --aurora-a: rgba(40, 140, 255, .22);
    --aurora-b: rgba(0, 255, 206, .12);
    --noise: rgba(255, 255, 255, .02);
}

html[data-theme="light"] {
    --bg: #eef4fb;
    --surface: rgba(255, 255, 255, .78);
    --surface-2: rgba(242, 247, 255, .78);
    --border: rgba(34, 92, 160, .14);
    --border-strong: rgba(34, 92, 160, .26);
    --text: #0b1d32;
    --text-soft: #52677f;
    --text-faint: #7b8ea4;

    --primary: #006fce;
    --primary-deep: #005bb0;
    --primary-soft: rgba(0, 111, 206, .08);

    --amber: #9b6200;
    --amber-soft: rgba(255, 190, 70, .16);
    --celadon: #087a5b;
    --celadon-soft: rgba(0, 190, 140, .12);
    --rust: #c0263d;
    --rust-soft: rgba(220, 50, 70, .10);
    --clay: #5f7187;
    --clay-soft: rgba(95, 113, 135, .10);
    --plum: #6d4bd1;
    --plum-soft: rgba(109, 75, 209, .10);

    --shadow-xs: 0 1px 2px rgba(20, 50, 90, .05);
    --shadow-sm: 0 2px 8px rgba(18, 45, 80, .07);
    --shadow-md: 0 14px 36px rgba(18, 45, 80, .10);
    --shadow-lg: 0 28px 80px rgba(18, 45, 80, .17);

    --brand-grad: linear-gradient(135deg, #008ee6 0%, #0062d8 55%, #00a88a 100%);
    --glass-grad: linear-gradient(155deg, rgba(255, 255, 255, .84), rgba(244, 249, 255, .72));
    --glass-grad-soft: linear-gradient(155deg, rgba(255, 255, 255, .62), rgba(244, 249, 255, .48));
    --grid-line: rgba(40, 105, 180, .07);
    --aurora-a: rgba(0, 130, 255, .16);
    --aurora-b: rgba(0, 200, 160, .10);
    --noise: rgba(0, 30, 70, .02);
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    position: relative;
    background:
        radial-gradient(1100px 720px at 8% -12%, var(--aurora-a), transparent 62%),
        radial-gradient(900px 620px at 104% 4%, var(--aurora-b), transparent 58%),
        linear-gradient(180deg, #04070d 0%, #070d18 46%, #03060b 100%);
    background-attachment: fixed;
    color: var(--text);
}

html[data-theme="light"] body {
    background:
        radial-gradient(1100px 720px at 8% -12%, var(--aurora-a), transparent 62%),
        radial-gradient(900px 620px at 104% 4%, var(--aurora-b), transparent 58%),
        linear-gradient(180deg, #f2f8ff 0%, #eaf2fb 48%, #f7fbff 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(70% 40% at 50% -8%, rgba(110, 210, 255, .10), transparent 70%),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .22));
}

html[data-theme="light"] body::after {
    background:
        radial-gradient(70% 40% at 50% -8%, rgba(0, 140, 255, .10), transparent 70%),
        linear-gradient(180deg, transparent 60%, rgba(0, 40, 100, .03));
}

#app {
    position: relative;
    z-index: 1;
}

/* ---------- 全局排版 ---------- */

h1, h2, h3, h4 {
    text-wrap: balance;
}

::selection {
    background: rgba(70, 216, 255, .28);
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---------- 骨架：侧栏 / 顶栏 ---------- */

.sidebar {
    background:
        linear-gradient(180deg, rgba(7, 14, 26, .92), rgba(4, 9, 17, .82)),
        radial-gradient(120% 50% at 0% 0%, rgba(70, 216, 255, .08), transparent 60%);
    border-right: 1px solid var(--border);
    box-shadow: 1px 0 0 rgba(255, 255, 255, .025) inset, 24px 0 80px rgba(0, 0, 0, .18);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

html[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(240, 247, 255, .82));
}

.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(70, 216, 255, .42) 22%, transparent 78%);
    opacity: .55;
}

.brand {
    border-bottom-color: var(--border);
    padding-top: 18px;
    padding-bottom: 16px;
}

.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(70, 216, 255, .18), rgba(24, 84, 160, .06)),
        rgba(4, 12, 24, .6);
    border: 1px solid rgba(70, 216, 255, .35);
    color: #9feeff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .06) inset,
        0 0 28px rgba(70, 216, 255, .22),
        0 8px 24px rgba(0, 0, 0, .35);
}

html[data-theme="light"] .brand__mark {
    background: linear-gradient(145deg, #e4f8ff, #dcecff);
    border-color: rgba(0, 111, 206, .25);
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(0, 111, 206, .14);
}

.brand__name {
    font-weight: 750;
    letter-spacing: -.015em;
    font-size: 15px;
}

.brand__sub {
    color: var(--primary);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .9;
}

.nav {
    padding: 14px 12px 20px;
}

.nav__group {
    font-size: 10px;
    letter-spacing: .14em;
    padding: 18px 10px 7px;
    color: var(--text-faint);
}

.nav__item {
    position: relative;
    gap: 11px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.nav__item:hover {
    background: rgba(70, 216, 255, .055);
    border-color: rgba(70, 216, 255, .12);
    color: var(--text);
    transform: translateX(2px);
}

.nav__item.is-active {
    background:
        linear-gradient(90deg, rgba(70, 216, 255, .16), rgba(70, 216, 255, .035));
    border-color: rgba(70, 216, 255, .22);
    color: #baf3ff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .04) inset,
        0 0 26px rgba(70, 216, 255, .10);
}

html[data-theme="light"] .nav__item.is-active {
    background: linear-gradient(90deg, rgba(0, 111, 206, .11), rgba(0, 111, 206, .02));
    border-color: rgba(0, 111, 206, .20);
    color: var(--primary);
    box-shadow: none;
}

.nav__item.is-active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 99px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.nav__item .ic {
    opacity: .86;
}

.sidebar__foot {
    border-top-color: var(--border);
    font-size: 11px;
    letter-spacing: .01em;
    color: var(--text-faint);
}

.topbar {
    background: rgba(5, 10, 19, .68);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .025) inset;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

html[data-theme="light"] .topbar {
    background: rgba(255, 255, 255, .72);
}

.topbar__title {
    font-weight: 720;
    letter-spacing: -.015em;
}

.topbar__desc {
    color: var(--text-faint);
}

.topbar__role,
.topbar__user {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .035);
}

.content {
    padding-top: 22px;
}

.content > * {
    animation: dz-rise .42s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes dz-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 卡片 / 面板 ---------- */

.page-head,
.card,
.provider,
.stat,
.login-card,
.modal,
.aigw-modal,
.notice-card {
    border: 1px solid var(--border);
    background: var(--glass-grad);
    box-shadow: var(--shadow-sm);
}

.card {
    position: relative;
    border-radius: var(--r-lg);
    transition: transform .18s ease, border-color .18s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .07) inset,
        0 -1px 0 rgba(0, 0, 0, .12) inset;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.page-head {
    border-radius: var(--r-lg);
    background:
        linear-gradient(100deg, rgba(70, 216, 255, .055), transparent 46%),
        var(--glass-grad-soft);
}

.card__head {
    border-bottom-color: var(--border);
    padding: 16px 18px;
}

.card__title {
    font-weight: 700;
    letter-spacing: -.01em;
}

.card__sub {
    color: var(--text-faint);
}

.card__body {
    padding: 18px;
}

/* ---------- 按钮 ---------- */

.btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-soft);
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

html[data-theme="light"] .btn {
    background: rgba(255, 255, 255, .72);
}

.btn:hover {
    background: rgba(70, 216, 255, .07);
    border-color: rgba(70, 216, 255, .34);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .48;
    transform: none;
    box-shadow: none;
}

.btn--primary {
    background: var(--brand-grad);
    border-color: transparent;
    color: #00121e;
    font-weight: 750;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .42) inset,
        0 7px 24px rgba(45, 160, 255, .28);
}

.btn--primary:hover {
    color: #00121e;
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .5) inset,
        0 10px 32px rgba(45, 180, 255, .38);
}

html[data-theme="light"] .btn--primary {
    background: linear-gradient(135deg, #18b4ff 0%, #006fe0 100%);
    border-color: #006fe0;
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .32) inset, 0 8px 22px rgba(0, 111, 206, .24);
}

html[data-theme="light"] .btn--primary:hover {
    color: #fff;
}

html[data-theme="light"] .table__wrap {
    background: rgba(235, 244, 255, .58);
    border-color: rgba(34, 92, 160, .12);
}

html[data-theme="light"] .lp-spec__foot {
    background: rgba(235, 244, 255, .72);
    color: #4e6784;
}

html[data-theme="light"] .lp-hero__lead {
    color: #435b76;
}

.btn--primary:disabled {
    filter: grayscale(.25);
}

.btn--danger {
    background: rgba(255, 132, 146, .08);
    border-color: rgba(255, 132, 146, .20);
    color: var(--rust);
}

.btn--danger:hover {
    background: rgba(255, 132, 146, .14);
    border-color: rgba(255, 132, 146, .38);
    color: var(--rust);
}

.btn--icon {
    background: rgba(255, 255, 255, .045);
}

/* ---------- 输入控件 ---------- */

.input,
.textarea,
.select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"] {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(4, 10, 20, .52);
    color: var(--text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .025) inset;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] .select,
html[data-theme="light"] select,
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="search"] {
    background: rgba(255, 255, 255, .78);
}

.input:focus,
.textarea:focus,
.select:focus,
select:focus,
input:focus {
    outline: none;
    border-color: rgba(70, 216, 255, .55);
    background: rgba(6, 14, 26, .72);
    box-shadow:
        0 0 0 3px rgba(70, 216, 255, .12),
        0 0 26px rgba(70, 216, 255, .08);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] .input:focus,
html[data-theme="light"] .textarea:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 111, 206, .12);
}

.input::placeholder,
.textarea::placeholder,
input::placeholder {
    color: var(--text-faint);
}

.field__label {
    letter-spacing: .01em;
    color: var(--text-soft);
}

/* ---------- 表格 ---------- */

.table__wrap {
    border-color: var(--border);
    background: rgba(4, 10, 20, .20);
}

.table th {
    background: rgba(4, 10, 20, .34);
    border-bottom: 1px solid var(--border);
    color: var(--text-faint);
    letter-spacing: .035em;
    font-size: 11px;
    text-transform: uppercase;
}

html[data-theme="light"] .table th {
    background: rgba(234, 243, 255, .64);
}

.table td {
    border-bottom: 1px solid rgba(113, 176, 255, .075);
    color: var(--text-soft);
}

.table tbody tr {
    transition: background .14s ease;
}

.table tbody tr:hover {
    background: rgba(70, 216, 255, .045);
}

.table tbody tr:hover td {
    color: var(--text);
}

/* ---------- 统计块 ---------- */

.stat {
    border-radius: 14px;
    padding: 16px 16px 15px 18px;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(70, 216, 255, .08), transparent 58%),
        var(--glass-grad-soft);
    transition: transform .18s ease, border-color .18s ease;
}

.stat:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.stat::before {
    content: "";
    position: absolute;
    right: -24px;
    top: -34px;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(70, 216, 255, .16), transparent 68%);
    opacity: .7;
}

.stat::after {
    width: 2px;
    border-radius: 99px;
    background: var(--brand-grad);
    box-shadow: 0 0 18px rgba(70, 216, 255, .5);
}

.stat__label {
    color: var(--text-faint);
    letter-spacing: .02em;
}

.stat__value {
    font-weight: 760;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.stat__foot {
    color: var(--text-faint);
}

/* ---------- 徽标 / 分段 / 状态 ---------- */

.badge {
    border-radius: 999px;
    font-weight: 650;
}

.badge--primary {
    background: rgba(70, 216, 255, .10);
    border-color: rgba(70, 216, 255, .24);
    color: #9feeff;
}

html[data-theme="light"] .badge--primary {
    color: var(--primary);
}

.badge--muted {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border);
}

.segbar {
    background: rgba(4, 10, 20, .44);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3px;
}

html[data-theme="light"] .segbar {
    background: rgba(235, 244, 255, .72);
}

.segbar__item {
    border-radius: 9px;
    color: var(--text-faint);
}

.segbar__item.is-active {
    background: linear-gradient(180deg, rgba(70, 216, 255, .16), rgba(70, 216, 255, .06));
    color: var(--text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 14px rgba(0, 0, 0, .18);
}

/* ---------- 供应商卡片 ---------- */

.provider {
    position: relative;
    border-radius: 16px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(70, 216, 255, .07), transparent 52%),
        var(--glass-grad-soft);
    border: 1px solid var(--border);
    transition: transform .18s ease, border-color .18s ease;
}

.provider:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.provider.is-off {
    opacity: .62;
}

.provider__head {
    border-bottom-color: var(--border);
}

.provider__name {
    font-weight: 720;
    letter-spacing: -.01em;
}

.provider__key {
    color: var(--text-faint);
    letter-spacing: .03em;
}

.provider__meta {
    background: rgba(4, 10, 20, .26);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .provider__meta {
    background: rgba(238, 246, 255, .54);
}

.provider__actions {
    border-top-color: var(--border);
}

/* ---------- 弹窗 / 浮层 ---------- */

.modal-mask {
    background: rgba(2, 6, 12, .66);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.modal {
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(20, 35, 58, .90), rgba(7, 13, 24, .86));
    border: 1px solid rgba(113, 176, 255, .24);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    animation: dz-modal-in .22s cubic-bezier(.2, .8, .2, 1) both;
}

html[data-theme="light"] .modal {
    background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(241, 247, 255, .92));
}

@keyframes dz-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__head,
.modal__foot {
    border-color: var(--border);
}

.modal__foot {
    background: rgba(4, 10, 20, .22);
}

.modal__title {
    font-weight: 720;
}

/* ---------- 登录页 ---------- */

.login-wrap {
    position: relative;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.login-wrap::before {
    content: "";
    position: absolute;
    width: min(78vw, 780px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(70, 216, 255, .14);
    box-shadow:
        0 0 0 46px rgba(70, 216, 255, .025),
        0 0 0 92px rgba(70, 216, 255, .015);
    transform: rotate(-16deg) scaleY(.64);
    pointer-events: none;
    z-index: 0;
}

.login-wrap::after {
    content: "";
    position: absolute;
    width: min(52vw, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, rgba(70, 216, 255, .18), rgba(45, 140, 255, .06) 38%, transparent 68%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
    opacity: .85;
}

.login-card {
    position: relative;
    z-index: 1;
    max-width: 404px;
    border-radius: 24px;
    padding: 36px 30px 30px;
    background:
        linear-gradient(158deg, rgba(21, 37, 62, .86), rgba(6, 12, 22, .78));
    border: 1px solid rgba(113, 176, 255, .26);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .08) inset,
        0 34px 100px rgba(0, 0, 0, .55),
        0 0 80px rgba(45, 160, 255, .08);
    backdrop-filter: blur(26px) saturate(155%);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
}

html[data-theme="light"] .login-card {
    background: linear-gradient(158deg, rgba(255, 255, 255, .92), rgba(242, 248, 255, .84));
    box-shadow: 0 30px 90px rgba(18, 45, 80, .18), 0 0 0 1px rgba(255, 255, 255, .7) inset;
}

.login-card::before {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(70, 216, 255, .78), transparent);
}

.login-card__mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(70, 216, 255, .24), rgba(28, 92, 180, .08)),
        rgba(4, 12, 24, .7);
    border: 1px solid rgba(70, 216, 255, .36);
    color: #a9f1ff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .06) inset,
        0 0 40px rgba(70, 216, 255, .20);
}

html[data-theme="light"] .login-card__mark {
    background: linear-gradient(145deg, #e2f9ff, #dcecff);
    color: var(--primary);
}

.login-card__title {
    font-size: 27px;
    font-weight: 780;
    letter-spacing: -.045em;
    background: linear-gradient(100deg, var(--text) 12%, #92efff 72%, #5ecbff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="light"] .login-card__title {
    background: linear-gradient(100deg, #0b1d32 18%, #0074d8 82%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-card__desc {
    color: var(--text-faint);
    letter-spacing: .01em;
}

.login-card .btn--primary {
    height: 42px;
}

/* ---------- 首页 / 落地页 ---------- */

.lp-top {
    background: rgba(4, 9, 17, .72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

html[data-theme="light"] .lp-top {
    background: rgba(255, 255, 255, .78);
}

.lp-nav a {
    color: var(--text-soft);
    border: 1px solid transparent;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.lp-nav a:hover {
    background: rgba(70, 216, 255, .06);
    border-color: rgba(70, 216, 255, .13);
    color: var(--text);
}

/* 首页主题切换按钮：与控制台顶栏同一套交互 */
.lp-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--text-soft);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.lp-theme:hover {
    background: rgba(70, 216, 255, .08);
    border-color: var(--border-strong);
    color: var(--primary);
}

.lp-theme__sun,
.lp-theme__moon {
    width: 16px;
    height: 16px;
}

.lp-theme__moon {
    display: none;
}

html[data-theme="light"] .lp-theme {
    background: rgba(255, 255, 255, .7);
}

html[data-theme="light"] .lp-theme .lp-theme__sun {
    display: none;
}

html[data-theme="light"] .lp-theme .lp-theme__moon {
    display: inline-block;
}

.lp {
    padding-top: 30px;
}

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 34px;
    gap: 20px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(70, 216, 255, .12), transparent 52%),
        linear-gradient(155deg, rgba(20, 36, 62, .78), rgba(5, 10, 20, .74));
    border-color: rgba(113, 176, 255, .22);
}

html[data-theme="light"] .lp-hero {
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(0, 140, 255, .10), transparent 52%),
        linear-gradient(155deg, rgba(255, 255, 255, .90), rgba(238, 247, 255, .78));
}

.lp-hero::after {
    content: "DZ";
    position: absolute;
    right: 22px;
    bottom: -54px;
    font-size: clamp(130px, 18vw, 240px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.10em;
    color: rgba(120, 205, 255, .045);
    pointer-events: none;
    user-select: none;
}

.lp-hero > * {
    position: relative;
    z-index: 1;
}

.lp-hero__title {
    font-size: clamp(30px, 3.8vw, 44px);
    line-height: 1.16;
    letter-spacing: -.045em;
    font-weight: 780;
    background: linear-gradient(104deg, var(--text) 18%, #b8f2ff 58%, #65d6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="light"] .lp-hero__title {
    background: linear-gradient(104deg, #0b1d32 18%, #006ac6 78%, #009f8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-hero__title em {
    color: #6de9ff;
    text-shadow: 0 0 34px rgba(70, 216, 255, .32);
}

html[data-theme="light"] .lp-hero__title em {
    color: #007fdc;
    text-shadow: none;
}

.lp-hero__lead {
    color: var(--text-soft);
    line-height: 1.9;
}

.lp-hero__lead b {
    color: var(--text);
    font-weight: 720;
}

.lp-hero__meta {
    border-top-color: var(--border);
}

.lp-pill {
    border-color: var(--border);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lp-pill--prov {
    background: rgba(70, 216, 255, .10);
    border-color: rgba(70, 216, 255, .20);
    color: #9feeff;
}

.lp-pill--pojia {
    background: rgba(185, 166, 255, .10);
    border-color: rgba(185, 166, 255, .18);
    color: #cbbdff;
}

.lp-spec__foot {
    background: rgba(4, 10, 20, .28);
    color: var(--text-faint);
}

.lp-bw__item,
.lp-cap,
.lp-feat {
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.lp-bw__item {
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.lp-bw__item:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(70, 216, 255, .055);
}

/* 官方 API 生态：横向芯片带，不额外加载图片，移动端自然换行 */
.lp-api-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--glass-grad-soft);
}

.lp-api-strip__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-right: 7px;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lp-api-strip__label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(70, 216, 255, .55);
}

.lp-api-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.lp-api-chip:hover {
    border-color: rgba(70, 216, 255, .32);
    background: rgba(70, 216, 255, .07);
    color: var(--text);
}

.lp-api-chip__ic {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 4px;
    object-fit: contain;
    flex: none;
}

html[data-theme="light"] .lp-api-chip {
    background: rgba(255, 255, 255, .68);
}

.lp-cap:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}

.lp-cap__ic,
.lp-feat__ic {
    border: 1px solid rgba(70, 216, 255, .18);
    background: rgba(70, 216, 255, .075);
    color: #9feeff;
    box-shadow: 0 0 22px rgba(70, 216, 255, .08);
}

html[data-theme="light"] .lp-cap__ic,
html[data-theme="light"] .lp-feat__ic {
    color: var(--primary);
}

.lp-sec__title {
    font-size: 18px;
    font-weight: 740;
    letter-spacing: -.025em;
}

.lp-sec__head {
    margin-bottom: 14px;
}

/* ---------- 提示条 / 空态 ---------- */

.note {
    border-radius: 12px;
    background: rgba(70, 216, 255, .055);
    border: 1px solid rgba(70, 216, 255, .14);
    color: var(--text-soft);
}

.note--warn {
    background: rgba(255, 197, 109, .07);
    border-color: rgba(255, 197, 109, .18);
    color: #ffd79a;
}

html[data-theme="light"] .note--warn {
    color: #8a5500;
}

.loading {
    color: var(--text-soft);
}

.spinner {
    border-color: rgba(70, 216, 255, .18);
    border-top-color: var(--primary);
    box-shadow: 0 0 18px rgba(70, 216, 255, .18);
}

/* ---------- 移动端性能策略 ---------- */

@media (max-width: 900px) {
    body {
        background-attachment: scroll;
    }

    .sidebar,
    .topbar,
    .lp-top,
    .lp-pill,
    .modal-mask,
    .modal,
    .login-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .sidebar {
        background: linear-gradient(180deg, rgba(7, 14, 26, .97), rgba(4, 9, 17, .95));
    }

    .topbar {
        background: rgba(5, 10, 19, .94);
    }

    .modal {
        background: linear-gradient(160deg, rgba(16, 29, 48, .98), rgba(7, 13, 24, .98));
    }

    .login-card {
        background: linear-gradient(158deg, rgba(17, 31, 52, .96), rgba(6, 12, 22, .94));
    }

    html[data-theme="light"] .sidebar {
        background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(240, 247, 255, .97));
    }

    html[data-theme="light"] .topbar {
        background: rgba(255, 255, 255, .95);
    }

    html[data-theme="light"] .modal {
        background: linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(241, 247, 255, .97));
    }

    html[data-theme="light"] .login-card {
        background: linear-gradient(158deg, rgba(255, 255, 255, .97), rgba(242, 248, 255, .93));
    }

    .card:hover,
    .stat:hover,
    .provider:hover,
    .lp-bw__item:hover,
    .lp-cap:hover {
        transform: none;
    }

    .content > * {
        animation-duration: .28s;
    }
}

@media (max-width: 640px) {
    .lp-hero {
        padding: 26px 20px;
    }

    .lp-hero__title {
        font-size: 28px;
        letter-spacing: -.035em;
    }

    .login-card {
        padding: 30px 20px 24px;
        border-radius: 20px;
    }

    .login-card__title {
        font-size: 24px;
    }

    .content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card__body {
        padding: 14px;
    }

    .stat {
        padding: 13px 12px 12px 14px;
    }
}

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

/* ============================================================
   钱包 / 充值 / 赞赏
   ------------------------------------------------------------
   静态光效 + 毛玻璃卡片；不使用持续动画，移动端关闭 backdrop-filter。
   ============================================================ */

.wallet-page {
    --wallet-glow: rgba(70, 216, 255, .18);
}

html[data-theme="light"] .wallet-page {
    --wallet-glow: rgba(0, 120, 220, .12);
}

.wallet-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px;
    border-radius: 22px;
    border: 1px solid rgba(104, 191, 255, .28);
    background:
        linear-gradient(135deg, rgba(12, 28, 48, .94), rgba(5, 13, 25, .88) 52%, rgba(11, 25, 38, .96)),
        radial-gradient(120% 160% at 10% 0%, rgba(70, 216, 255, .16), transparent 56%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
}

html[data-theme="light"] .wallet-hero {
    border-color: rgba(0, 110, 210, .20);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(241, 248, 255, .88)),
        radial-gradient(120% 160% at 10% 0%, rgba(0, 145, 255, .13), transparent 58%);
    box-shadow: 0 22px 60px rgba(18, 55, 100, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.wallet-hero__glow {
    position: absolute;
    width: 440px;
    height: 440px;
    right: -160px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wallet-glow), transparent 68%);
    pointer-events: none;
}

.wallet-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(120, 200, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 200, 255, .055) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 64%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 64%);
}

.wallet-hero__main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.wallet-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: #7fe6ff;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

html[data-theme="light"] .wallet-hero__eyebrow {
    color: #0074c8;
}

.wallet-hero__label {
    color: rgba(226, 242, 255, .66);
    font-size: 13px;
}

html[data-theme="light"] .wallet-hero__label {
    color: #617a94;
}

.wallet-hero__amount {
    margin: 4px 0 10px;
    color: #f3fbff;
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 8px 40px rgba(70, 216, 255, .18);
}

html[data-theme="light"] .wallet-hero__amount {
    color: #0b2944;
    text-shadow: none;
}

.wallet-hero__amount span {
    margin-right: 8px;
    color: #7fe6ff;
    font-size: .48em;
    font-weight: 600;
    vertical-align: 12%;
}

html[data-theme="light"] .wallet-hero__amount span {
    color: #0074c8;
}

.wallet-hero__meta {
    color: rgba(194, 218, 240, .72);
    font-size: 12.5px;
}

html[data-theme="light"] .wallet-hero__meta {
    color: #5d7690;
}

.wallet-hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    align-content: center;
    gap: 10px;
    min-width: 330px;
}

.wallet-hero__stat {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

html[data-theme="light"] .wallet-hero__stat {
    border-color: rgba(22, 79, 140, .10);
    background: rgba(255, 255, 255, .64);
}

.wallet-hero__stat b {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wallet-hero__stat span {
    display: block;
    margin-top: 5px;
    color: var(--text-faint);
    font-size: 11px;
}

.wallet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
    gap: 18px;
}

.wallet-grid--admin {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr);
}

.wallet-panel {
    position: relative;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--glass-grad);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.wallet-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wallet-panel__title {
    color: var(--text);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.wallet-panel__sub {
    margin-top: 5px;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1.55;
}

.wallet-pill {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
}

.wallet-pill--warn {
    border-color: rgba(255, 197, 109, .28);
    background: var(--amber-soft);
    color: var(--amber);
}

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

.wallet-amount {
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

html[data-theme="light"] .wallet-amount {
    background: rgba(255, 255, 255, .68);
}

.wallet-amount:hover {
    border-color: var(--border-strong);
    color: var(--text);
    transform: translateY(-1px);
}

.wallet-amount--on {
    border-color: rgba(70, 216, 255, .62) !important;
    background: linear-gradient(140deg, rgba(70, 216, 255, .18), rgba(40, 130, 255, .08)) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 0 1px rgba(70, 216, 255, .12) inset, 0 8px 24px rgba(40, 160, 255, .12);
}

html[data-theme="light"] .wallet-amount--on {
    border-color: rgba(0, 111, 206, .42) !important;
    background: rgba(0, 111, 206, .08) !important;
    color: var(--primary) !important;
}

.wallet-custom {
    margin-top: 14px;
}

.wallet-custom__row {
    position: relative;
    display: flex;
    align-items: center;
}

.wallet-custom__yen {
    position: absolute;
    left: 14px;
    z-index: 1;
    color: var(--text-faint);
    font-size: 15px;
}

.wallet-custom__input {
    padding-left: 30px !important;
}

.wallet-fields {
    margin-top: 12px;
}

.wallet-submit {
    width: 100%;
    margin-top: 18px;
    min-height: 46px;
}

.wallet-hint {
    margin-top: 9px;
    color: var(--text-faint);
    font-size: 11px;
    text-align: center;
    line-height: 1.6;
}

.wallet-success {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(95, 240, 194, .24);
    border-radius: 11px;
    background: var(--celadon-soft);
    color: var(--celadon);
    font-size: 12px;
}

.wallet-success b {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
}

.wallet-tip-line {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.65;
}

.wallet-tip-line aigw-icon {
    flex: 0 0 auto;
    color: var(--amber);
    margin-top: 2px;
}

.wallet-qr-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255, 197, 109, .08), transparent 60%),
        var(--glass-grad);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    text-align: center;
}

.wallet-qr-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 197, 109, .10), transparent 22%);
    pointer-events: none;
}

.wallet-qr-panel__eyebrow {
    color: var(--text-faint);
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 9px;
    letter-spacing: .18em;
}

.wallet-qr-panel__title {
    margin-top: 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
}

.wallet-qr-frame {
    position: relative;
    width: min(100%, 292px);
    margin: 16px 0 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .4);
}

.wallet-qr-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.wallet-qr-panel__brand {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.wallet-qr-panel__note {
    max-width: 280px;
    margin-top: 8px;
    color: var(--text-faint);
    font-size: 11px;
    line-height: 1.65;
}

.wallet-empty {
    padding: 28px 0;
    color: var(--text-faint);
    font-size: 12px;
    text-align: center;
}

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

.wallet-table {
    min-width: 720px;
}

.wallet-table td {
    vertical-align: middle;
}

.wallet-user b {
    display: block;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
}

.wallet-user span,
.wallet-note,
.wallet-time,
.wallet-order-no {
    color: var(--text-faint);
    font-size: 10.5px;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.wallet-order-no {
    display: inline-block;
    margin-top: 3px;
    word-break: break-all;
}

.wallet-money {
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.wallet-money--plus {
    color: var(--celadon);
}

.wallet-money--minus {
    color: var(--rust);
}

.wallet-payer {
    color: var(--text);
    font-size: 12px;
}

.wallet-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--clay-soft);
    color: var(--clay);
    font-size: 10.5px;
    line-height: 1.4;
    white-space: nowrap;
}

.wallet-status--pending {
    border-color: rgba(255, 197, 109, .25);
    background: var(--amber-soft);
    color: var(--amber);
}

.wallet-status--approved {
    border-color: rgba(95, 240, 194, .22);
    background: var(--celadon-soft);
    color: var(--celadon);
}

.wallet-status--rejected {
    border-color: rgba(255, 132, 146, .22);
    background: var(--rust-soft);
    color: var(--rust);
}

.wallet-review-amount {
    width: 84px;
}

.wallet-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.wallet-filter {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
}

.wallet-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 11px;
}

.wallet-list {
    display: grid;
    gap: 2px;
}

.wallet-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.wallet-list__row:last-child {
    border-bottom: 0;
}

.wallet-list__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.wallet-balance-after {
    color: var(--text-soft);
    font-size: 10.5px;
}

.wallet-txn-type {
    color: var(--text-faint);
    font-size: 10.5px;
}

.wallet-txn-type--recharge {
    color: var(--celadon);
}

.wallet-txn-type--adjust {
    color: var(--plum);
}

@media (max-width: 900px) {
    .wallet-hero {
        flex-direction: column;
        padding: 24px 20px;
    }

    .wallet-hero__stats {
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wallet-grid,
    .wallet-grid--admin {
        grid-template-columns: 1fr;
    }

    .wallet-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wallet-panel,
    .wallet-qr-panel {
        padding: 18px;
    }

    .wallet-filter {
        grid-template-columns: 1fr 1fr;
    }

    .wallet-filter .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .wallet-hero__amount {
        font-size: 42px;
    }

    .wallet-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wallet-grid {
        gap: 12px;
    }

    .wallet-panel,
    .wallet-qr-panel {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: var(--surface);
    }

    .wallet-qr-frame {
        width: min(100%, 250px);
    }

    .wallet-filter {
        grid-template-columns: 1fr;
    }

    .wallet-filter .btn {
        grid-column: auto;
    }

    .wallet-hero__stats {
        gap: 7px;
    }

    .wallet-hero__stat {
        padding: 10px;
    }

    .wallet-hero__stat b {
        font-size: 14px;
    }
}

.wallet-table .input--sm {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
    border-radius: 8px;
}

.wallet-table select.input--sm {
    min-width: 120px;
}
