:root {
    --user-bg: #f4f6f9;
    --user-surface: #fff;
    --user-text: #182235;
    --user-muted: #7e8999;
    --user-border: #e5e9f0;
    --user-primary: #2f6fed;
    --user-primary-soft: #edf3ff;
    --user-nav: #121a24;
    --user-radius: 14px;
    --user-shadow: 0 7px 24px rgba(19,32,51,.055);
}

/* 代理裂变推广中心（普通用户与代理共用） */
.referral-page { max-width: 1220px; margin: 0 auto; }
.referral-heading { margin-bottom: 16px; }
.referral-link-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:20px 22px; border:1px solid #cddcff; border-radius:16px; background:linear-gradient(135deg,#f4f7ff,#fff); box-shadow:0 10px 26px rgba(47,111,237,.08); }
.referral-link-copy { min-width:0; display:flex; align-items:center; gap:13px; }
.referral-link-copy > span { width:43px; height:43px; display:grid; flex:0 0 auto; place-items:center; border-radius:13px; background:#2f6fed; color:#fff; font-size:1.15rem; }
.referral-link-copy div { min-width:0; }
.referral-link-copy small { display:block; margin-bottom:4px; color:#708099; font-size:.72rem; }
.referral-link-copy strong { display:block; overflow:hidden; color:#263650; font-size:.88rem; text-overflow:ellipsis; white-space:nowrap; }
.referral-link-card .btn { flex:0 0 auto; min-width:116px; border-radius:10px; }
.referral-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.referral-stats > div { position:relative; min-height:114px; padding:18px 18px 16px; overflow:hidden; border:1px solid #e2e8f2; border-radius:14px; background:#fff; box-shadow:0 7px 22px rgba(32,51,84,.055); }
.referral-stats > div > span { width:34px; height:34px; display:grid; place-items:center; float:right; border-radius:10px; background:#edf3ff; color:#2f6fed; }
.referral-stats small { display:block; margin:2px 0 12px; color:#7a8799; font-size:.72rem; }
.referral-stats strong { display:block; color:#24324a; font-size:1.35rem; }
.referral-card { overflow:hidden; border:1px solid #e2e8f2 !important; border-radius:15px !important; box-shadow:0 8px 24px rgba(32,51,84,.055); }
.referral-card .card-header { padding:15px 18px; border-bottom:1px solid #edf0f5; background:#fff; }
.referral-card .card-header div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.referral-card .card-header span { color:#8a96a7; font-size:.7rem; font-weight:500; }
.referral-card th { color:#758196; font-size:.7rem; font-weight:650; white-space:nowrap; }
.referral-card td { color:#344155; font-size:.76rem; }
@media (max-width: 800px) {
    .referral-link-card { align-items:stretch; flex-direction:column; }
    .referral-link-copy strong { white-space:normal; word-break:break-all; }
    .referral-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
    .referral-stats { grid-template-columns:1fr; }
}

.user-body {
    min-height: 100vh;
    color: var(--user-text);
    background: radial-gradient(circle at 7% 3%, rgba(47,111,237,.045), transparent 25%), var(--user-bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.user-navbar { min-height: 62px; padding: 0; border: 0; background: rgba(18,26,36,.985); box-shadow: 0 4px 18px rgba(8,15,24,.14); }
.user-navbar-shell { max-width: 1560px; min-height: 62px; padding-left: clamp(15px,2vw,28px); padding-right: clamp(15px,2vw,28px); }
.user-brand { margin-right: 24px; display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-size: 1rem; font-weight: 750; }
.user-brand-logo { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.17); border-radius: 10px; object-fit: cover; background: #fff; }
.user-nav-list { gap: 4px; }
.user-navbar .nav-link { min-height: 39px; padding: 9px 12px !important; display: flex; align-items: center; gap: 7px; border-radius: 9px; color: rgba(235,241,248,.7); font-size: .84rem; font-weight: 550; white-space: nowrap; transition: .18s ease; }
.user-navbar .nav-link:hover,
.user-navbar .nav-link:focus { color: #fff; background: rgba(255,255,255,.07); }
.user-navbar .nav-link.active { color: #fff; background: rgba(64,119,227,.27); box-shadow: inset 0 0 0 1px rgba(117,157,235,.16); }
.user-toggler { padding: 6px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; box-shadow: none !important; }
.user-account-nav { margin-left: 12px; }
.user-account-link { gap: 8px !important; }
.user-avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; }
.user-dropdown-menu { min-width: 190px; margin-top: 8px !important; padding: 7px; border: 1px solid var(--user-border); border-radius: 13px; background: #fff; box-shadow: 0 16px 45px rgba(15,27,43,.15); }
.user-dropdown-menu .dropdown-item { min-height: 39px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border-radius: 9px; color: #374256; font-size: .84rem; }
.user-dropdown-menu .dropdown-item i { width: 18px; color: #768398; text-align: center; }
.user-dropdown-menu .dropdown-item:hover { background: #f4f7fb; color: #1e2a3e; }
.user-dropdown-menu .dropdown-item.active { background: var(--user-primary-soft); color: var(--user-primary); }
.user-dropdown-menu .dropdown-item.active i { color: var(--user-primary); }

.user-main { width: 100%; max-width: 1560px; margin: 0 auto; padding-left: clamp(14px,2vw,28px) !important; padding-right: clamp(14px,2vw,28px) !important; }
.user-main > .alert:first-child { margin-bottom: 18px; }
.user-main h4 { color: var(--user-text); font-size: clamp(1.15rem,2vw,1.4rem); font-weight: 750; letter-spacing: -.025em; }
.user-main h4 > i { margin-right: 5px; color: var(--user-primary); }
.user-main code { padding: 3px 6px; border-radius: 6px; background: #f2f4f7; color: #bd4265; }

.user-main .card {
    overflow: hidden;
    border: 1px solid var(--user-border) !important;
    border-radius: var(--user-radius) !important;
    background: var(--user-surface);
    box-shadow: var(--user-shadow) !important;
}
.user-main .card-header { min-height: 52px; padding: 14px 18px; display: flex; align-items: center; border-bottom: 1px solid #edf0f4; background: #fbfcfd !important; color: #2b374a; font-size: .88rem; font-weight: 700; }
.user-main .card-body { padding: 18px; }

.user-main .alert { border-radius: 12px; box-shadow: none; }
.user-main .alert-light { border-color: var(--user-border) !important; background: #fff; color: #596579; font-size: .82rem; }
.user-main .alert-info { border-color: #cfe0fc; background: #f4f8ff; color: #45658f; }
.user-main .alert-success { border-color: #ccebd8; background: #f2fbf5; color: #247345; }
.user-main .alert-danger { border-color: #f3d0d5; background: #fff5f6; color: #a53b4a; }

.user-main .table { --bs-table-bg: transparent; margin-bottom: 0; }
.user-main .table > :not(caption) > * > * { padding: 12px 14px; border-bottom-color: #edf0f4; }
.user-main .table thead th { border-bottom-width: 1px; background: #f8fafc !important; color: #778397; font-size: .73rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.user-main .table tbody td { color: #3c485d; font-size: .82rem; vertical-align: middle; }
.user-main .table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f7faff; }
.user-main .badge { padding: .43em .66em; border-radius: 7px; font-weight: 650; }

.user-main .form-label { color: #485469; font-size: .82rem; font-weight: 650; }
.user-main .form-control,
.user-main .form-select,
.user-main .input-group-text { min-height: 43px; border-color: #dfe4eb; border-radius: 9px; font-size: .86rem; }
.user-main .form-control:focus,
.user-main .form-select:focus { border-color: #8cb1f7; box-shadow: 0 0 0 3px rgba(47,111,237,.1); }
.user-main textarea.form-control { line-height: 1.65; }
.user-main .form-text { color: #929cab; font-size: .73rem; }
.user-main .input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.user-main .input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.user-main .btn { min-height: 38px; padding: 8px 14px; border-radius: 9px; font-size: .82rem; font-weight: 650; box-shadow: none; }
.user-main .btn:hover { transform: translateY(-1px); }
.user-main .btn-primary { border-color: var(--user-primary); background: var(--user-primary); }
.user-main .btn-primary:hover { border-color: #245fd4; background: #245fd4; }
.user-main .btn-sm { min-height: 32px; padding: 5px 10px; border-radius: 8px; font-size: .75rem; }

.user-main .nav-tabs { gap: 4px; padding: 5px; border: 1px solid var(--user-border); border-radius: 11px; background: #f7f9fc; }
.user-main .nav-tabs .nav-link { border: 0; border-radius: 8px; color: #69768a; font-size: .8rem; font-weight: 650; }
.user-main .nav-tabs .nav-link:hover { color: #334155; background: #fff; }
.user-main .nav-tabs .nav-link.active { color: var(--user-primary); background: #fff; box-shadow: 0 3px 10px rgba(25,38,57,.07); }
.user-main .tab-pane { padding: 5px 2px 2px; }

.user-main .pagination { margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.user-main .pagination .page-link { min-width: 36px; height: 36px; border-radius: 8px !important; color: #657287; box-shadow: none; }
.user-main .pagination .page-item.active .page-link { border-color: var(--user-primary); background: var(--user-primary); color: #fff; }
.modal-content { border: 1px solid var(--user-border); border-radius: 15px; box-shadow: 0 20px 65px rgba(15,27,43,.18); }

/* 生成页统一 */
.user-main .gen-action .input-group-text-label { min-width: 90px; border-color: #dfe4eb; background: #f7f9fc; color: #667287; }
.user-main .gen-action .gen-input,
.user-main .gen-action .gen-btn { min-height: 46px; }
.user-main .gen-action .gen-btn { min-width: 210px; }
.user-main .row.g-3.mb-3 > [class*="col-"] > .alert-light { min-height: 58px; display: flex; align-items: center; margin: 0; padding: 14px 16px; }

/* 概览 */
.user-dashboard-page { width:100%; max-width:1240px; margin:0 auto; }
.user-dashboard-heading { margin-bottom:14px !important; }
.user-dashboard-head { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.user-dashboard-head p { margin: 4px 0 0; color: #8994a5; font-size: .8rem; }
.user-prefix-pill { padding: 7px 10px; border: 1px solid #dfe6f2; border-radius: 9px; background: #fff; color: #778397; font-size: .73rem; }
.user-balance-overview { min-height:132px; margin-bottom:14px; padding:22px 24px; display:flex; align-items:center; justify-content:space-between; gap:24px; overflow:hidden; border:1px solid #dce5f2; border-radius:14px; background:linear-gradient(115deg,#fff 0%,#f5f9ff 100%); box-shadow:0 8px 28px rgba(24,39,62,.045); }
.user-balance-overview-main { min-width:0; display:flex; align-items:center; gap:16px; }
.user-balance-overview-icon { width:56px; height:56px; display:grid; flex:0 0 56px; place-items:center; border-radius:15px; background:#e7f0ff; color:var(--user-primary); font-size:1.25rem; }
.user-balance-overview-copy { min-width:0; display:flex; flex-direction:column; }
.user-balance-overview-copy small { margin-bottom:1px; color:#7f8da1; font-size:.72rem; }
.user-balance-overview-copy strong { color:#1f2d42; font-size:2rem; font-weight:760; line-height:1.2; letter-spacing:-.035em; }
.user-balance-overview-copy strong em { margin-right:2px; color:#4d6f9f; font-size:1rem; font-style:normal; font-weight:700; }
.user-balance-overview-copy span { margin-top:4px; color:#9aa5b4; font-size:.68rem; }
.user-balance-overview-link { min-height:38px; padding:8px 13px; display:inline-flex; align-items:center; gap:7px; border:1px solid #cddcf5; border-radius:9px; background:#fff; color:#3970cd; font-size:.7rem; font-weight:650; text-decoration:none; white-space:nowrap; }
.user-balance-overview-link:hover { border-color:#9dbcf0; background:#edf4ff; color:#245ebf; }
.user-balance-overview-actions { display:flex; align-items:center; gap:8px; }
.user-balance-overview-link.primary { border-color:var(--user-primary); background:var(--user-primary); color:#fff; }
.user-balance-overview-link.primary:hover { border-color:#245fd4; background:#245fd4; color:#fff; }
.user-dashboard-quick-card { overflow:hidden; border:1px solid #dfe5ed !important; border-radius:14px !important; box-shadow:0 8px 26px rgba(24,39,62,.04) !important; }
.user-dashboard-quick-card .card-header { min-height:52px; padding:0 18px; display:flex; align-items:center; border-bottom:1px solid #e8ecf1; background:#fafbfc; }
.user-dashboard-quick-card .card-header div { display:flex; align-items:baseline; gap:9px; }
.user-dashboard-quick-card .card-header strong { color:#344155; font-size:.79rem; }
.user-dashboard-quick-card .card-header span { color:#98a2b0; font-size:.65rem; }
.user-dashboard-quick-card .card-body { padding:18px !important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }

/* 在线充值 */
.user-recharge-page { width:100%; max-width:1240px; margin:0 auto; }
.user-recharge-balance { padding:7px 11px; border:1px solid #dce5f2; border-radius:9px; background:#fff; color:#7d899a; font-size:.7rem; }
.user-recharge-balance strong { margin-left:5px; color:#245fc6; font-size:.82rem; }
.user-recharge-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:14px; align-items:start; }
.user-recharge-card { overflow:hidden; border:1px solid #dfe5ed !important; border-radius:14px !important; box-shadow:0 8px 26px rgba(24,39,62,.04) !important; }
.user-recharge-card .card-header { min-height:52px; padding:0 18px; display:flex; align-items:center; border-bottom:1px solid #e8ecf1; background:#fafbfc; }
.user-recharge-card .card-header div { display:flex; align-items:baseline; gap:9px; }
.user-recharge-card .card-header strong { color:#344155; font-size:.79rem; }
.user-recharge-card .card-header span { color:#98a2b0; font-size:.65rem; }
.user-recharge-card .card-body { padding:20px !important; }
.user-recharge-form { display:grid; gap:18px; }
.user-recharge-form .form-label { margin-bottom:7px; color:#4b586b; font-size:.75rem; font-weight:650; }
.user-recharge-form .form-control,.user-recharge-form .input-group-text { min-height:44px; border-color:#d8dee7; box-shadow:none; }
.user-recharge-form .form-control:focus { border-color:#8cb1f7; box-shadow:0 0 0 3px rgba(47,111,237,.08); }
.user-recharge-form .form-text { color:#929cab; font-size:.66rem; }
.user-recharge-methods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.user-recharge-methods label { margin:0; cursor:pointer; }
.user-recharge-methods input { position:absolute; opacity:0; pointer-events:none; }
.user-recharge-methods span { min-height:42px; display:flex; align-items:center; justify-content:center; gap:6px; border:1px solid #dfe5ed; border-radius:9px; color:#657287; font-size:.7rem; transition:.16s ease; }
.user-recharge-methods input:checked + span { border-color:#8fb3f4; background:#f1f6ff; color:#245fc6; box-shadow:0 0 0 2px rgba(47,111,237,.06); }
.user-recharge-form > .btn { min-height:44px; border-radius:9px; font-size:.78rem; font-weight:700; }
.user-recharge-orders .card-body { padding:8px 18px !important; }
.user-recharge-order { min-height:61px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #edf0f4; }
.user-recharge-order:last-child { border-bottom:0; }
.user-recharge-order > div { min-width:0; display:flex; flex-direction:column; gap:3px; }
.user-recharge-order strong { color:#25344b; font-size:.8rem; }
.user-recharge-order div span { overflow:hidden; color:#929cab; font-size:.63rem; text-overflow:ellipsis; white-space:nowrap; }
.user-recharge-status { padding:3px 8px; border-radius:999px; font-size:.61rem; font-weight:650; white-space:nowrap; }
.user-recharge-status.paid { background:#e8f8ef; color:#218a59; }
.user-recharge-status.pending { background:#fff3df; color:#ae741e; }
.user-recharge-empty { min-height:180px; display:grid; place-items:center; color:#9ba5b3; font-size:.72rem; }
.user-dashboard-stats { margin-bottom: 18px; }
.user-stat-card { position: relative; min-height: 112px; padding: 19px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--user-border); border-radius: 15px; background: #fff; box-shadow: var(--user-shadow); }
.user-stat-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 13px; font-size: 1.05rem; }
.user-stat-copy { display: flex; flex-direction: column; }
.user-stat-copy small { color: #8994a5; font-size: .74rem; }
.user-stat-copy strong { color: #202b3d; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.04em; }
.user-stat-copy span { margin-top: 3px; color: #a0a8b5; font-size: .68rem; }
.user-stat-blue .user-stat-icon { color: #2f6fed; background: #edf3ff; }
.user-stat-green .user-stat-icon { color: #2ca87a; background: #eaf8f2; }
.user-stat-amber .user-stat-icon { color: #d99b1d; background: #fff6df; }
.user-quick-card .card-body { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.user-quick-link { min-height: 64px; padding: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #e5e9f0; border-radius: 11px; color: #475469; text-decoration: none; transition: .18s ease; }
.user-quick-link:hover { border-color: #b9cdf4; background: #f7faff; color: var(--user-primary); }
.user-quick-link i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--user-primary-soft); color: var(--user-primary); }
.user-quick-link span { display: flex; flex-direction: column; font-size: .8rem; font-weight: 700; }
.user-quick-link small { color: #99a2b0; font-size: .65rem; font-weight: 400; }

@media (max-width: 1199.98px) {
    .user-navbar { min-height: 58px; }
    .user-navbar-shell { min-height: 58px; }
    .user-navbar .navbar-collapse { padding: 10px 0 14px; }
    .user-account-nav { margin: 6px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
    .user-dropdown-menu { margin: 3px 0 7px !important; border: 0; background: rgba(255,255,255,.055); box-shadow: none; }
    .user-dropdown-menu .dropdown-item { color: rgba(240,245,250,.78); }
    .user-dropdown-menu .dropdown-item i { color: rgba(240,245,250,.55); }
    .user-dropdown-menu .dropdown-item:hover,
    .user-dropdown-menu .dropdown-item.active { background: rgba(255,255,255,.08); color: #fff; }
    .user-dropdown-menu .dropdown-item.active i { color: #fff; }
    .user-dropdown-menu .dropdown-divider { border-color: rgba(255,255,255,.08); }
}
@media (max-width: 767.98px) {
    .user-main { padding-top: 16px !important; padding-bottom: 25px !important; }
    .user-main h4 { font-size: 1.18rem; }
    .user-main .card-body { padding: 15px; }
    .user-main .d-flex.justify-content-between.align-items-center.mb-3,
    .user-main .d-flex.justify-content-between.align-items-center.mb-4 { align-items: flex-start !important; flex-wrap: wrap; gap: 10px; }
    .user-main .table > :not(caption) > * > * { padding: 10px 11px; }
    .user-main .gen-action .input-group { display: grid; grid-template-columns: 76px minmax(0,1fr); }
    .user-main .gen-action .input-group-text-label { min-width: 0; }
    .user-main .gen-action .gen-btn { width: 100%; min-width: 0; grid-column: 1 / -1; border-radius: 9px !important; margin-top: 9px; }
    .user-dashboard-head { align-items: flex-start; flex-direction: column; }
    .user-quick-card .card-body { grid-template-columns: 1fr; }
    .user-main .nav-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .user-main .nav-tabs .nav-link { white-space: nowrap; }
}

/* 五种游戏统一生成页 */
.user-unified-generate { width:100%; max-width:1180px; margin:0 auto; }
.user-generate-hero { min-height:108px; margin-bottom:14px; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid #dfe7f2; border-radius:17px; background:linear-gradient(125deg,#fff 0%,#f8fbff 58%,#edf4ff 100%); box-shadow:0 10px 30px rgba(34,56,89,.055); }
.user-generate-hero-copy { display:flex; align-items:center; gap:14px; }
.user-generate-hero-icon { width:48px; height:48px; display:grid; flex:0 0 48px; place-items:center; border-radius:14px; background:#e8f1ff; color:var(--user-primary); font-size:1.22rem; }
.user-generate-hero h4 { margin:0 0 5px; color:#1e293b; font-size:1.25rem; font-weight:750; }
.user-generate-hero p { margin:0; color:#7e8a9c; font-size:.78rem; }
.user-generate-account { display:flex; align-items:center; gap:10px; }
.user-generate-account > span { min-width:112px; padding:9px 12px; display:flex; flex-direction:column; border:1px solid #e1e7ef; border-radius:11px; background:rgba(255,255,255,.78); }
.user-generate-account small { margin-bottom:2px; color:#8a96a7; font-size:.64rem; }
.user-generate-account strong { color:#344155; font-size:.82rem; }
.user-generate-panel { margin-bottom:14px; padding:17px 18px; border:1px solid #e1e7ef; border-radius:16px; background:#fff; box-shadow:0 8px 26px rgba(24,39,62,.045); }
.user-generate-section-title { margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.user-generate-section-title > div { display:flex; align-items:center; gap:9px; }
.user-generate-section-title > div > span { width:29px; height:29px; display:grid; place-items:center; border-radius:9px; background:#edf3ff; color:var(--user-primary); font-size:.67rem; font-weight:800; }
.user-generate-section-title strong { color:#334155; font-size:.86rem; }
.user-generate-section-title > small { color:#8b97a8; font-size:.69rem; }
.user-game-picker { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.user-game-choice { position:relative; min-height:92px; padding:13px; display:flex; align-items:center; gap:10px; overflow:hidden; border:1px solid #e0e6ee; border-radius:13px; background:#fbfcfe; color:#344155; text-align:left; transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.user-game-choice:hover { transform:translateY(-1px); border-color:#bfd1f3; background:#fff; box-shadow:0 7px 18px rgba(31,50,79,.07); }
.user-game-choice.active { border-color:#85aef8; background:#f2f6ff; box-shadow:0 0 0 3px rgba(47,111,237,.07); }
.user-game-choice-icon { width:38px; height:38px; display:grid; flex:0 0 38px; place-items:center; border-radius:11px; background:#edf2f8; color:#64748b; font-size:.98rem; }
.user-game-choice.active .user-game-choice-icon { background:#dfeaff; color:var(--user-primary); }
.user-game-choice-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.user-game-choice-copy strong { color:#2f3e53; font-size:.78rem; white-space:nowrap; }
.user-game-choice-copy small { color:#929dad; font-size:.62rem; line-height:1.4; }
.user-game-choice-check { position:absolute; top:8px; right:8px; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:var(--user-primary); color:#fff; font-size:.65rem; opacity:0; transform:scale(.7); transition:.16s ease; }
.user-game-choice.active .user-game-choice-check { opacity:1; transform:scale(1); }
.user-generate-input-row { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:12px; }
.user-generate-count-field label { margin-bottom:6px; color:#657287; font-size:.72rem; font-weight:700; }
.user-generate-count-input { min-height:47px; padding:0 13px; display:flex; align-items:center; gap:9px; border:1px solid #dce3ec; border-radius:10px; background:#fbfcfe; transition:border-color .16s ease,box-shadow .16s ease; }
.user-generate-count-input:focus-within { border-color:#8cb1f7; background:#fff; box-shadow:0 0 0 3px rgba(47,111,237,.08); }
.user-generate-count-input i { color:#93a0b1; }
.user-generate-count-input input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:#253247; font-size:.9rem; font-weight:650; }
.user-generate-count-input span { color:#8c98a9; font-size:.73rem; }
.user-generate-price-box { min-height:70px; padding:10px 13px; display:grid; grid-template-columns:1fr auto; align-content:center; border:1px solid #dfe7f2; border-radius:11px; background:#f7faff; }
.user-generate-price-box small { grid-column:1/-1; color:#8c98a9; font-size:.64rem; }
.user-generate-price-box strong { color:var(--user-primary); font-size:1rem; }
.user-generate-price-box > span { align-self:end; color:#8c98a9; font-size:.65rem; }
.user-generate-quick-counts { margin-top:11px; display:flex; align-items:center; gap:7px; }
.user-generate-quick-counts > span { margin-right:2px; color:#8b96a7; font-size:.69rem; }
.user-generate-quick-counts button { min-width:42px; height:29px; padding:0 9px; border:1px solid #dfe5ed; border-radius:8px; background:#f8fafc; color:#657287; font-size:.7rem; font-weight:650; }
.user-generate-quick-counts button:hover { border-color:#9ebcf3; background:#eef4ff; color:var(--user-primary); }
.user-generate-submit-row { margin-top:16px; padding-top:14px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid #edf0f4; }
.user-generate-submit-row p { margin:0; color:#8793a4; font-size:.7rem; }
.user-generate-submit-row p i { margin-right:3px; color:var(--user-primary); }
.user-generate-submit-row .btn { min-height:42px; min-width:150px; border-radius:10px; font-size:.78rem; font-weight:700; }
.user-generate-confirm-dialog { max-width:460px; }
.user-generate-confirm-modal { overflow:hidden; border:0 !important; border-radius:18px !important; box-shadow:0 28px 80px rgba(12,25,45,.24) !important; }
.user-generate-confirm-modal .modal-header { min-height:78px; padding:15px 18px; border-bottom:1px solid #e8edf3; background:linear-gradient(125deg,#fff 0%,#f5f9ff 100%); }
.user-generate-confirm-title { min-width:0; display:flex; align-items:center; gap:11px; }
.user-generate-confirm-title > span { width:40px; height:40px; display:grid; flex:0 0 40px; place-items:center; border-radius:12px; background:#e9f1ff; color:var(--user-primary); font-size:1rem; }
.user-generate-confirm-title h5 { margin:0 0 3px; color:#1e293b; font-size:1.02rem; font-weight:750; }
.user-generate-confirm-title p { margin:0; color:#8a96a7; font-size:.68rem; }
.user-generate-confirm-modal .btn-close { margin:0; padding:9px; border-radius:9px; }
.user-generate-confirm-modal .modal-body { padding:16px 18px 12px; }
.user-generate-confirm-game { min-height:67px; padding:10px 12px; display:flex; align-items:center; gap:11px; border:1px solid #dbe7fb; border-radius:12px; background:#f6f9ff; }
.user-generate-confirm-game-icon { width:38px; height:38px; display:grid; flex:0 0 38px; place-items:center; border-radius:10px; background:#e7f0ff; color:var(--user-primary); font-size:.95rem; }
.user-generate-confirm-game div { min-width:0; display:flex; flex:1; flex-direction:column; gap:2px; }
.user-generate-confirm-game small { color:#8a96a7; font-size:.64rem; }
.user-generate-confirm-game strong { overflow:hidden; color:#26364d; font-size:.83rem; text-overflow:ellipsis; white-space:nowrap; }
.user-generate-confirm-game > i { color:#46b883; font-size:.92rem; }
.user-generate-confirm-list { margin-top:11px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.user-generate-confirm-list > div { min-height:62px; padding:10px 12px; display:flex; align-items:flex-start; flex-direction:column; justify-content:center; gap:5px; border:1px solid #e5eaf1; border-radius:11px; background:#fff; color:#8a96a7; font-size:.67rem; }
.user-generate-confirm-list strong { color:#314158; font-size:.8rem; }
.user-generate-confirm-total { margin-top:9px; min-height:69px; padding:11px 13px; display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid #f1dcae; border-radius:11px; background:#fffaf0; }
.user-generate-confirm-total > span { display:flex; flex-direction:column; gap:3px; }
.user-generate-confirm-total small { color:#765f37; font-size:.71rem; font-weight:700; }
.user-generate-confirm-total em { color:#aa9672; font-size:.61rem; font-style:normal; }
.user-generate-confirm-total strong { color:#e05263; font-size:1.14rem; letter-spacing:-.02em; white-space:nowrap; }
.user-generate-confirm-tip { margin:10px 1px 0; color:#929cab; font-size:.64rem; }
.user-generate-confirm-tip i { margin-right:4px; color:var(--user-primary); }
.user-generate-confirm-modal .modal-footer { padding:10px 18px 16px; display:grid; grid-template-columns:1fr 1.25fr; gap:9px; border:0; }
.user-generate-confirm-modal .modal-footer .btn { width:100%; min-height:41px; margin:0; display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:10px; }
.user-generate-confirm-modal .modal-footer .btn-light { border:1px solid #dfe5ed; color:#657287; background:#fff; }

.user-simple-generate { width:100%; max-width:1240px; margin:0 auto; }
.user-generate-heading { margin-bottom:14px !important; }
.user-simple-generate-card { overflow:hidden; border:1px solid #dfe5ed !important; border-radius:10px !important; background:#fff; box-shadow:0 5px 18px rgba(27,43,66,.035) !important; }
.user-simple-generate-header { min-height:48px; padding:0 18px; display:flex; align-items:center; gap:10px; border-bottom:1px solid #e5e9ef; background:#fafbfc; }
.user-simple-generate-header strong { color:#2f3b4c; font-size:.82rem; }
.user-simple-generate-header span { color:#929baa; font-size:.7rem; }
.user-simple-generate-card > .card-body { padding:24px 28px !important; }
.user-simple-generate-form { display:grid; gap:18px; }
.user-simple-form-row { display:grid; grid-template-columns:92px minmax(0,1fr); align-items:center; gap:14px; }
.user-simple-form-row > label { margin:0; color:#4b5565; font-size:.75rem; text-align:right; white-space:nowrap; }
.user-simple-form-row > label em { color:#ef4444; font-style:normal; }
.user-simple-form-row > .form-control { min-height:42px; border-color:#d8dee7; border-radius:5px; color:#344155; font-size:.8rem; box-shadow:none; }
.user-simple-form-row > .form-control:focus { border-color:#8cb1f7; box-shadow:0 0 0 3px rgba(47,111,237,.08); }
.user-simple-readonly { min-height:42px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #d8dee7; border-radius:5px; background:#fafbfc; }
.user-simple-readonly span { color:#334155; font-size:.8rem; }
.user-simple-readonly small { color:#8c96a5; font-size:.69rem; }
.user-simple-game-options { min-height:42px; display:flex; align-items:center; flex-wrap:wrap; gap:10px 20px; }
.user-simple-game-options label { margin:0; display:inline-flex; align-items:center; gap:7px; color:#475569; font-size:.77rem; cursor:pointer; white-space:nowrap; }
.user-simple-game-options input { width:15px; height:15px; margin:0; flex:0 0 15px; accent-color:var(--user-primary); cursor:pointer; }
.user-simple-game-options input:focus-visible { outline:2px solid rgba(47,111,237,.25); outline-offset:2px; }
.user-simple-game-options input:checked + span { color:#2f5fb8; font-weight:650; }
.user-simple-submit-row { margin-top:-7px; margin-left:106px; padding-top:4px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.user-simple-submit-row p { margin:0; color:#929cab; font-size:.69rem; }
.user-simple-submit-row p i { margin-right:4px; color:var(--user-primary); }
.user-simple-submit-row .btn { min-height:42px; padding:8px 15px; display:inline-flex; align-items:center; justify-content:center; gap:7px; border-radius:6px; font-size:.76rem; font-weight:700; white-space:nowrap; }

/* 个人中心 */
.user-profile-page { width:100%; max-width:1240px; margin:0 auto; }
.user-profile-heading { margin-bottom:14px !important; }
.user-profile-status { min-height:30px; padding:5px 11px; display:inline-flex; align-items:center; gap:6px; border:1px solid #cce8d9; border-radius:999px; background:#effaf4; color:#27825a; font-size:.7rem; font-weight:650; white-space:nowrap; }
.user-profile-summary { margin-bottom:14px; overflow:hidden; border:1px solid #e1e7ef !important; border-radius:15px !important; box-shadow:0 8px 24px rgba(24,39,62,.04) !important; }
.user-profile-summary .card-body { padding:18px 20px !important; }
.user-profile-identity { display:flex; align-items:center; gap:12px; }
.user-profile-avatar { width:48px; height:48px; display:grid; flex:0 0 48px; place-items:center; border-radius:14px; background:#eaf2ff; color:var(--user-primary); font-size:1.15rem; }
.user-profile-identity > div { min-width:0; flex:1; }
.user-profile-identity h5 { margin:0 0 3px; color:#243249; font-size:.96rem; font-weight:750; }
.user-profile-identity p { margin:0; color:#8a96a7; font-size:.7rem; }
.user-profile-level { padding:5px 10px; border:1px solid #d3e0f8; border-radius:8px; background:#f2f6ff; color:#356bc7; font-size:.68rem; font-weight:700; }
.user-profile-meta { margin-top:16px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; border:1px solid #e7ebf1; border-radius:11px; background:#fafbfd; }
.user-profile-meta > div { min-height:64px; padding:11px 14px; display:flex; flex-direction:column; justify-content:center; gap:5px; border-right:1px solid #e7ebf1; }
.user-profile-meta > div:last-child { border-right:0; }
.user-profile-meta span { color:#939dac; font-size:.63rem; }
.user-profile-meta strong { overflow:hidden; color:#3c4a5f; font-size:.75rem; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.user-profile-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); gap:14px; align-items:start; }
.user-profile-panel { overflow:hidden; border:1px solid #e1e7ef !important; border-radius:15px !important; box-shadow:0 8px 24px rgba(24,39,62,.04) !important; }
.user-profile-panel .card-header { min-height:58px; padding:12px 16px; justify-content:space-between; background:#fbfcfe !important; }
.user-profile-panel .card-header > div { display:flex; align-items:center; gap:8px; color:#334155; }
.user-profile-panel .card-header > div i { color:var(--user-primary); }
.user-profile-panel .card-header small { color:#9aa4b2; font-size:.64rem; font-weight:400; }
.user-profile-panel .card-body { padding:14px 16px 16px !important; }
.user-price-list { display:grid; gap:8px; }
.user-price-item { min-height:57px; padding:8px 11px; display:flex; align-items:center; gap:11px; border:1px solid #e7ebf1; border-radius:11px; background:#fff; }
.user-price-icon { width:36px; height:36px; display:grid; flex:0 0 36px; place-items:center; border-radius:10px; background:#eef4ff; color:#3970ce; font-size:.85rem; }
.user-price-name { min-width:0; display:flex; flex:1; flex-direction:column; gap:2px; }
.user-price-name strong { color:#344155; font-size:.75rem; font-weight:650; }
.user-price-name small { color:#9aa4b2; font-size:.61rem; }
.user-price-custom { padding:3px 7px; border-radius:999px; background:#fff3df; color:#b7791f; font-size:.58rem; font-weight:650; white-space:nowrap; }
.user-price-value { align-self:stretch; display:inline-flex; align-items:center; color:#245fc6; font-size:.86rem; font-weight:750; line-height:1; white-space:nowrap; }
.user-price-value small { margin-left:2px; color:#9aa4b2; font-size:.59rem; font-weight:400; }
.user-password-form { display:grid; gap:14px; }
.user-password-form .form-label { margin-bottom:6px; color:#536176; font-size:.7rem; font-weight:650; }
.user-password-form .form-control { min-height:42px; border-radius:9px; font-size:.78rem; }
.user-password-form .form-text { color:#98a2b0; font-size:.63rem; }
.user-password-form .btn { min-height:42px; margin-top:1px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border-radius:9px; font-size:.74rem; font-weight:700; }

/* 生成记录 / 扣费流水 */
.user-record-page { width:100%; max-width:1240px; margin:0 auto; }
.user-record-heading { margin-bottom:14px !important; }
.user-record-total { display:inline-flex; min-height:30px; padding:5px 11px; align-items:center; border-radius:999px; background:rgba(255,255,255,.72); color:#738096; font-size:.7rem; white-space:nowrap; }
.user-record-filter { margin-bottom:14px; overflow:hidden; border:1px solid #e1e7ef !important; border-radius:14px !important; box-shadow:0 7px 22px rgba(24,39,62,.04) !important; }
.user-record-filter .card-body { padding:11px 14px !important; display:flex; align-items:center; gap:13px; }
.user-record-filter-label { flex:0 0 auto; color:#7e8999; font-size:.69rem; font-weight:700; }
.user-record-filter-tabs { display:flex; align-items:center; gap:6px; overflow-x:auto; scrollbar-width:none; }
.user-record-filter-tabs::-webkit-scrollbar { display:none; }
.user-record-filter-tabs a { min-height:32px; padding:6px 11px; display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; border:1px solid transparent; border-radius:8px; color:#6f7c8f; font-size:.71rem; font-weight:600; text-decoration:none; white-space:nowrap; }
.user-record-filter-tabs a:hover { background:#f3f6fa; color:#344155; }
.user-record-filter-tabs a.active { border-color:#cfdefa; background:#edf3ff; color:var(--user-primary); }
.user-record-card { overflow:hidden; border:1px solid #e1e7ef !important; border-radius:15px !important; box-shadow:0 10px 30px rgba(24,39,62,.045) !important; }
.user-record-table { width:100%; margin:0; table-layout:auto; }
.user-generate-record-table { min-width:1080px; }
.user-charge-table { min-width:940px; }
.user-record-table thead th { height:43px; padding:9px 12px; border-bottom:1px solid #e4e9f0; background:#f7f9fc; color:#7b8798; font-size:.68rem; font-weight:700; white-space:nowrap; }
.user-record-table tbody td { height:54px; padding:9px 12px; border-color:#ebeff4; color:#4b586b; font-size:.73rem; vertical-align:middle; }
.user-record-table tbody tr:last-child td { border-bottom:0; }
.user-record-table tbody tr:hover td { background:#f9fbff; }
.user-record-no { color:#2f3e53 !important; font-weight:700; white-space:nowrap; }
.user-record-fee { color:#d94f61 !important; font-weight:700; white-space:nowrap; }
.user-balance-change { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.user-balance-change i { color:#a4adba; font-size:.65rem; }
.user-record-time { color:#8c97a7; white-space:nowrap; }
.user-record-remark { display:block; max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-record-actions { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.user-record-actions .btn { min-height:30px; padding:4px 8px; display:inline-flex; align-items:center; gap:4px; border-radius:7px; font-size:.66rem; }
.just-generated td { background:#fff9e8 !important; }
@keyframes justGenPulse { 0%,100%{box-shadow:inset 0 0 0 1px rgba(245,180,48,.2)} 50%{box-shadow:inset 0 0 0 1px rgba(245,180,48,.55)} }
.just-generated { animation:justGenPulse 1.1s ease-in-out 3; }
.user-generate-success-modal { overflow:hidden; border:0 !important; border-radius:18px !important; box-shadow:0 28px 80px rgba(12,25,45,.24) !important; }
.user-generate-success-modal .modal-body { padding:28px 24px 22px; }
.user-generate-success-icon { width:58px; height:58px; margin:0 auto 14px; display:grid; place-items:center; border-radius:50%; background:#e8f8ef; color:#22a565; font-size:1.6rem; }
.user-generate-success-modal h5 { margin:0 0 8px; color:#26364d; font-size:1rem; font-weight:750; }
.user-generate-success-modal p { margin:0 0 20px; color:#7d899a; font-size:.75rem; line-height:1.65; }
.user-generate-success-modal p strong { color:#22a565; }
.user-generate-success-modal .btn { width:100%; min-height:41px; border-radius:10px; font-size:.78rem; font-weight:700; }
.user-generate-error-modal { overflow:hidden; border:0 !important; border-radius:18px !important; box-shadow:0 28px 80px rgba(12,25,45,.24) !important; }
.user-generate-error-modal .modal-body { padding:27px 22px 21px; }
.user-generate-error-icon { width:56px; height:56px; margin:0 auto 13px; display:grid; place-items:center; border-radius:50%; background:#fff1e8; color:#e67b32; font-size:1.35rem; }
.user-generate-error-modal h5 { margin:0 0 8px; color:#26364d; font-size:1rem; font-weight:750; }
.user-generate-error-modal p { margin:0 0 19px; color:#748196; font-size:.75rem; line-height:1.65; }
.user-generate-error-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.user-generate-error-actions .btn { min-height:40px; display:inline-flex; align-items:center; justify-content:center; border-radius:9px; font-size:.73rem; font-weight:700; }
.user-generate-error-actions .btn-light { border:1px solid #dfe5ed; color:#657287; }
.user-generate-error-actions .btn-primary[hidden] { display:none; }
.user-generate-error-actions.single { grid-template-columns:1fr; }

/* 功能配置 */
.user-feature-page { width:100%; max-width:1240px; margin:0 auto; font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.user-feature-heading { margin-bottom:14px !important; }
.user-feature-tip { min-height:44px; margin-bottom:14px; padding:10px 14px; display:flex; align-items:center; gap:9px; border:1px solid #d9e7fb; border-radius:10px; background:#f5f9ff; color:#687a94; font-size:12.5px; font-weight:400; line-height:1.6; }
.user-feature-tip > i { color:var(--user-primary); font-size:.88rem; }
.user-feature-card { overflow:hidden; border:1px solid #dfe5ed !important; border-radius:12px !important; box-shadow:0 5px 18px rgba(27,43,66,.035) !important; }
.user-feature-page .btn { font-family:inherit; font-weight:600; }
.user-feature-card > .card-body { padding:0 !important; }
.user-feature-tabs { min-height:40px; margin:10px 18px 0 !important; padding:3px 2px !important; display:flex; align-items:center; flex-wrap:nowrap; gap:5px; overflow-x:auto; overflow-y:hidden; border:0 !important; border-radius:0 !important; background:transparent !important; scrollbar-width:none; -ms-overflow-style:none; }
.user-feature-tabs::-webkit-scrollbar { display:none; width:0; height:0; }
.user-feature-tabs .nav-item { flex:0 0 auto; }
.user-feature-tabs .nav-link { min-height:34px; padding:6px 12px; display:inline-flex; align-items:center; justify-content:center; border:1px solid transparent !important; border-radius:9px; background:transparent !important; color:#627087; font-family:inherit; font-size:13px; font-weight:500; line-height:1.4; letter-spacing:0; white-space:nowrap; box-shadow:none !important; }
.user-feature-tabs .nav-link:hover { border-color:transparent !important; background:#f3f6fa !important; color:#344155; }
.user-feature-tabs .nav-link.active { border-color:#cdddfa !important; background:#edf3ff !important; color:var(--user-primary); font-weight:600; }
.user-carousel-intro { display:flex; flex-direction:column; gap:4px; padding:13px 15px; border:1px solid #dce7f7; border-radius:11px; background:#f6f9ff; }
.user-carousel-intro strong { color:#314868; font-size:.84rem; }
.user-carousel-intro span { color:#7b899d; font-size:.7rem; line-height:1.55; }
.user-carousel-row { padding:15px; border:1px solid #e1e7ef; border-radius:12px; background:#fff; box-shadow:0 4px 15px rgba(35,54,87,.035); }
.user-carousel-row > .d-flex > strong { color:#35445a; font-size:.8rem; }
.user-carousel-preview { width:min(100%,460px); overflow:hidden; border:1px solid #dfe5ee; border-radius:10px; background:#f5f7fa; line-height:0; }
.user-carousel-preview[hidden] { display:none; }
.user-carousel-preview img { display:block; width:100%; height:auto; max-height:160px; object-fit:cover; }
.user-feature-tab-content { padding:24px 28px 8px; }
.user-feature-tab-content .tab-pane > .mb-3 { margin-bottom:20px !important; }
.user-feature-tab-content .form-label { width:100%; margin-bottom:8px; color:#3f4d61; font-family:inherit; font-size:13px; font-weight:600; line-height:1.5; }
.user-feature-tab-content .form-control,.user-feature-tab-content .form-select { border-color:#d8dee7; border-radius:8px; color:#344155; font-family:inherit; font-size:13px; font-weight:400; line-height:1.55; box-shadow:none; }
.user-feature-tab-content input.form-control,.user-feature-tab-content select.form-select { min-height:42px; }
.user-feature-tab-content textarea.form-control { min-height:112px; padding:11px 12px; overflow:auto; background:#fbfcfe; font-family:inherit; font-size:13px; font-weight:400; line-height:1.7; resize:none; scrollbar-width:none; -ms-overflow-style:none; }
.user-feature-tab-content textarea.form-control::-webkit-scrollbar { display:none; width:0; height:0; }
.user-feature-tab-content .form-control:focus { border-color:#8cb1f7; box-shadow:0 0 0 3px rgba(47,111,237,.08); }
.user-feature-tab-content .form-text { margin-top:6px; color:#8b96a6; font-family:inherit; font-size:12px; font-weight:400; line-height:1.6; }
.user-code-field-label { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.user-code-preview-btn { min-height:29px; padding:4px 10px; display:inline-flex; align-items:center; gap:5px; border:1px solid #cddcf5; border-radius:7px; background:#f5f9ff; color:#3970cd; font-size:.67rem; font-weight:650; }
.user-code-preview-btn:hover { border-color:#9dbcf0; background:#eaf2ff; color:#245ebf; }
.user-feature-actions { padding:16px 28px 22px; display:flex; justify-content:flex-end; border-top:1px solid #edf0f4; }
.user-feature-actions .btn { min-width:132px; min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:7px; border-radius:8px; font-family:inherit; font-size:13px; font-weight:600; }
.user-code-preview-dialog { max-width:720px; }
.user-code-preview-modal { overflow:hidden; border:0 !important; border-radius:18px !important; box-shadow:0 28px 80px rgba(12,25,45,.24) !important; }
.user-code-preview-modal .modal-header { min-height:70px; padding:12px 16px; border-bottom:1px solid #e8edf3; background:linear-gradient(125deg,#fff 0%,#f5f9ff 100%); }
.user-code-preview-title { display:flex; align-items:center; gap:11px; }
.user-code-preview-title > span { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:#e7f0ff; color:var(--user-primary); }
.user-code-preview-title h5 { margin:0 0 2px; color:#26364d; font-size:.98rem; font-weight:750; }
.user-code-preview-title p { margin:0; color:#8a96a7; font-size:.66rem; }
.user-code-preview-modal .modal-body { padding:13px 15px; background:#f5f7fa; }
.user-code-preview-note { margin-bottom:10px; color:#8190a4; font-size:.67rem; }
.user-code-preview-note i { margin-right:4px; color:#22a565; }
#codePreviewFrame,.user-code-preview-empty { width:100%; height:330px; border:1px solid #dfe5ed; border-radius:11px; background:#fff; }
#codePreviewFrame { display:block; }
.user-code-preview-empty { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; color:#a0aaba; font-size:.74rem; }
.user-code-preview-empty i { font-size:1.5rem; }
#codePreviewFrame[hidden],.user-code-preview-empty[hidden] { display:none; }
.user-code-preview-modal .modal-footer { padding:9px 15px 13px; border:0; }
.user-code-preview-modal .modal-footer .btn { min-width:92px; border:1px solid #dfe5ed; color:#657287; }
.user-record-pagination { margin-top:16px; }
.user-record-pagination .pagination { margin:0; justify-content:center; gap:4px; }
.user-record-pagination .page-link { min-width:35px; height:35px; padding:5px 9px; display:grid; place-items:center; border-color:#dfe5ed; border-radius:9px !important; background:#fff; color:#66758b; font-size:.76rem; font-weight:650; box-shadow:0 3px 10px rgba(28,44,68,.035); }

/* 生成记录预览弹窗 */
.user-preview-dialog { max-width:820px; }
.user-preview-modal { overflow:hidden; border:0 !important; border-radius:18px !important; box-shadow:0 28px 80px rgba(12,25,45,.24) !important; }
.user-preview-modal .modal-header { min-height:82px; padding:16px 20px; border-bottom:1px solid #e8edf3; background:linear-gradient(125deg,#fff 0%,#f7faff 100%); }
.user-preview-title { min-width:0; display:flex; align-items:center; gap:12px; }
.user-preview-title-icon { width:42px; height:42px; display:grid; flex:0 0 42px; place-items:center; border-radius:12px; background:#eaf2ff; color:var(--user-primary); font-size:1.15rem; }
.user-preview-title h5 { margin:0 0 3px; color:#1e293b; font-size:1.05rem; font-weight:750; }
.user-preview-title p { margin:0; color:#8a96a7; font-size:.7rem; }
.user-preview-modal .btn-close { margin:0; padding:9px; border-radius:9px; }
.user-preview-modal .modal-body { padding:16px 20px 12px; background:#fff; }
.user-preview-toolbar { margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#7b8798; font-size:.72rem; }
.user-preview-toolbar strong { color:#334155; }
.user-preview-toolbar .btn { min-height:36px; padding:6px 12px; display:inline-flex; align-items:center; gap:6px; border-radius:9px; font-size:.73rem; }
.user-preview-table-wrap { max-height:480px; overflow:auto; border:1px solid #e1e7ef; border-radius:12px; scrollbar-width:none; -ms-overflow-style:none; }
.user-preview-table-wrap::-webkit-scrollbar { display:none; width:0; height:0; }
.user-preview-table thead { position:sticky; top:0; z-index:1; }
.user-preview-table thead th { padding:10px 13px; border-bottom:1px solid #e4eaf1; background:#f6f8fb; color:#7d899a; font-size:.67rem; font-weight:700; }
.user-preview-table thead th:first-child { width:66px; text-align:center; }
.user-preview-table tbody td { padding:10px 13px; border-color:#edf0f4; color:#536176; font-size:.74rem; vertical-align:middle; }
.user-preview-table tbody td:first-child { text-align:center; }
.user-preview-table tbody tr:last-child td { border-bottom:0; }
.user-preview-table tbody tr:hover td { background:#f9fbff; }
.user-preview-table a { display:inline-block; max-width:100%; overflow-wrap:anywhere; color:#2768dc; text-decoration:none; }
.user-preview-table a:hover { text-decoration:underline; }
.user-preview-index { width:26px; height:26px; display:inline-grid; place-items:center; border-radius:8px; background:#eef3fb; color:#718097; font-size:.68rem; font-weight:700; }
.user-preview-modal .modal-footer { padding:11px 20px 16px; border:0; background:#fff; }
.user-preview-close { min-width:78px; border:1px solid #dfe5ed !important; color:#657287 !important; }

@media (max-width: 991.98px) {
    .user-game-picker { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .user-dashboard-quick-card .card-body { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .user-profile-grid { grid-template-columns:1fr; }
    .user-recharge-grid { grid-template-columns:1fr; }
}
@media (max-width: 767.98px) {
    .user-profile-heading { min-height:0; }
    .user-profile-status { min-height:25px; padding:3px 8px; font-size:.63rem; }
    .user-profile-summary .card-body { padding:14px !important; }
    .user-profile-avatar { width:42px; height:42px; flex-basis:42px; border-radius:12px; }
    .user-profile-meta { grid-template-columns:1fr 1fr; }
    .user-profile-meta > div { min-height:59px; padding:9px 11px; border-bottom:1px solid #e7ebf1; }
    .user-profile-meta > div:nth-child(2) { border-right:0; }
    .user-profile-meta > div:nth-child(3),.user-profile-meta > div:nth-child(4) { border-bottom:0; }
    .user-profile-panel .card-header { min-height:54px; padding:11px 13px; }
    .user-profile-panel .card-header small { display:none; }
    .user-profile-panel .card-body { padding:11px 12px 13px !important; }
    .user-price-item { min-height:55px; padding:8px 9px; gap:9px; }
    .user-price-icon { width:34px; height:34px; flex-basis:34px; }
    .user-dashboard-heading { align-items:flex-start !important; flex-direction:column; gap:10px; }
    .user-balance-overview { min-height:0; padding:17px 15px; align-items:stretch; flex-direction:column; gap:15px; }
    .user-balance-overview-main { gap:12px; }
    .user-balance-overview-icon { width:48px; height:48px; flex-basis:48px; border-radius:13px; }
    .user-balance-overview-copy strong { font-size:1.65rem; }
    .user-balance-overview-link { width:100%; justify-content:center; }
    .user-balance-overview-actions { width:100%; flex-direction:column; }
    .user-dashboard-quick-card .card-header { padding:0 14px; }
    .user-dashboard-quick-card .card-body { padding:12px !important; grid-template-columns:1fr; }
    .user-recharge-balance { align-self:flex-start; }
    .user-recharge-card .card-header { padding:0 14px; }
    .user-recharge-card .card-body { padding:15px !important; }
    .user-recharge-orders .card-body { padding:6px 14px !important; }
    .user-recharge-methods { grid-template-columns:1fr; }
    .user-feature-tip { align-items:flex-start; }
    .user-feature-tabs { min-height:38px; margin:8px 10px 0 !important; padding:3px 2px !important; }
    .user-feature-tabs .nav-link { min-height:32px; padding:5px 10px; font-size:12.5px; }
    .user-feature-tab-content { padding:17px 14px 4px; }
    .user-feature-actions { padding:14px; }
    .user-feature-actions .btn { width:100%; }
    .user-code-preview-dialog { max-width:none; margin:12px; }
    .user-code-preview-modal { border-radius:15px !important; }
    .user-code-preview-modal .modal-header { min-height:70px; padding:12px 14px; }
    .user-code-preview-modal .modal-body { padding:12px; }
    #codePreviewFrame,.user-code-preview-empty { height:55vh; }
    .user-code-preview-modal .modal-footer { padding:0 12px 12px; }
    .user-code-preview-modal .modal-footer .btn { width:100%; }
    .user-generate-confirm-dialog { max-width:none; margin:12px; }
    .user-generate-confirm-modal { border-radius:15px !important; }
    .user-generate-confirm-modal .modal-header { min-height:70px; padding:13px 14px; }
    .user-generate-confirm-title { gap:9px; }
    .user-generate-confirm-title > span { width:36px; height:36px; flex-basis:36px; border-radius:10px; }
    .user-generate-confirm-title h5 { font-size:.94rem; }
    .user-generate-confirm-modal .modal-body { padding:13px 14px 10px; }
    .user-generate-confirm-game { min-height:62px; }
    .user-generate-confirm-list > div { min-height:58px; }
    .user-generate-confirm-total { min-height:65px; }
    .user-generate-confirm-modal .modal-footer { padding:10px 14px 14px; }
    .user-record-heading { min-height:0; }
    .user-record-total { min-height:25px; padding:3px 8px; font-size:.64rem; }
    .user-record-filter { margin-bottom:11px; border-radius:12px !important; }
    .user-record-filter .card-body { padding:9px 10px !important; align-items:flex-start; flex-direction:column; gap:7px; }
    .user-record-filter-tabs { width:100%; }
    .user-record-filter-tabs a { min-height:30px; padding:5px 9px; font-size:.68rem; }
    .user-record-card { overflow:visible; border:0 !important; background:transparent !important; box-shadow:none !important; }
    .user-record-card .card-body,
    .user-record-card .table-responsive { overflow:visible; }
    .user-record-table,
    .user-record-table tbody { min-width:0; display:block; width:100%; }
    .user-record-table thead { display:none; }
    .user-record-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); width:100%; overflow:hidden; margin-bottom:10px; border:1px solid #e0e6ee; border-radius:13px; background:#fff; box-shadow:0 5px 16px rgba(19,32,51,.045); }
    .user-record-table tbody tr:last-child { margin-bottom:0; }
    .user-record-table tbody td { width:auto; min-height:52px; height:auto; padding:9px 12px !important; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:5px; border:0; border-bottom:1px solid #edf0f4; background:#fff; text-align:left !important; white-space:normal; }
    .user-record-table tbody tr:hover td { background:#fff; }
    .user-record-table tbody td::before { content:attr(data-label); color:#9aa4b2; font-size:.61rem; font-weight:650; line-height:1; }
    .user-record-table tbody td[colspan] { grid-column:1/-1; min-height:105px; align-items:center; }
    .user-record-table tbody td[colspan]::before { display:none; }
    .user-generate-record-table tbody td:nth-child(1),
    .user-generate-record-table tbody td:nth-child(6),
    .user-generate-record-table tbody td:nth-child(7),
    .user-generate-record-table tbody td:nth-child(8) { grid-column:1/-1; }
    .user-generate-record-table tbody td:nth-child(2),
    .user-generate-record-table tbody td:nth-child(4) { border-right:1px solid #edf0f4; }
    .user-generate-record-table .user-record-actions { align-items:center; flex-direction:row; flex-wrap:wrap; }
    .user-generate-record-table .user-record-actions::before { width:100%; }
    .user-record-actions .btn { min-height:32px; padding:5px 9px; }
    .user-charge-table tbody td:nth-child(1) { display:none; }
    .user-charge-table tbody td:nth-child(2),
    .user-charge-table tbody td:nth-child(5),
    .user-charge-table tbody td:nth-child(6),
    .user-charge-table tbody td:nth-child(7) { grid-column:1/-1; }
    .user-charge-table tbody td:nth-child(3) { border-right:1px solid #edf0f4; }
    .user-record-remark { max-width:100%; white-space:normal; }
    .user-record-pagination { margin-top:13px; overflow-x:auto; }
    .user-record-pagination .pagination { min-width:max-content; }
    .user-record-pagination .page-link { min-width:33px; height:34px; padding:5px 8px; border-radius:7px !important; font-size:.72rem; }
    .user-preview-dialog { max-width:none; margin:12px; }
    .user-preview-modal { max-height:calc(100vh - 24px); border-radius:15px !important; }
    .user-preview-modal .modal-header { min-height:70px; padding:13px 14px; }
    .user-preview-title { gap:9px; }
    .user-preview-title-icon { width:36px; height:36px; flex-basis:36px; border-radius:10px; font-size:1rem; }
    .user-preview-title h5 { font-size:.94rem; }
    .user-preview-title p { font-size:.64rem; }
    .user-preview-modal .modal-body { padding:12px; }
    .user-preview-toolbar { margin-bottom:10px; }
    .user-preview-toolbar .btn { min-height:35px; }
    .user-preview-table-wrap { max-height:calc(100vh - 230px); border:0; border-radius:0; }
    .user-preview-table thead { display:none; }
    .user-preview-table,
    .user-preview-table tbody { display:block; width:100%; }
    .user-preview-table tbody tr { display:grid; grid-template-columns:38px minmax(0,1fr); margin-bottom:8px; overflow:hidden; border:1px solid #e2e8f0; border-radius:11px; background:#fff; }
    .user-preview-table tbody tr:last-child { margin-bottom:0; }
    .user-preview-table tbody td { min-height:48px; padding:9px 10px; display:flex; align-items:center; border:0; background:#fff; }
    .user-preview-table tbody td:first-child { padding:8px 5px; justify-content:center; border-right:1px solid #edf0f4; }
    .user-preview-table tbody tr:hover td { background:#fff; }
    .user-preview-index { width:25px; height:25px; }
    .user-preview-table a { font-size:.71rem; line-height:1.45; }
    .user-preview-modal .modal-footer { padding:0 12px 12px; }
    .user-preview-close { width:100%; min-height:40px; }
    .user-simple-generate-card { border-radius:11px !important; }
    .user-simple-generate-header { padding:0 14px; }
    .user-simple-generate-card > .card-body { padding:16px 14px !important; }
    .user-simple-generate-form { gap:15px; }
    .user-simple-form-row { grid-template-columns:1fr; gap:6px; }
    .user-simple-form-row > label { text-align:left; }
    .user-simple-readonly { align-items:flex-start; flex-direction:column; justify-content:center; gap:2px; padding:8px 11px; }
    .user-simple-game-options { min-height:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px 8px; align-items:center; }
    .user-simple-game-options label { min-width:0; gap:5px; font-size:.72rem; }
    .user-simple-game-options input { width:13px; height:13px; flex-basis:13px; }
    .user-simple-submit-row { margin-top:-3px; margin-left:0; padding-top:10px; align-items:stretch; flex-direction:column; border-top:1px solid #edf0f4; }
    .user-simple-submit-row p { line-height:1.55; }
    .user-simple-submit-row .btn { width:100%; min-height:44px; }
    .user-generate-hero { min-height:0; padding:14px; align-items:flex-start; border-radius:14px; }
    .user-generate-hero-icon { width:40px; height:40px; flex-basis:40px; border-radius:11px; font-size:1rem; }
    .user-generate-hero h4 { font-size:1.05rem; }
    .user-generate-hero p { max-width:190px; font-size:.66rem; line-height:1.45; }
    .user-generate-account { display:none; }
    .user-generate-panel { padding:14px 12px; border-radius:14px; }
    .user-generate-section-title { margin-bottom:11px; }
    .user-generate-section-title > small { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .user-game-picker { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .user-game-choice { min-height:75px; padding:10px; gap:8px; border-radius:11px; }
    .user-game-choice:last-child:nth-child(odd) { grid-column:1/-1; }
    .user-game-choice-icon { width:34px; height:34px; flex-basis:34px; border-radius:9px; font-size:.88rem; }
    .user-game-choice-copy strong { font-size:.73rem; }
    .user-game-choice-copy small { display:none; }
    .user-game-choice-check { top:6px; right:6px; }
    .user-generate-input-row { grid-template-columns:1fr 112px; gap:8px; }
    .user-generate-price-box { min-height:69px; }
    .user-generate-quick-counts { flex-wrap:wrap; }
    .user-generate-submit-row { align-items:stretch; flex-direction:column; gap:11px; }
    .user-generate-submit-row p { line-height:1.55; }
    .user-generate-submit-row .btn { width:100%; min-height:44px; }
}
@media (max-width: 420px) {
    .user-main { padding-left: 10px !important; padding-right: 10px !important; }
    .user-brand-logo { width: 31px; height: 31px; }
    .user-main .card { border-radius: 12px !important; }
}

/* 用户登录 */
.user-login-body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% -10%, rgba(47,111,237,.12), transparent 36%), #f3f5f8; font-family: Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
.user-login-shell { width: 100%; max-width: 405px; }
.user-login-card { overflow: hidden; border: 1px solid #e2e7ef; border-radius: 18px; background: #fff; box-shadow: 0 20px 55px rgba(20,33,51,.11); }
.user-login-header { padding: 29px 28px 19px; text-align: center; }
.user-login-logo { width: 58px; height: 58px; margin-bottom: 13px; border: 1px solid #e3e8ef; border-radius: 16px; object-fit: cover; background: #fff; box-shadow: 0 7px 20px rgba(20,33,51,.1); }
.user-login-header h4 { margin: 0 0 5px; color: #1d293d; font-size: 1.22rem; font-weight: 760; letter-spacing: -.02em; }
.user-login-header p { margin: 0; color: #929cab; font-size: .75rem; }
.user-login-form { padding: 8px 28px 25px; }
.user-login-field .form-label { color: #4c586d; font-size: .8rem; font-weight: 650; }
.user-login-control { position: relative; }
.user-login-control > i { position: absolute; z-index: 2; top: 50%; left: 14px; color: #99a3b2; transform: translateY(-50%); pointer-events: none; }
.user-login-control .form-control { min-height: 46px; padding-left: 41px; border-color: #dfe4eb; border-radius: 10px; font-size: .85rem; }
.user-login-control .form-control:focus { border-color: #8cb1f7; box-shadow: 0 0 0 3px rgba(47,111,237,.1); }
.user-login-submit { width: 100%; min-height: 46px; border-radius: 10px; border-color: var(--user-primary); background: var(--user-primary); font-size: .88rem; font-weight: 700; }
.user-login-submit:hover { border-color: #245fd4; background: #245fd4; }
.user-login-error { padding: 10px 12px; border: 1px solid #f3d0d5; border-radius: 10px; background: #fff5f6; color: #a53b4a; font-size: .76rem; }
@media (max-width: 420px) {
    .user-login-body { padding: 12px; }
    .user-login-card { border-radius: 15px; }
    .user-login-header { padding: 24px 22px 17px; }
    .user-login-form { padding: 7px 20px 22px; }
}

/* 订单状态 */
.user-order-list-page { width: 100%; max-width: 1240px; margin: 0 auto; }
.user-order-heading {
    min-height: 88px;
    margin-bottom: 14px !important;
    padding: 17px 20px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: linear-gradient(125deg, #fff 0%, #f8fbff 58%, #eef4ff 100%);
    box-shadow: 0 9px 28px rgba(34,56,89,.055);
}
.user-order-heading-copy { display: flex; align-items: center; gap: 13px; }
.user-order-heading-icon {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    background: #eaf2ff;
    color: var(--user-primary);
    font-size: 1.15rem;
}
.user-order-heading h4 { color: #1e293b; font-size: 1.22rem; font-weight: 750; letter-spacing: -.02em; }
.user-order-heading p { color: #7e8a9c !important; }
.user-status-filter { z-index:20; overflow:visible !important; border-color:#e1e7ef !important; border-radius:15px !important; box-shadow:0 7px 24px rgba(24,39,62,.045) !important; }
.user-status-filter .card-body { padding: 14px 16px !important; }
.user-status-filter .form-label { color: #657287; font-size: .72rem; font-weight: 700; }
.user-status-filter .form-control,
.user-status-filter .form-select,
.user-status-filter .btn { min-height: 41px; border-radius: 9px; }
.user-status-filter .form-control,
.user-status-filter .form-select { border-color: #dce3ec; background-color: #fbfcfe; color: #344155; box-shadow: none; font-size: .8rem; }
.user-status-filter .form-control:focus,
.user-status-filter .form-select:focus { border-color: #8cb1f7; background-color: #fff; box-shadow: 0 0 0 3px rgba(47,111,237,.08); }
.user-custom-select { position:relative; min-width:142px; }
.user-custom-select-trigger {
    width:100%;
    min-height:41px;
    padding:0 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid #dce3ec;
    border-radius:9px;
    background:#fbfcfe;
    color:#344155;
    font-size:.8rem;
    text-align:left;
    transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
.user-custom-select-trigger:hover { border-color:#c5d0df; background:#fff; }
.user-custom-select.open .user-custom-select-trigger { border-color:#75a1f5; background:#fff; box-shadow:0 0 0 3px rgba(47,111,237,.09); }
.user-custom-select-trigger > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-custom-select-trigger > i { flex:0 0 auto; color:#7d899a; font-size:.72rem; transition:transform .18s ease; }
.user-custom-select.open .user-custom-select-trigger > i { transform:rotate(180deg); }
.user-custom-select-menu {
    position:absolute;
    z-index:100;
    top:calc(100% + 7px);
    left:0;
    width:max(100%,190px);
    max-height:310px;
    overflow:auto;
    padding:6px;
    border:1px solid #dfe5ed;
    border-radius:11px;
    background:#fff;
    box-shadow:0 16px 40px rgba(25,39,61,.16);
    opacity:0;
    visibility:hidden;
    transform:translateY(-5px) scale(.985);
    transform-origin:top left;
    pointer-events:none;
    transition:opacity .15s ease,transform .15s ease,visibility .15s ease;
}
.user-custom-select.open .user-custom-select-menu { opacity:1; visibility:visible; transform:translateY(0) scale(1); pointer-events:auto; }
.user-custom-select-option {
    width:100%;
    min-height:37px;
    padding:7px 10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#475569;
    font-size:.78rem;
    text-align:left;
    transition:background-color .13s ease,color .13s ease;
}
.user-custom-select-option:hover { background:#f3f6fa; color:#243247; }
.user-custom-select-option > i { color:var(--user-primary); font-size:.78rem; opacity:0; }
.user-custom-select-option.active { background:#edf3ff; color:var(--user-primary); font-weight:700; }
.user-custom-select-option.active > i { opacity:1; }
.user-filter-actions { display: flex; align-items: center; gap: 8px; }
.user-filter-actions .btn {
    display: inline-flex;
    min-width: 72px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1;
}
.user-filter-actions .btn i { display: block; line-height: 1; }
.user-filter-count span { display: inline-flex; min-height: 30px; padding: 5px 11px; align-items: center; border-radius: 999px; background: #f2f5f9; color: #738096 !important; }
.user-status-card { overflow: hidden; border: 1px solid #e1e7ef !important; border-radius: 16px !important; box-shadow: 0 10px 30px rgba(24,39,62,.05) !important; }
.user-status-table { width: 100%; min-width: 760px; margin: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.user-status-table .order-col-link { width: 56%; }
.user-status-table .order-col-game { width: 20%; }
.user-status-table .order-col-status { width: 24%; }
.user-status-table thead th { height: 44px; padding: 10px 16px; border-bottom: 1px solid #e4e9f0; background: #f7f9fc; color: #7b8798; font-size: .7rem; font-weight: 700; }
.user-status-table tbody td { height: 55px; padding: 10px 16px; border-color: #ebeff4; vertical-align: middle; }
.user-status-table tbody tr { transition: background-color .16s ease; }
.user-status-table tbody tr:hover td { background: #f9fbff; }
.user-status-table tbody tr:last-child td { border-bottom: 0; }
.user-status-link { display: inline; color: #2b3a50; font-size: .79rem; font-weight: 680; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; text-decoration: none; vertical-align: middle; }
.user-status-link i { margin-left: 3px; color: #8da0b8; font-size: .7rem; }
.user-status-link:hover { color: var(--user-primary); }
.user-game-chip { display: inline-flex; min-height: 26px; padding: 4px 9px; align-items: center; border: 1px solid #c8eaf3; border-radius: 8px; background: #effbfe; color: #1684a1; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.user-order-state { display: inline-flex; min-height: 27px; padding: 4px 10px; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.user-order-state::before { width: 5px; height: 5px; content: ''; flex: 0 0 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.user-order-state.state-secondary { border-color: #e3e7ed; background: #f3f5f8; color: #778397; }
.user-order-state.state-warning { border-color: #f4ddb1; background: #fff8e8; color: #ad7610; }
.user-order-state.state-info { border-color: #c8e6ef; background: #eefafd; color: #257b92; }
.user-order-state.state-primary { border-color: #cdddfb; background: #edf3ff; color: #2f6fed; }
.user-order-state.state-success { border-color: #ccebd8; background: #edf9f2; color: #238258; }
.user-order-state.state-danger { border-color: #f1cfd5; background: #fff2f4; color: #b13f50; }
.user-order-pagination { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.user-order-pagination nav { display: flex; }
.user-order-pagination .pagination { margin: 0; gap: 4px; }
.user-order-pagination .page-link { display: grid; min-width: 35px; height: 35px; padding: 5px 9px; place-items: center; border-color: #dfe5ed; border-radius: 9px !important; background: #fff; color: #66758b; font-size: .76rem; font-weight: 650; box-shadow: 0 3px 10px rgba(28,44,68,.035); }

@media (max-width: 767.98px) {
    .user-order-list-page { max-width: none; }
    .user-order-heading { min-height: 0; padding: 13px 14px; border-radius: 14px; }
    .user-order-heading-copy { gap: 10px; min-width: 0; }
    .user-order-heading-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 1rem; }
    .user-order-heading h4 { font-size: 1.04rem; }
    .user-order-heading p { max-width: 185px !important; overflow: hidden; font-size: .67rem !important; line-height: 1.35 !important; text-overflow: ellipsis; white-space: nowrap; }
    .user-status-filter { margin-bottom: 11px !important; border-radius: 14px !important; }
    .user-status-filter .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px 8px;
        margin: 0;
    }
    .user-status-filter .row > * { width: auto; max-width: none; margin: 0; padding: 0; }
    .user-status-filter .user-filter-search,
    .user-status-filter .user-filter-actions,
    .user-status-filter .user-filter-count { grid-column: 1 / -1; }
    .user-status-filter .form-label { margin-bottom: 5px !important; font-size: .68rem; }
    .user-status-filter .form-control,
    .user-status-filter .form-select { min-height: 42px; border-radius: 9px; font-size: .8rem; }
    .user-custom-select { min-width:0; }
    .user-custom-select-trigger { min-height:42px; }
    .user-custom-select-menu { width:calc(200% + 8px); max-height:300px; }
    .user-filter-game .user-custom-select-menu { left:0; right:auto; transform-origin:top left; }
    .user-filter-state .user-custom-select-menu { right:0; left:auto; transform-origin:top right; }
    .user-status-filter .btn { width: 100%; }
    .user-filter-actions .btn { flex: 1 1 0; }
    .user-order-list-page > .d-flex:first-child { margin-bottom: 12px !important; align-items: center !important; }
    .user-order-list-page > .d-flex:first-child p { max-width: 210px; line-height: 1.4; }
    .user-order-list-page > .d-flex:first-child .btn { flex: 0 0 auto; }
    .user-status-filter .card-body { padding: 12px !important; }
    .user-filter-count { padding-top: 1px !important; text-align: center; }
    .user-filter-count span { min-height: 25px; padding: 3px 10px; font-size: .66rem !important; }
    .user-status-card { overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    .user-status-card .card-body,
    .user-status-card .table-responsive { overflow: visible; }
    .user-status-table { min-width: 0; table-layout: auto; border-collapse: separate; border-spacing: 0; }
    .user-status-table colgroup,
    .user-status-table thead { display: none; }
    .user-status-table,
    .user-status-table tbody { display: block; width: 100%; }
    .user-status-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100%;
        overflow: hidden;
        margin-bottom: 10px;
        border: 1px solid #e0e6ee;
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(19,32,51,.045);
    }
    .user-status-table tbody tr:last-child { margin-bottom: 0; }
    .user-status-table tbody tr:hover > * { --bs-table-bg-state: transparent; }
    .user-status-table tbody td {
        width: auto;
        min-height: 54px;
        padding: 9px 12px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-bottom: 1px solid #edf0f4;
        text-align: left !important;
    }
    .user-status-table tbody td::before { content: attr(data-label); color: #9aa4b2; font-size: .62rem; font-weight: 650; line-height: 1; text-align: left; }
    .user-status-table tbody .order-link-cell { grid-column: 1 / -1; min-height: 0; padding: 12px 13px !important; background: linear-gradient(100deg, #f8faff, #fff); }
    .user-status-table tbody .order-link-cell::before { margin-bottom: 1px; }
    .user-status-link { display: block; width: 100%; color: #25334a; font-size: .76rem; line-height: 1.45; }
    .user-status-table tbody td:nth-child(2) { border-right: 1px solid #edf0f4; }
    .user-status-table tbody td:nth-child(2),
    .user-status-table tbody td:nth-child(3) { border-bottom: 0; background: #fbfcfe; }
    .user-game-chip,
    .user-order-state { min-height: 24px; padding: 3px 8px; font-size: .66rem; }
    .user-status-table tbody tr:only-child td[colspan] { grid-column: 1 / -1; min-height: 110px; display: flex; justify-content: center; }
    .user-status-table tbody tr:only-child td[colspan]::before { display: none; }
    .user-order-pagination { margin-top: 13px; gap: 6px; }
    .user-order-pagination nav { width: 100%; justify-content: center; overflow-x: auto; }
    .user-order-pagination .pagination { gap: 3px; }
    .user-order-pagination .page-link { min-width: 33px; height: 34px; padding: 5px 8px; border-radius: 7px !important; font-size: .73rem; }
}
