:root {
    --bs-body-font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    --bs-body-color: #132238;
    --bs-body-bg: #f3f6fb;
    --bs-border-radius: 6px;
    --bs-border-radius-lg: 10px;
    --bs-primary: #1677ff;
    --bs-success: #16a34a;
    --bg: #f3f6fb;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-border: rgba(148, 163, 184, 0.18);
    --text: #132238;
    --muted: #6b7a90;
    --primary: #1677ff;
    --primary-dark: #0f5fd1;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(22, 119, 255, 0.16), transparent 28%),
        radial-gradient(circle at right center, rgba(14, 165, 233, 0.14), transparent 24%),
        linear-gradient(180deg, #eef4fb 0%, #f8fbff 48%, #eef2f8 100%);
}

img,
svg,
canvas {
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}

select {
    font: inherit;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.auth-aside {
    position: relative;
    flex: 1.1;
    overflow: hidden;
    padding: 56px 56px 40px;
    background:
        linear-gradient(160deg, rgba(11, 33, 66, 0.96), rgba(15, 45, 84, 0.88)),
        linear-gradient(135deg, #10325f, #0b4aa7);
    color: #f8fbff;
}

.auth-aside::before,
.auth-aside::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
}

.auth-aside::before {
    top: -80px;
    right: -70px;
    width: 260px;
    height: 260px;
    background: rgba(37, 99, 235, 0.36);
}

.auth-aside::after {
    left: -50px;
    bottom: 56px;
    width: 190px;
    height: 190px;
    background: rgba(56, 189, 248, 0.22);
}

.auth-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-topbar-light {
    margin-bottom: 24px;
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    color: #0f3f82;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.locale-switcher-light {
    background: #f4f8fd;
    border-color: #dce5f0;
}

.auth-topbar-light {
    justify-content: flex-end;
}

.auth-locale-select {
    min-width: 126px;
}

.locale-switcher .choices {
    margin: 0;
    min-width: 126px;
}

.locale-switcher .choices__inner {
    min-height: 42px;
    padding: 0 36px 0 14px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #f4f8fd;
    color: #526173;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.locale-switcher .choices__list--single {
    padding: 0;
}

.locale-switcher .choices__list--single .choices__item {
    color: #526173;
}

.locale-switcher .choices[data-type*="select-one"]::after {
    right: 14px;
    border-top-color: #738295;
}

.locale-switcher .choices.is-open[data-type*="select-one"]::after {
    border-bottom-color: #738295;
}

.locale-switcher-btn {
    min-width: 60px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.locale-switcher-light .locale-switcher-btn {
    color: #526173;
}

.locale-switcher-btn.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.locale-switcher-light .locale-switcher-btn.active {
    background: #ffffff;
    color: #166534;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.auth-copy {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin-top: 110px;
}

.auth-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.auth-copy p {
    margin: 0;
    color: rgba(236, 244, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
}

.copy-points {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 38px;
}

.copy-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.copy-point strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.copy-point span {
    color: rgba(236, 244, 255, 0.72);
    font-size: 13px;
    line-height: 1.65;
}

.copy-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
}

.auth-main {
    display: flex;
    flex: 0.9;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.auth-shell-single {
    max-width: none;
    justify-content: center;
    padding: 32px 20px;
}

.auth-main-single {
    flex: none;
    width: 100%;
    max-width: 560px;
    padding: 0;
}

.auth-card,
.center-card {
    width: min(100%, 470px);
    padding: 34px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-card h2,
.center-card h2 {
    margin: 18px 0 10px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.auth-subtitle,
.center-subtitle {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
}

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

.form-item {
    display: grid;
    gap: 8px;
}

.form-item label {
    font-size: 13px;
    font-weight: 600;
    color: #314155;
}

input.field,
select.field,
.field {
    height: 50px;
    width: 100%;
    padding: 0 16px;
    border: 1px solid #d6deea;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    line-height: normal;
    font-size: 14px;
    vertical-align: middle;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input.field::placeholder,
.field::placeholder {
    color: #8a98ac;
}

.field:focus {
    outline: none;
    border-color: rgba(22, 119, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

.field-hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.form-actions {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #2b8dff);
    box-shadow: 0 18px 30px rgba(22, 119, 255, 0.22);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

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

.btn:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.96);
}

.btn-secondary {
    color: var(--text);
    background: #eef3fb;
}

.btn-secondary:hover:not(:disabled),
.btn-secondary:focus:not(:disabled),
.btn-secondary:active:not(:disabled),
.btn-success:hover:not(:disabled),
.btn-success:focus:not(:disabled),
.btn-success:active:not(:disabled),
.btn-deep:hover:not(:disabled),
.btn-deep:focus:not(:disabled),
.btn-deep:active:not(:disabled),
.btn-primary:focus:not(:disabled),
.btn-primary:active:not(:disabled) {
    color: #fff;
}

.link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
}

.link-row a {
    color: var(--primary);
    font-weight: 700;
}

.turnstile-box {
    display: grid;
    gap: 10px;
}

.turnstile-placeholder {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed #c1cedf;
    color: #7b879a;
    font-size: 13px;
    background: #f8fbff;
}

.center-shell {
    display: flex;
    min-height: 100vh;
    padding: 28px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.center-card {
    width: min(100%, 860px);
    margin: auto;
}

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

.center-title-group {
    display: grid;
    gap: 8px;
}

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

.stat-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    font-size: 22px;
    line-height: 1.2;
}

.center-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e6edf7;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    margin-top: 18px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: #f7faff;
    border: 1px dashed #cfdae9;
    color: var(--muted);
    line-height: 1.8;
}

@media (max-width: 980px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-aside {
        padding: 34px 28px 28px;
    }

    .auth-copy {
        margin-top: 56px;
        max-width: 100%;
    }

    .auth-main,
    .auth-aside {
        flex: auto;
    }

    .auth-main {
        padding-top: 0;
    }

    .center-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .auth-aside,
    .auth-main,
    .center-shell {
        padding: 18px;
    }

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

    .auth-copy h1 {
        font-size: 34px;
    }

    .center-header,
    .center-footer,
    .link-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.market-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}

.market-topbar {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    border-bottom: 1px solid #e4ebf5;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.market-topbar,
.market-main {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.market-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #f5f7fb;
    color: #42556c;
    cursor: pointer;
    flex: 0 0 auto;
}

.market-nav-toggle svg {
    width: 22px;
    height: 22px;
}

.market-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.market-brand:hover {
    color: inherit;
    text-decoration: none;
}

.market-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #155eef, #16a34a);
}

.market-brand-text {
    display: grid;
    gap: 4px;
}

.market-brand-text strong {
    font-size: 22px;
}

.market-brand-text span {
    color: #6b7a90;
    font-size: 13px;
}

.market-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.market-nav-drawer {
    z-index: 2200;
}

.market-nav-drawer .offcanvas-header {
    padding: 18px 18px 12px;
    border-bottom: 1px solid #edf2f7;
}

.market-nav-drawer .offcanvas-body {
    padding: 16px;
}

.market-nav-drawer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.market-nav-drawer-list {
    display: grid;
    gap: 8px;
}

.market-nav-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #324255;
    font-weight: 600;
    text-decoration: none;
    background: #f8fbff;
}

.market-nav-drawer-item:hover,
.market-nav-drawer-item.active {
    color: #166534;
    text-decoration: none;
    background: #edf9f0;
    box-shadow: inset 0 0 0 1px #cdebd4;
}

.market-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 6px;
    color: #324255;
    font-weight: 600;
}

.market-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.market-nav-item.active {
    color: #166534;
    background: #edf9f0;
    box-shadow: inset 0 0 0 1px #cdebd4;
}

.market-account {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    margin-left: auto;
}

.market-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    text-decoration: none;
    transition: color .18s ease;
}

.market-balance:hover {
    color: #166534;
    text-decoration: none;
}

.market-balance strong {
    font-size: 16px;
    font-weight: 500;
}

.market-balance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f3d4f;
}

.market-balance-icon svg {
    width: 22px;
    height: 22px;
}

.market-icon-button,
.market-avatar-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f5f7fb;
    color: #5f6d7f;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.market-icon-button:hover,
.market-avatar-button:hover {
    background: #edf2f8;
    color: #304256;
}

.market-icon-button:active,
.market-avatar-button:active {
    transform: scale(0.97);
}

.market-icon-button svg {
    width: 22px;
    height: 22px;
}

.market-account-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
}

.market-avatar-button {
    background: linear-gradient(135deg, #166534, #155e75);
    color: #ffffff;
}

.market-avatar-face {
    font-size: 22px;
    line-height: 1;
}

.market-user-dropdown .dropdown-menu {
    z-index: 110;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.swal2-container {
    z-index: 3000 !important;
}

.market-user-menu {
    min-width: 198px;
    padding: 10px 0;
    margin-top: 12px;
}

.market-user-menu-greeting {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 16px 12px;
    color: #166534;
    font-size: 18px;
    font-weight: 700;
}

.market-user-menu-greeting strong {
    color: #1f4d3a;
    font-weight: 700;
}

.market-user-menu-section {
    padding: 2px 16px 12px;
}

.market-user-menu-label {
    display: block;
    margin-bottom: 8px;
    color: #6b7a90;
    font-size: 12px;
    font-weight: 700;
}

.market-user-menu-locale {
    display: inline-flex;
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    background: #f4f8fd;
    border: 1px solid #dce5f0;
}

.market-user-locale-btn {
    min-width: 58px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #526173;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.market-user-locale-btn.active {
    background: #ffffff;
    color: #166534;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.market-user-locale-select {
    min-width: 132px;
    height: 38px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #324255;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.market-user-locale-select:focus {
    border-color: #bfd0e3;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
}

.market-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #2f3d4f;
    font-size: 15px;
}

.market-user-menu-item:hover,
.market-user-menu-item:focus {
    background: #f8fbff;
    color: #1b2c42;
}

.market-user-menu-icon {
    width: 22px;
    display: inline-flex;
    justify-content: center;
    color: #44556b;
}

.market-main {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.market-panel {
    padding: 22px;
    border: 1px solid #e4ebf5;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.market-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.market-panel-head h1 {
    margin: 0 0 8px;
    font-size: 26px;
}

.market-panel-head p {
    margin: 0;
    color: #6b7a90;
    font-size: 14px;
    line-height: 1.8;
}

.filter-grid-bootstrap,
.filter-multi-wrap-bootstrap {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
}

.filter-grid-bootstrap > [class*="col-"],
.filter-multi-wrap-bootstrap > [class*="col-"] {
    min-width: 0;
}

.market-status-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.market-pill {
    padding: 10px 14px;
    border-radius: 6px;
    background: #f3f7fc;
    color: #526173;
    font-size: 12px;
}

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

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

.filter-field label,
.multi-label {
    font-size: 13px;
    font-weight: 700;
    color: #3a4c61;
}

.field-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px !important;
    color: #1f3349 !important;
}

.choices {
    margin: 0;
}

.choices[data-type*="select-one"]::after {
    right: 14px;
    border-top-color: #7b879a;
}

.choices.is-open[data-type*="select-one"]::after {
    border-bottom-color: #7b879a;
}

.choices__inner {
    min-height: 50px;
    padding: 0 42px 0 16px;
    border: 1px solid #d6deea;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    color: #7b879a;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: rgba(22, 119, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

.choices__list--single {
    padding: 0;
    width: 100%;
}

.choices__list--single .choices__item {
    color: #7b879a;
}

.choices__placeholder {
    opacity: 1;
    color: #7b879a;
}

.choices[data-type*="select-multiple"] .choices__inner {
    padding-top: 7px;
    padding-bottom: 7px;
    min-height: 50px;
}

.choices__list--multiple {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.choices__list--multiple .choices__item {
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #cfe2f7;
    border-radius: 4px;
    background: #edf5ff;
    color: #24548a;
    font-size: 12px;
    font-weight: 600;
}

.choices__list--multiple .choices__item.is-highlighted {
    border-color: #bcd6f4;
    background: #e3f0ff;
}

.choices__list--multiple .choices__button {
    margin-left: 8px;
    border-left-color: rgba(36, 84, 138, 0.18);
}

.choices__input {
    margin: 0;
    padding: 0;
    background: transparent;
    color: #7b879a;
    font-size: 14px;
}

.choices__input::placeholder {
    color: #7b879a;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    border: 1px solid #d6deea;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    z-index: 1200;
}

.choices {
    position: relative;
    z-index: 20;
}

.choices.is-open {
    z-index: 1200;
}

.choices__list--dropdown .choices__input,
.choices__list[aria-expanded] .choices__input {
    height: 42px;
    padding: 0 12px;
    border-bottom: 1px solid #edf2f7;
}

.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    padding: 10px 14px;
    font-size: 14px;
    color: #1f3349;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: #f4f8fd;
}

.market-panel .field,
.market-panel input.field,
.market-panel select.field {
    background: #ffffff !important;
}

.market-panel input.field,
.market-panel input.field:focus,
.market-panel input.field:not(:placeholder-shown),
.market-panel select.field,
.market-panel .choices__inner,
.market-panel .choices__input,
.market-panel .choices__list--single .choices__item {
    color: #7b879a !important;
}

.market-panel input.field::placeholder {
    color: #7b879a !important;
}

.market-panel input.field,
.market-panel select.field {
    font-size: 14px !important;
}

.market-panel input.field,
.market-panel select.field {
    height: 50px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.range-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 50px;
    flex-wrap: wrap;
}

.range-row-dual {
    gap: 12px;
}

.dual-range {
    position: relative;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
}

.dual-range-track,
.dual-range-progress {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 999px;
}

.dual-range-track {
    background: #d9e2ec;
}

.dual-range-progress {
    background: #166534;
    left: 10%;
    width: 40%;
}

.dual-range input[type="range"] {
    position: absolute;
    left: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.dual-range input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.dual-range input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
    cursor: pointer;
}

.dual-range input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
    cursor: pointer;
}

.dual-range input[type="range"]:focus {
    outline: none;
}

.range-row input[type="range"] {
    width: 100%;
}

.range-row span {
    min-width: 70px;
    color: #166534;
    font-weight: 700;
}

.filter-button-row {
    display: flex;
    gap: 10px;
}

.filter-multi-wrap {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.multi-block {
    display: grid;
    gap: 8px;
    align-content: start;
}

.filter-price-block .range-row {
    min-height: 50px;
}

.filter-price-block .range-row-dual {
    width: min(100%, 360px);
}

.filter-search-block {
    display: flex;
    justify-content: flex-end;
}

.filter-search-block .filter-button-row {
    justify-content: flex-end;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0px;
}

.filter-search-block .btn {
    min-width: 132px;
}

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

.table-toolbar-left,
.table-toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.table-toolbar-right {
    color: #6b7a90;
    font-size: 13px;
}

.market-grid-shell {
    overflow: hidden;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    background: #ffffff;
}

.market-grid.ag-theme-quartz {
    --ag-font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    --ag-font-size: 13px;
    --ag-grid-size: 6px;
    --ag-border-color: #e5edf6;
    --ag-background-color: #ffffff;
    --ag-header-background-color: #f5f8fc;
    --ag-header-foreground-color: #4d5d70;
    --ag-foreground-color: #1f3349;
    --ag-row-border-color: #edf2f7;
    --ag-row-hover-color: #fafcff;
    --ag-selected-row-background-color: #f6f8fb;
    --ag-checkbox-checked-color: #166534;
    --ag-checkbox-unchecked-color: #bcc9d8;
    --ag-checkbox-border-radius: 4px;
    --ag-range-selection-border-color: transparent;
    --ag-input-focus-border-color: #1677ff;
    --ag-wrapper-border-radius: 10px;
    --ag-cell-horizontal-border: transparent;
    --ag-column-border: transparent;
    --ag-header-column-border: transparent;
}

.market-grid.ag-theme-quartz .ag-root-wrapper {
    border: 0;
    border-radius: 0;
}

.market-grid.ag-theme-quartz.is-empty {
    min-height: 420px;
}

.market-grid.ag-theme-quartz.is-empty .ag-root-wrapper-body {
    min-height: 366px;
}

.market-grid.ag-theme-quartz.is-empty .ag-overlay,
.market-grid.ag-theme-quartz.is-empty .ag-overlay-no-rows-wrapper,
.market-grid.ag-theme-quartz.is-empty .ag-overlay-wrapper {
    min-height: 366px;
}

.market-grid.ag-theme-quartz .ag-header {
    border-bottom: 1px solid #e5edf6;
}

.market-grid.ag-theme-quartz .ag-header-row,
.market-grid.ag-theme-quartz .ag-row {
    border-left: 0;
    border-right: 0;
}

.market-grid.ag-theme-quartz .ag-header-cell,
.market-grid.ag-theme-quartz .ag-cell {
    padding-left: 8px;
    padding-right: 8px;
    border-right: 0 !important;
}

.market-grid.ag-theme-quartz .ag-header-cell-text {
    font-size: 12px;
    font-weight: 700;
}

.market-grid.ag-theme-quartz .ag-row {
    border-bottom: 1px solid #edf2f7;
}

.market-grid.ag-theme-quartz .ag-row.ag-row-selected,
.market-grid.ag-theme-quartz .ag-row.ag-row-selected .ag-cell {
    background: #f6f8fb !important;
}

.market-grid.ag-theme-quartz .ag-row.ag-row-selected .ag-row-background,
.market-grid.ag-theme-quartz .ag-row.ag-row-selected::before,
.market-grid.ag-theme-quartz .ag-row.ag-row-selected::after {
    background: #f6f8fb !important;
}

.market-grid.ag-theme-quartz .ag-center-cols-container .ag-row.ag-row-selected {
    box-shadow: 9999px 0 0 #f6f8fb, -9999px 0 0 #f6f8fb;
}

.market-grid.ag-theme-quartz .ag-cell::after,
.market-grid.ag-theme-quartz .ag-header-cell::after {
    display: none !important;
}

.market-grid.ag-theme-quartz .ag-cell {
    display: flex;
    align-items: center;
    line-height: 1.35;
    border: 0;
}

.market-grid.ag-theme-quartz .ag-cell-value,
.market-grid.ag-theme-quartz .ag-group-value {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-text-ellipsis {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-grid.ag-theme-quartz .ag-selection-checkbox,
.market-grid.ag-theme-quartz .ag-header-select-all {
    margin-right: 0;
}

.market-grid.ag-theme-quartz .ag-header-cell[col-id="selection"] .ag-header-cell-comp-wrapper,
.market-grid.ag-theme-quartz .ag-header-cell[col-id="selection"] .ag-header-cell-label,
.market-grid.ag-theme-quartz .ag-cell[col-id="selection"] .ag-cell-wrapper,
.grid-selection-header,
.grid-selection-cell {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.market-grid.ag-theme-quartz .ag-cell[col-id="selection"],
.market-grid.ag-theme-quartz .ag-header-cell[col-id="selection"] {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    border-right: 0 !important;
    border-left: 0 !important;
    background: transparent;
}

.market-grid.ag-theme-quartz .ag-row-selected .ag-cell[col-id="selection"] {
    background: transparent;
}

.market-grid.ag-theme-quartz .ag-header-cell[col-id="selection"] .ag-header-icon,
.market-grid.ag-theme-quartz .ag-header-cell[col-id="selection"] .ag-sort-indicator-container,
.market-grid.ag-theme-quartz .ag-header-cell[col-id="selection"] .ag-header-cell-menu-button {
    display: none !important;
}

.grid-selection-control {
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #b9c7d6;
    border-radius: 4px;
    background: #ffffff;
    accent-color: #0f766e;
    cursor: pointer;
}

.market-grid.ag-theme-quartz .ag-pinned-left-header,
.market-grid.ag-theme-quartz .ag-pinned-left-cols-container,
.market-grid.ag-theme-quartz .ag-pinned-left-header::after,
.market-grid.ag-theme-quartz .ag-pinned-left-cols-container::after {
    border-right: 0 !important;
    box-shadow: none !important;
}

.ag-empty-state {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 280px;
    padding: 36px 16px 44px;
    color: #a0acbb;
    text-align: center;
}

.ag-empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: var(--radius-md);
    border: 1px solid #dde6f0;
    color: #b5bfcb;
    font-size: 28px;
    background: #f9fbfd;
}

.ag-empty-state strong {
    color: #94a3b8;
    font-size: 20px;
    font-weight: 700;
}

.ag-empty-state span {
    color: #a0acbb;
    font-size: 13px;
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-deep {
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #155e75);
}

.market-table-wrap {
    overflow: auto;
}

.market-table {
    width: 100%;
    min-width: 1480px;
    border-collapse: collapse;
}

.market-table thead th {
    padding: 15px 12px;
    text-align: left;
    color: #4d5d70;
    font-size: 13px;
    font-weight: 700;
    background: #f5f8fc;
    border-bottom: 1px solid #e5edf6;
}

.market-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f7;
    color: #1f3349;
    font-size: 14px;
    vertical-align: middle;
}

.market-table tbody tr:hover {
    background: #fafcff;
}

.cell-check {
    width: 44px;
}

.table-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 4px;
    background: #edf9f0;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.table-badge.soft {
    background: #f2f6fb;
    color: #3f5368;
}

.table-badge.table-badge-deep {
    background: #166534;
    color: #ffffff;
}

.table-badge.table-badge-warning {
    background: #fff7e8;
    color: #b76e00;
}

.table-badge.table-badge-danger {
    background: #fef2f2;
    color: #b42318;
}

.table-badge.table-badge-muted {
    background: #f3f4f6;
    color: #6b7280;
}

.price-text {
    color: #166534;
    font-weight: 700;
}

.table-action-btn {
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #166534;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.table-action-btn-danger {
    background: #ef4444;
}

.table-action-btn-icon {
    width: 36px;
    min-width: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-action-btn-icon svg {
    width: 19px;
    height: 19px;
    color: #ffffff;
    display: block;
    flex: 0 0 auto;
}

.cart-summary-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.cart-summary-card {
    width: min(100%, 400px);
    border: 1px solid #e5edf6;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.cart-summary-row {
    display: grid;
    grid-template-columns: 1fr 160px;
}

.cart-summary-row + .cart-summary-row {
    border-top: 1px solid #e5edf6;
}

.cart-summary-row span,
.cart-summary-row strong {
    padding: 16px 18px;
    font-size: 13px;
}

.cart-summary-row span {
    color: #324255;
    background: #ffffff;
}

.cart-summary-row strong {
    border-left: 1px solid #e5edf6;
    background: #fbfdff;
    font-size: 15px;
    font-weight: 700;
    color: #1f3349;
}

.table-bottom-actions-cart {
    justify-content: flex-end;
}

.credits-balance-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.credits-balance-info {
    display: grid;
    gap: 8px;
}

.credits-balance-info h1,
.panel-title {
    margin: 0;
    font-size: 22px;
}

.credits-balance-info span {
    color: #6b7a90;
    font-size: 14px;
}

.credits-balance-info strong {
    font-size: 32px;
    font-weight: 700;
    color: #1f3349;
}

.credits-balance-actions {
    display: flex;
    align-items: center;
}

.settings-panel .market-panel-head {
    margin-bottom: 10px;
}

.settings-info-card,
.settings-form-card {
    height: 100%;
    padding: 22px;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    background: #fbfdff;
}

.settings-info-card {
    display: grid;
    gap: 16px;
}

.settings-info-item {
    display: grid;
    gap: 6px;
}

.settings-info-item span {
    color: #6b7a90;
    font-size: 13px;
}

.settings-info-item strong {
    color: #1f3349;
    font-size: 16px;
    font-weight: 700;
    word-break: break-all;
}

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

.settings-form-item {
    display: grid;
    gap: 8px;
}

.settings-form-item label {
    color: #324255;
    font-size: 13px;
    font-weight: 700;
}

.settings-form-tip {
    margin-top: 14px;
    color: #7b879a;
    font-size: 13px;
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.recharge-modal {
    display: grid;
    gap: 22px;
    text-align: left;
}

.recharge-modal-note {
    padding: 4px 0 14px;
    border-bottom: 1px solid #e5edf6;
}

.recharge-modal-note p {
    margin: 0 0 8px;
    color: #dc2626;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.recharge-modal-note p:nth-child(n+2) {
    color: #166534;
}

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

.recharge-form-block label {
    color: #243648;
    font-size: 14px;
    font-weight: 700;
}

.recharge-channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.recharge-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: #324255;
    font-size: 15px;
}

.recharge-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0f766e;
}

.recharge-option.recommend span {
    color: #166534;
    font-weight: 700;
}

.recharge-amount-input.swal2-input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #b8d4c0;
    box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.08);
}

.recharge-swal-popup .swal2-title {
    text-align: left;
    color: #1f3349;
}

.table-empty {
    padding: 32px 12px !important;
    text-align: center;
    color: #6b7a90 !important;
}

.market-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 240px;
    color: #a0acbb;
    text-align: center;
}

.market-empty[hidden] {
    display: none !important;
}

.market-empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: var(--radius-md);
    border: 1px solid #dde6f0;
    color: #b5bfcb;
    font-size: 28px;
    background: #f9fbfd;
}

.market-empty strong {
    color: #94a3b8;
    font-size: 20px;
    font-weight: 700;
}

.market-empty span {
    color: #a0acbb;
    font-size: 13px;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: #5d6d80;
    font-size: 14px;
}

.table-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pager {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pager-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d7e1ed;
    border-radius: 4px;
    background: #fff;
    color: #66778b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pager-btn:hover:not(:disabled) {
    border-color: #bfd0e3;
    background: #f8fbff;
}

.pager-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.pager-btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.pager-btn.active {
    color: #166534;
    border-color: #b8dcc0;
    background: #edf9f0;
}

.pager-size,
.pager-jump {
    padding: 8px 10px;
    border: 1px solid #d7e1ed;
    border-radius: 4px;
    background: #fff;
    color: #66778b;
}

.table-bottom-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

@media (min-width: 1681px) {
    .auth-aside {
        padding-left: 72px;
        padding-right: 72px;
    }

    .market-topbar {
        padding-left: 36px;
        padding-right: 36px;
    }

    .market-main {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 1360px) {
    .auth-aside {
        padding: 42px 36px 32px;
    }

    .auth-copy {
        margin-top: 72px;
        max-width: 100%;
    }

    .auth-main {
        padding: 28px;
    }

    .market-topbar {
        padding: 16px 22px;
    }

    .market-main {
        padding: 20px;
    }

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

@media (max-width: 1180px) {
    .filter-multi-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .market-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .market-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: flex-start;
    }

    .market-nav-item {
        text-align: center;
    }

    .market-account {
        width: 100%;
        justify-content: space-between;
    }

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

@media (max-width: 900px) {
    .market-topbar {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .market-nav-toggle {
        display: inline-flex;
    }

    .market-nav {
        display: none;
    }

    .market-brand {
        flex: 1 1 auto;
    }

    .market-account {
        width: auto;
        margin-left: auto;
        gap: 10px;
    }

    .market-account-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(22, 119, 255, 0.12), transparent 32%),
            linear-gradient(180deg, #eef4fb 0%, #f8fbff 48%, #eef2f8 100%);
    }

    .market-main {
        padding: 14px;
    }

    .market-topbar {
        padding: 16px;
    }

    .market-panel {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .market-panel-head,
    .table-toolbar,
    .table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .filter-button-row,
    .table-toolbar-left,
    .table-bottom-actions,
    .pager,
    .table-footer-right {
        width: 100%;
    }

    .filter-button-row .btn,
    .table-toolbar-left .btn,
    .table-bottom-actions .btn {
        width: 100%;
    }

    .multi-block {
        align-items: flex-start;
    }

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

    .filter-search-block .filter-button-row {
        justify-content: stretch;
    }

    .market-empty {
        min-height: 180px;
    }

    .pager {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .auth-shell,
    .center-shell,
    .market-topbar,
    .market-main {
        width: 100%;
    }

    .auth-aside,
    .auth-main,
    .center-shell {
        padding: 18px;
    }

    .auth-card,
    .center-card {
        width: 100%;
        padding: 24px 18px;
    }

    .auth-copy {
        margin-top: 36px;
    }

    .auth-copy h1 {
        font-size: 34px;
    }

    .copy-points {
        margin-top: 26px;
    }

    .copy-point {
        padding: 14px;
    }

    .center-header,
    .center-footer,
    .link-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-brand-text strong {
        font-size: 18px;
    }

    .market-brand-text span {
        font-size: 12px;
    }

    .market-brand-mark,
    .market-icon-button {
        display: none;
    }

    .market-balance strong {
        font-size: 14px;
    }

    .market-icon-button,
    .market-avatar-button,
    .market-nav-toggle {
        width: 40px;
        height: 40px;
    }

    .range-row span {
        min-width: 0;
    }

    .market-grid.ag-theme-quartz {
        min-height: 320px;
    }

    .market-table thead th,
    .market-table tbody td {
        white-space: nowrap;
    }

    .market-table-wrap {
        overflow: visible;
    }

    .market-table {
        min-width: 0;
    }

    .market-table thead {
        display: none;
    }

    .market-table,
    .market-table tbody,
    .market-table tr,
    .market-table td {
        display: block;
        width: 100%;
    }

    .market-table tbody {
        display: grid;
        gap: 12px;
    }

    .market-table tbody tr {
        padding: 14px;
        border: 1px solid #e5edf6;
        border-radius: var(--radius-md);
        background: #fbfdff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .market-table tbody td {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px dashed #e7eef7;
        white-space: normal;
        word-break: break-word;
    }

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

    .market-table tbody td::before {
        content: attr(data-label);
        color: #6b7a90;
        font-size: 12px;
        font-weight: 700;
    }

    .cell-check {
        width: 100%;
    }

.table-action-btn {
    width: 100%;
}
}

.login-notice-popup {
    max-width: 760px;
}

.login-notice-content {
    max-height: 62vh;
    overflow: auto;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.75;
    color: #334155;
    padding-right: 4px;
}
