
:root {
    --bg: #0f1620;
    --bg-grad: radial-gradient(1200px 600px at 15% -10%, #16263c 0%, rgba(15, 22, 32, 0) 60%);
    --header-bg: rgba(10, 15, 23, .82);
    --panel: #182230;
    --panel-2: #1e2a3a;
    --panel-3: #243244;
    --line: #26344a;
    --line-2: #34455f;
    --text: #e8eef7;
    --text-2: #b7c3d6;
    --muted: #9dabc0;
    --dim: #909eb4;

    --brand: #3b82f6;
    --brand-2: #2563eb;
    --brand-3: #60a5fa;
    --brand-soft: rgba(59, 130, 246, .16);
    --brand-line: rgba(59, 130, 246, .42);
    --grad: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);

    --danger: #e5484d;
    --danger-soft: rgba(229, 72, 77, .14);
    --warn: #f5a524;
    --warn-soft: rgba(245, 165, 36, .14);
    --info: #4b8bf5;
    --info-soft: rgba(75, 139, 245, .14);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow: 0 8px 28px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .58);
    --shadow-brand: 0 10px 30px rgba(59, 130, 246, .34);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --fast: .18s;
    --base: .25s;

    --page-max: 1280px;
    --side-w: 240px;
    --gap: 24px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    background-image: var(--bg-grad);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--fast) var(--ease);
}

a:hover {
    color: var(--brand-3);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.ico {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -3px;
}

.ico-xl {
    width: 44px;
    height: 44px;
    color: var(--dim);
}

.shop-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.price,
.num {
    font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #2a374a;
    border-radius: 8px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #3d4d68;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.shop-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.shop-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.shop-header-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}

.shop-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: cover;
}

.shop-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-burger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.shop-burger:hover {
    border-color: var(--brand-line);
    background: var(--panel-2);
}

.shop-notice {
    background: transparent;
    border-bottom: 0;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 12px 24px 0;
}

.shop-notice-inner {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notice-ico {
    color: var(--brand-3);
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 4px;
}

.notice-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.notice-line {
    display: block;
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.notice-line:hover {
    color: var(--text);
}

.notice-viewport {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.notice-track {
    display: flex;
    flex-direction: column;
    animation: notice-roll 18s linear infinite;
}

.notice-track:hover {
    animation-play-state: paused;
}

.notice-item {
    height: 24px;
    line-height: 24px;
    color: var(--text-2);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes notice-roll {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

.shop-body {
    flex: 1;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: var(--gap) 24px 40px;
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    gap: var(--gap);
    align-items: start;
}

.shop-side {
    position: sticky;
    top: 96px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-side-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 10px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.shop-side-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--panel-2);
}

.nav-title {
    padding: 14px 12px 6px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--dim);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    border: 1px solid transparent;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
        border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.nav-link .ico {
    color: var(--muted);
    transition: color var(--fast) var(--ease);
}

.nav-link:hover {
    background: var(--panel-2);
    color: var(--text);
    border-color: var(--line-2);
    transform: translateX(2px);
}

.nav-link:hover .ico {
    color: var(--brand-3);
}

.nav-link.is-active {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    color: #fff;
}

.nav-link.is-active .ico {
    color: var(--brand-3);
}

.nav-link.is-disabled {
    opacity: .5;
    cursor: not-allowed;
}

.nav-ico-img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
}

.shop-side-foot {
    margin-top: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dim);
    font-size: 12px;
}

.shop-side-foot .ico {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.shop-content {
    min-width: 0;
}

.shop-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent);
}

.shop-footer-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    color: var(--dim);
    font-size: 13px;
}

.shop-footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
}

.shop-footer-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dot {
    color: var(--line-2);
}

.shop-mask {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(6, 8, 11, .68);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--base) var(--ease), visibility var(--base) var(--ease);
}

body.shop-drawer-open .shop-mask {
    opacity: 1;
    visibility: visible;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
        background var(--fast) var(--ease), border-color var(--fast) var(--ease),
        opacity var(--fast) var(--ease);
}

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

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

.btn[disabled],
.btn.is-disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

.btn-lg {
    height: 46px;
    padding: 0 24px;
    font-size: 15px;
}

.btn-primary {
    background: var(--grad);
    color: #06101d;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    color: #06101d;
    box-shadow: 0 14px 34px rgba(59, 130, 246, .42);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line-2);
    color: var(--text-2);
}

.btn-ghost:hover {
    background: var(--panel-2);
    border-color: var(--brand-line);
    color: var(--text);
}

.btn-danger {
    background: var(--danger-soft);
    border-color: rgba(229, 72, 77, .4);
    color: #ff8b8f;
}

.btn-danger:hover {
    background: rgba(229, 72, 77, .22);
    color: #ffb0b2;
}

.btn-block {
    width: 100%;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 46px 22px;
    text-align: center;
    color: var(--text-2);
    border-style: dashed;
    box-shadow: none;
    background: rgba(24, 34, 48, .6);
}

.panel-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 24px;
    text-align: center;
}

.panel-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
}

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

.page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
}

.page-desc {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.section {
    margin-top: 32px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
}

.section-sub {
    font-size: 12px;
    color: var(--dim);
    border: 1px dashed var(--line-2);
    border-radius: 20px;
    padding: 3px 10px;
}

.cate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.cate-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--base) var(--ease), border-color var(--base) var(--ease),
        box-shadow var(--base) var(--ease), background var(--base) var(--ease);
}

.cate-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(300px 120px at 12% 0%, rgba(58, 210, 159, .16), transparent 70%);
    opacity: 0;
    transition: opacity var(--base) var(--ease);
    pointer-events: none;
}

.cate-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-line);
    box-shadow: var(--shadow-lg);
    background: var(--panel-2);
    color: var(--text);
}

.cate-card:hover::after {
    opacity: 1;
}

.cate-card-active {
    border-color: var(--brand-line);
    background: var(--panel-2);
}

.cate-ico {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-3);
}

.cate-ico .ico {
    width: 22px;
    height: 22px;
}

.cate-ico img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.cate-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cate-name {
    font-size: 15px;
    font-weight: 600;
}

.cate-sub {
    font-size: 12px;
    color: var(--muted);
}

.cate-arrow {
    margin-left: auto;
    color: var(--dim);
    transform: translateX(-4px);
    opacity: 0;
    transition: transform var(--base) var(--ease), opacity var(--base) var(--ease),
        color var(--base) var(--ease);
}

.cate-card:hover .cate-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--brand-3);
}

.cate-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.cate-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.2;
    white-space: nowrap;
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
        color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.cate-tab:hover {
    background: var(--panel-2);
    border-color: var(--brand-line);
    color: var(--text);
}

.cate-tab.is-active {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-3);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--brand-line);
}

.cate-tab-ico {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-3);
}

.cate-tab-ico .ico {
    width: 16px;
    height: 16px;
}

.cate-tab-ico img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
}

.cate-tab-name {
    min-width: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 20px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-3);
    font-size: 12px;
    font-weight: 600;
}

.badge-gray {
    background: var(--panel-3);
    border-color: var(--line-2);
    color: var(--muted);
}

.badge-warn {
    background: var(--warn-soft);
    border-color: rgba(245, 165, 36, .4);
    color: #ffc76a;
}

.badge-danger {
    background: var(--danger-soft);
    border-color: rgba(229, 72, 77, .4);
    color: #ff8b8f;
}

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

.sm {
    font-size: 12.5px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    color: var(--text-2);
}

.input,
.select,
.textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: #131c29;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
        background var(--fast) var(--ease);
}

.textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

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

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .22);
    background: #101a28;
}

.input[readonly] {
    background: #1a2432;
    color: var(--muted);
    cursor: default;
}

.input-tip {
    font-size: 12px;
    color: var(--dim);
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-group .input {
    flex: 1;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--base) var(--ease), visibility var(--base) var(--ease);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

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

.modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(14px) scale(.97);
    transition: transform var(--base) var(--ease);
}

.modal.is-open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.modal-body {
    padding: 22px;
}

.modal-foot {
    padding: 16px 22px 22px;
    display: flex;
    gap: 12px;
}

.modal-foot.has-note {
    padding-bottom: 0;
}

.modal-note {
    margin: 12px 22px 22px;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: var(--panel-2);
    color: var(--muted);
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.modal-close:hover {
    background: var(--panel-3);
    color: var(--text);
}

.shop-toasts {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.shop-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 86vw;
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(30, 42, 58, .96);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}

.shop-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.shop-toast.is-success {
    border-color: var(--brand-line);
    color: #bcd9ff;
}

.shop-toast.is-error {
    border-color: rgba(229, 72, 77, .45);
    color: #ffb0b2;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--panel-2);
    border-radius: var(--radius-sm);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
    animation: skeleton-shine 1.4s infinite;
}

@keyframes skeleton-shine {
    to { transform: translateX(100%); }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

.fade-in {
    animation: fade-in-up .45s var(--ease) both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1180px) {
    :root {
        --gap: 18px;
    }
}

@media (max-width: 1024px) {
    .shop-header-inner,
    .shop-notice,
    .shop-footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .shop-body {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px 16px 32px;
    }

    .shop-burger {
        display: inline-flex;
    }

    .shop-side {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 50;
        width: 282px;
        max-width: 84vw;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        border-left: 0;
        padding: 14px;
        overflow-y: auto;
        transform: translateX(-102%);
        transition: transform var(--base) var(--ease);
    }

    body.shop-drawer-open .shop-side {
        transform: translateX(0);
    }

    .shop-side-head {
        display: flex;
    }
}

@media (max-width: 768px) {
    .shop-brand-name {
        font-size: 16px;
    }

    .cate-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .cate-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .cate-arrow {
        display: none;
    }

    .panel {
        padding: 18px;
        border-radius: var(--radius-sm);
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(100%);
    }

    .modal.is-open .modal-box {
        transform: translateY(0);
    }
}

@media (max-width: 420px) {
    .shop-header-actions .btn-ghost {
        display: none;
    }

    .notice-viewport {
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .notice-track {
        animation: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 16px;
    }

    .notice-item.is-clone {
        display: none;
    }
}



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

::selection {
    background: rgba(59, 130, 246, .38);
    color: #fff;
}

a, button, .cate-card, .goods-card {
    -webkit-tap-highlight-color: transparent;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 16px;
}

.goods-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--base) var(--ease), border-color var(--base) var(--ease),
        box-shadow var(--base) var(--ease), background var(--base) var(--ease);
}

.goods-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px 140px at 14% 0%, rgba(58, 210, 159, .14), transparent 70%);
    opacity: 0;
    transition: opacity var(--base) var(--ease);
    pointer-events: none;
}

.goods-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-line);
    box-shadow: var(--shadow-lg);
    background: var(--panel-2);
    color: var(--text);
}

.goods-card:hover::after {
    opacity: 1;
}

.goods-card.is-sold-out {
    opacity: .72;
}

.goods-card.is-sold-out:hover {
    transform: none;
    border-color: var(--line-2);
    box-shadow: var(--shadow);
}

.goods-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.goods-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-3);
}

.goods-icon .ico {
    width: 22px;
    height: 22px;
}

.goods-icon img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.goods-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.goods-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.goods-price .unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-3);
}

.goods-stock {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.goods-stock .num {
    color: var(--text-2);
    font-weight: 600;
}

.goods-stock.is-out {
    color: var(--danger);
}

.goods-table {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.goods-table-head,
.goods-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 140px 130px;
    grid-template-areas: "main stock price action";
    align-items: center;
    gap: 12px;
}

.goods-table-head {
    padding: 12px 18px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}

.goods-col-main {
    grid-area: main;
}

.goods-col-stock {
    grid-area: stock;
    text-align: center;
}

.goods-col-price {
    grid-area: price;
    text-align: right;
}

.goods-col-action {
    grid-area: action;
    text-align: right;
}

.goods-row {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background var(--fast) var(--ease);
}

.goods-row:last-child {
    border-bottom: 0;
}

.goods-row:hover {
    background: var(--panel-2);
}

.goods-row.is-sold-out {
    opacity: .72;
}

.goods-main {
    grid-area: main;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.goods-info {
    min-width: 0;
}

.goods-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goods-desc {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goods-stock-cell {
    grid-area: stock;
    text-align: center;
}

.goods-price-cell {
    grid-area: price;
    text-align: right;
}

.goods-action-cell {
    grid-area: action;
    display: flex;
    justify-content: flex-end;
}

.goods-price-cell .goods-price {
    font-size: 17px;
    color: var(--text);
    justify-content: flex-end;
}

.goods-price-cell .goods-price .unit {
    font-size: 13px;
}

.goods-stock-cell .goods-stock {
    margin-top: 0;
}

@media (max-width: 768px) {
    .goods-table-head {
        display: none;
    }

    .goods-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "main main"
            "stock price"
            "action action";
        row-gap: 10px;
        padding: 14px;
    }

    .goods-stock-cell {
        text-align: left;
    }

    .goods-action-cell .btn {
        width: 100%;
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: var(--panel-3);
    border: 1px solid var(--line-2);
    color: var(--muted);
    white-space: nowrap;
}

.tag .dot-ico {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.tag-wait {
    background: var(--warn-soft);
    border-color: rgba(245, 165, 36, .4);
    color: #ffc76a;
}

.tag-top {
    background: var(--warn-soft);
    border-color: rgba(245, 165, 36, .4);
    color: #ffc76a;
}

.tag-paid {
    background: var(--info-soft);
    border-color: rgba(75, 139, 245, .4);
    color: #8fb8ff;
}

.tag-done {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    color: var(--brand-3);
}

.tag-closed {
    background: var(--panel-3);
    border-color: var(--line-2);
    color: var(--dim);
}

.tag-cancel {
    background: var(--danger-soft);
    border-color: rgba(229, 72, 77, .4);
    color: #ff8b8f;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: var(--dim);
}

.crumb .sep {
    color: var(--line-2);
}

.crumb .current {
    color: var(--text-2);
}


.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

.table th {
    padding: 13px 16px;
    text-align: left;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

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

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

.table tbody tr {
    transition: background var(--fast) var(--ease);
}

.table tbody tr:hover {
    background: var(--panel-2);
}

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

.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color var(--base) var(--ease), background var(--base) var(--ease),
        transform var(--base) var(--ease);
}

.list-item:hover {
    border-color: var(--brand-line);
    background: var(--panel-2);
    transform: translateY(-2px);
}

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

.list-title {
    font-weight: 600;
}

.list-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 12.5px;
    color: var(--muted);
}

.list-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.pager a,
.pager span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    font-size: 13px;
    color: var(--text-2);
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
        color var(--fast) var(--ease);
}

.pager a:hover {
    background: var(--panel-2);
    border-color: var(--brand-line);
    color: var(--text);
}

.pager .is-active {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    color: #fff;
    font-weight: 600;
}

.pager .is-disabled {
    opacity: .4;
    pointer-events: none;
}


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

.input.is-error,
.textarea.is-error {
    border-color: rgba(229, 72, 77, .65);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}

.form-error {
    display: none;
    font-size: 12px;
    color: #ff8b8f;
}

.form-error.is-show {
    display: block;
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-row .input {
    flex: 1;
}

.captcha-img {
    width: 116px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #101a28;
    cursor: pointer;
    object-fit: cover;
    transition: border-color var(--fast) var(--ease);
}

.captcha-img:hover {
    border-color: var(--brand-line);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
}

.check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--brand);
    cursor: pointer;
}

.form-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: var(--dim);
    margin-top: 4px;
}


.pay-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 18px;
    background: #131c29;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.pay-tab {
    flex: 1;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
        box-shadow var(--fast) var(--ease);
}

.pay-tab:hover {
    color: var(--text);
}

.pay-tab.is-active {
    background: var(--grad);
    color: #06101d;
    box-shadow: var(--shadow-brand);
}

.sum-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 15px 16px;
    background: #131c29;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.sum-row b {
    color: var(--text);
    font-weight: 600;
}

.sum-row.sum-total {
    padding-top: 11px;
    border-top: 1px dashed var(--line);
}

.sum-total .price-big {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-3);
}

.sum-total .price-big .unit {
    font-size: 15px;
}

.stepper {
    display: inline-flex;
    align-items: center;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #131c29;
    overflow: hidden;
}

.stepper button {
    width: 42px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-2);
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.stepper button:hover {
    background: var(--panel-2);
    color: var(--brand-3);
}

.stepper button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.stepper .ico {
    width: 15px;
    height: 15px;
}

.stepper input {
    width: 74px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    outline: none;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qr-box {
    width: 186px;
    height: 186px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed var(--brand-line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    background: #131c29;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.copy-row .copy-text {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-row .btn {
    height: 32px;
    padding: 0 12px;
    font-size: 12.5px;
}

.countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #ffc76a;
}

.countdown .ico {
    width: 15px;
    height: 15px;
}

.countdown.is-danger {
    color: #ff8b8f;
}

.pay-note {
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted);
}

.pay-note b {
    color: var(--text-2);
}

.notice-strip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 11px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: #bcd9ff;
    font-size: 12.5px;
    line-height: 1.7;
}

.notice-strip .ico {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    color: var(--brand-3);
}

.notice-strip.is-warn {
    background: var(--warn-soft);
    border-color: rgba(245, 165, 36, .4);
    color: #ffd79a;
}

.notice-strip.is-warn .ico {
    color: #ffc76a;
}


.goods-skeleton {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.goods-skeleton .sk-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.goods-skeleton .sk-box {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 13px;
}

.goods-skeleton .sk-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.goods-skeleton .sk-line {
    height: 11px;
    border-radius: 6px;
}

.goods-skeleton .sk-w70 { width: 70%; }
.goods-skeleton .sk-w45 { width: 45%; }
.goods-skeleton .sk-w100 { width: 100%; }
.goods-skeleton .sk-w30 { width: 30%; }

.goods-skeleton .sk-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.goods-skeleton .sk-price {
    width: 84px;
    height: 22px;
    border-radius: 7px;
}

.goods-skeleton .sk-btn {
    width: 92px;
    height: 34px;
    border-radius: var(--radius-sm);
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 35;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(30, 42, 58, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-2);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--base) var(--ease), visibility var(--base) var(--ease),
        transform var(--base) var(--ease), border-color var(--fast) var(--ease),
        color var(--fast) var(--ease);
}

.to-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    border-color: var(--brand-line);
    color: var(--brand-3);
}

.stagger > * {
    animation: fade-in-up .5s var(--ease) both;
}

.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .10s; }
.stagger > *:nth-child(4) { animation-delay: .14s; }
.stagger > *:nth-child(5) { animation-delay: .18s; }
.stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(7) { animation-delay: .26s; }
.stagger > *:nth-child(8) { animation-delay: .30s; }
.stagger > *:nth-child(n+9) { animation-delay: .34s; }

.demo-group {
    margin-top: 26px;
}

.demo-group-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.demo-group-head h3 {
    font-size: 15px;
    font-weight: 700;
}

.demo-group-head span {
    font-size: 12px;
    color: var(--dim);
}

.demo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.demo-note {
    font-size: 12px;
    color: var(--dim);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .goods-grid {
        grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
        gap: 12px;
    }

    .goods-card {
        padding: 13px;
        gap: 10px;
    }

    .goods-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .goods-icon .ico {
        width: 19px;
        height: 19px;
    }

    .goods-title {
        font-size: 14px;
    }

    .goods-desc {
        display: none;
    }

    .goods-price {
        font-size: 19px;
    }

    .goods-foot .btn {
        height: 32px;
        padding: 0 12px;
        font-size: 12.5px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .qr-box {
        width: 168px;
        height: 168px;
    }

    .modal-foot {
        flex-direction: column-reverse;
    }

    .modal-foot .btn {
        width: 100%;
    }

    .to-top {
        right: 14px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 380px) {
    .goods-grid {
        grid-template-columns: 1fr;
    }

    .goods-desc {
        display: -webkit-box;
    }
}

.detail-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.detail-icon .ico {
    width: 28px;
    height: 28px;
}

.detail-icon img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.detail-info {
    min-width: 0;
}

.detail-buy {
    margin-top: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-price {
    font-size: 28px;
}

.detail-price .unit {
    font-size: 17px;
}

.detail-body {
    margin-top: 26px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-html {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.85;
    word-break: break-word;
}

.detail-html h1,
.detail-html h2,
.detail-html h3,
.detail-html h4 {
    margin: 18px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.detail-html p {
    margin: 10px 0;
}

.detail-html ul,
.detail-html ol {
    margin: 10px 0 10px 22px;
    padding: 0;
    list-style: disc;
}

.detail-html ol {
    list-style: decimal;
}

.detail-html li {
    margin: 4px 0;
}

.detail-html a {
    color: var(--brand-3);
    text-decoration: underline;
}

.detail-html img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.detail-html blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 0 10px 10px 0;
}

.detail-html code {
    padding: 2px 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    background: #131c29;
    border-radius: 6px;
}

.detail-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.detail-html th,
.detail-html td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: left;
}

@media (max-width: 768px) {
    .detail-head {
        flex-direction: column;
        padding: 18px;
    }

    .detail-buy {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 18px;
    }

    .detail-buy .btn {
        width: 100%;
    }

    .detail-body {
        padding: 18px;
    }
}


.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 26px 0 10px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 28px 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-head {
    margin-bottom: 22px;
    text-align: center;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
}

.auth-desc {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.auth-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

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

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 12.5px;
    color: var(--muted);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stat-brand {
    color: var(--brand-3);
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 11px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

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

.tab.is-active {
    color: var(--brand-3);
    border-bottom-color: var(--brand);
}

.balance-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.balance-label {
    font-size: 12.5px;
    color: var(--muted);
}

.balance-value {
    margin-top: 4px;
    font-size: 30px;
    font-weight: 700;
    color: var(--brand-3);
    font-variant-numeric: tabular-nums;
}

.price-plus {
    color: var(--brand-3);
    font-weight: 600;
}

.cards-text {
    padding: 12px 14px;
    background: #131c29;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--text-2);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 220px;
    overflow: auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.file-input {
    display: block;
    width: 100%;
    padding: 15px 16px;
    border: 1px dashed var(--line-2);
    border-radius: var(--radius-sm);
    background: #131c29;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.file-input:hover {
    border-color: var(--brand-line);
    background: var(--panel-2);
}

.file-input::file-selector-button,
.file-input::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--grad);
    color: #06101d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.price-minus {
    color: #ff8b8f;
    font-weight: 600;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 22px 18px;
    }

    .stat-value {
        font-size: 19px;
    }

    .balance-value {
        font-size: 25px;
    }

    .tabs {
        gap: 0;
    }
}
