:root {
    --cosmos-bg: #03000b;
    --glass-bg: rgba(40, 22, 75, 0.02);
    --glass-blur: 8px;
    --glass-border: rgba(172, 135, 255, 0.04);
    --text-primary: #e6e0ff;
    --text-secondary: #b8a8e6;
    --text-muted: #8a7ab5;
    --primary-purple: #a855f7;
    --primary-color: #a855f7;
    --nebula-purple: #7c3aed;
    --nebula-cyan: #06b6d4;
    --supernova-orange: #f97316;
    --aurora-green: #22c55e;
    --aurora-purple: #a855f7;
    --star-glow: rgba(172, 135, 255, 0.15);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --info-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    --glass-gradient: linear-gradient(135deg, rgba(172, 135, 255, 0.03) 0%, rgba(124, 58, 237, 0.02) 100%);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --box-shadow-glass: 0 2px 12px rgba(172, 135, 255, 0.03);
    --box-shadow-hover: 0 4px 16px rgba(172, 135, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 白天主题 ===== */
[data-theme="light"] {
    --cosmos-bg: #f0f2f5;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-blur: 12px;
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a8;
    --primary-purple: #7c3aed;
    --primary-color: #7c3aed;
    --nebula-purple: #6d28d9;
    --nebula-cyan: #0891b2;
    --supernova-orange: #ea580c;
    --aurora-green: #16a34a;
    --aurora-purple: #7c3aed;
    --star-glow: rgba(124, 58, 237, 0.1);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --info-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --primary-gradient: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a855f7 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
    --box-shadow-glass: 0 2px 12px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --input-bg: #f5f5f8;
    --input-border: rgba(0, 0, 0, 0.12);
    --table-stripe: rgba(0, 0, 0, 0.02);
    --modal-overlay: rgba(0, 0, 0, 0.4);
}

/* 白天主题 - 隐藏星空背景 */
[data-theme="light"] .stars-bg {
    background: linear-gradient(180deg, #e8ecf1 0%, #f0f2f5 50%, #e8ecf1 100%) !important;
}

[data-theme="light"] .stars-layer {
    display: none !important;
}

[data-theme="light"] .orbs-bg {
    opacity: 0.3;
}

/* 白天主题 - 全局调整 */
[data-theme="light"] body {
    background: var(--cosmos-bg);
    color: var(--text-primary);
}

[data-theme="light"] .main-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .main-header::before {
    background: linear-gradient(90deg, var(--nebula-cyan), var(--primary-purple), var(--aurora-purple));
}

[data-theme="light"] .stats-section {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-header {
    background: rgba(124, 58, 237, 0.05);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .modal-close,
[data-theme="light"] .close-btn,
[data-theme="light"] .btn-close {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.03) 100%);
    color: #555;
}

[data-theme="light"] .modal-close:hover,
[data-theme="light"] .close-btn:hover,
[data-theme="light"] .btn-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #222;
}

[data-theme="light"] .log-container {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef0f5 50%, #f5f6fa 100%);
    color: #2d2d3f;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .log-empty {
    color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .control-panel {
    background: rgba(0, 0, 0, 0.03);
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-actions {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.06);
    color: #444;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-outline {
    color: #444;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .script-btn {
    background: rgba(0, 0, 0, 0.03);
    color: #555;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .script-btn:hover {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .admin-tab {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #555;
}

[data-theme="light"] .admin-tab:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .admin-tab.active {
    background: rgba(124, 58, 237, 0.12);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="number"],
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #f5f5f8;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
}

[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="password"]:focus,
[data-theme="light"] input[type="email"]:focus,
[data-theme="light"] input[type="number"]:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .logo-text .header-subtitle {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .section-header h2 {
    color: var(--text-primary);
}

[data-theme="light"] .user-menu {
    color: var(--text-secondary);
}

[data-theme="light"] *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] *::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .status-badge {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

[data-theme="light"] .status-badge.running {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

[data-theme="light"] .script-desc {
    color: var(--text-secondary);
}

[data-theme="light"] .stats-section .section-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* 白天主题 - 统计标签文字 */
[data-theme="light"] .stat-label {
    color: #666;
}

/* 白天主题 - 账号卡片背景与边框 */
[data-theme="light"] .account-row {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .account-row:hover {
    border-color: rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1) !important;
}

[data-theme="light"] .acct-row-info:hover {
    background: rgba(124, 58, 237, 0.04);
}

/* 白天主题 - 账号文字颜色 */
[data-theme="light"] .acct-username {
    color: #333;
}

[data-theme="light"] .acct-stat-val {
    color: #333;
}

[data-theme="light"] .acct-stat-val.version-value {
    color: #7c3aed;
}

[data-theme="light"] .acct-stat-label {
    color: #888;
}

[data-theme="light"] .acct-expand-arrow {
    color: #aaa;
}

[data-theme="light"] .acct-label {
    color: #7c3aed;
}

[data-theme="light"] .acct-row-actions {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* 白天主题 - 服务器统计 */
[data-theme="light"] .server-stat-value {
    color: #333;
}

[data-theme="light"] .server-stat-card {
    background: rgba(124, 58, 237, 0.04);
    border-color: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .server-stat-card:hover {
    background: rgba(124, 58, 237, 0.08);
}

/* 白天主题 - 通用标题区域边框 */
[data-theme="light"] .section-header,
[data-theme="light"] .settings-section-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* 白天主题 - 快捷链接 */
[data-theme="light"] .quick-links-section .section-header {
    background: rgba(124, 58, 237, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* ===== 白天主题 - 全面美化 ===== */

/* 头部区域 */
[data-theme="light"] .header-top {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .header-middle {
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .header-bottom {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Logo 文字 */
[data-theme="light"] .logo-text h1 {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 头部按钮区域 */
[data-theme="light"] .header-actions {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

[data-theme="light"] .action-btn {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    color: #555;
}

[data-theme="light"] .action-btn:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.3);
    color: #7c3aed;
}

/* 通知铃铛 */
[data-theme="light"] .notification-badge {
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* 用户菜单 */
[data-theme="light"] .user-menu {
    color: #333;
}

[data-theme="light"] .user-menu:hover {
    color: #7c3aed;
}

/* VIP/管理员徽章 */
[data-theme="light"] .vip-badge-inline {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    text-shadow: none;
}

[data-theme="light"] .admin-badge-inline {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
}

/* 脚本选择按钮 */
[data-theme="light"] .script-select-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

[data-theme="light"] .script-select-btn:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .script-select-btn .selected-script {
    color: #7c3aed;
}

[data-theme="light"] .script-select-btn .vip-badge {
    text-shadow: none;
}

/* 主按钮样式 */
[data-theme="light"] .btn-primary-outline {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
}

[data-theme="light"] .btn-primary-outline:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: #7c3aed;
    color: #6d28d9;
}

/* 操作按钮 */
[data-theme="light"] .action-btn-user,
[data-theme="light"] .action-btn-register,
[data-theme="light"] .action-btn-upgrade,
[data-theme="light"] .action-btn-admin,
[data-theme="light"] .action-btn-user-logout {
    color: #fff;
    text-shadow: none;
}

/* 脚本按钮激活态 */
[data-theme="light"] .script-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* 统计卡片增强 */
[data-theme="light"] .stat-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .stat-card::before {
    opacity: 0.06;
}

/* 统计图标背景 */
[data-theme="light"] .stat-icon-wrapper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-icon-wrapper::before {
    opacity: 0.08;
}

/* 进度条区域 */
[data-theme="light"] .progress-header {
    color: #333;
}

[data-theme="light"] .progress-bar-container {
    background: rgba(0, 0, 0, 0.06);
}

/* 面板区域 */
[data-theme="light"] .panel-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    color: #333;
}

[data-theme="light"] .panel-header h3 {
    color: #333;
}

/* 日志区域增强 */
[data-theme="light"] .log-header {
    color: #333;
}

[data-theme="light"] .log-header h3 {
    color: #333;
}

/* 用户中心弹窗 */
[data-theme="light"] .user-profile-card {
    background: rgba(124, 58, 237, 0.04);
    border-color: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .vip-status-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vip-label {
    color: #666;
}

[data-theme="light"] .stat-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stat-item .stat-value {
    color: #333;
}

[data-theme="light"] .stat-item .stat-label {
    color: #888;
}

/* 空状态 */
[data-theme="light"] .empty-state {
    color: #999;
}

/* 配置弹窗 */
[data-theme="light"] .config-section h4 {
    color: #333;
}

/* 添加账号弹窗内联样式覆盖 */
[data-theme="light"] .account-cookie {
    background: #f5f5f8 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

/* 调度弹窗 */
[data-theme="light"] .schedule-account-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    color: #333;
}

[data-theme="light"] .schedule-account-item label {
    color: #333;
}

/* 通用按钮美化 */
[data-theme="light"] .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.25);
}

/* 通用表格 */
[data-theme="light"] table th {
    color: #555;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] table td {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* 服务器统计卡片 */
[data-theme="light"] .server-stats-section {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

/* 快捷链接 */
[data-theme="light"] .quick-links-section {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quick-link-btn {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
    color: #7c3aed;
}

[data-theme="light"] .quick-link-btn:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: #7c3aed;
    color: #6d28d9;
}

/* 底部区域 */
[data-theme="light"] .dashboard {
    background: transparent;
}

/* 账号操作按钮 */
[data-theme="light"] .acct-btn {
    color: #555;
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .acct-btn:hover {
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.06);
}

[data-theme="light"] .acct-btn.btn-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

[data-theme="light"] .acct-btn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

/* 账号标签 */
[data-theme="light"] .acct-tag.on {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

[data-theme="light"] .acct-tag.off {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

/* 状态徽章 */
[data-theme="light"] .acct-status-badge.stopped {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

[data-theme="light"] .acct-status-badge.running {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}

/* 默认标记 */
[data-theme="light"] .default-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* 滚动条 */
[data-theme="light"] *::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 全局滚动条样式 - 深空主题 */
*::-webkit-scrollbar {
    width: 6px;
}

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

*::-webkit-scrollbar-thumb {
    background: rgba(172, 135, 255, 0.3);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(172, 135, 255, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--cosmos-bg);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    color: var(--text-primary);
}

body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(172,135,255,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 75% 60%, rgba(6,182,212,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 80%, rgba(168,85,247,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 350px 250px at 85% 15%, rgba(6,182,212,0.03) 0%, transparent 70%),
        radial-gradient(ellipse 450px 320px at 10% 70%, rgba(172,135,255,0.04) 0%, transparent 70%),
        radial-gradient(ellipse 300px 200px at 60% 20%, rgba(249,115,22,0.02) 0%, transparent 70%),
        var(--cosmos-bg);
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: transparent;
}

.stars-layer--sm {
    width: 1px;
    height: 1px;
    box-shadow:
        25vw 10vh 0 0 rgba(255,255,255,0.5),
        72vw 5vh 0 0 rgba(255,255,255,0.4),
        45vw 82vh 0 0 rgba(230,224,255,0.5),
        88vw 33vh 0 0 rgba(255,255,255,0.3),
        12vw 67vh 0 0 rgba(6,182,212,0.5),
        55vw 45vh 0 0 rgba(255,255,255,0.4),
        33vw 91vh 0 0 rgba(255,255,255,0.5),
        78vw 58vh 0 0 rgba(249,115,22,0.4),
        5vw 23vh 0 0 rgba(255,255,255,0.3),
        62vw 76vh 0 0 rgba(230,224,255,0.4),
        91vw 12vh 0 0 rgba(255,255,255,0.5),
        18vw 48vh 0 0 rgba(6,182,212,0.4),
        47vw 3vh 0 0 rgba(255,255,255,0.3),
        83vw 89vh 0 0 rgba(255,255,255,0.5),
        29vw 35vh 0 0 rgba(230,224,255,0.4),
        66vw 19vh 0 0 rgba(255,255,255,0.3),
        8vw 94vh 0 0 rgba(255,255,255,0.5),
        51vw 61vh 0 0 rgba(249,115,22,0.3),
        95vw 42vh 0 0 rgba(255,255,255,0.4),
        37vw 73vh 0 0 rgba(6,182,212,0.4),
        74vw 27vh 0 0 rgba(255,255,255,0.5),
        21vw 56vh 0 0 rgba(230,224,255,0.3),
        58vw 87vh 0 0 rgba(255,255,255,0.4),
        42vw 14vh 0 0 rgba(255,255,255,0.5),
        85vw 68vh 0 0 rgba(249,115,22,0.4),
        3vw 39vh 0 0 rgba(255,255,255,0.3),
        69vw 52vh 0 0 rgba(6,182,212,0.5),
        15vw 81vh 0 0 rgba(255,255,255,0.4),
        53vw 26vh 0 0 rgba(230,224,255,0.3),
        97vw 7vh 0 0 rgba(255,255,255,0.5),
        31vw 63vh 0 0 rgba(255,255,255,0.4),
        77vw 95vh 0 0 rgba(6,182,212,0.3),
        44vw 38vh 0 0 rgba(255,255,255,0.5),
        89vw 71vh 0 0 rgba(230,224,255,0.4),
        10vw 16vh 0 0 rgba(255,255,255,0.3),
        63vw 84vh 0 0 rgba(249,115,22,0.4),
        27vw 49vh 0 0 rgba(255,255,255,0.5),
        81vw 22vh 0 0 rgba(255,255,255,0.4),
        48vw 67vh 0 0 rgba(6,182,212,0.3),
        93vw 55vh 0 0 rgba(255,255,255,0.5),
        16vw 92vh 0 0 rgba(230,224,255,0.4),
        56vw 31vh 0 0 rgba(255,255,255,0.3),
        71vw 78vh 0 0 rgba(255,255,255,0.5),
        34vw 4vh 0 0 rgba(249,115,22,0.3),
        87vw 43vh 0 0 rgba(255,255,255,0.4),
        2vw 59vh 0 0 rgba(6,182,212,0.5),
        59vw 96vh 0 0 rgba(255,255,255,0.3),
        23vw 28vh 0 0 rgba(230,224,255,0.4),
        79vw 11vh 0 0 rgba(255,255,255,0.5);
}

.stars-layer--md {
    width: 2px;
    height: 2px;
    box-shadow:
        14vw 22vh 1px 0 rgba(255,255,255,0.7),
        67vw 8vh 1px 0 rgba(230,224,255,0.6),
        39vw 75vh 1px 0 rgba(255,255,255,0.7),
        82vw 41vh 1px 0 rgba(6,182,212,0.6),
        7vw 89vh 1px 0 rgba(255,255,255,0.6),
        54vw 33vh 1px 0 rgba(249,115,22,0.5),
        91vw 64vh 1px 0 rgba(255,255,255,0.7),
        26vw 51vh 1px 0 rgba(230,224,255,0.6),
        73vw 17vh 1px 0 rgba(255,255,255,0.6),
        48vw 93vh 1px 0 rgba(6,182,212,0.5),
        17vw 46vh 1px 0 rgba(255,255,255,0.7),
        61vw 72vh 1px 0 rgba(255,255,255,0.6),
        35vw 29vh 1px 0 rgba(230,224,255,0.5),
        86vw 85vh 1px 0 rgba(255,255,255,0.7),
        4vw 13vh 1px 0 rgba(6,182,212,0.6),
        57vw 58vh 1px 0 rgba(249,115,22,0.5),
        79vw 3vh 1px 0 rgba(255,255,255,0.6),
        22vw 97vh 1px 0 rgba(255,255,255,0.7),
        44vw 37vh 1px 0 rgba(230,224,255,0.6),
        95vw 69vh 1px 0 rgba(255,255,255,0.5),
        31vw 82vh 1px 0 rgba(6,182,212,0.6),
        68vw 24vh 1px 0 rgba(255,255,255,0.7),
        11vw 55vh 1px 0 rgba(255,255,255,0.6),
        53vw 91vh 1px 0 rgba(249,115,22,0.5),
        88vw 47vh 1px 0 rgba(230,224,255,0.6),
        2vw 78vh 1px 0 rgba(255,255,255,0.7),
        41vw 15vh 1px 0 rgba(6,182,212,0.5),
        76vw 62vh 1px 0 rgba(255,255,255,0.6),
        19vw 34vh 1px 0 rgba(255,255,255,0.7),
        63vw 88vh 1px 0 rgba(230,224,255,0.5);
}

.stars-layer--lg {
    width: 3px;
    height: 3px;
    box-shadow:
        20vw 30vh 2px 1px rgba(255,255,255,0.9),
        65vw 12vh 2px 1px rgba(230,224,255,0.8),
        40vw 78vh 2px 1px rgba(6,182,212,0.7),
        85vw 55vh 2px 1px rgba(255,255,255,0.8),
        10vw 92vh 2px 1px rgba(249,115,22,0.6),
        55vw 40vh 2px 1px rgba(255,255,255,0.9),
        75vw 20vh 2px 1px rgba(230,224,255,0.7),
        30vw 65vh 2px 1px rgba(255,255,255,0.8),
        90vw 80vh 2px 1px rgba(6,182,212,0.7),
        5vw 48vh 2px 1px rgba(255,255,255,0.8),
        50vw 95vh 2px 1px rgba(255,255,255,0.9),
        70vw 35vh 2px 1px rgba(249,115,22,0.6),
        15vw 70vh 2px 1px rgba(230,224,255,0.7),
        45vw 10vh 2px 1px rgba(255,255,255,0.8),
        80vw 60vh 2px 1px rgba(6,182,212,0.7),
        35vw 85vh 2px 1px rgba(255,255,255,0.9),
        60vw 45vh 2px 1px rgba(255,255,255,0.8),
        25vw 5vh 2px 1px rgba(230,224,255,0.7),
        95vw 38vh 2px 1px rgba(255,255,255,0.8),
        8vw 58vh 2px 1px rgba(249,115,22,0.6);
}

.orbs-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #764ba2 0%, transparent 70%);
    top: 20%;
    right: -150px;
    animation-delay: -5s;
}

.orb:nth-child(3) {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f093fb 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 50px) scale(0.9); }
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-glass), 
                inset 0 1px 0 rgba(172, 135, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nebula-cyan), var(--primary-purple), var(--aurora-purple));
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00bfff 0%, #7c3aed 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.logo-text h1 {
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    letter-spacing: 1px;
}

.header-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 3px;
    font-weight: 500;
}

.header-right-actions {
    display: flex;
    gap: 15px;
}

.action-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.action-btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.5);
    transform: translateY(-2px);
}

.action-btn-icon i {
    font-size: 18px;
    color: var(--text-secondary);
}

.settings-btn:hover i {
    color: #00bfff;
}

.notification-btn:hover i {
    color: #fbbf24;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    min-width: 38px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-toggle-btn i {
    font-size: 17px;
    color: #fbbf24;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
}

[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle-btn i {
    color: #7c3aed;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 35px;
    background: rgba(0, 0, 0, 0.2);
}

.user-badges {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.admin-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.vip-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.status-grid {
    display: flex;
    gap: 60px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.status-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.run-count {
    color: #ef4444;
    font-size: 18px;
}

.running-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.running-status .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.running-status .status-dot.running {
    background: transparent;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-top-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: spin-slow 2s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.running-status .status-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 35px;
}

.header-left {
    flex: 1;
}

.header-left h1 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding: 0;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.header-bottom .script-select-btn {
    padding: 12px 24px;
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 12px;
    background: rgba(0, 191, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.25);
    position: relative;
    overflow: hidden;
    min-width: 260px;
}

.header-bottom .script-select-btn i:first-child {
    color: #00bfff;
    font-size: 16px;
}

.header-bottom .script-select-btn .selected-script {
    color: #00bfff;
    font-weight: 600;
}

.header-bottom .script-select-btn .vip-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.header-bottom .script-select-btn:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.7);
    transform: translateY(-2px);
}

.header-buttons, .auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary-outline {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.5);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-primary-outline i {
    font-size: 14px;
}

.btn-admin {
    padding: 12px 24px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #fbbf24;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-admin:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.script-select-btn {
    padding: 14px 20px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 320px;
    max-width: 400px;
    justify-content: flex-start;
}

.script-select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.5s;
}

.script-select-btn:hover::before {
    left: 100%;
}

.script-select-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

.script-select-btn .selector-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding-right: 10px;
    border-right: 1px solid rgba(102, 126, 234, 0.3);
}

.script-select-btn .selected-script {
    flex: 1;
    text-align: left;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.script-select-btn i:first-child {
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.script-select-btn i:last-child {
    color: var(--text-secondary);
    font-size: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.script-select-btn:hover i:last-child {
    transform: rotate(180deg);
}

.script-modal {
    max-width: 500px;
}

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

.script-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.script-option:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.script-option.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.script-option .script-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.script-option .script-desc {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.script-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.script-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.script-item.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.script-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.script-item.locked:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
    transform: none;
}

.script-item.locked .script-name {
    color: #ff6b6b;
}

.vip-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
    font-size: 10px;
    font-weight: bold;
    border-radius: 10px;
    text-transform: uppercase;
}

.default-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 10px;
}

.script-item.default-script {
    border-left: 3px solid #ff9800;
}

.script-radio {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.script-radio input {
    display: none;
}

.script-radio label {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.script-radio input:checked + label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.script-radio input:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.7);
}

.script-info {
    flex: 1;
}

.script-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.script-name i {
    color: var(--primary-color);
}

.script-desc {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.script-btns {
    display: flex;
    gap: 12px;
}

.script-btn {
    padding: 12px 24px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.script-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.6s;
}

.script-btn:hover::before {
    left: 100%;
}

.script-btn:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

.script-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 36px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .header-subtitle {
    margin: 4px 0 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.btn-sm {
    min-width: 70px;
    padding: 0 12px;
    font-size: 12px;
}

.btn-xs {
    min-width: 50px;
    padding: 0 8px;
    font-size: 11px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nebula-purple) 0%, var(--primary-purple) 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
    background: rgba(172, 135, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(172, 135, 255, 0.3);
}

.btn-secondary:hover {
    border-color: rgba(172, 135, 255, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    justify-content: center;
}

.status-badge.running {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.user-avatar i {
    font-size: 16px;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-details .user-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.user-details .user-level {
    font-size: 10px;
    color: #fbbf24;
    padding: 1px 6px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 4px;
    align-self: flex-start;
}

.user-actions {
    display: flex;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-panel {
    display: flex;
    align-items: center;
}

#runningStatus {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    min-width: 80px;
    justify-content: center;
}

#runningStatus.running {
    color: #22c55e;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
}

#runningStatus.running .status-dot {
    background: transparent;
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-top-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: spin-slow 2s linear infinite;
}

#userSection {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-right: 15px;
}

#userInfo {
    display: flex;
    align-items: center;
    gap: 0;
}

.user-name {
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    min-width: 80px;
    text-align: center;
    display: block;
}

.user-level {
    color: #fbbf24;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.15);
    min-width: 80px;
    text-align: center;
    display: block;
}

.user-expire {
    color: #94a3b8;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    min-width: 100px;
    text-align: center;
    display: block;
}

#adminSection {
    display: flex;
    align-items: center;
}

.header-bar .main-header::after {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    width: 80px;
}

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

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

.action-btn-user {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
}

.action-btn-user:hover {
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

.action-btn-register {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.action-btn-register:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.action-btn-upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.action-btn-upgrade:hover {
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.action-btn-user-logout {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(107, 114, 128, 0.3);
}

.action-btn-user-logout:hover {
    box-shadow: 0 6px 18px rgba(107, 114, 128, 0.45);
}

.action-btn-admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.3);
}

.action-btn-admin:hover {
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.action-btn-panel {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
}

.action-btn-panel:hover {
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.action-btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
}

.action-btn-logout:hover {
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

/* 后台管理面板样式 */
.admin-panel-modal {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
}

.admin-panel-body {
    padding: 20px;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 12px;
}

.admin-tab {
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-tab.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.2));
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.admin-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.9);
    }
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.top-stats-wrapper {
    display: flex;
    gap: 25px;
}

.top-stats-wrapper .stats-section,
.top-stats-wrapper .server-stats-section {
    flex: 1;
    min-width: 0;
}

.stats-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    padding: 28px;
    box-shadow: var(--box-shadow-glass),
                inset 0 1px 0 rgba(172, 135, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.stats-section:hover {
    box-shadow: var(--box-shadow-hover);
}

.stats-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.section-header i {
    color: var(--primary-purple);
    font-size: 18px;
    text-shadow: 0 0 15px var(--star-glow);
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow-glass),
                inset 0 1px 0 rgba(172, 135, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--box-shadow-hover),
                inset 0 1px 0 rgba(172, 135, 255, 0.1);
    border-color: rgba(172, 135, 255, 0.4);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
}

.stat-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1);
}

.stat-card:hover .stat-icon-wrapper::before {
    opacity: 1;
}

.stat-icon-wrapper i {
    position: relative;
    z-index: 1;
}

.coin-bg {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.coin-bg::before {
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
}

.stat-card:hover .coin-bg {
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.45);
}

.stat-card.coin-card::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.balance-bg {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    color: #4ade80;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.balance-bg::before {
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.3) 0%, transparent 70%);
}

.stat-card:hover .balance-bg {
    box-shadow: 0 6px 25px rgba(74, 222, 128, 0.45);
}

.stat-card.balance-card::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.speed-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #60a5fa;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.speed-bg::before {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

.stat-card:hover .speed-bg {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.45);
}

.stat-card.speed-card::before {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.gem-bg {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #a78bfa;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.gem-bg::before {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
}

.stat-card:hover .gem-bg {
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.45);
}

.stat-card.gem-card::before {
    background: linear-gradient(90deg, #a78bfa, #8b5cf6);
}

.stat-icon-wrapper i {
    text-shadow: 0 0 15px currentColor;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    color: rgba(199, 210, 254, 0.65);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stats-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.stats-actions .btn {
    width: 100%;
    justify-content: center;
}

.btn-action {
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-action:hover::before {
    left: 150%;
}

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

.btn-action:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-action i {
    font-size: 16px;
}

.btn-ck {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-ck:hover {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.55);
}

.btn-manage {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-manage:hover {
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.55);
}

.action-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.stats-detail {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.12);
    justify-content: space-around;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(12, 10, 30, 0.12) 0%, rgba(20, 18, 45, 0.08) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.12);
    box-shadow: inset 0 1px 0 rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.2);
}

.detail-item.earnings-item-yesterday {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(255, 165, 0, 0.06) 100%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
}

.detail-item.earnings-item-yesterday i {
    color: #fbbf24;
    font-size: 14px;
}

.detail-item.earnings-item-today {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 18px rgba(251, 191, 36, 0.15);
}

.detail-item.earnings-item-today i {
    color: #fbbf24;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.detail-item:not(.earnings-item-yesterday):not(.earnings-item-today) {
    background: rgba(102, 126, 234, 0.08);
}

.detail-label {
    color: rgba(199, 210, 254, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-item.earnings-item-yesterday .detail-value,
.detail-item.earnings-item-today .detail-value {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-content-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
    align-items: stretch;
}

.config-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-glass),
                inset 0 1px 0 rgba(172, 135, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 400px;
    overflow: hidden;
    grid-column: 1 !important;
    grid-row: 1;
}

.panel-header {
    padding: 25px 25px 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.panel-header h2 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 0;
    border-bottom: none;
    text-shadow: 0 0 20px var(--star-glow);
    margin: 0;
}

.panel-header h2 i {
    color: var(--primary-purple);
}

.btn-save-config {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    min-width: auto;
}

/* ═════════════════════════════════════════
   配置中心 - 精致美化样式
   ═════════════════════════════════════════ */

/* 配置模块卡片 */
.config-section {
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(30, 18, 53, 0.92) 0%, rgba(18, 10, 35, 0.88) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(124, 58, 237, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.config-section:hover {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow:
        0 8px 40px rgba(124, 58, 237, 0.18),
        0 0 0 1px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* 模块头部 - 可折叠 */
.config-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.config-module-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}
.config-module-header::after {
    content: '';
    position: absolute;
    left: 4px; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.config-module-header:hover {
    background: rgba(124, 58, 237, 0.1);
}
.config-module-header:hover::after {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
}

.config-module-title {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #f0eaf8;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}
.config-module-title i {
    color: #a78bfa;
    font-size: 14px;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
}

.config-module-arrow {
    color: #a78bfa;
    font-size: 11px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
}
.config-module-header.expanded .config-module-arrow {
    transform: rotate(0deg);
}
.config-module-header:not(.expanded) .config-module-arrow {
    transform: rotate(-90deg);
}

/* 模块内容区 - 紧凑 */
.config-module-body {
    padding: 8px 12px 10px !important;
    animation: configSlideIn 0.3s ease;
}
@keyframes configSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 子模块标签 - 紧凑 */
.config-sub-label {
    font-size: 10px !important;
    color: #9d8bc7;
    margin-bottom: 5px !important;
    padding-left: 1px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* 变量卡片网格 - 紧凑 */
.config-var-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

/* 变量卡片 - 紧凑精致风格 */
.config-card {
    flex: 1 1 auto !important;
    min-width: 110px !important;
    max-width: 190px !important;
    background: linear-gradient(135deg, rgba(26, 16, 42, 0.95) 0%, rgba(18, 11, 32, 0.9) 100%);
    border: 1px solid rgba(61, 47, 93, 0.5);
    border-radius: 8px !important;
    padding: 7px 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.config-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.config-card:hover {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
    transform: translateY(-1px);
}
.config-card:hover::before { opacity: 1; }

/* 变量标签 - 紧凑 */
.config-var-label {
    font-size: 10.5px !important;
    color: #b8a9d4;
    margin-bottom: 4px !important;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* 变量输入框 - 紧凑 */
.config-var-input {
    width: 100% !important;
    padding: 5px 8px !important;
    background: rgba(12, 7, 22, 0.85);
    border: 1px solid rgba(61, 47, 93, 0.5) !important;
    border-radius: 6px !important;
    color: #e8e0f5;
    font-size: 12px !important;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.config-var-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255,255,255,0.03);
    background: rgba(12, 7, 22, 0.98);
}
.config-var-input::placeholder {
    color: #55446e;
}

/* 开关卡片 - 紧凑 */
.config-card.switch-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 105px !important;
    max-width: 170px !important;
    user-select: none;
}
.config-card.switch-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
}
.config-card.switch-card.on {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(26, 16, 42, 0.95) 100%);
}

/* 精致开关 - 紧凑 */
.config-switch {
    width: 32px;
    height: 18px;
    border-radius: 9px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #3d3055;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.config-switch.on {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.config-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.68, -0.3, 0.32, 1.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.config-switch.on .config-switch-knob {
    left: 16px;
}

/* 配置项编辑弹窗 */
#varEditModal .modal-content {
    width: 560px !important;
    max-width: 90vw !important;
    min-height: auto !important;
    max-height: 85vh !important;
}
#varEditModal .modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}
#varEditModal .config-var-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
#varEditModal .config-card {
    flex: 1 1 160px;
    min-width: 150px;
    max-width: 100%;
}
#varEditModal .config-card.switch-card {
    flex: 1 1 120px;
    min-width: 110px;
}
#varEditModal .config-sub-label {
    display: block;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    #varEditModal .modal-content {
        width: 94% !important;
    }
}

/* 保存成功/失败反馈 */
.config-save-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 99999;
    animation: toastSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.config-save-toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.92));
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
.config-save-toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(220, 38, 38, 0.92));
    color: #fff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}
@keyframes toastSlide {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 加载状态 */
.config-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #a78bfa;
    font-size: 13.5px;
}
.config-loading i {
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 空状态 */
.config-empty {
    text-align: center;
    padding: 36px 20px;
    color: #6b5a82;
    font-size: 13px;
}
.config-empty i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.4;
}

/* ═════════════════════════════════════════
   配置模态框全屏模式优化
   ═════════════════════════════════════════ */
#configModal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(3, 0, 11, 0.75) !important;
    z-index: 1000 !important;
    justify-content: center !important;
    align-items: center !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}
#configModal.active {
    display: flex !important;
}
#configModal .modal-content {
    width: 92%;
    max-width: 1050px;
    max-height: 86vh;
    min-height: auto;
    height: auto;
    margin: auto !important;
    position: relative !important;
    background: linear-gradient(160deg, rgba(22, 12, 40, 0.97) 0%, rgba(14, 8, 28, 0.96) 100%) !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 18px !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(124, 58, 237, 0.08),
        0 0 60px rgba(124, 58, 237, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    animation: configModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes configModalIn {
    from { transform: translateY(-30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
#configModal .modal-body {
    padding: 20px 24px;
}
#configModal .modal-body .config-section {
    margin-bottom: 14px !important;
    background: linear-gradient(135deg, rgba(30, 18, 53, 0.92) 0%, rgba(18, 10, 35, 0.88) 100%) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 14px !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(124, 58, 237, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#configModal .modal-body .config-section:hover {
    border-color: rgba(124, 58, 237, 0.45) !important;
    box-shadow:
        0 8px 40px rgba(124, 58, 237, 0.18),
        0 0 0 1px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}
#configModal .modal-header {
    border-bottom: 1px solid rgba(124, 58, 237, 0.15) !important;
    padding: 16px 24px !important;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%);
}
#configModal .modal-header h2, #configModal .modal-header h3 {
    color: #f0eaf8 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}
#configModal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid rgba(124, 58, 237, 0.12) !important;
    padding: 14px 24px !important;
    background: rgba(12, 6, 24, 0.85) !important;
    backdrop-filter: blur(12px);
}

/* 卡密详情样式 */
.card-details {
    margin-top: 16px;
}

.card-details-grid {
    display: grid;
    gap: 12px;
}

.card-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.card-detail-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.card-detail-info {
    flex: 1;
    min-width: 0;
}

.card-detail-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-detail-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-detail-list div {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-tertiary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.form-group:hover label {
    color: var(--primary-color);
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    transition: var(--transition);
    background: rgba(3, 0, 11, 0.6);
    font-family: inherit;
    color: var(--text-primary);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(172, 135, 255, 0.05);
    appearance: none;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    appearance: auto;
}

.form-group select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8px 12px;
    border: none;
}

.btn-full {
    width: 100%;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    display: none;
}

.error-message.show {
    display: block;
}

.vip-info {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.vip-info h4 {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 14px;
}

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

.vip-info li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(172, 135, 255, 0.2), inset 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(172, 135, 255, 0.1);
    transform: translateY(-1px);
    background: rgba(172, 135, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: rgba(199, 210, 254, 0.6);
    font-size: 11px;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.task-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.task-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--text-secondary);
    margin-bottom: 0;
}

.task-checkboxes label:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.2);
}

.task-checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    z-index: 100;
    position: relative;
}

.task-checkboxes label {
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
}

.script-config {
    display: none;
}

.script-config.active {
    display: block;
    animation: fadeInUp 0.5s ease;
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-glass),
                inset 0 1px 0 rgba(172, 135, 255, 0.1),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 400px;
    overflow: hidden;
    grid-column: 2 !important;
    grid-row: 1;
}

.log-header {
    padding: 25px 25px 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    gap: 12px;
    flex-wrap: wrap;
}

/* 账号日志区域 */
.acct-log-section {
    margin-top: 8px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.acct-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.08);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.acct-log-clear {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.acct-log-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.acct-log-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 6px 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.5;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.acct-log-container .log-line {
    padding: 1px 0;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-all;
}

.acct-log-container .log-stderr,
.acct-log-container .log-error {
    color: #ef4444;
}

.acct-log-container .log-info {
    color: rgba(255, 255, 255, 0.5);
}

.log-header h2 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 20px var(--star-glow);
}

.log-header h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.log-body {
    flex: 1;
    min-height: 0;
    padding: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.log-output {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #000000;
    border-radius: var(--border-radius-md);
    padding: 18px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(172, 135, 255, 0.1);
}

.log-output::-webkit-scrollbar {
    width: 10px;
}

.log-output::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}

.log-output::-webkit-scrollbar-thumb {
    background: rgba(172, 135, 255, 0.6);
    border-radius: 5px;
    border: 2px solid rgba(3, 0, 11, 0.8);
}

.log-output::-webkit-scrollbar-thumb:hover {
    background: rgba(172, 135, 255, 0.8);
}



.log-placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px 20px;
    font-size: 14px;
}

.log-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.log-actions {
    display: flex;
    gap: 12px;
}

.log-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.log-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.log-btn:active:not(:disabled) {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.log-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(80%);
}

.log-btn-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.log-btn-start:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.log-btn-stop {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.5);
}

.log-btn-stop:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
    border-color: rgba(239, 68, 68, 0.8);
}

.log-btn-clear {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.log-btn-clear:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.log-panel.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    z-index: 10000 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(15, 12, 41, 0.99) !important;
    display: flex !important;
    flex-direction: column !important;
}

.log-panel.fullscreen .log-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.log-panel.fullscreen .log-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.log-panel.fullscreen .log-output {
    flex: 1;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.log-panel.fullscreen .btn-fullscreen i {
    transform: rotate(180deg);
}

.log-panel.fullscreen .log-footer {
    padding: 15px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.log-panel.fullscreen .log-actions {
    display: flex;
    gap: 12px;
}

.btn-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.1);
}

.log-container {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(135deg, #0d0b1a 0%, #1a1535 50%, #0f0c29 100%);
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    border-radius: var(--border-radius-sm);
    margin: 10px;
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.5);
    min-height: 200px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.log-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}



.log-empty {
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 60px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.control-panel {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    margin-top: auto;
}

.control-buttons {
    display: flex;
    gap: 12px;
}

/* ============ 统一按钮基础类 ============ */
.btn {
    box-sizing: border-box;
    height: 40px;
    min-width: 100px;
    padding: 0 18px;
    border: 1px solid rgba(172, 135, 255, 0.3);
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(172, 135, 255, 0.1);
    letter-spacing: 0.3px;
    position: relative;
    background: rgba(172, 135, 255, 0.05);
    color: var(--text-primary);
}

.btn i, .btn svg, .btn fas {
    font-size: 13px;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(172, 135, 255, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(172, 135, 255, 0.2),
                inset 0 1px 0 rgba(172, 135, 255, 0.2);
    border-color: rgba(172, 135, 255, 0.5);
}

.btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 按钮容器 flex 布局 */
.modal-footer,
.btn-row,
.btn-group,
.action-row,
.m-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 按钮变体 — 仅设置颜色，不设置尺寸 */
.btn-danger {
    background: var(--danger-gradient);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: rgba(172, 135, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(172, 135, 255, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(172, 135, 255, 0.2),
                inset 0 1px 0 rgba(172, 135, 255, 0.2);
    border-color: rgba(172, 135, 255, 0.5);
}

.btn-account {
    background: var(--primary-gradient);
    color: white;
}

.btn-account:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

#headerActions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
}

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

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

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn-primary:hover {
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.45);
}

.action-btn-admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.action-btn-admin:hover {
    box-shadow: 0 7px 20px rgba(139, 92, 246, 0.45);
}

.action-btn-panel {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.action-btn-panel:hover {
    box-shadow: 0 7px 20px rgba(245, 158, 11, 0.45);
}

.action-btn-logout {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.action-btn-logout:hover {
    box-shadow: 0 7px 20px rgba(239, 68, 68, 0.45);
}

.action-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.admin-login-modal {
    max-width: 400px;
}

.admin-login-modal .modal-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.admin-login-modal .form-group {
    margin-bottom: 20px;
}

.admin-login-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.admin-login-modal .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.admin-login-modal .form-group input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    padding: 10px;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-account .badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.log-item {
    margin-bottom: 4px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #4ade80;
}

.log-time {
    color: #4ade80;
    font-size: 9px;
    margin-right: 8px;
    font-weight: 500;
    min-width: 65px;
    width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 0, 11, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow-glass),
                inset 0 1px 0 rgba(172, 135, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close, .close-btn, .btn-close {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    position: relative;
    overflow: hidden;
}

.modal-close::before, .close-btn::before, .btn-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal-close:hover::before, .close-btn:hover::before, .btn-close:hover::before {
    left: 100%;
}

.modal-close:hover, .close-btn:hover, .btn-close:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.45), 0 0 20px rgba(220, 53, 69, 0.3);
}

.modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal-fullscreen {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
}

.modal-fullscreen:hover {
    background: rgba(102, 126, 234, 0.5);
    color: white;
    transform: scale(1.1);
}

.modal-content.fullscreen {
    width: 95vw !important;
    max-width: 95vw !important;
    height: 95vh !important;
    max-height: 95vh !important;
    border-radius: 12px !important;
}

.modal-content.config-modal {
    max-width: 900px;
    min-height: 60vh;
}

.dynamic-config-modal-content {
    padding: 4px;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    pointer-events: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal-body input[type="checkbox"] {
    pointer-events: auto;
    cursor: pointer;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

#accountModal .modal-body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#accountModal .account-controls {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(26, 24, 54, 0.98);
    padding-bottom: 10px;
}

#accountModal .account-container {
    flex: none;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* 移动端账号弹窗自适应高度，避免全屏留白 */
@media (max-width: 768px) {
    #accountModal .modal-content {
        height: auto;
        min-height: 0;
        max-height: 100vh;
    }
    #accountModal .modal-body {
        overflow-y: auto;
    }
}

#accountModal .modal-content {
    background: linear-gradient(135deg, rgba(26, 24, 54, 0.98) 0%, rgba(36, 34, 65, 0.95) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    #accountModal .modal-content {
        border-radius: 0 !important;
        border: none !important;
    }
}

#accountModal .modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 24px 24px 0 0;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

#accountModal .modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#accountModal .modal-header h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #00bfff 0%, #7c3aed 100%);
    border-radius: 2px;
}

#accountModal .tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
}

#accountModal .tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(199, 210, 254, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accountModal .tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#accountModal .tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.account-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 18px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(102, 126, 234, 0.2);
    align-items: center;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(124, 58, 237, 0.06) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.select-all-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.select-all-label:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(124, 58, 237, 0.12) 100%);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.select-all-label:hover::before {
    left: 100%;
}

.select-all-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    margin: 0;
    position: relative;
    z-index: 1;
}

.select-all-label input[type="checkbox"]:hover {
    border-color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

#selectAllAccounts {
    width: 8px;
    height: 8px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

#selectAllAccounts:hover {
    border-color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.account-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    padding-right: 10px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.account-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.account-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.account-container::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 4px;
}

.account-container::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

.account-block {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.04) 0%, rgba(124, 58, 237, 0.02) 100%);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    min-width: 580px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.account-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.account-block:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.12);
    transform: translateY(-4px);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.06) 0%, rgba(124, 58, 237, 0.03) 100%);
}

.account-block:hover::before {
    opacity: 1;
}

.account-block.selected {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3), 0 12px 40px rgba(168, 85, 247, 0.2);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.1) 0%, rgba(124, 58, 237, 0.06) 100%);
}

.account-block.selected::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.account-row {
    padding: 0 !important;
    background: #16102b !important;
    border: 1px solid #2a1f3d !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
    transition: none !important;
    transform: none !important;
    min-width: 580px !important;
    flex-shrink: 0 !important;
}
.account-row:hover {
    border-color: rgba(168, 85, 247, 0.3) !important;
    transform: none !important;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.08) !important;
}
.acct-row-info {
    padding: 10px 12px;
    cursor: pointer;
}
.acct-row-info:hover {
    background: rgba(168, 85, 247, 0.04);
}
.acct-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.acct-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
}
.acct-label {
    color: #c084fc;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}
.acct-username {
    color: #e4e4ec;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    flex-shrink: 1;
}
.acct-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.acct-status-badge.stopped {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}
.acct-status-badge.running {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}
.status-dot-inline {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.acct-status-badge.stopped .status-dot-inline {
    background: #ef4444;
}
.acct-status-badge.running .status-dot-inline {
    background: transparent;
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-top-color: #22c55e;
}
.acct-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-weight: 600;
    cursor: help;
    animation: risk-pulse 2s ease-in-out infinite;
}
.acct-risk-badge i {
    font-size: 10px;
}
@keyframes risk-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
[data-theme="light"] .acct-risk-badge {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}
.account-risk,
.my-account-card.account-risk {
    border-left: 3px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}
[data-theme="light"] .account-risk,
[data-theme="light"] .my-account-card.account-risk {
    border-left: 3px solid #dc2626 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}
.acct-btn-risk {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
.acct-btn-risk:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}
[data-theme="light"] .acct-btn-risk {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
}
    animation: spin-slow 2s linear infinite;
}
.acct-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.acct-tag.on {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}
.acct-tag.off {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}
.acct-info-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-left: 30px;
    margin-top: 4px;
}
.acct-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    white-space: nowrap;
}
.acct-stat-label {
    font-size: 10px;
    color: #6b6b80;
    margin-bottom: 2px;
}
.acct-stat-val {
    font-size: 13px;
    font-weight: 700;
    color: #d4c5f0;
}
.acct-stat-val.version-value {
    color: #a78bfa;
    font-size: 12px;
}
.acct-stat-val.coin-value {
    color: #f59e0b;
}
.acct-stat-val.balance-value {
    color: #22c55e;
}
.acct-stat-val.accumulative-value {
    color: #818cf8;
}
.acct-stat-val.coinval-value {
    color: #fbbf24;
}
.acct-stat-val.total-value {
    color: #34d399;
}
.acct-stat-val.userid-value {
    color: #7dd3fc;
    font-size: 11px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acct-expand-arrow {
    color: #5a4a7a;
    font-size: 10px;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s;
}
.acct-row-actions {
    display: flex;
    gap: 4px;
    padding: 6px 12px 8px;
    border-top: 1px solid rgba(168,85,247,0.06);
    flex-wrap: nowrap;
    overflow-x: auto;
}
.acct-btn {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #2d1f3d;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: opacity 0.15s, background 0.15s;
    background: #1a1030;
    line-height: 1.15;
}
.acct-btn:hover { opacity: 0.85; background: #221840; }
.acct-btn-get { color: #60a5fa; }
.acct-btn-cfg { color: #c084fc; }
.acct-btn-on { color: #34d399; }
.acct-btn-on.disabled { color: #f87171; }
.acct-btn-run { color: #34d399; }
.acct-btn-run.loading, .acct-btn-run:disabled { color: #6b7280; opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.acct-btn-stop { color: #f59e0b; }
.acct-btn-log { color: #93c5fd; }
.acct-btn-history { color: #c084fc; }
.acct-btn-coin { color: #f59e0b; }
.acct-btn-copy { color: #a3a3a3; }
.acct-btn-del { color: #f87171; }
.acct-btn-sch { color: #fbbf24; }
.acct-btn-convert { color: #22d3ee; }
.acct-row-detail {
    padding: 0 12px 10px 12px;
    border-top: 1px solid #2a1f3d;
}

.my-account-card {
    background: #1e1235;
    border: 1px solid #2d1f3d;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
}
.my-account-card.account-risk {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    border-left: 3px solid #ef4444 !important;
}

.acct-checkbox {
    width: 8px !important;
    height: 8px !important;
    accent-color: #ef4444;
    cursor: pointer;
    flex-shrink: 0;
    appearance: auto;
    outline: 1px solid #fff;
    outline-offset: -1px;
    border-radius: 2px;
    margin: 0;
}
.acct-checkbox:checked {
    outline-color: #ef4444;
    accent-color: #ef4444;
    background: #ef4444;
}

.my-account-checkbox {
    width: 8px !important;
    height: 8px !important;
    accent-color: #ef4444;
    cursor: pointer;
    flex-shrink: 0;
    appearance: auto;
    outline: 2px solid #fff;
    outline-offset: -2px;
    border-radius: 4px;
}

.my-account-checkbox:checked {
    outline-color: #ef4444;
    accent-color: #ef4444;
    background: #ef4444;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.account-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    border-radius: 6px;
    border: 2px solid rgba(168, 85, 247, 0.4);
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
    position: relative;
    z-index: 10;
    margin-right: 4px;
}

.account-checkbox:hover {
    border-color: var(--primary-purple);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.account-checkbox:checked {
    background: var(--primary-gradient);
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.account-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    flex: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.btn-toggle {
    padding: 8px 18px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.btn-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-toggle.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.btn-toggle.disabled:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transform: none;
}

.account-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
}



.btn-run, .btn-stop, .btn-edit, .btn-remove, .btn-fetch, .btn-config, .btn-schedule, .btn-logs, .btn-history {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-run::before, .btn-edit::before, .btn-remove::before, .btn-fetch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-run:hover::before, .btn-edit:hover::before, .btn-remove:hover::before, .btn-fetch:hover::before {
    left: 150%;
}

.btn-fetch {
    background: var(--info-gradient);
    color: white;
}

.btn-fetch:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.45);
}

.btn-run {
    background: var(--success-gradient);
    color: white;
}

.btn-run:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

.btn-stop {
    background: var(--danger-gradient);
    color: white;
}

.btn-stop:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.45);
}

.btn-edit {
    background: var(--warning-gradient);
    color: white;
}

.btn-edit:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

.btn-remove {
    background: var(--danger-gradient);
    color: white;
}

.btn-remove:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.45);
}

.btn-config {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
}

.btn-config:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(168, 85, 247, 0.45);
}

.btn-schedule {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: white;
}

.btn-schedule:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(244, 114, 182, 0.45);
}

.btn-logs {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.btn-logs:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(96, 165, 250, 0.45);
}

.btn-history {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
}

.btn-history:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(167, 139, 250, 0.45);
}

.account-username {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.04);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.account-username:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
    background: rgba(168, 85, 247, 0.06);
}

.account-username::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.account-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    padding: 14px 18px;
    background: var(--glass-gradient);
    border: 1px solid rgba(168, 85, 247, 0.08);
    border-radius: var(--border-radius-sm);
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-mini .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stat-mini .stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-mini .coin-value {
    color: #fbbf24;
    flex-direction: column;
    margin-top: 13px;
    margin-bottom: 13px;
}

.stat-mini .balance-value {
    color: #4ade80;
    flex-direction: column;
    margin-top: 13px;
    margin-bottom: 13px;
}

.stat-mini .version-value {
    color: var(--text-primary);
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 13px;
    margin-bottom: 13px;
}

.tabs {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
}

.tab-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

#accountConfigContainer .config-section {
    background: rgba(30, 27, 75, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

#accountConfigContainer .section-title {
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: default;
}

#accountConfigContainer .section-title i {
    color: var(--primary-color);
}

#accountConfigContainer .section-content {
    padding: 16px;
    display: block;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}
.schedule-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.schedule-item-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.schedule-item-cron {
    font-size: 12px;
    color: #a78bfa;
    white-space: nowrap;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 4px 4px 0;
}

.schedule-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.schedule-item.active::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.schedule-status {
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-status.enabled {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.schedule-status.disabled {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(107, 114, 128, 0.15) 100%);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.schedule-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-name::before {
    content: '�?;
    font-size: 14px;
}

.schedule-info {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 24px;
}

.schedule-info span {
    color: var(--text-muted);
    margin-right: 8px;
}

.schedule-cron {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #a5b4fc;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 10px;
    display: inline-block;
}

.schedule-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-left: 24px;
}

.schedule-actions .btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.schedule-actions .btn-stop {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.schedule-actions .btn-stop:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(234, 88, 12, 0.25) 100%);
}

.schedule-actions .btn-disable {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2) 0%, rgba(107, 114, 128, 0.15) 100%);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

.schedule-actions .btn-disable:hover {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.3) 0%, rgba(107, 114, 128, 0.25) 100%);
}

.schedule-actions .btn-delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.schedule-actions .btn-delete:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.25) 100%);
}

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

.cron-preset-btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    background: rgba(168, 85, 247, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cron-preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.cron-preset-btn:hover {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.12);
}

.cron-preset-btn:hover::before {
    left: 100%;
}

.cron-preset-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.schedule-account-list {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    background: rgba(168, 85, 247, 0.02);
}

.schedule-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.schedule-account-item:hover {
    background: rgba(168, 85, 247, 0.06);
}

.schedule-account-header {
    background: rgba(168, 85, 247, 0.08);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    margin-bottom: 4px;
}

.schedule-account-header label {
    font-weight: 600;
    color: var(--text-secondary);
}

.schedule-account-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.schedule-account-item label {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.schedule-account-item .account-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.cron-input-wrapper {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    transition: all 0.3s;
}

.cron-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cron-format-info {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
}

.cron-format-info strong {
    color: #a5b4fc;
}

.cron-fields {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    text-align: center;
}

.cron-field {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 8px;
    border-radius: 8px;
}

.cron-field strong {
    display: block;
    color: #a5b4fc;
    font-size: 13px;
    margin-bottom: 4px;
}

.cron-field .range {
    font-size: 11px;
    color: #6b7280;
}

.cron-presets-section {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.cron-presets-title {
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cron-presets-title::before {
    content: '📌';
}

.cron-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.schedule-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.schedule-form-group {
    margin-bottom: 20px;
}

.schedule-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-left: 4px;
}

.schedule-form-group .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(102, 126, 234, 0.08);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
}

.schedule-form-group .form-input:focus {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.12);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.schedule-form-group .form-input::placeholder {
    color: #6b7280;
}

.schedule-form-group select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.schedule-add-btn {
    width: 100%;
}

.schedule-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

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

.account-salt-row {
    margin-bottom: 12px;
}

.account-salt {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-family: 'Consolas', monospace;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.03);
    color: var(--text-primary);
}

.account-salt:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.05);
}

.account-salt::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.batch-input-wrapper {
    margin: 0 0 16px;
}

.batch-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-family: 'Consolas', monospace;
    resize: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.03);
    color: var(--text-primary);
    min-height: 36px;
    line-height: 1.5;
}

.batch-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.05);
}

.batch-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.account-cookie {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-family: 'Consolas', monospace;
    resize: vertical;
    margin-bottom: 6px;
    min-height: 50px;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.03);
    color: var(--text-primary);
}

.account-cookie:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.05);
}

.account-cookie::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.account-proxy {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.03);
    color: var(--text-primary);
}

.account-proxy:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: rgba(168, 85, 247, 0.05);
}

.account-proxy::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#accountModal .btn-add {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

#accountModal .btn-add:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

#accountModal .btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#accountModal .btn-success:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

#accountModal .btn-secondary {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.4);
}

#accountModal .btn-secondary:hover {
    box-shadow: 0 10px 30px rgba(75, 85, 99, 0.5);
}

#accountModal .modal-footer {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

#accountModal .modal-footer .btn {
    flex: 1;
}

.btn-add {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 12px 50px rgba(16, 185, 129, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: toastPulse 0.6s ease-out;
}

.toast.show::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes toastPulse {
    0% {
        transform: translateX(-50%) translateY(100px) scale(0.9);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) translateY(-10px) scale(1.05);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.toast i {
    font-size: 20px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 12px 50px rgba(239, 68, 68, 0.5);
}

@media (max-width: 1400px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-content-wrapper {
        grid-template-columns: 1.3fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .header-left, .header-center, .header-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .header-right {
        flex-wrap: wrap;
    }
}

@media (max-width: 1200px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-content-wrapper {
        grid-template-columns: 1.3fr 1fr;
        gap: 25px;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 8px;
        font-size: 14px;
    }
    
    .container {
        width: 100%;
        padding: 0;
    }
    
    .main-header {
        padding: 15px;
        gap: 12px;
        border-radius: 16px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .header-right-actions {
        justify-content: center;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .header-middle {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .user-badges {
        order: 1;
    }
    
    .status-grid {
        order: 2;
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .status-item {
        text-align: center;
    }
    
    .running-status {
        order: 3;
    }
    
    .header-bottom {
        flex-direction: column;
        gap: 15px;
        padding: 12px 15px;
    }
    
    .script-select-btn {
        min-width: 100%;
        justify-content: center;
    }
    
    .header-buttons, .auth-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .btn-primary-outline {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .stats-section {
        padding: 20px;
        border-radius: 16px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 18px;
        gap: 14px;
    }
    
    .stat-icon-wrapper {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stats-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn-action {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .stats-detail {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
    }
    
    .detail-item {
        justify-content: space-between;
        padding: 10px 14px;
    }
    
    .detail-label {
        font-size: 12px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .main-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .config-panel {
        max-height: none;
        overflow-y: auto;
        height: auto;
        min-height: 300px;
    }

    .panel-header {
        padding: 12px 15px;
    }

    .panel-header h2 {
        font-size: 14px;
    }

    .script-config.active {
        padding: 12px 15px;
    }
    
    .config-section {
        margin-bottom: 10px;
    }
    
    .section-title {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .section-content {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 8px;
    }
    
    .form-group label {
        font-size: 11px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .task-checkboxes {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .log-panel {
        height: auto;
        min-height: 350px;
        max-height: calc(100vh - 250px);
        border-radius: 10px;
    }
    
    .log-header {
        padding: 8px 12px;
    }
    
    .log-header h2 {
        font-size: 13px;
    }
    
    .log-body {
        padding: 6px;
        flex: 1;
    }
    
    .log-output {
        flex: 1;
        padding: 8px;
        font-size: 11px;
        line-height: 1.4;
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 0;
    }
    
    .log-footer {
        padding: 8px 10px;
    }
    
    .log-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .log-btn {
        padding: 7px 10px;
        font-size: 11px;
        min-height: 36px;
        border-radius: 6px;
    }
    
    .log-btn span {
        display: none;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 0;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .account-controls {
        gap: 8px;
        padding: 12px;
    }
    
    .account-controls .btn {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .account-container {
        gap: 12px;
    }
    
    .account-block {
        padding: 12px;
    }
    
    .account-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .account-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .account-actions {
        gap: 6px;
    }
    
    .account-actions button {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .account-cookie {
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .main-header {
        padding: 12px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .header-subtitle {
        font-size: 11px;
    }
    
    .status-grid {
        gap: 15px;
    }
    
    .status-item {
        min-width: 80px;
    }
    
    .status-label {
        font-size: 11px;
    }
    
    .status-value {
        font-size: 14px;
    }
    
    .stats-section {
        padding: 15px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .btn-action {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .detail-item {
        padding: 8px 12px;
    }
    
    .log-panel {
        height: 350px;
    }
    
    .modal-content {
        width: 98%;
    }
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 1000;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

#backToTop.show {
    display: flex;
}

@media (max-width: 540px) {
    body {
        padding: 6px;
        font-size: 13px;
    }
    
    .main-header {
        padding: 12px;
        gap: 10px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .action-btn i {
        font-size: 16px;
    }
    
    .status-grid {
        gap: 15px;
    }
    
    .status-item {
        min-width: 75px;
    }
    
    .status-label {
        font-size: 11px;
    }
    
    .status-value {
        font-size: 13px;
    }
    
    .stat-card {
        padding: 14px;
        gap: 12px;
    }
    
    .stat-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .btn-action {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .config-panel {
        height: auto;
        min-height: 300px;
    }

    .panel-header {
        padding: 10px 12px;
    }

    .script-config.active {
        padding: 10px 12px;
    }
    
    .section-title {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .section-content {
        padding: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 13px;
    }
    
    .account-controls {
        gap: 6px;
        padding: 10px;
    }
    
    .account-controls .btn {
        min-width: 100%;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .account-block {
        padding: 10px;
    }
    
    .account-actions {
        gap: 5px;
    }
    
    .account-actions button {
        width: 34px;
        height: 34px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .log-panel {
        height: 240px;
    }
    
    .log-header {
        padding: 6px 10px;
    }
    
    .log-header h2 {
        font-size: 12px;
    }
    
    .log-body {
        padding: 4px;
    }
    
    .log-output {
        flex: 1;
        font-size: 10px;
        padding: 6px;
        line-height: 1.3;
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 0;
    }
    
    .log-footer {
        padding: 6px 8px;
    }
    
    .log-actions {
        gap: 3px;
    }
    
    .log-btn {
        padding: 6px 8px;
        font-size: 10px;
        min-height: 32px;
    }
    
    .modal-content {
        width: 96%;
        max-width: 96%;
    }
}

    /* 账号日志移动端优�?*/
    .account-logs-container {
        padding: 8px !important;
    }
    
    .account-logs-container .log-entry {
        gap: 6px !important;
        margin-bottom: 2px !important;
        padding: 2px 4px !important;
    }
    
    .account-logs-container .log-time {
        font-size: 9px !important;
        width: 60px !important;
    }
    
    .account-logs-container .log-message {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 380px) {
    body {
        padding: 4px;
        font-size: 12px;
    }
    
    .main-header {
        padding: 10px;
        gap: 8px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .header-subtitle {
        font-size: 10px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
    }
    
    .action-btn i {
        font-size: 14px;
    }
    
    .status-grid {
        gap: 10px;
    }
    
    .status-item {
        min-width: 65px;
    }
    
    .status-label {
        font-size: 10px;
    }
    
    .status-value {
        font-size: 12px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 10px;
    }
    
    .stat-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .btn-action {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .config-panel {
        height: auto;
        min-height: 250px;
    }

    .panel-header {
        padding: 8px 10px;
    }

    .script-config.active {
        padding: 8px 10px;
    }
    
    .section-title {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .section-content {
        padding: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 12px;
    }
    
    .account-block {
        padding: 8px;
    }
    
    .account-actions {
        gap: 4px;
    }
    
    .account-actions button {
        width: 30px;
        height: 30px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .log-panel {
        height: 200px;
    }
    
    .log-header {
        padding: 5px 8px;
    }
    
    .log-header h2 {
        font-size: 11px;
    }
    
    .log-body {
        padding: 3px;
    }
    
    .log-output {
        flex: 1;
        font-size: 9px;
        padding: 5px;
        line-height: 1.2;
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 0;
    }
    
    .log-footer {
        padding: 5px 6px;
    }
    
    .log-actions {
        gap: 2px;
    }
    
    .log-btn {
        padding: 5px 6px;
        font-size: 9px;
        min-height: 28px;
    }
    
    .modal-content {
        width: 98%;
        max-width: 98%;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 12px 15px;
    }
}

.notification-icon {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: move;
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    z-index: 1000;
    user-select: none;
}

.notification-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
}

#notificationModal .modal-content {
    width: 380px !important;
    max-width: 90vw !important;
    max-height: 50vh !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#notificationModal .modal-body {
    padding: 12px 16px !important;
}

#notificationModal .modal-header {
    padding: 10px 16px !important;
}

#notificationModal .modal-header h3 {
    font-size: 15px !important;
}

#notificationModal .modal-footer {
    padding: 8px 16px !important;
}

.notifications-list {
    max-height: 30vh;
    overflow-y: auto;
    padding-right: 8px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}



.notification-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.notification-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.notification-content {
    font-size: 14px;
    color: #c7d2fe;
    line-height: 1.6;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: #6b7280;
}

.empty-notifications {
    text-align: center;
    color: #6b7280;
    padding: 40px;
}

/* 个人中心模态框 */
.user-center-modal {
    max-width: 800px;
    max-height: 90vh;
}

.user-center-body {
    overflow-y: auto;
    padding: 20px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.user-center-section {
    margin-bottom: 24px;
}

.dingtalk-settings {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.setting-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.setting-item-row:last-child {
    border-bottom: none;
}

.setting-item-row label {
    color: #a1a1aa;
    font-size: 14px;
}

.setting-input {
    flex: 1;
    max-width: 350px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-size: 14px;
    margin-left: 12px;
}

.setting-input:focus {
    outline: none;
    border-color: #00d4ff;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 12px rgba(102, 126, 234, 0.4);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4), 0 1px 2px rgba(0, 0, 0, 0.15);
}

.toggle-switch:hover .toggle-slider {
    transform: scale(1.02);
}

.toggle-switch:active .toggle-slider:before {
    width: 26px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.section-title i {
    position: absolute;
    left: 0;
    color: #667eea;
}

/* 用户资料卡片 */
.user-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    overflow: hidden;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar .fallback-avatar {
    position: absolute;
    display: none;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-level {
    display: inline-block;
    font-size: 14px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.profile-email {
    font-size: 14px;
    color: #94a3b8;
}

/* VIP状态卡�?*/
.vip-status-card {
    display: flex;
    gap: 16px;
}

.vip-status-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vip-status-item i {
    font-size: 24px;
    color: #fbbf24;
}

.vip-label {
    font-size: 14px;
    color: #94a3b8;
}

.vip-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

/* 已激活脚本列�?*/
.activated-scripts-list,
.activation-history {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.scripts-list,
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.script-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.script-item i {
    color: #10b981;
}

.script-item span {
    color: #ffffff;
}

/* 激活记�?*/
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.history-type {
    font-weight: bold;
    color: #667eea;
}

.history-value {
    color: #ffffff;
}

.history-time {
    font-size: 12px;
    color: #6b7280;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    font-size: 20px;
    color: #667eea;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.stat-item .stat-label {
    font-size: 13px;
    color: #94a3b8;
}

/* 空状�?*/
.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 30px;
}

/* 运行日志弹窗样式 */
.logs-modal {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
}

.logs-modal-content {
    background: linear-gradient(145deg, #1e1e2e 0%, #181825 100%) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    overflow: hidden !important;
}

.logs-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.logs-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #e5e7eb !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.logs-title i {
    color: #667eea !important;
    font-size: 18px !important;
}

.modal-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

.modal-action-btn {
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    color: #9ca3af !important;
}

.modal-action-btn:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.modal-action-btn.modal-close {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    position: relative !important;
    overflow: hidden !important;
}

.modal-action-btn.modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal-action-btn.modal-close:hover::before {
    left: 100%;
}

.modal-action-btn.modal-close:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    transform: rotate(90deg) scale(1.15) !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.45), 0 0 20px rgba(220, 53, 69, 0.3) !important;
}

.logs-modal-body {
    padding: 12px !important;
    flex: 1 !important;
}

.logs-modal-footer {
    display: flex !important;
    gap: 12px !important;
    padding: 14px 20px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.logs-modal-footer .btn {
    flex: 1 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.logs-modal-footer .btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border: none !important;
    color: white !important;
}

.logs-modal-footer .btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
}

.logs-modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
}

.logs-modal-footer .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

/* 日志容器样式 */
.account-logs-container {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 12px !important;
    background: #000000 !important;
    border-radius: 12px !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
}

.account-logs-container::-webkit-scrollbar {
    width: 6px !important;
}

.account-logs-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 3px !important;
}

.account-logs-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3) !important;
    border-radius: 3px !important;
}

.account-logs-container::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5) !important;
}

.account-logs-container .log-entry {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 3px !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    line-height: 1.5 !important;
    min-height: 18px !important;
    height: auto !important;
    transition: background 0.15s ease !important;
    color: #4ade80 !important;
}

.account-logs-container .log-entry:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

.account-logs-container .log-time {
    color: #4ade80 !important;
    font-size: 9px !important;
    flex-shrink: 0 !important;
    width: 60px !important;
    min-width: 60px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.account-logs-container .log-message {
    flex: 1 !important;
    word-break: break-all !important;
    line-height: 1.5 !important;
    font-size: 11px !important;
}

.account-logs-container .log-info {
    background: transparent !important;
}

.account-logs-container .log-info .log-message {
    color: inherit !important;
}

.account-logs-container .log-output {
    background: #000000 !important;
}

.account-logs-container .log-error {
    background: rgba(239, 68, 68, 0.1) !important;
}

.account-logs-container .log-error .log-message {
    color: inherit !important;
}

.log-empty {
    text-align: center !important;
    color: #6b7280 !important;
    padding: 40px !important;
    font-size: 14px !important;
}

/* 全屏模式 */
.logs-modal-content.fullscreen {
    width: 95vw !important;
    max-width: 95vw !important;
    height: 95vh !important;
    max-height: 95vh !important;
    border-radius: 20px !important;
}

.logs-modal-content.fullscreen .account-logs-container {
    height: calc(100vh - 160px) !important;
}

.log-entry {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
    color: #4ade80;
}

.log-line {
    color: #e2e8f0;
    word-break: break-all;
    white-space: pre-wrap;
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

.log-log {
    color: #c4b5fd;
}

.log-info {
    background: transparent;
}

.log-output {
    background: #000000;
}

.log-error {
    background: rgba(239, 68, 68, 0.1);
}

.log-start {
    color: #22c55e;
    font-weight: bold;
    background: rgba(34, 197, 94, 0.08);
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    padding: 2px 0;
}

.log-stop {
    color: #ef4444;
    font-weight: bold;
    background: rgba(239, 68, 68, 0.08);
    border-top: 1px solid rgba(239, 68, 68, 0.2);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding: 2px 0;
}

/* 历史日志弹窗 - PC端 */
.history-log-modal-wrap .modal-content {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.history-log-modal-wrap .history-log-toolbar {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(168,85,247,0.1);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.history-log-modal-wrap .hl-label {
    font-size: 12px;
    color: #a78bfa;
    flex-shrink: 0;
    white-space: nowrap;
}
.history-log-modal-wrap #historyLogSelect {
    flex: 1;
    min-width: 120px;
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(168,85,247,0.05);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 4px;
    color: #d4c5f0;
    outline: none;
}
.history-log-modal-wrap #historyLogSelect:focus {
    border-color: #a855f7;
}
.history-log-modal-wrap .history-log-toolbar button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor:pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.history-log-modal-wrap .history-log-toolbar button:nth-of-type(2) {
    border: 1px solid rgba(168,85,247,0.2);
    background: rgba(168,85,247,0.08);
    color: #a78bfa;
}
.history-log-modal-wrap .history-log-toolbar button:nth-of-type(3) {
    border: 1px solid rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.08);
    color: #ef4444;
}
.history-log-modal-wrap #historyLogContent {
    overflow-y: auto;
    flex: 1;
    min-height: 300px;
    padding: 12px 16px;
    background: #000000;
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-time {
    color: #4ade80;
    font-size: 9px;
    flex-shrink: 0;
    min-width: 65px;
    width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-message {
    flex: 1;
    word-break: break-all;
}

.log-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px;
    font-size: 14px;
}

/* ==================== 移动端适配增强 ==================== */
/* 针对苹果、华为、小米、OPPO、荣耀、三星等手机的适配 */

/* iPhone X/XS/11 Pro 及以上的安全区域适配 */
@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .main-header {
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .modal-content {
        margin-bottom: env(safe-area-inset-bottom);
    }
}

/* 移动端触摸优�?*/
button, a, .btn, .account-block, .stat-card {
    touch-action: manipulation;
    cursor: pointer;
}

/* 移动端输入框优化 */
input, textarea, select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--border-radius-sm);
}

/* 移动端按钮点击效�?*/
.btn:active, button:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* 华为/荣耀手机特殊适配 */
@media screen and (-webkit-device-pixel-ratio: 3.5) {
    body {
        font-size: 14px;
    }
    
    .btn {
        min-height: 44px;
    }
}

/* 小米手机特殊适配 */
@media screen and (-webkit-device-pixel-ratio: 3.25) {
    .account-block {
        padding: 12px;
    }
    
    .account-actions {
        gap: 6px;
    }
}

/* ==================== 设置页面美化 ==================== */

/* 设置页面容器 */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 设置页面头部 */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.settings-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 3px 3px 0 0;
}

.settings-header .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-header .header-left h3 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.settings-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-header .user-info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-back {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-back:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateX(-3px);
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* 设置网格布局 */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* 设置区块卡片 */
.settings-section {
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.8) 0%, rgba(24, 24, 37, 0.9) 100%);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.settings-section:hover::before {
    opacity: 1;
}

.settings-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15), 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.25);
}

/* 区块头部 */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-icon,
.settings-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.settings-section:hover .section-icon,
.settings-section:hover .settings-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* 渐变图标样式 */
.icon-gradient-api { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.icon-gradient-sign { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.icon-gradient-network { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.icon-gradient-custom { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.icon-gradient-dingtalk { background: linear-gradient(135deg, #0089ff 0%, #00c6ff 100%); }
.icon-gradient-image { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.icon-gradient-heading { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.icon-gradient-info { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.icon-gradient-vip { background: linear-gradient(135deg, #f5af19 0%, #f12711 100%); }
.icon-gradient-script { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.icon-gradient-user { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.icon-gradient-play { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.icon-gradient-log { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.icon-gradient-system { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.section-header h3,
.settings-section-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.section-header p,
.settings-section-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* 表单组 */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* 设置列表 */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.3s;
}

.settings-item:hover {
    background: rgba(102, 126, 234, 0.06);
    border-color: rgba(102, 126, 234, 0.15);
}

.settings-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.settings-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.settings-number-input {
    width: 80px !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    transition: all 0.3s !important;
}

.settings-number-input:focus {
    border-color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

.settings-time-input {
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    transition: all 0.3s !important;
}

.settings-time-input:focus {
    border-color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

/* 底部保存按钮 */
.settings-footer {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.btn-save {
    padding: 14px 40px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-save::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
}

.btn-save:hover::before {
    left: 100% !important;
}

.btn-save:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

.btn-save:active {
    transform: translateY(-1px) !important;
}

/* 开关按钮美化 */
.toggle-switch {
    width: 56px !important;
    height: 30px !important;
    flex-shrink: 0;
}

.toggle-slider {
    border-radius: 30px !important;
}

.toggle-slider::before {
    height: 24px !important;
    width: 24px !important;
    left: 3px !important;
    bottom: 3px !important;
}

input:checked + .toggle-slider::before {
    transform: translateX(26px) !important;
}

/* 图标预览 */
#currentIconPreview {
    transition: all 0.3s;
}

#currentIconPreview:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .settings-section {
        padding: 18px;
    }
    
    .settings-header {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }
    
    .settings-header .header-left {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .settings-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* 任务监控面板样式 */
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

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

.panel {
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.8) 0%, rgba(24, 24, 37, 0.9) 100%);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.panel:hover {
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(102, 126, 234, 0.05);
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-body {
    padding: 16px;
}

/* OPPO/VIVO 手机特殊适配 */
@media screen and (-webkit-device-pixel-ratio: 2.75) {
    body {
        font-size: 14.5px;
    }
    
    .stat-value {
        font-size: 18px;
    }
}

/* 三星手机特殊适配 */
@media screen and (-webkit-device-pixel-ratio: 4) {
    body {
        font-size: 13.5px;
    }
    
    .btn {
        padding: 10px 18px;
    }
}

/* 折叠屏适配 */
@media screen and (max-width: 800px) and (min-width: 600px) {
    .account-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-overview {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 横屏模式适配 */
@media screen and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .account-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 小屏幕手机（�?iPhone SE�?*/
@media screen and (max-width: 320px) {
    body {
        font-size: 11px;
        padding: 3px;
    }
    
    .btn-run, .btn-stop, .btn-edit, .btn-remove {
        width: 30px;
        height: 30px;
    }
    
    .account-title {
        font-size: 12px;
    }
}

/* 大屏幕手机（�?iPhone 14 Pro Max�?*/
@media screen and (min-width: 415px) and (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .account-block {
        padding: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
}

/* 中等屏幕手机（主流机型） */
@media screen and (min-width: 376px) and (max-width: 414px) {
    body {
        font-size: 14px;
    }
    
    .account-grid {
        gap: 12px;
    }
}

/* 触控目标最小尺�?*/
.btn, button, input[type="button"], input[type="submit"], .account-block {
    min-height: 44px;
    min-width: 44px;
}

/* 禁止选中文本 */
.log-entry, .modal-header, .btn {
    -webkit-user-select: none;
    user-select: none;
}

/* 触控目标最小尺寸 */
.btn, button, input[type="button"], input[type="submit"], .account-block {
    min-height: 44px;
    min-width: 44px;
}

/* 禁止选中文本 */
.log-entry, .modal-header, .btn {
    -webkit-user-select: none;
    user-select: none;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ==================== 移动端完美适配增强 ==================== */

/* iOS 安全区域支持 */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .modal {
        padding-top: env(safe-area-inset-top);
    }
    #backToTop {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* ========== 平板横屏 (768px-1024px) ========== */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .top-stats-wrapper {
        flex-direction: column;
    }
    .main-content-wrapper {
        grid-template-columns: 1.3fr 1fr;
        gap: 20px;
    }
    .config-panel {
        max-height: none;
        height: auto;
    }
    .form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .admin-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    .admin-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .admin-panel-modal {
        width: 98%;
        max-width: 98%;
    }
}

/* ========== 手机横屏 / 小平板 (480px-768px) ========== */
@media (max-width: 768px) and (min-width: 481px) {
    .header-bottom {
        gap: 12px;
    }
    .header-buttons, .auth-buttons {
        width: 100%;
        justify-content: center;
    }
    .header-buttons .btn-primary-outline,
    .auth-buttons .btn-primary-outline {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    .btn-admin {
        width: 100%;
        justify-content: center;
    }
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 8px;
    }
    .admin-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    .admin-table {
        font-size: 12px;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    .schedule-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cron-presets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== 所有弹窗全屏 ========== */
/* 所有弹窗全屏 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 0, 11, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
}
.modal.active {
    display: flex;
}
.modal-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
}
.modal-header {
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 15px;
}
/* 账号弹窗全屏 */
#accountModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* 定时任务弹窗全屏 */
#scheduleModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* 脚本配置弹窗全屏 */
#accountConfigModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* 历史日志弹窗全屏 */
#historyLogsModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* 脚本选择弹窗全屏 */
#scriptModal .modal-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
}
/* 升级弹窗全屏 */
#upgradeModal .modal-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
}
/* 用户中心弹窗全屏 */
#userCenterModal .modal-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
}
/* 登录弹窗全屏 */
#userLoginModal .modal-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
}
/* 注册弹窗全屏 */
#userRegisterModal .modal-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
}
/* 模块按钮网格 */
.module-btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
}

/* ── 任务配置弹窗 ── */
.task-config-modal-content {
    padding: 4px;
}

.task-config-section {
    margin-bottom: 20px;
}

.task-config-section-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-config-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── 任务卡片 ── */
.task-item-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.task-item-card.enabled {
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.04);
    box-shadow: 0 1px 6px rgba(168, 85, 247, 0.08);
}

.task-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
}

.task-item-top:active {
    background: rgba(168, 85, 247, 0.06);
}

.task-item-checkbox {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: transparent;
    font-size: 0.8rem;
}

.task-item-checkbox.checked {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(168, 85, 247, 0.35);
}

.task-item-info {
    flex: 1;
    min-width: 0;
}

.task-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.task-item-status {
    font-size: 0.75rem;
    margin-top: 3px;
}

.status-on {
    color: #22c55e;
    font-weight: 500;
}

.status-off {
    color: var(--text-muted);
}

.status-count {
    color: var(--info-color);
    font-weight: 500;
    background: rgba(96, 165, 250, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.73rem;
}

.status-desc {
    color: var(--text-muted);
    font-size: 0.73rem;
}

.task-item-desc {
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: 4px;
    opacity: 0.75;
}

.task-item-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.25s;
}

.task-item-card.enabled .task-item-arrow i {
    transform: rotate(180deg);
}

/* ── 展开的底部区域 ── */
.task-item-bottom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 1px solid transparent;
}

.task-item-bottom.show {
    max-height: 80px;
    border-top-color: rgba(255,255,255,0.06);
    padding: 10px 16px 14px;
}

.task-count-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-count-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.task-count-input {
    width: 70px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.task-count-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.task-count-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.task-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 2px 0;
}

/* ── 独立卡片 ── */
.task-item-card.standalone .task-item-top {
    cursor: default;
}

.task-item-card.standalone .task-item-arrow {
    cursor: pointer;
}

/* 旧卡片兼容 */
.task-card-check {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: transparent;
    font-size: 0.8rem;
}

.task-card-check.checked {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

/* ── 底部操作按钮 ── */
.task-config-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.btn-task-close,
.btn-task-save {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-task-close {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-task-close:hover {
    background: rgba(255,255,255,0.1);
}

.btn-task-save {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.btn-task-save:hover {
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.module-btn-item {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 140px;
    background: var(--glass-gradient);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 16px 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.module-btn-item:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--box-shadow-hover), 0 0 20px rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
    background: rgba(168, 85, 247, 0.05);
}

.module-btn-item:active {
    transform: scale(0.97);
}

.module-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.module-btn-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.module-btn-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}
/* 后台登录弹窗全屏 */
#adminLoginModal .modal-content {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
}

/* ========== 全面增强 768px 断点 ========== */
@media (max-width: 768px) {
    /* 后台管理面板模态框 */
    .admin-panel-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .admin-panel-body {
        padding: 12px;
    }
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 8px;
        margin-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .admin-tabs::-webkit-scrollbar {
        display: none;
    }
    .admin-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.75rem;
        min-height: 40px;
    }
    .admin-table {
        min-width: 100%;
    }
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    /* 管理面板用户表格 - 移动端卡片视图 */
    #usersTableContainer table {
        display: none;
    }
    #usersTableContainer .table-container {
        display: none;
    }
    #cardsTableContainer table {
        display: none;
    }
    #cardsTableContainer .table-container {
        display: none;
    }
    /* 账号配置模态框 */
    #accountConfigModal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    /* 定时任务模态框 */
    .schedule-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cron-fields {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .cron-presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .cron-preset-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    /* 历史日志模态框 */
    #historyLogsModal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    /* 个人中心模态框 */
    .user-center-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .user-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }
    .profile-name {
        font-size: 17px;
    }
    .vip-status-card {
        flex-direction: column;
        gap: 10px;
    }
    .vip-status-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }
    .vip-status-item i {
        font-size: 20px;
    }
    .vip-label {
        font-size: 13px;
    }
    .vip-value {
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-item {
        padding: 12px;
    }
    .stat-item .stat-value {
        font-size: 20px;
    }
    /* 脚本选择模态框 */
    .script-modal {
        width: 95%;
        max-width: 95%;
    }
    /* 通知模态框 */
    #notificationModal .modal-content {
        width: 90% !important;
        max-width: 90% !important;
        max-height: 45vh !important;
    }
    .notifications-list {
        max-height: 50vh;
    }
    /* 升级/卡密模态框 */
    #upgradeModal .modal-content {
        width: 95%;
        max-width: 95%;
    }
    /* 登录/注册模态框 */
    #userLoginModal .modal-content,
    #userRegisterModal .modal-content,
    #changePasswordModal .modal-content {
        width: 92%;
        max-width: 92%;
    }
}

/* ========== 手机竖屏增强 540px ========== */
@media (max-width: 540px) {
    /* Header 底部按钮改为网格布局 */
    .header-bottom {
        gap: 8px;
    }
    .header-buttons, .auth-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }
    .header-buttons .btn-primary-outline,
    .auth-buttons .btn-primary-outline {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
    }
    .btn-admin {
        width: 100%;
        justify-content: center;
    }
    /* 统计详情 */
    .stats-detail {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    /* Cron预设 */
    .cron-presets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .cron-fields {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .cron-field {
        padding: 6px 8px;
    }
    .cron-field strong {
        font-size: 10px;
    }
    .cron-field .range {
        font-size: 10px;
    }
    /* 账号管理操作按钮 */
    .account-controls {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }
    .account-controls .btn {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 10px 8px;
        font-size: 11px;
        justify-content: center;
    }
    .select-all-label {
        flex: 1 1 100%;
        justify-content: center;
    }
    /* Modal底部按钮 */
    .modal-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    .modal-footer .btn {
        flex: 1 1 calc(50% - 4px);
    }
    /* 回到顶部按钮 */
    #backToTop {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 15px;
        font-size: 17px;
    }
}

/* ========== 手机竖屏 480px 增强 ========== */
@media (max-width: 480px) {
    /* 任务复选框 */
    .task-checkboxes {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .task-checkboxes label {
        padding: 8px 12px;
        font-size: 11px;
    }
    /* VIP状态卡片 */
    .vip-status-card {
        flex-direction: column;
        gap: 8px;
    }
    .vip-status-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 14px;
    }
    /* 个人中心统计 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-item {
        padding: 10px;
    }
    .stat-item i {
        font-size: 16px;
    }
    .stat-item .stat-value {
        font-size: 18px;
    }
    .stat-item .stat-label {
        font-size: 11px;
    }
    /* 激活历史 */
    .history-item {
        flex-direction: column;
        gap: 4px;
        padding: 10px;
    }
    /* 设置项行 */
    .setting-item-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .setting-input {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    /* Cron预设 */
    .cron-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 模态框关闭按钮更大 */
    .modal-close, .close-btn, .btn-close {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}

/* ========== 极小屏 380px 增强 ========== */
@media (max-width: 380px) {
    .header-buttons, .auth-buttons {
        grid-template-columns: 1fr;
    }
    .header-buttons .btn-primary-outline,
    .auth-buttons .btn-primary-outline {
        width: 100%;
    }
    .stats-detail {
        grid-template-columns: 1fr;
    }
    .cron-presets-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cron-fields {
        grid-template-columns: repeat(2, 1fr);
    }
    .account-controls .btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .modal-footer .btn {
        flex: 1 1 100%;
    }
}

/* 全局触摸优化 - 确保所有可交互元素足够大 */
@media (pointer: coarse) {
    button, .btn, input[type="submit"], input[type="button"],
    select, input[type="checkbox"], input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }
    .nav-menu li a, .tab-btn, .admin-tab {
        min-height: 44px;
    }
    input[type="text"], input[type="password"], input[type="email"],
    input[type="number"], input[type="url"], input[type="search"],
    textarea {
        font-size: 16px !important;
    }
}

/* ===== 白天主题 - 全面修复 ===== */

/* 用户中心弹窗白色文字修复 */
[data-theme="light"] .section-title { color: #333; }
[data-theme="light"] .profile-name { color: #333; }
[data-theme="light"] .vip-value { color: #333; }
[data-theme="light"] .script-item span { color: #333; }
[data-theme="light"] .history-value { color: #333; }
[data-theme="light"] .notification-title { color: #333; }
[data-theme="light"] .notification-content { color: #666; }
[data-theme="light"] .setting-input { color: #333; }
[data-theme="light"] .setting-item-row label { color: #666; }

/* 头部状态标签 */
[data-theme="light"] .status-label { color: #666; }

/* 日志区域 - 日志背景始终保持黑色以保证颜色可读性 */
[data-theme="light"] .log-output { background: #000000; }
[data-theme="light"] .log-placeholder { color: #999; }
[data-theme="light"] .log-footer { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .acct-log-section { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .acct-log-header { color: #555; }
[data-theme="light"] .acct-log-clear { color: #888; }
[data-theme="light"] .acct-log-container .log-line { color: #444; }
[data-theme="light"] .acct-log-container .log-info { color: #777; }
[data-theme="light"] .log-panel.fullscreen { background: #f5f5f8 !important; }

/* 账号日志弹窗 - 日志背景始终保持黑色 */
[data-theme="light"] .account-logs-container { background: #000000 !important; }
[data-theme="light"] .logs-modal { background: rgba(0, 0, 0, 0.3) !important; }
[data-theme="light"] .logs-modal-content { background: #ffffff !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); }

/* 账号弹窗深色背景修复 */
[data-theme="light"] #accountModal .modal-content { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); }
[data-theme="light"] .modal-footer { background: rgba(0, 0, 0, 0.02); }

/* 表单占位符修复 */
[data-theme="light"] .form-group input::placeholder { color: #aaa; }
[data-theme="light"] .account-username::placeholder { color: #aaa; }
[data-theme="light"] .account-salt::placeholder { color: #aaa; }
[data-theme="light"] .batch-input::placeholder { color: #aaa; }
[data-theme="light"] .account-cookie::placeholder { color: #aaa; }
[data-theme="light"] .account-proxy::placeholder { color: #aaa; }
[data-theme="light"] .form-group small { color: #888; }

/* 下拉选项修复 */
[data-theme="light"] .form-group select option { background: #ffffff; color: #333; }

/* 用户名修复 */
[data-theme="light"] .user-name { color: #333; }
[data-theme="light"] .user-details .user-name { color: #333; }

/* 详情标签 */
[data-theme="light"] .detail-label { color: #888; }
[data-theme="light"] .detail-item { background: rgba(0, 0, 0, 0.02); }

/* Cron 表达式相关 */
[data-theme="light"] .cron-format-info strong { color: #7c3aed; }
[data-theme="light"] .cron-field strong { color: #7c3aed; }
[data-theme="light"] .cron-presets-title { color: #7c3aed; }
[data-theme="light"] .schedule-form-group label { color: #555; }

/* 按钮禁用态 */
[data-theme="light"] .btn-toggle.disabled { color: #bbb; }
[data-theme="light"] .btn-toggle.disabled:hover { color: #999; }

/* 进度详情 */
[data-theme="light"] .progress-detail b { color: #333; }

/* 面板和设置区块深色背景修复 */
[data-theme="light"] .panel { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
[data-theme="light"] .settings-section { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }

/* 配置区域 - Light主题精致版 */
[data-theme="light"] .config-section {
    background: linear-gradient(135deg, #ffffff 0%, #faf8ff 50%, #f5f0ff 100%);
    border-color: rgba(124, 58, 237, 0.14);
    box-shadow:
        0 4px 20px rgba(124, 58, 237, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .config-section:hover {
    border-color: rgba(124, 58, 237, 0.32);
    box-shadow:
        0 8px 36px rgba(124, 58, 237, 0.14),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}
[data-theme="light"] .config-module-header::before {
    background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 60%, #c4b5fd 100%);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}
[data-theme="light"] .config-module-header::after {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
}
[data-theme="light"] .config-module-header:hover { background: rgba(124, 58, 237, 0.05); }
[data-theme="light"] .config-module-header:hover::after {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.09) 0%, transparent 70%);
}
[data-theme="light"] .config-module-title { color: #2d1f4e; }
[data-theme="light"] .config-module-title i { color: #7c3aed; filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.25)); }
[data-theme="light"] .config-module-arrow { color: #7c3aed; filter: none; }

[data-theme="light"] .config-card {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .config-card::before { background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent); }
[data-theme="light"] .config-card:hover {
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}
[data-theme="light"] .config-var-label { color: #5d4a78; }
[data-theme="light"] .config-var-input {
    background: #f8f6ff;
    border-color: rgba(124, 58, 237, 0.15);
    color: #1a1028;
}
[data-theme="light"] .config-var-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    background: #fff;
}
[data-theme="light"] .config-sub-label { color: #8b7aae; }
[data-theme="light"] .config-switch { background: #ddd6eb; box-shadow: inset 0 1px 2px rgba(0,0,0,0.08); }
[data-theme="light"] .config-switch.on { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 0 10px rgba(16, 185, 129, 0.25); }
[data-theme="light"] .config-switch-knob { box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
[data-theme="light"] .config-card.switch-card.on {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, #ffffff 100%);
}

/* 我的账号卡片 */
[data-theme="light"] .my-account-card { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08); }
[data-theme="light"] .acct-btn:hover { background: rgba(124, 58, 237, 0.08); }
[data-theme="light"] .acct-row-detail { border-top-color: rgba(0, 0, 0, 0.06); }

/* VIP状态项 */
[data-theme="light"] .vip-status-item { background: rgba(0, 0, 0, 0.02); }

/* 激活脚本和历史 */
[data-theme="light"] .activated-scripts-list,
[data-theme="light"] .activation-history { background: rgba(0, 0, 0, 0.02); }

/* 设置项 */
[data-theme="light"] .settings-item { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .settings-number-input { background: #f5f5f8; border-color: rgba(0, 0, 0, 0.1); color: #333; }
[data-theme="light"] .settings-time-input { background: #f5f5f8; border-color: rgba(0, 0, 0, 0.1); color: #333; }

/* 任务卡片 */
[data-theme="light"] .task-item-card { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .task-item-checkbox { background: #f5f5f8; border-color: rgba(0, 0, 0, 0.15); }
[data-theme="light"] .task-count-input { background: #f5f5f8; border-color: rgba(0, 0, 0, 0.1); color: #333; }
[data-theme="light"] .task-card-check { background: #f5f5f8; border-color: rgba(0, 0, 0, 0.1); }

/* 钉钉设置 */
[data-theme="light"] .dingtalk-settings { background: rgba(0, 0, 0, 0.02); }

/* 服务器进度区域 */
[data-theme="light"] .server-progress-section { background: rgba(0, 0, 0, 0.02); }

/* 统计详情 */
[data-theme="light"] .stats-detail { background: rgba(0, 0, 0, 0.02); }

/* ===== 白天主题 - 内联样式覆盖 ===== */

/* 添加账号Cookie输入框 */
[data-theme="light"] .account-cookie {
    background: #f5f5f8 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

/* 添加账号预览区 */
[data-theme="light"] #addAccountPreview {
    background: #f5f5f8 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #333 !important;
}

[data-theme="light"] #addPreviewVer {
    color: #7c3aed !important;
}

/* ============ 移动端按钮自适应 (< 768px) ============ */
@media screen and (max-width: 768px) {
    .btn {
        height: 36px;
        min-width: 80px;
        padding: 0 14px;
        font-size: 12px;
        gap: 4px;
        border-radius: 8px;
    }

    .btn i, .btn svg, .btn fas {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }

    .btn-sm {
        min-width: 60px;
        padding: 0 10px;
        font-size: 11px;
    }

    .btn-xs {
        min-width: 40px;
        padding: 0 6px;
        font-size: 10px;
    }

    .btn-full {
        width: 100%;
    }

    .header-buttons .btn,
    .auth-buttons .btn,
    #adminPanelBtn.btn {
        width: 100%;
        justify-content: center;
    }

    .modal-footer,
    .btn-row,
    .btn-group,
    .action-row {
        gap: 8px;
    }
}

[data-theme="light"] #addPreviewSalt {
    color: #2563eb !important;
}

/* 日志内容pre标签 */
[data-theme="light"] #logContentText {
    background: #f5f5f8 !important;
    color: #444 !important;
}

/* 全选标签 */
[data-theme="light"] #selectAllAccounts + span {
    color: #555 !important;
}

/* 选中计数 */
[data-theme="light"] #selectedCount {
    color: #7c3aed !important;
}

/* Debug banner */
[data-theme="light"] #debugBanner {
    background: rgba(124, 58, 237, 0.06) !important;
    border-color: rgba(124, 58, 237, 0.2) !important;
    color: #7c3aed !important;
}

/* 试用按钮 */
.btn-trial-main:hover {
    transform: translateY(-1px);
}

.btn-trial-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-trial-main.trial-used {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 防止iOS输入框缩放 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type="text"], input[type="password"], input[type="email"],
    input[type="number"], input[type="url"], input[type="search"],
    textarea, select {
        font-size: 16px;
    }
}

/* ========== 服务器负载监控样式 ========== */

.server-stats-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 18px;
}

.server-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.server-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.server-stat-card:hover {
    background: rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

.server-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.server-stat-icon.running-bg {
    background: rgba(0, 200, 83, 0.15);
    color: #00c853;
}

.server-stat-icon.capacity-bg {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

.server-stat-icon.remain-bg {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.server-stat-icon.cpu-bg {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.server-stat-icon.mem-bg {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.server-stat-info {
    display: flex;
    flex-direction: column;
}

.server-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1.2;
}

.server-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.server-progress-section {
    margin-top: 18px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 0.6s ease, background 0.6s ease;
}

.progress-detail {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.progress-detail b {
    color: #e0e0e0;
}

.progress-prediction {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.progress-prediction b {
    color: #ff9800;
}

.server-stats-refresh {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-stats-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .top-stats-wrapper .stats-section,
    .top-stats-wrapper .server-stats-section {
        flex: none;
        width: 100%;
    }
    /* 实时数据统计移动端优化 */
    .stats-section {
        padding: 12px 8px;
    }
    .stats-section .section-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .stats-section .section-header h2 {
        font-size: 13px;
    }
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }
    .stat-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .stat-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .stat-info .stat-value {
        font-size: 16px;
    }
    .stat-info .stat-label {
        font-size: 10px;
    }
    .stats-actions {
        gap: 6px;
        margin-bottom: 10px;
    }
    .btn-action {
        padding: 8px 10px;
        font-size: 11px;
    }
    .stats-detail {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .detail-item {
        padding: 6px 8px;
    }
    .detail-item .detail-label {
        font-size: 10px;
    }
    .detail-item .detail-value {
        font-size: 14px;
    }
    /* 服务器负载监控移动端优化 */
    .server-stats-section {
        padding: 12px 8px;
        margin-bottom: 0;
    }
    .server-stats-section .section-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    .server-stats-section .section-header h2 {
        font-size: 13px;
    }
    .server-stats-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .server-stat-card {
        padding: 6px 8px;
        gap: 8px;
    }
    .server-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .server-stat-value {
        font-size: 16px;
    }
    .server-stat-label {
        font-size: 10px;
    }
    .server-progress-section {
        padding: 8px 10px;
        margin-top: 8px;
    }
    .progress-header {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .progress-bar-container {
        height: 8px;
    }
    .progress-detail {
        flex-direction: column;
        gap: 2px;
        font-size: 10px;
        margin-top: 4px;
    }
    .server-stats-refresh {
        margin-left: 0;
        width: 100%;
        text-align: right;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .top-stats-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    .top-stats-wrapper .stats-section,
    .top-stats-wrapper .server-stats-section {
        flex: none;
        width: 100%;
    }
    /* 实时数据统计 */
    .stats-section {
        padding: 10px 6px;
    }
    .stats-section .section-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    .stats-section .section-header h2 {
        font-size: 12px;
    }
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 8px;
    }
    .stat-card {
        padding: 6px 8px;
        gap: 6px;
    }
    .stat-icon-wrapper {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .stat-info .stat-value {
        font-size: 14px;
    }
    .stat-info .stat-label {
        font-size: 9px;
    }
    .stats-actions {
        gap: 4px;
        margin-bottom: 8px;
    }
    .btn-action {
        padding: 6px 8px;
        font-size: 10px;
        flex: 1;
    }
    .btn-action i {
        font-size: 10px;
    }
    .action-badge {
        font-size: 9px;
    }
    .stats-detail {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .detail-item {
        padding: 5px 6px;
    }
    .detail-item .detail-label {
        font-size: 9px;
    }
    .detail-item .detail-value {
        font-size: 12px;
    }
    /* 服务器负载监控 */
    .server-stats-section {
        padding: 10px 6px;
        margin-bottom: 0;
    }
    .server-stats-section .section-header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    .server-stats-section .section-header h2 {
        font-size: 12px;
    }
    .server-stats-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .server-stat-card {
        padding: 5px 6px;
        gap: 6px;
    }
    .server-stat-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .server-stat-value {
        font-size: 14px;
        white-space: nowrap;
    }
    .server-stat-label {
        font-size: 9px;
        white-space: nowrap;
    }
    .server-progress-section {
        padding: 6px 8px;
        margin-top: 6px;
    }
    .progress-header {
        font-size: 10px;
        margin-bottom: 3px;
    }
    .progress-bar-container {
        height: 6px;
    }
    .progress-detail {
        flex-direction: column;
        gap: 2px;
        font-size: 9px;
        margin-top: 3px;
    }
    .progress-detail b {
        font-size: 10px;
    }
    .server-stats-refresh {
        margin-left: 0;
        width: 100%;
        text-align: right;
        font-size: 9px;
    }
}
/*  �����ת��ť  */
.quick-links-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-glass), inset 0 1px 0 rgba(172,135,255,0.1);
    border: 1px solid var(--glass-border);
    padding: 0;
    margin-bottom: 20px;
}
.quick-links-section .section-header {
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}
.quick-links-section .section-header i {
    color: var(--primary-color);
    font-size: 16px;
}
.quick-links-section .section-header h2 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 22px;
}
.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.08));
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.quick-link-btn:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(139,92,246,0.15));
    border-color: rgba(139,92,246,0.6);
    box-shadow: 0 4px 16px rgba(139,92,246,0.25);
    transform: translateY(-1px);
    color: #fff;
}
.quick-link-btn i {
    color: var(--primary-color);
    font-size: 12px;
}
/* 动态按钮 */
.dynamic-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.06));
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.dynamic-action-btn:hover {
    background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(16,185,129,0.15));
    border-color: rgba(16,185,129,0.6);
    box-shadow: 0 4px 16px rgba(16,185,129,0.25);
    transform: translateY(-1px);
    color: #fff;
}
@media (max-width: 768px) {
    .quick-links-grid { gap: 8px; padding: 12px 16px; }
    .quick-link-btn { padding: 6px 12px; font-size: 12px; }
}

/* ==================== 移动端布局自适应增强 ==================== */

@media (max-width: 768px) {
    #debugBanner {
        flex-direction: column;
        gap: 4px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .main-header {
        border-radius: 14px;
        margin-bottom: 15px;
    }

    .header-top {
        padding: 12px 14px;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 10px;
    }

    .logo-text h1 {
        font-size: 17px;
        letter-spacing: 0;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .header-middle {
        padding: 10px 14px;
        gap: 8px;
    }

    .status-grid {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .status-label {
        font-size: 11px;
    }

    .status-value {
        font-size: 14px;
    }

    .header-bottom {
        padding: 10px 14px;
        gap: 10px;
    }

    .script-select-btn {
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 10px 14px;
        font-size: 13px;
        justify-content: center;
    }

    .header-buttons,
    .auth-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }

    .header-buttons .btn-primary-outline,
    .auth-buttons .btn-primary-outline {
        width: 100%;
        justify-content: center;
        padding: 9px 10px;
        font-size: 12px;
    }

    .btn-admin {
        width: 100%;
        justify-content: center;
        grid-column: 1 / -1;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 10px;
        gap: 10px;
    }

    .stat-icon-wrapper {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 10px;
    }

    .stat-info .stat-value {
        font-size: 18px;
    }

    .stat-info .stat-label {
        font-size: 11px;
    }

    .stats-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .btn-action {
        padding: 10px 12px;
        font-size: 12px;
        justify-content: center;
    }

    .stats-detail {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px;
    }

    .detail-item {
        padding: 8px 10px;
    }

    .server-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .server-stat-card {
        padding: 10px 12px;
    }

    .server-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .server-stat-value {
        font-size: 18px;
    }

    .server-stat-label {
        font-size: 10px;
    }

    .config-panel {
        max-height: none;
        height: auto;
    }

    .log-panel {
        min-height: 300px;
        max-height: none;
    }

    .log-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .log-btn {
        padding: 8px 6px;
        font-size: 11px;
        min-height: 38px;
        justify-content: center;
    }

    .log-btn span {
        display: inline;
    }

    .log-btn i {
        font-size: 12px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .modal-header {
        padding: 14px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .modal-body {
        padding: 12px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 12px 16px;
        position: sticky;
        bottom: 0;
        z-index: 10;
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-footer .btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .modal-close,
    .close-btn,
    .btn-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 6px;
        padding-bottom: 6px;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
    }

    .account-controls {
        flex-wrap: wrap;
        gap: 6px;
    }

    .account-controls .btn {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 9px 8px;
        font-size: 11px;
        justify-content: center;
    }

    .select-all-label {
        flex: 1 1 100%;
    }

    .cron-presets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .cron-preset-btn {
        padding: 8px 6px;
        font-size: 11px;
    }

    .cron-fields {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    #backToTop {
        width: 42px;
        height: 42px;
        bottom: 16px;
        right: 12px;
        font-size: 16px;
    }

    .quick-links-grid {
        gap: 6px;
        padding: 10px 12px;
    }

    .quick-link-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .stat-card {
        padding: 10px 8px;
        gap: 8px;
    }

    .stat-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }

    .stat-info .stat-value {
        font-size: 16px;
    }

    .stat-info .stat-label {
        font-size: 10px;
    }

    .server-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .server-stat-card {
        padding: 8px 10px;
        gap: 8px;
    }

    .server-stat-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .server-stat-value {
        font-size: 16px;
    }

    .server-stat-label {
        font-size: 9px;
    }

    .header-buttons,
    .auth-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .header-buttons .btn-primary-outline,
    .auth-buttons .btn-primary-outline {
        padding: 8px 6px;
        font-size: 11px;
        gap: 4px;
    }

    .header-buttons .btn-primary-outline i,
    .auth-buttons .btn-primary-outline i {
        font-size: 12px;
    }

    .log-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .log-btn {
        padding: 7px 4px;
        font-size: 10px;
        min-height: 36px;
    }

    .log-btn span {
        display: none;
    }

    .log-btn i {
        font-size: 14px;
    }

    .cron-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-controls .btn {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        padding: 8px 6px;
        font-size: 10px;
    }

    .modal-footer .btn {
        flex: 1 1 100%;
    }
}

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

    .server-stats-grid {
        grid-template-columns: 1fr;
    }

    .header-buttons,
    .auth-buttons {
        grid-template-columns: 1fr;
    }

    .stats-detail {
        grid-template-columns: 1fr;
    }

    .log-actions {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 4px;
    }
}

/* ===== 日志输出区域黑色背景强制覆盖（仅输出区，不影响面板外壳） ===== */
.log-output,
.account-logs-container,
.account-logs-container .log-output,
.history-log-modal-wrap #historyLogContent,
#accountLogsContainer {
    background: #000000 !important;
}

/* 亮色主题下日志输出区同样保持黑色 */
[data-theme="light"] .log-output,
[data-theme="light"] .account-logs-container,
[data-theme="light"] .account-logs-container .log-output,
[data-theme="light"] .history-log-modal-wrap #historyLogContent,
[data-theme="light"] #accountLogsContainer {
    background: #000000 !important;
}

/* ==================== 后台管理系统移动端适配增强 ==================== */
/* 修复点：
   1. users/cards 表格在 768px 被 display:none 隐藏，但 app.js 仅渲染 <tbody> 行、
      无卡片视图，导致数据在手机端完全不可见 → 取消隐藏并改为横向滚动。
   2. 各管理页宽表格（脚本/黑名单/审计/并发/代理/快捷链接）无滚动容器 → 横向滚动。
   3. 多处内联 grid-template-columns 多列网格不会折叠 → 折叠为单列/两列。
   4. 内联 display:flex 布局不换行 → 允许换行。
   5. 表单控件宽度不一 → 统一全宽，提升可点击性。
*/

@media (max-width: 768px) {
    /* ---- 管理面板外壳与标题 ---- */
    #adminPanelModal .admin-panel-body {
        padding: 12px 10px;
    }
    #adminPanelModal .modal-header {
        padding: 12px 14px;
    }
    #adminPanelModal .modal-header h3 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 50px);
    }

    /* ---- 标签栏横向滚动 ---- */
    #adminPanelModal .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 6px;
        padding-bottom: 6px;
        margin-bottom: 12px;
    }
    #adminPanelModal .admin-tabs::-webkit-scrollbar {
        display: none;
    }
    #adminPanelModal .admin-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
        min-height: 38px;
    }

    /* ---- 关键修复：取消 users / cards 表格隐藏，避免数据不可见 ---- */
    #usersTableContainer table,
    #cardsTableContainer table,
    #usersTableContainer .table-container,
    #cardsTableContainer .table-container {
        display: block !important;
    }

    /* ---- 所有管理表格改为可横向滚动的块 ---- */
    #adminPanelModal .admin-table {
        display: block !important;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 12px;
    }
    #adminPanelModal .admin-table th,
    #adminPanelModal .admin-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    /* 宽表格保证最小宽度以触发横向滚动 */
    #usersTableContainer .admin-table,
    #cardsTableContainer .admin-table,
    #scriptsTableContainer .admin-table {
        min-width: 680px;
    }
    #concurrencyStatsTable .admin-table {
        min-width: 560px;
    }
    #blacklistTable {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    #blacklistTable .admin-table {
        min-width: 540px;
    }
    #auditLogTab .admin-table,
    #agentsTab .admin-table,
    #quickLinksTab .admin-table {
        min-width: 560px;
    }

    /* ---- 内联多列网格折叠为单列（表单/卡片区） ---- */
    #adminPanelModal [style*="grid-template-columns:1fr 1fr"],
    #adminPanelModal [style*="grid-template-columns:1fr 2fr"],
    #adminPanelModal [style*="grid-template-columns:1fr 1fr 1fr auto"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    /* 仪表盘统计磁贴保持两列 */
    #dashboardTab [style*="grid-template-columns:repeat(4"],
    #dashboardTab [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* ---- 内联 flex 布局允许换行，避免按钮溢出 ---- */
    #adminPanelModal [style*="display:flex"] {
        flex-wrap: wrap !important;
    }
    #dashboardTab [style*="display:flex"] .btn {
        flex: 1 1 auto;
    }
    #auditLogTab [style*="display:flex"] select,
    #auditLogTab [style*="display:flex"] .btn {
        flex: 0 1 auto;
    }

    /* ---- 表单控件统一全宽，提升移动端可点击性 ---- */
    #adminPanelModal input[type="text"],
    #adminPanelModal input[type="number"],
    #adminPanelModal input[type="password"],
    #adminPanelModal input[type="email"],
    #adminPanelModal select,
    #adminPanelModal textarea {
        width: 100% !important;
        box-sizing: border-box;
        font-size: 14px;
    }
    #adminPanelModal input[type="text"],
    #adminPanelModal input[type="number"],
    #adminPanelModal input[type="password"],
    #adminPanelModal input[type="email"] {
        padding: 10px 12px;
    }

    /* ---- 卡片/区块内边距紧凑 ---- */
    #adminPanelModal .admin-tab-content h4 {
        font-size: 15px;
    }
    #adminPanelModal .admin-tab-content h5 {
        font-size: 13px;
    }
    #adminPanelModal [style*="background:#f8fafc"] {
        padding: 12px !important;
        border-radius: 8px !important;
    }

    /* ---- 仪表盘统计数字紧凑 ---- */
    #dashboardTab [style*="font-size:24px"] {
        font-size: 20px !important;
    }
    #dashboardTab [style*="font-size:20px"] {
        font-size: 18px !important;
    }

    /* ---- 图表自适应 ---- */
    #adminPanelModal canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* ---- 动态生成的“编辑用户”弹窗支持纵向滚动 ---- */
    #editUserModal > div {
        max-height: 92vh !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    /* 更窄屏幕：仪表盘磁贴改为单列，避免数字挤压 */
    #dashboardTab [style*="grid-template-columns:repeat(4"],
    #dashboardTab [style*="grid-template-columns:repeat(3"],
    #dashboardTab [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    #adminPanelModal .admin-tab {
        padding: 7px 10px;
        font-size: 11px;
    }
    #adminPanelModal .admin-table {
        font-size: 11px;
    }
    #adminPanelModal .admin-table th,
    #adminPanelModal .admin-table td {
        padding: 6px 7px;
    }
}
