/* ==========================================================================
   个人中心 — 商业 Dashboard 风格
   左侧导航 + 右侧内容区
   ========================================================================== */

/* 页面动画已移除，避免影响导航栏布局 */

/* === 导航栏修复（与 docs 页面对齐） === */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}
.logo-img {
    height: 44px;
    width: auto;
    position: relative;
    z-index: 2;
    mix-blend-mode: screen;
}
.logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    margin-left: -8px;
    transform: skewX(-12deg);
}

/* === 整体布局 === */
.console-layout {
    display: flex;
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 24px;
    gap: 40px;
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
    /* 防止内容溢出产生横向滚动 */
    overflow-x: hidden;
    box-sizing: border-box;
}

/* === 左侧导航 === */
.console-sidebar {
    flex: 0 0 240px;
    padding: 0 20px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.console-sidebar::-webkit-scrollbar { width: 0; background: transparent; }

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-profile-info {
    overflow: hidden;
    min-width: 0;
}

.sidebar-profile-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-info span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: transparent;
    font-family: inherit;
    text-align: left;
    width: 100%;
    margin-bottom: 4px;
}

.sidebar-nav-item svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.25s;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.sidebar-nav-item.active svg { opacity: 1; }

.sidebar-logout {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* === 右侧内容区 === */
.console-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 80px;
}

/* === 页面标题 === */
.console-page-header {
    margin-bottom: 36px;
}

.console-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.console-page-header p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* === Section 切换 === */
.console-section { display: none; }
.console-section.active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 头像（信息行内大头像） === */
.profile-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.profile-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-upload-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
}
.avatar-upload-wrap:hover .avatar-upload-overlay {
    opacity: 1;
}
.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
/* 侧边栏头像图片 */
.sidebar-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* === 玻璃面板 === */
.panel {
    background: rgba(15, 15, 18, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* === 信息行 === */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child { border-bottom: none; }

.info-row-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.info-row-value {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === 接入模式标签 === */
.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 500;
}

.mode-badge.platform {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.mode-badge.byok {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

/* === 钱包卡片 === */
.wallet-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.wallet-card {
    padding: 24px 20px;
    background: rgba(15, 15, 18, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s;
}

.wallet-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.wallet-card-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.wallet-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.wallet-card-value.balance {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-card-value.spent { color: rgba(255, 255, 255, 0.55); }

.wallet-card-bar {
    margin-top: 16px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.wallet-card-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #34d399, #10b981);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-card-bar-fill.spent {
    background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.3));
}

.wallet-tip {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.wallet-tip a {
    color: #818cf8;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.wallet-tip a:hover { color: #a5b4fc; }

/* === 交易记录 === */
.ledger-table {
    width: 100%;
    border-collapse: collapse;
}

.ledger-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ledger-table td {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ledger-table tr:last-child td { border-bottom: none; }

.ledger-table tbody tr { transition: background 0.2s; }
.ledger-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.ledger-amount {
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.ledger-amount.positive { color: #34d399; }
.ledger-amount.negative { color: #f87171; }

.ledger-type-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 500;
}

.ledger-type-tag.recharge { background: rgba(52, 211, 153, 0.08); color: #34d399; }
.ledger-type-tag.spend { background: rgba(248, 113, 113, 0.08); color: #f87171; }
.ledger-type-tag.refund { background: rgba(59, 130, 246, 0.08); color: #60a5fa; }
.ledger-type-tag.admin_topup { background: rgba(168, 85, 247, 0.08); color: #c084fc; }
.ledger-type-tag.manual { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.4); }

.ledger-empty {
    text-align: center;
    padding: 48px 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
}

/* === 使用明细 === */
.usage-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.usage-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}

.usage-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.usage-summary-card {
    padding: 20px 18px;
    background: rgba(15, 15, 18, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s;
}

.usage-summary-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* === 卡片颜色主题 === */
.usage-summary-card.accent-emerald {
    border-color: rgba(52, 211, 153, 0.12);
}
.usage-summary-card.accent-emerald:hover {
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.08);
}
.usage-summary-card.accent-emerald .usage-summary-value {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.usage-summary-card.accent-indigo {
    border-color: rgba(99, 102, 241, 0.12);
}
.usage-summary-card.accent-indigo:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}
.usage-summary-card.accent-indigo .usage-summary-value {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.usage-summary-card.accent-amber {
    border-color: rgba(251, 191, 36, 0.12);
}
.usage-summary-card.accent-amber:hover {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.08);
}
.usage-summary-card.accent-amber .usage-summary-value {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.usage-summary-card.accent-violet {
    border-color: rgba(168, 85, 247, 0.12);
}
.usage-summary-card.accent-violet:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.08);
}
.usage-summary-card.accent-violet .usage-summary-value {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.usage-summary-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.usage-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.usage-summary-unit {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 4px;
}

/* === 筛选条 === */
.usage-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.usage-filter-chip {
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.usage-filter-chip:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
}

.usage-filter-chip.active {
    color: #fff;
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

/* === 使用明细表 === */
.usage-history-panel {
    padding: 20px;
    overflow: hidden;
}

.usage-table-shell {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.usage-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
}

.usage-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.usage-table td {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.usage-table tr:last-child td { border-bottom: none; }
.usage-table tbody tr { transition: background 0.2s; }
.usage-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.usage-model-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.usage-model-cell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 8px;
    min-width: 180px;
}

.usage-model-cell .usage-model-tag {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.usage-model-cell small {
    grid-column: 1;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.usage-model-cell .usage-type-tag {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.usage-type-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 500;
}

.usage-type-tag.chat { background: rgba(59, 130, 246, 0.08); color: #60a5fa; }
.usage-type-tag.image { background: rgba(168, 85, 247, 0.08); color: #c084fc; }
.usage-type-tag.video { background: rgba(251, 146, 60, 0.08); color: #fb923c; }

.usage-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
}

.usage-status-tag i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.usage-status-tag.success { color: #34d399; background: rgba(52, 211, 153, 0.08); }
.usage-status-tag.processing { color: #60a5fa; background: rgba(96, 165, 250, 0.08); }
.usage-status-tag.failed { color: #fb7185; background: rgba(251, 113, 133, 0.08); }

.usage-row-failed td { background: rgba(248, 113, 113, 0.012); }

.usage-time-cell,
.usage-duration-cell {
    font-family: 'SF Mono', 'Consolas', monospace;
    color: rgba(255, 255, 255, 0.43) !important;
    font-size: 0.76rem !important;
}

.usage-detail-cell {
    white-space: normal !important;
    min-width: 135px;
}

.usage-detail-cell strong,
.usage-detail-cell small {
    display: block;
}

.usage-detail-cell strong {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 600;
}

.usage-detail-cell small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.68rem;
}

.usage-error-cell {
    width: 260px;
    max-width: 260px;
    white-space: normal !important;
    color: rgba(251, 113, 133, 0.78) !important;
    font-size: 0.75rem !important;
    line-height: 1.55;
    word-break: break-word;
}

.usage-muted { color: rgba(255, 255, 255, 0.18); }

.usage-token-cell {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.usage-cost-cell {
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: #f87171;
    text-align: right;
}

.usage-cost-cell.zero {
    color: rgba(255, 255, 255, 0.2);
}

.usage-mode-byok {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === 分页 === */
.usage-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.usage-page-info {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SF Mono', 'Consolas', monospace;
    min-width: 60px;
    text-align: center;
}

/* === 表单 === */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.18); }

/* === 按钮 === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

/* === 快捷入口 === */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.shortcut-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(15, 15, 18, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
}

.shortcut-link:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    background: rgba(20, 20, 24, 0.6);
}

.shortcut-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
}

.shortcut-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 3px;
    color: #fff;
}

.shortcut-text p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* === Toast === */
.console-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.console-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.console-toast.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.console-toast.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* === 充值按钮条 === */
.wallet-recharge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.btn-recharge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.btn-recharge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-recharge:active {
    transform: translateY(0);
}

.wallet-recharge-tip {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
}

.wallet-recharge-tip a {
    color: #818cf8;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.wallet-recharge-tip a:hover { color: #a5b4fc; }

/* === 充值弹窗 === */
.recharge-modal {
    position: relative;
    width: 92%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.recharge-modal::-webkit-scrollbar { width: 4px; }
.recharge-modal::-webkit-scrollbar-track { background: transparent; }
.recharge-modal::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 4px; }

.recharge-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(32px);
    z-index: 2;
    border-radius: 20px 20px 0 0;
}

.recharge-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.recharge-modal-body {
    padding: 24px;
}

.recharge-section {
    margin-bottom: 28px;
}

.recharge-section-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    font-weight: 500;
    text-transform: uppercase;
}

/* 金额选择网格 */
.recharge-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.recharge-amount-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.recharge-amount-chip:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.recharge-amount-chip.active {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2), 0 4px 12px rgba(52, 211, 153, 0.06);
}

.recharge-amount-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.recharge-amount-chip.active .recharge-amount-val {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recharge-amount-bonus {
    font-size: 0.68rem;
    color: #34d399;
    font-weight: 500;
    background: rgba(52, 211, 153, 0.1);
    padding: 1px 8px;
    border-radius: 99px;
}

/* 自定义金额输入 */
.recharge-custom-row {
    margin-top: 12px;
}

.recharge-custom-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
    font-family: inherit;
}

.recharge-custom-input:focus {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.recharge-custom-input::placeholder { color: rgba(255, 255, 255, 0.18); }

/* 支付方式 */
.recharge-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.recharge-method-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 500;
}

.recharge-method-chip:hover {
    background: rgba(255, 255, 255, 0.05);
}

.recharge-method-chip.active {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    color: #fff;
}

/* 底部 */
.recharge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 8px;
}

.recharge-summary {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    flex: 1;
}

.recharge-summary strong {
    color: #fff;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.btn-recharge-go {
    padding: 11px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    white-space: nowrap;
}

.btn-recharge-go:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-recharge-go:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.recharge-note {
    text-align: center;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.25);
    padding-top: 8px;
}

.recharge-note a {
    color: #818cf8;
    text-decoration: none;
    cursor: pointer;
}

.recharge-note a:hover { color: #a5b4fc; }

/* 支付二维码步骤 */
.recharge-pay-step {
    text-align: center;
}

.recharge-pay-info {
    padding: 8px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 24px;
}

.recharge-pay-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.recharge-pay-amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: -1px;
}

.recharge-pay-bonus {
    font-size: 0.78rem;
    color: #34d399;
    margin-top: 6px;
}

.recharge-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.recharge-qr-tip {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.5);
text-align: center;
}

.recharge-waiting-icon {
display: flex;
justify-content: center;
align-items: center;
padding: 20px 0;
animation: recharge-pulse 2s ease-in-out infinite;
}

@keyframes recharge-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}

.recharge-qr-frame {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    padding: 8px;
}

.recharge-qr-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
}

.recharge-qr-scan-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 4px;
    animation: recharge-qr-pulse 2s ease-in-out infinite;
}

@keyframes recharge-qr-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
}

/* === 登录设备管理 === */
.sessions-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.sessions-empty {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    padding: 18px 0;
    text-align: center;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.session-item:hover {
    border-color: rgba(129, 140, 248, 0.3);
    background: rgba(129, 140, 248, 0.04);
}

.session-item.is-current {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.05);
}

.session-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(129, 140, 248, 0.12);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-item.is-current .session-icon {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.session-info {
    flex: 1;
    min-width: 0;
}

.session-info-line {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3px;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: 0.3px;
    word-break: break-all;
}

.session-meta {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.session-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.session-kick-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
    cursor: pointer;
    transition: all 0.18s ease;
}

.session-kick-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
}

.session-kick-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.recharge-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.recharge-countdown-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    animation: recharge-blink 1.5s ease-in-out infinite;
}

@keyframes recharge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.recharge-countdown-label {
    color: rgba(255, 255, 255, 0.3);
}

.recharge-pay-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-recharge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-recharge-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    color: #fff;
}

.recharge-pay-hint {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* 充值结果 */
.recharge-result {
    text-align: center;
    padding: 20px 0;
}

.recharge-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: recharge-bounce-in 0.5s ease;
}

@keyframes recharge-bounce-in {
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.recharge-result-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.recharge-result-amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Consolas', monospace;
    margin: 8px 0;
}

.recharge-result.success .recharge-result-amount {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recharge-result-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 24px;
}

.recharge-result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 移动端充值弹窗适配 */
@media (max-width: 768px) {
    .console-layout { flex-direction: column; margin: 80px auto 40px; gap: 0; padding: 0 16px; }
    .console-sidebar {
        flex: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        position: static;
        max-height: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 0 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .console-sidebar::-webkit-scrollbar { display: none; }
    .console-sidebar { scrollbar-width: none; }
    .sidebar-profile { display: none; }
    .sidebar-nav { flex-direction: row; gap: 4px; }
    .sidebar-nav-item { white-space: nowrap; padding: 8px 14px; }
    .sidebar-logout {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: 8px;
    }
    .console-content { padding-bottom: 60px; }
    .console-page-header h1 { font-size: 1.4rem; }
    .wallet-cards { grid-template-columns: 1fr; }
    .shortcut-grid { grid-template-columns: 1fr; }
    .panel { padding: 20px; }
    .usage-summary-cards { grid-template-columns: repeat(2, 1fr); }
    .usage-page-heading { align-items: center; }
    .usage-history-panel { padding: 14px; }
    /* 充值弹窗适配 */
    .recharge-modal {
        width: 96%;
        max-width: none;
    }
    .recharge-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recharge-method-grid {
        grid-template-columns: 1fr;
    }
    .recharge-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-recharge-go {
        width: 100%;
    }
    .wallet-recharge-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .btn-recharge {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .console-layout { margin: 70px auto 30px; padding: 0 14px; }
    .console-page-header h1 { font-size: 1.2rem; }
    .usage-summary-cards { grid-template-columns: 1fr; }
    .usage-page-heading { align-items: flex-start; }
    .usage-page-heading .usage-refresh-btn { padding: 8px; font-size: 0; }
    .usage-page-heading .usage-refresh-btn svg { width: 17px; height: 17px; }
    .panel { padding: 16px; }
    .recharge-amount-grid { grid-template-columns: 1fr; }
}
