    /* 🎨 ENHANCED GLOBAL STYLES */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        /* PSH MODS Enhanced Color Scheme */
        --primary-color: #667eea;
        --primary-light: #764ba2;
        --primary-dark: #4a148c;
        --secondary-color: #7b1fa2;
        --accent-color: #e91e63;
        --success-color: #10b981;
        --error-color: #ef4444;
        --warning-color: #f59e0b;
        --info-color: #3b82f6;
        --background-color: #f8fafc;
        --card-bg: #ffffff;
        --text-color: #1e293b;
        --text-secondary: #64748b;
        --border-color: #e2e8f0;
        --shadow-color: rgba(0, 0, 0, 0.1);
        --hover-color: rgba(102, 126, 234, 0.05);
        --modal-backdrop: rgba(0, 0, 0, 0.5);
        --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        --gradient-5: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        --gradient-6: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    }

    [data-theme="dark"] {
        --primary-color: #9c64de;
        --primary-light: #bb8fef;
        --primary-dark: #7b47b8;
        --background-color: #0f172a;
        --card-bg: #1e293b;
        --text-color: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --hover-color: rgba(255, 255, 255, 0.05);
        --modal-backdrop: rgba(0, 0, 0, 0.7);
    }

    body {
        font-family: 'Inter', sans-serif;
        background: var(--background-color);
        color: var(--text-color);
        transition: all 0.3s ease;
        line-height: 1.6;
    }

    /* 🔐 ENHANCED ANIMATED LOGIN SCREEN */
    .login-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #43e97b 100%);
        position: relative;
        overflow: hidden;
        animation: gradientShift 12s ease-in-out infinite;
    }

    .login-card {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        border-radius: 25px;
        padding: 0;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.4);
        width: 100%;
        max-width: 420px;
        overflow: hidden;
        position: relative;
        z-index: 1;
        animation: slideInUp 1s ease-out;
        transform-origin: bottom center;
    }

    .login-header {
        padding: 35px 28px 25px;
        text-align: center;
        background: transparent;
        animation: fadeInDown 1.2s ease-out 0.3s both;
    }

    .login-logo {
        width: 70px;
        height: 70px;
        background: var(--gradient-1);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 18px;
        color: white;
        font-size: 28px;
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
        animation: logoFloat 4s ease-in-out infinite, logoPulse 3s ease-in-out infinite;
    }

    .login-title {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 8px;
        color: var(--text-color);
        animation: titleGlow 5s ease-in-out infinite;
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .login-subtitle {
        font-size: 15px;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .login-form-container {
        padding: 25px 28px 35px;
        animation: fadeInUp 1.2s ease-out 0.6s both;
    }

    /* 📱 ENHANCED ADMIN DASHBOARD LAYOUT */
    .admin-container {
        display: none;
        min-height: 100vh;
        background: var(--background-color);
    }

    /* Hide admin sidebar when login screen is active */
    body:has(#loginScreen[style*="display: flex"]) .admin-sidebar,
    body:has(#loginScreen[style*="display: block"]) .admin-sidebar {
        display: none !important;
    }

    .admin-container.active {
        display: flex;
    }

    .admin-sidebar {
        width: 250px;
        background: var(--card-bg);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
    }

    .sidebar-header {
        padding: 20px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-logo {
        display: flex;
        align-items: center;
        font-size: 20px;
        font-weight: 800;
        color: var(--text-color);
    }

    .admin-logo i {
        background: var(--gradient-1);
        color: white;
        padding: 8px;
        border-radius: 8px;
        margin-right: 10px;
        font-size: 18px;
    }

    .sidebar-nav {
        flex-grow: 1;
        padding: 16px;
    }

    .nav-button {
        width: 100%;
        padding: 12px 16px;
        border: none;
        background: transparent;
        cursor: pointer;
        border-radius: 10px;
        font-weight: 600;
        color: var(--text-secondary);
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .nav-button:hover {
        background: var(--hover-color);
        color: var(--primary-color);
    }

    .nav-button.active {
        background: var(--gradient-1);
        color: white;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }

    .admin-content {
        flex-grow: 1;
        padding: 20px;
        overflow-y: auto;
        max-height: 100vh;
        margin-left: 250px;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .sidebar-footer {
        border-top: 1px solid var(--border-color);
        padding: 20px 16px;
        margin-top: auto;
        background: linear-gradient(135deg,
                rgba(102, 126, 234, 0.02),
                rgba(139, 92, 246, 0.02));
        position: relative;
    }

    .sidebar-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 16px;
        right: 16px;
        height: 1px;
        background: linear-gradient(90deg,
                transparent,
                var(--primary-color),
                transparent);
        opacity: 0.3;
    }

    .admin-user {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        position: relative;
        padding: 8px 0;
    }

    .user-info {
        flex-grow: 1;
        text-align: left;
        min-width: 0;
    }

    .user-name {
        font-weight: 700;
        color: var(--text-color);
        font-size: 14px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-status {
        font-size: 11px;
        color: #10b981;
        margin-top: 3px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .user-status::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #10b981;
        border-radius: 50%;
        display: inline-block;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: var(--text-secondary);
        font-size: 14px;
        position: relative;
        overflow: hidden;
    }

    .theme-toggle::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,
                var(--primary-color),
                rgba(139, 92, 246, 0.8));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .theme-toggle:hover {
        border-color: var(--primary-color);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    }

    .theme-toggle:hover::before {
        opacity: 0.1;
    }

    .theme-toggle i {
        position: relative;
        z-index: 1;
        transition: all 0.3s ease;
    }

    .theme-toggle:hover i {
        color: var(--primary-color);
        transform: rotate(15deg);
    }

    .avatar {
        width: 36px;
        height: 36px;
        background: var(--gradient-1);
        color: white;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .avatar::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.2),
                transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .avatar:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .avatar:hover::before {
        opacity: 1;
    }

    .logout-btn {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 600;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }

    .logout-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.1),
                transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .logout-btn:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

    .logout-btn:hover::before {
        opacity: 1;
    }

    .logout-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }

    .logout-btn i {
        font-size: 13px;
        transition: transform 0.3s ease;
    }

    .logout-btn:hover i {
        transform: translateX(2px);
    }

    /* Helper for stacking icons on mobile */
    .nav-button i {
        transition: transform 0.2s ease;
    }

    .logout-text {
        transition: all 0.3s ease;
    }

    /* 📱 ENHANCED RESPONSIVE */
    @media (max-width: 768px) {
        .admin-container {
            flex-direction: column;
        }

        .admin-sidebar {
            width: 100%;
            min-height: auto;
            flex-direction: row;
            align-items: center;
            padding: 10px 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: fixed;
            top: 0;
            left: 0;
            height: auto;
            z-index: 100;
        }

        .admin-content {
            margin-left: 0;
            margin-top: 60px;
            /* Reduced header height */
            padding: 15px;
            padding-bottom: 80px;
            /* Space for bottom nav */
        }

        .sidebar-nav {
            display: flex;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: var(--card-bg);
            padding: 8px 10px;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
            z-index: 1000;
            justify-content: space-around;
            border-top: 1px solid var(--border-color);
            margin: 0;
            overflow-x: auto;
        }

        .nav-button {
            flex-direction: column;
            padding: 8px 12px;
            font-size: 10px;
            gap: 4px;
            border-radius: 12px;
            width: auto;
            flex: 1;
            margin-bottom: 0;
            justify-content: center;
            text-align: center;
        }

        .nav-button i {
            font-size: 18px;
            margin-right: 0;
            /* Remove right margin for vertical stack */
        }

        /* Adjust top header to be thinner */
        .admin-sidebar {
            height: 60px;
            /* Fixed small height for top bar */
            padding: 0 16px;
            justify-content: space-between;
        }

        .sidebar-header {
            border-bottom: none;
            padding: 0;
            flex: 0 0 auto;
        }

        .sidebar-footer {
            border-top: none;
            padding: 0;
            margin-top: 0;
            background: transparent;
        }

        .sidebar-footer::before {
            display: none;
        }

        .admin-user {
            flex-direction: row;
            align-items: center;
            gap: 10px;
            padding: 0;
        }

        .user-info {
            text-align: left;
            flex: 1;
            min-width: 0;
        }

        .user-name {
            font-size: 13px;
        }

        .user-status {
            font-size: 10px;
            margin-top: 1px;
        }

        .theme-toggle {
            width: 32px;
            height: 32px;
            font-size: 12px;
        }

        .avatar {
            width: 32px;
            height: 32px;
            font-size: 13px;
        }

        .logout-btn {
            padding: 6px 8px;
            font-size: 11px;
        }

        .logout-text,
        .logo-text {
            display: none;
        }

        .nav-button {
            justify-content: center;
        }
    }

    /* Multi-select Script Card Styles */
    .script-card-modal {
        position: relative;
        transition: all 0.2s ease;
        border: 2px solid transparent;
    }

    .script-card-modal.selected {
        border-color: var(--primary-color);
        background: rgba(102, 126, 234, 0.05);
    }

    .script-card-modal .selection-indicator {
        position: absolute;
        top: 8px;
        right: 8px;
        color: var(--primary-color);
        font-size: 1.2rem;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .script-card-modal.selected .selection-indicator {
        opacity: 1;
    }

    .script-icon {
        width: 40px;
        height: 40px;
        background: var(--bg-secondary);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--primary-color);
        overflow: hidden;
    }