: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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 全局滚动条样式 - 深空主题 */
*::-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;
    position: relative;
    color: var(--text-primary);
}

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

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    box-shadow: 0 0 var(--glow, 6px) var(--color, white);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(1);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1.1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
    }
    75% { 
        opacity: 0.6; 
        transform: scale(1.05);
    }
}

.meteor {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0.7), rgba(255,255,255,0));
    border-radius: 50%;
    animation: meteor var(--duration, 1.5s) linear forwards;
    opacity: 0;
    box-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px rgba(255,255,255,0.4), 0 0 24px rgba(255,255,255,0.2);
}

.meteor::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px rgba(102,126,234,0.8), 0 0 40px rgba(102,126,234,0.4);
}

@keyframes meteor {
    0% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(45deg);
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(600px) translateY(600px) rotate(45deg);
    }
}

.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 {
    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:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.5);
    transform: translateY(-2px);
}

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

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

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

.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: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 1.5s ease-in-out 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-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;
}

.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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 11px;
    min-width: 85px !important;
    width: 85px !important;
    white-space: nowrap !important;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 10px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.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 {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.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: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s 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);
}

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

@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;
}

.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 {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover),
                0 0 0 1px rgba(172, 135, 255, 0.3),
                inset 0 1px 0 rgba(172, 135, 255, 0.1);
}

.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;
}

.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;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.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);
    padding: 25px;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}



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

.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: 20px;
    background: rgba(20, 10, 40, 0.1);
    backdrop-filter: blur(calc(var(--glass-blur) * 0.5));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.5));
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(172, 135, 255, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.config-section:hover {
    border-color: rgba(172, 135, 255, 0.4);
    box-shadow: var(--box-shadow-glass);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(172, 135, 255, 0.08);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.section-title:hover {
    background: rgba(172, 135, 255, 0.15);
    color: var(--text-primary);
}

.section-title i {
    font-size: 14px;
    transition: var(--transition);
    transform: rotate(0deg);
}

.config-section.active .section-title i {
    transform: rotate(180deg);
}

.section-content {
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.config-section.active .section-content {
    max-height: 2000px;
    opacity: 1;
}

/* 卡密详情样式 */
.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;
}

@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: 520px;
    overflow: hidden;
}

.log-header {
    padding: 18px 22px;
    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);
}

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

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

.log-body {
    flex: 1;
    padding: 15px;
    overflow: hidden;
}

.log-output {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(3, 0, 11, 0.8);
    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-placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 60px 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;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    border-radius: 0;
    margin: 0;
    background: rgba(15, 12, 41, 0.98);
    display: flex;
    flex-direction: column;
}

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

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

.log-panel.fullscreen .log-container {
    flex: 1;
    height: calc(100vh - 120px);
}

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

.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;
}

.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 {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(172, 135, 255, 0.3);
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(172, 135, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: rgba(172, 135, 255, 0.05);
    color: var(--text-primary);
}

.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;
}

.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-primary {
    background: var(--success-gradient);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.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 {
    padding: 12px 20px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-account:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    background-position: 100% 100%;
}

#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-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    pointer-events: auto;
}

.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;
    gap: 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

#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);
}

#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;
    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(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #a5b4fc;
    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(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

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

.select-all-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    margin: 0;
    position: relative;
    z-index: 1;
}

.select-all-label input[type="checkbox"]:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

#selectAllAccounts {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

#selectAllAccounts:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.account-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

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

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

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

.account-block {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.account-block::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;
}

.account-block:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

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

.account-block.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3), 0 12px 35px rgba(102, 126, 234, 0.2);
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.account-block.selected::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.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: #667eea;
    border-radius: 6px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    position: relative;
    z-index: 10;
    margin-right: 4px;
}

.account-checkbox:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.account-checkbox:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.account-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -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(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #a78bfa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-toggle:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 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: 12px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    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: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    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: linear-gradient(135deg, #10b981 0%, #059669 100%);
    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: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    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: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    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: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    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, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.btn-config:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 22px rgba(139, 92, 246, 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(102, 126, 234, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    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: #00bfff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

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

.account-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
}

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

.stat-mini .stat-label {
    font-size: 12px;
    color: rgba(199, 210, 254, 0.6);
    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;
}

.btn-config {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

.btn-schedule {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-schedule:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-logs {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.btn-logs:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-history {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.btn-history:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.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 {
    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: hidden;
}

.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(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    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(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

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

.cron-preset-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.schedule-account-list {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 8px;
    background: rgba(102, 126, 234, 0.03);
}

.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(102, 126, 234, 0.1);
}

.schedule-account-header {
    background: rgba(102, 126, 234, 0.12);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    margin-bottom: 4px;
}

.schedule-account-header label {
    font-weight: 600;
    color: #a5b4fc;
}

.schedule-account-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.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(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    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%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.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);
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.account-cookie {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    font-size: 13px;
    font-family: 'Consolas', monospace;
    resize: none;
    margin-bottom: 12px;
    height: 60px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--text-primary);
}

.account-cookie:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

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

.account-proxy {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--text-primary);
}

.account-proxy:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

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

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

#accountModal .btn::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;
}

#accountModal .btn:hover::before {
    left: 150%;
}

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

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

#accountModal .btn-add:hover {
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
}

#accountModal .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    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(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
}

#accountModal .modal-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 24px;
}

.btn-add {
    padding: 10px 20px;
    background: var(--info-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5);
}

.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;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(100px) 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: translateX(-50%) translateY(0) 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%);
    }
}

.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;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-content-wrapper {
        grid-template-columns: 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;
        gap: 15px;
    }
    
    .config-panel {
        padding: 15px;
        max-height: none;
    }
    
    .panel-header h2 {
        font-size: 16px;
    }
    
    .config-section {
        margin-bottom: 12px;
    }
    
    .section-title {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .section-content {
        padding: 14px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .task-checkboxes {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .log-panel {
        height: 280px;
        border-radius: 10px;
    }
    
    .log-header {
        padding: 8px 12px;
    }
    
    .log-header h2 {
        font-size: 13px;
    }
    
    .log-body {
        padding: 6px;
        flex: 1;
    }
    
    .log-output {
        padding: 8px;
        font-size: 11px;
        line-height: 1.4;
        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: 95%;
        max-width: 95%;
        border-radius: 16px;
        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 {
        padding: 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;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .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 {
        font-size: 10px;
        padding: 6px;
        line-height: 1.3;
    }
    
    .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 {
        padding: 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;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .btn-primary {
        padding: 10px 16px;
        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 {
        font-size: 9px;
        padding: 5px;
        line-height: 1.2;
    }
    
    .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);
}

.notification-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}



.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;
}

.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 {
    height: 300px !important;
    overflow-y: auto !important;
    padding: 12px !important;
    background: rgba(0, 0, 0, 0.3) !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;
}

.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;
}

.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;
    color: #e5e7eb !important;
}

.account-logs-container .log-info {
    background: transparent !important;
    color: #93c5fd !important;
}

.account-logs-container .log-info .log-message {
    color: #93c5fd !important;
}

.account-logs-container .log-output {
    background: transparent !important;
    color: #e5e7eb !important;
}

.account-logs-container .log-error {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
}

.account-logs-container .log-error .log-message {
    color: #fca5a5 !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;
}

.log-info {
    background: transparent;
    color: #e5e7eb;
}

.log-output {
    background: transparent;
    color: #e5e7eb;
}

.log-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.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;
    }
}

/* 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;
}