/* ==================== 账户管理弹框 ==================== */
.acct-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: acctFadeIn 0.2s ease;
}
@keyframes acctFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.acct-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ====== 弹框主容器 — TapNow 大尺寸 ====== */
.acct-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1200px, calc(100vw - 40px));
    height: min(880px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    background: #13151f;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
    overflow: hidden;
    animation: acctSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes acctSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 关闭按钮 */
.acct-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.acct-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.12);
}

/* ====== 左侧菜单栏 ====== */
.acct-sidebar {
    flex-shrink: 0;
    width: 268px;
    background: rgba(255,255,255,0.015);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 24px 14px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.acct-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 2px;
}
.acct-sidebar-label {
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px 3px;
    pointer-events: none;
}
.acct-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin: 6px 10px;
}

/* 菜单项 */
.acct-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 13.5px;
    font-weight: 450;
    cursor: pointer;
    transition: all 0.18s;
    text-align: left;
    white-space: nowrap;
}
.acct-menu-item svg {
    flex-shrink: 0;
    color: rgba(255,255,255,0.3);
    transition: color 0.18s;
}
.acct-menu-item:hover {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.8);
}
.acct-menu-item:hover svg {
    color: rgba(255,255,255,0.55);
}
.acct-menu-item.active {
    background: rgba(124,92,252,0.12);
    color: #c4b5fd;
    font-weight: 600;
}
.acct-menu-item.active svg {
    color: #a78bfa;
}

/* ====== 右侧内容区 ====== */
.acct-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 32px 40px;
    overflow-y: auto;
    background: #141723;
}

/* 面板 */
.acct-panel {
    display: none;
}
.acct-panel.active {
    display: block;
}
.acct-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #e0e2ea;
    margin: 0 0 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.acct-panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: rgba(255,255,255,0.2);
    gap: 16px;
}
.acct-panel-placeholder p {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

/* ====== 订阅套餐（面板内） ====== */
.sub-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    overflow: hidden;
    padding: 4px;
}
.sub-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: transparent;
}
.sub-tab:hover { color: #9ca3af; }
.sub-tab.active {
    color: #e0e2ea;
    background: rgba(124,92,252,0.12);
}

.sub-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.sub-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    font-size: 13px;
}

/* 单张套餐卡片 */
.sub-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    min-width: 0;
}
.sub-card:hover {
    border-color: rgba(124,92,252,0.25);
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.sub-card.popular {
    border-color: rgba(124,92,252,0.35);
    background: linear-gradient(180deg, rgba(124,92,252,0.06), rgba(255,255,255,0.02));
}
.sub-card.popular::before {
    content: '热门';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6b57e8, #8b75f0);
    border-radius: 99px;
    white-space: nowrap;
}

.sub-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #e0e2ea;
    margin-bottom: 2px;
}
.sub-card-subtitle {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sub-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}
.sub-price-symbol {
    font-size: 13px;
    font-weight: 700;
    color: #e0e2ea;
}
.sub-price-amount {
    font-size: 26px;
    font-weight: 800;
    color: #e0e2ea;
    line-height: 1;
}
.sub-price-unit {
    font-size: 11px;
    color: #6b7280;
    margin-left: 2px;
}
.sub-price-original {
    margin-left: 6px;
    font-size: 11px;
    color: #4b5563;
    text-decoration: line-through;
}

.sub-btn {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #6b57e8, #7565e0);
    color: #fff;
    margin-top: auto;
    transition: all 0.2s;
}
.sub-btn:hover {
    background: linear-gradient(135deg, #7565e0, #8075e8);
    box-shadow: 0 4px 14px rgba(107,87,232,.3);
}
.sub-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sub-btn.current {
    background: rgba(255,255,255,0.06);
    color: #6b7280;
    cursor: default;
}

/* ====== 模型超市 ====== */
.model-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: rgba(124,92,252,0.06);
    border: 1px solid rgba(124,92,252,0.12);
    border-radius: 10px;
    font-size: 13px;
    color: #9ca3af;
}
.model-stats b {
    color: #a78bfa;
    font-weight: 700;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.model-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}
.model-card:hover {
    border-color: rgba(124,92,252,0.2);
    background: rgba(255,255,255,0.04);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.model-card-img {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1a1540, #2d1b4e);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.model-card-icon {
    width: 36px;
    height: 36px;
    opacity: 0.5;
}

.model-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
}
.model-badge.new {
    background: linear-gradient(135deg, #34d399, #10b981);
}
.model-badge.hot {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.model-card-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.model-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #e0e2ea;
}
.model-card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.model-card-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.model-price-val {
    font-size: 18px;
    font-weight: 800;
    color: #f59e0b;
}
.model-price-unit {
    font-size: 11px;
    color: #6b7280;
}

.model-buy-btn {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6b57e8, #7565e0);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.model-buy-btn:hover {
    background: linear-gradient(135deg, #7565e0, #8075e8);
    box-shadow: 0 4px 14px rgba(107,87,232,.3);
}

/* ====== 积分充值 (TapNow 风格) ====== */
#panel-points-recharge {
    padding-top: 0 !important;
}

.pr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pr-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pr-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.pr-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pr-user-meta { min-width: 0; }
.pr-user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.pr-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pr-plan-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255,255,255,0.08);
    color: #9ca3af;
    white-space: nowrap;
}
.pr-user-email {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.pr-balance-card {
    text-align: right;
    flex-shrink: 0;
}
.pr-balance-val {
    font-size: 28px;
    font-weight: 800;
    color: #f3f4f6;
    line-height: 1.1;
}
.pr-balance-unit {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.pr-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: start;
}
.pr-main { min-width: 0; }

.pr-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.pr-title {
    font-size: 16px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0;
}
.pr-title-sub {
    font-weight: 500;
    color: #9ca3af;
}
.pr-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.pr-info-btn:hover { color: #9ca3af; }

.pr-slider-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 10px;
}
.pr-hero-amount {
    font-size: 32px;
    font-weight: 800;
    color: #0ea5e9;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.pr-slider-section {
    margin-bottom: 14px;
}
.pr-slider-track-wrap {
    position: relative;
    padding: 8px 0;
}
.pr-slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.pr-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    cursor: pointer;
}
.pr-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    cursor: pointer;
}
.pr-slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    border-radius: 99px;
    background: #0ea5e9;
    transform: translateY(-50%);
    pointer-events: none;
    transition: width 0.1s linear;
}
.pr-slider-endcaps {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 11px;
    color: #6b7280;
}

.pr-amount-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #f3f4f6;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.pr-amount-input:focus {
    border-color: rgba(14,165,233,0.45);
}

.pr-quick-rows {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pr-quick-btn {
    flex: 1;
    min-width: 72px;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.pr-quick-btn:hover {
    border-color: rgba(14,165,233,0.3);
    color: #e5e7eb;
    background: rgba(14,165,233,0.06);
}
.pr-quick-btn.active {
    border-color: #0ea5e9;
    background: rgba(14,165,233,0.15);
    color: #fff;
    font-weight: 700;
}

.pr-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pr-summary {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pr-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}
.pr-summary-val {
    font-weight: 700;
    color: #0ea5e9;
    font-size: 16px;
}
.pr-summary-rate {
    color: #6b7280;
    font-size: 12px;
}
.pr-summary-rate b {
    color: #e5e7eb;
    font-weight: 600;
}
.pr-summary-total {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 14px;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}
.pr-summary-price {
    font-size: 24px;
    font-weight: 800;
    color: #f3f4f6;
}
.pr-summary-price b {
    color: #f3f4f6;
}

.pr-recharge-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #0ea5e9;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.pr-recharge-btn:hover {
    background: #0284c7;
    box-shadow: 0 4px 20px rgba(14,165,233,0.35);
}
.pr-recharge-btn:active { transform: translateY(1px); }
.pr-recharge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== 个人设置 ====== */
.ps-avatar-section {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ps-avatar-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}
.ps-avatar-wrap:hover {
    box-shadow: 0 0 0 2px rgba(124,92,252,0.45);
}
.ps-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.ps-avatar-initial {
    position: relative;
    z-index: 0;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.ps-avatar-camera {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b57e8, #7565e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 2;
}
.ps-avatar-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.ps-avatar-hint {
    font-size: 12px;
    color: #6b7280;
}

/* 表单 */
.ps-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}
.ps-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ps-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ps-field-half {
    min-width: 0;
}
@media (max-width: 640px) {
    .ps-field-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
.ps-label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
}
.ps-required {
    color: #ef4444;
    margin-left: 2px;
}
.ps-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e0e2ea;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ps-input::placeholder {
    color: #4b5563;
}
.ps-input:focus {
    border-color: rgba(124,92,252,0.4);
    background: rgba(255,255,255,0.06);
}

/* 自定义 select */
.ps-select-wrap {
    position: relative;
}
.ps-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e0e2ea;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ps-select:focus {
    border-color: rgba(124,92,252,0.4);
    background: rgba(255,255,255,0.06);
}
.ps-select option {
    background: #1a1d2e;
    color: #e0e2ea;
}
.ps-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

/* 可搜索下拉（国家/城市） */
.ps-combobox {
    position: relative;
}
.ps-combobox-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e0e2ea;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
    text-align: left;
}
.ps-combobox-trigger:hover,
.ps-combobox.open .ps-combobox-trigger {
    border-color: rgba(124,92,252,0.4);
    background: rgba(255,255,255,0.06);
}
.ps-combobox-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ps-combobox-value.is-placeholder {
    color: #6b7280;
}
.ps-combobox-arrow {
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s;
}
.ps-combobox.open .ps-combobox-arrow {
    transform: rotate(180deg);
}
.ps-combobox-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 120;
    background: #1a1d28;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    overflow: hidden;
}
.ps-combobox-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #6b7280;
}
.ps-combobox-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
    min-width: 0;
}
.ps-combobox-search-input::placeholder {
    color: #4b5563;
}
.ps-combobox-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 240px;
    overflow-y: auto;
}
.ps-combobox-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #d1d5db;
    cursor: pointer;
    transition: background 0.15s;
}
.ps-combobox-option:hover,
.ps-combobox-option.is-active {
    background: rgba(255,255,255,0.06);
    color: #f3f4f6;
}
.ps-combobox-option.is-selected {
    color: #f3f4f6;
}
.ps-combobox-check {
    flex-shrink: 0;
    color: #0ea5e9;
    opacity: 0;
}
.ps-combobox-option.is-selected .ps-combobox-check {
    opacity: 1;
}
.ps-combobox-option.is-custom {
    color: #9ca3af;
    font-style: normal;
}
.ps-combobox-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.ps-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e0e2ea;
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ps-textarea::placeholder {
    color: #4b5563;
}
.ps-textarea:focus {
    border-color: rgba(124,92,252,0.4);
    background: rgba(255,255,255,0.06);
}

.ps-save-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b57e8, #7565e0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.ps-save-btn:hover {
    background: linear-gradient(135deg, #7565e0, #8075e8);
    box-shadow: 0 4px 16px rgba(107,87,232,0.3);
    transform: translateY(-1px);
}
.ps-save-btn:active {
    transform: translateY(0);
}
.ps-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== 团队设置 (TapNow 风格) ====== */
#panel-team-settings.active {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0 !important;
}

.ts-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
}
.ts-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b6914, #c49a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}
.ts-header-info { min-width: 0; }
.ts-header-name {
    font-size: 15px;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-header-id {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
}
.ts-copy-id-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}
.ts-copy-id-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #d1d5db;
}

.ts-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ts-toolbar-title {
    font-size: 15px;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0;
}
.ts-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ts-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}
.ts-icon-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
}
.ts-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: #6b7280;
    min-width: 160px;
}
.ts-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
    min-width: 0;
}
.ts-search-input::placeholder { color: #4b5563; }

.ts-invite-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #0ea5e9;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ts-invite-btn:hover {
    background: #0284c7;
    box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}

.ts-table {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.ts-table-head {
    display: grid;
    grid-template-columns: 1fr 220px 120px;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}
.ts-table-body { min-height: 80px; }
.ts-loading, .ts-empty {
    padding: 32px 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.ts-member-row {
    display: grid;
    grid-template-columns: 1fr 220px 120px;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}
.ts-member-row:last-child { border-bottom: none; }
.ts-member-row:hover { background: rgba(255,255,255,0.03); }

.ts-col-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ts-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    flex-shrink: 0;
    overflow: hidden;
}
.ts-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ts-member-meta { min-width: 0; }
.ts-member-name {
    font-size: 13px;
    font-weight: 600;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-member-name .ts-you-tag { color: #9ca3af; font-weight: 500; }
.ts-member-email {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-col-usage { display: flex; flex-direction: column; gap: 6px; }
.ts-usage-bar-wrap {
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.ts-usage-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    transition: width 0.3s;
}
.ts-usage-label {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ts-usage-unlimited { color: #9ca3af; }

.ts-role-select-wrap { position: relative; }
.ts-role-select {
    width: 100%;
    padding: 8px 28px 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.ts-role-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.ts-role-select-wrap .ts-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

/* 子弹框 */
.ts-sub-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    padding: 20px;
}
.ts-sub-modal {
    width: 100%;
    max-width: 520px;
    background: #14161f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}
.ts-link-settings-modal { max-width: 560px; }

.ts-sub-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ts-sub-header-back {
    align-items: center;
}
.ts-sub-title {
    font-size: 18px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0;
}
.ts-sub-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px;
}
.ts-sub-desc-inline {
    margin: 4px 0 0;
    font-size: 12px;
}
.ts-sub-close, .ts-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.ts-sub-close:hover, .ts-back-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #f3f4f6;
}

.ts-field-block { margin-bottom: 16px; }
.ts-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
}
.ts-link-row {
    display: flex;
    gap: 8px;
}
.ts-link-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 13px;
    outline: none;
    min-width: 0;
}
.ts-link-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #0ea5e9;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.ts-link-copy-btn:hover { background: #0284c7; }

.ts-info-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 20px;
}
.ts-info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0ea5e9;
    margin-top: 5px;
    flex-shrink: 0;
}
.ts-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}
.ts-info-sub {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.ts-sub-footer {
    display: flex;
    justify-content: flex-end;
}
.ts-sub-footer-end { margin-top: 8px; }
.ts-edit-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #d1d5db;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ts-edit-link-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}

.ts-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ts-select-wrap { position: relative; }
.ts-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e0e2ea;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ts-select:focus {
    border-color: rgba(14,165,233,0.4);
    background: rgba(255,255,255,0.06);
}
.ts-select option {
    background: #1a1d2e;
    color: #e0e2ea;
}
.ts-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

.ts-quota-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ts-quota-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 100px;
}
.ts-quota-card:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}
.ts-quota-card.active {
    border-color: #0ea5e9;
    background: rgba(14,165,233,0.08);
    color: #e5e7eb;
}
.ts-quota-card-info {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6b7280;
}
.ts-quota-icon {
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-quota-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.ts-amount-wrap {
    position: relative;
}
.ts-amount-input {
    width: 100%;
    padding: 10px 72px 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.ts-amount-input:focus {
    border-color: rgba(14,165,233,0.4);
}
.ts-amount-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #6b7280;
    pointer-events: none;
}

.ts-generate-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: #0ea5e9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.ts-generate-btn:hover {
    background: #0284c7;
    box-shadow: 0 4px 16px rgba(14,165,233,0.35);
}
.ts-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ====== 团队权益 ====== */
.tr-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.tr-summary-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.tr-summary-val {
    font-size: 22px;
    font-weight: 800;
    color: #e0e2ea;
}
.tr-summary-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* 权益列表 */
.tr-rights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.tr-rights-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.2s;
}
.tr-rights-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.tr-rights-item.active {
    background: rgba(124,92,252,0.03);
    border-color: rgba(124,92,252,0.1);
}

.tr-rights-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tr-rights-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tr-rights-name {
    font-size: 14px;
    font-weight: 700;
    color: #e0e2ea;
}
.tr-rights-desc {
    font-size: 12px;
    color: #6b7280;
}

/* 使用进度 */
.tr-rights-usage {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 110px;
}
.tr-rights-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
}
.tr-rights-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.tr-rights-used {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

/* 状态标签 */
.tr-rights-status {
    flex-shrink: 0;
}
.tr-rights-locked {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(239,68,68,0.1);
    color: #f87171;
    white-space: nowrap;
}
.tr-rights-unlimited {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(52,211,153,0.1);
    color: #34d399;
    white-space: nowrap;
}

/* 提示 */
.tr-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(124,92,252,0.06);
    border: 1px solid rgba(124,92,252,0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #8b8fa6;
    line-height: 1.5;
}
.tr-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #a78bfa;
}

/* 升级按钮 */
.tr-upgrade-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b57e8, #7565e0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}
.tr-upgrade-btn:hover {
    background: linear-gradient(135deg, #7565e0, #8075e8);
    box-shadow: 0 4px 16px rgba(107,87,232,0.3);
    transform: translateY(-1px);
}
.tr-upgrade-btn:active {
    transform: translateY(0);
}
.tr-upgrade-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====== 奖励中心 ====== */
.rc-redeem-section {
    margin-bottom: 28px;
}
.rc-redeem-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 10px;
}
.rc-redeem-row {
    display: flex;
    gap: 10px;
}
.rc-redeem-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #e0e2ea;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.rc-redeem-input::placeholder {
    color: #4b5563;
}
.rc-redeem-input:focus {
    border-color: rgba(124,92,252,0.4);
    background: rgba(255,255,255,0.06);
}
.rc-redeem-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b57e8, #7565e0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.rc-redeem-btn:hover {
    background: linear-gradient(135deg, #7565e0, #8075e8);
    box-shadow: 0 4px 16px rgba(107,87,232,0.3);
    transform: translateY(-1px);
}
.rc-redeem-btn:active {
    transform: translateY(0);
}
.rc-redeem-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 兑换记录 */
.rc-records-section {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}
.rc-records-header {
    margin-bottom: 14px;
}
.rc-records-title {
    font-size: 15px;
    font-weight: 700;
    color: #e0e2ea;
}

/* 空状态 */
.rc-records-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
}
.rc-records-empty p {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
}

/* 记录列表 */
.rc-records-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rc-record-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: background 0.2s;
}
.rc-record-item:hover {
    background: rgba(255,255,255,0.04);
}
.rc-record-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(124,92,252,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    flex-shrink: 0;
}
.rc-record-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rc-record-code {
    font-size: 13px;
    font-weight: 600;
    color: #e0e2ea;
}
.rc-record-detail {
    font-size: 11px;
    color: #6b7280;
}
.rc-record-meta {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.rc-record-points {
    font-size: 15px;
    font-weight: 800;
    color: #f59e0b;
}
.rc-record-time {
    font-size: 11px;
    color: #4b5563;
}

/* ====== 账单记录 ====== */
.br-invoice-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(124,92,252,0.06);
    border: 1px solid rgba(124,92,252,0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #8b8fa6;
    line-height: 1.5;
}
.br-invoice-tip svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #a78bfa;
}

/* 表格容器 */
.br-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 16px;
}
.br-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.br-table thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}
.br-table thead th:last-child {
    text-align: center;
}
.br-table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    white-space: nowrap;
}
.br-table tbody tr:last-child td {
    border-bottom: none;
}
.br-table tbody tr:hover td {
    background: rgba(255,255,255,0.02);
}
.br-table tbody td:last-child {
    text-align: center;
}
.br-table .br-td-id {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: #9ca3af;
}
.br-table .br-td-amount {
    font-weight: 700;
    color: #e0e2ea;
}

/* 状态标签 */
.br-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    white-space: nowrap;
}
.br-status-success {
    background: rgba(52,211,153,0.1);
    color: #34d399;
}
.br-status-pending {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
}
.br-status-failed {
    background: rgba(239,68,68,0.1);
    color: #f87171;
}

/* 空状态 */
.br-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 56px 20px;
}
.br-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    margin: 0;
}
.br-empty-desc {
    font-size: 12px;
    color: #4b5563;
    margin: 0;
}

/* 分页 */
.br-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 8px;
}
.br-page-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.br-page-btn:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    color: #e0e2ea;
}
.br-page-btn.active {
    background: rgba(124,92,252,0.15);
    border-color: rgba(124,92,252,0.3);
    color: #a78bfa;
}
.br-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .acct-dialog {
        width: calc(100vw - 32px);
        max-height: calc(100vh - 48px);
        flex-direction: column;
        border-radius: 16px;
    }
    .acct-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        overflow-x: auto;
        gap: 4px;
    }
    .acct-sidebar-group {
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 0;
    }
    .acct-sidebar-label {
        display: none;
    }
    .acct-sidebar-divider {
        display: none;
    }
    .acct-menu-item {
        width: auto;
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 8px;
        white-space: nowrap;
    }
    .acct-content {
        padding: 20px;
    }
    .acct-panel-title {
        font-size: 17px;
    }
    .sub-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sub-tab { padding: 8px 0; font-size: 12px; }
    .sub-card { padding: 14px 10px; }
    .sub-price-amount { font-size: 22px; }
    .model-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .model-card-img { height: 100px; }
    .model-stats { flex-direction: column; gap: 6px; text-align: center; }
    .pr-layout { grid-template-columns: 1fr; gap: 20px; }
    .pr-aside { order: 2; }
    .pr-hero-amount { font-size: 26px; }
    .pr-balance-val { font-size: 22px; }
    .pr-quick-rows { gap: 6px; }
    .pr-quick-btn { padding: 8px 6px; font-size: 12px; min-width: 56px; }
    .pr-summary { padding: 16px; }
    .pr-summary-price { font-size: 20px; }
    .ps-avatar-wrap { width: 56px; height: 56px; }
    .ps-avatar-camera { width: 20px; height: 20px; }
    .ps-avatar-camera svg { width: 10px; height: 10px; }
    .ts-toolbar { flex-direction: column; align-items: stretch; }
    .ts-toolbar-actions { justify-content: flex-end; }
    .ts-table-head, .ts-member-row {
        grid-template-columns: 1fr 140px 100px;
        gap: 8px;
        padding: 12px 14px;
    }
    .ts-quota-cards { grid-template-columns: 1fr; }
    .ts-form-row { grid-template-columns: 1fr; }
    .tr-summary-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tr-summary-card { padding: 14px 10px; }
    .tr-summary-val { font-size: 20px; }
    .tr-rights-item { padding: 12px 14px; }
    .tr-rights-usage { min-width: 100px; }
    .rc-redeem-row { flex-direction: column; gap: 8px; }
    .rc-redeem-btn { width: 100%; }
    .rc-records-empty { padding: 36px 16px; }
    .br-table thead th { padding: 10px 12px; font-size: 10px; }
    .br-table tbody td { padding: 10px 12px; font-size: 12px; }
    .br-empty-state { padding: 40px 16px; }
}

@media (max-width: 480px) {
    .acct-dialog {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .acct-sidebar {
        gap: 2px;
        padding: 10px;
    }
    .acct-menu-item {
        padding: 6px 10px;
        font-size: 11.5px;
        gap: 6px;
    }
    .acct-menu-item svg {
        width: 14px;
        height: 14px;
    }
    .acct-content {
        padding: 16px;
    }
    .sub-cards { grid-template-columns: 1fr; gap: 8px; }
    .sub-tab { padding: 7px 0; font-size: 11px; }
    .model-grid { grid-template-columns: 1fr; gap: 8px; }
    .model-card-img { height: 90px; }
    .model-stats { font-size: 12px; }
    .pr-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .pr-balance-card { text-align: left; }
    .pr-hero-amount { font-size: 22px; }
    .pr-quick-rows { gap: 4px; }
    .pr-quick-btn { padding: 7px 4px; font-size: 11px; border-radius: 8px; }
    .pr-summary-price { font-size: 18px; }
    .pr-recharge-btn { padding: 12px; font-size: 14px; }
    .ps-avatar-wrap { width: 48px; height: 48px; }
    .ps-avatar-camera { width: 18px; height: 18px; }
    .ps-avatar-camera svg { width: 9px; height: 9px; }
    .ps-avatar-section { gap: 12px; }
    .ps-form { gap: 14px; }
    .ps-input, .ps-select, .ps-textarea { font-size: 13px; padding: 8px 12px; }
    .ps-select { padding-right: 32px; }
    .ps-save-btn { padding: 10px; font-size: 13px; }
    .ts-search-wrap { min-width: 0; flex: 1; }
    .ts-invite-btn { padding: 0 12px; font-size: 12px; }
    .ts-table-head, .ts-member-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .ts-col-usage, .ts-col-role { padding-left: 48px; }
    .tr-summary-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tr-summary-card { padding: 12px 8px; }
    .tr-summary-val { font-size: 18px; }
    .tr-rights-item { padding: 10px 12px; gap: 10px; }
    .tr-rights-icon { width: 34px; height: 34px; border-radius: 8px; }
    .tr-rights-icon svg { width: 16px; height: 16px; }
    .tr-rights-name { font-size: 13px; }
    .tr-rights-usage { min-width: 90px; }
    .rc-redeem-row { flex-direction: column; gap: 8px; }
    .rc-redeem-btn { width: 100%; }
    .rc-redeem-input { padding: 10px 14px; font-size: 13px; }
    .rc-records-empty { padding: 32px 14px; }
    .rc-record-item { padding: 10px 12px; }
    .rc-record-icon { width: 34px; height: 34px; }
    .br-table thead th { padding: 8px 10px; font-size: 10px; }
    .br-table tbody td { padding: 8px 10px; font-size: 11px; }
    .br-empty-state { padding: 32px 12px; }
    .br-empty-title { font-size: 13px; }
    .br-empty-desc { font-size: 11px; }
    .br-page-btn { width: 30px; height: 30px; font-size: 11px; border-radius: 6px; }
}

/* ====== Stripe 支付弹窗 ====== */
.pay-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}
.pay-modal {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(360px, 480px);
    width: min(860px, 100%);
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.pay-summary {
    position: relative;
    background: #111318;
    color: #fff;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pay-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pay-close-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pay-summary-title {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}
.pay-summary-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
}
.pay-summary-amount {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.pay-summary-note {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}
.pay-checkout-wrap {
    background: #fff;
    position: relative;
    min-height: 520px;
}
#payCheckoutContainer {
    min-height: 520px;
}
.pay-demo-panel {
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pay-demo-header {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}
.pay-demo-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}
.pay-demo-email {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    margin-bottom: 24px;
    background: #f9fafb;
}
.pay-demo-btn {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #0ea5e9;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.pay-demo-btn:hover { background: #0284c7; }
.pay-demo-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.pay-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 10060;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(24, 24, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    color: #fff;
}
.pay-toast-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.pay-toast-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pay-modal {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: 92vh;
        overflow-y: auto;
    }
    .pay-summary { padding: 24px 20px 16px; }
    .pay-summary-amount { font-size: 32px; }
    .pay-checkout-wrap, #payCheckoutContainer { min-height: 420px; }
}

