/* ===================================================
   NBCLOUD LEVEL UP - Modern UI/UX Design System
   Version: 2.0
   =================================================== */

/* --- CSS Variables --- */
:root {
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #1e1e2a;
    --bg-hover: #252535;
    --bg-elevated: #1a1a25;
    
    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-active: rgba(59, 130, 246, 0.5);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-placeholder: #52525b;
    
    /* Accent Colors */
    --accent-green: #10b981;
    --accent-green-light: #34d399;
    --accent-green-dark: #059669;
    --accent-red: #ef4444;
    --accent-red-light: #f87171;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-dark: #2563eb;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-yellow: #f59e0b;
    --accent-yellow-light: #fbbf24;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --topbar-height: 70px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.55);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.25);
    --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.25);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

/* --- Global Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-primary);
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: all var(--transition-fast);
}

input, select, textarea {
    font-family: var(--font-family);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
    transition: all var(--transition-normal);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: var(--bg-hover);
}

input::placeholder, textarea::placeholder {
    color: var(--text-placeholder);
}

/* --- Selection --- */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

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

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    animation: bgMove 25s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(2%, 2%) rotate(1deg) scale(1.02); }
    50% { transform: translate(0, 4%) rotate(0deg) scale(1); }
    75% { transform: translate(-2%, 2%) rotate(-1deg) scale(1.02); }
}

/* --- Grid Pattern --- */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    pointer-events: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* --- Layout --- */
.app-container {
    display: flex;
    padding-top: var(--topbar-height);
    padding-left: var(--sidebar-width);
    min-height: 100vh;
    transition: padding-left var(--transition-normal);
}

/* --- Top Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background: rgba(17, 17, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 1.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-bar-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar-icons a, .top-bar-icons button {
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.top-bar-icons a:hover, .top-bar-icons button:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.discord-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient-primary) border-box;
    cursor: pointer;
    transition: all var(--transition-fast);
    object-fit: cover;
}

.discord-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-blue);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    background: var(--bg-hover);
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Desktop Sidebar --- */
.desktop-sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    padding: 28px 20px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: width var(--transition-normal);
}

/* --- Mobile Sidebar --- */
.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 90px 20px 28px;
    z-index: 1000;
    transition: left var(--transition-normal);
    overflow-y: auto;
}

.mobile-sidebar.open {
    left: 0;
    display: block;
}

/* --- Sidebar Sections --- */
.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section .section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: block;
    padding: 0 14px;
}

.sidebar-section ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-section ul li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.sidebar-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-fast);
}

.sidebar-section ul li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-section ul li a:hover i {
    color: var(--accent-blue);
}

.sidebar-section ul li.active a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-blue);
    padding-left: 13px;
}

.sidebar-section ul li a i {
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    font-size: 1.05rem;
}

.sidebar-section ul li.active a i {
    color: var(--accent-blue);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    padding: 36px;
    padding-bottom: 120px;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Footer --- */
.footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 18px 36px;
    background: rgba(17, 17, 24, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 98;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: left var(--transition-normal), width var(--transition-normal);
}

.footer span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.4s ease;
}

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

/* --- Card --- */
.card {
    background: var(--bg-card);
    background-image: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.card-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bg-input);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-green {
    background: var(--gradient-success) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3) !important;
}

.btn-green:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4) !important;
}

.btn-red {
    background: var(--gradient-danger) !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3) !important;
}

.btn-red:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4) !important;
}

.btn-yellow {
    background: var(--gradient-warning) !important;
    color: #000 !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3) !important;
}

.btn-yellow:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4) !important;
}

.btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3) !important;
}

.btn-purple:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4) !important;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: var(--bg-hover);
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}

.glass-modal {
    padding: 28px;
}

.glass-input {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
    transition: all var(--transition-normal);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* --- Dashboard Header --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 24px;
}

.header-content {
    flex: 1;
    min-width: 250px;
}

.dashboard-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.5px;
}

.gradient-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.header-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* --- Search Bar --- */
.search-bar-container {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 18px;
    transition: all var(--transition-normal);
}

.search-bar:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-bar i {
    color: var(--text-muted);
    margin-right: 14px;
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    font-size: 0.95rem;
}

.search-bar input:focus {
    outline: none;
    box-shadow: none;
}

.sort-dropdown select {
    min-width: 180px;
    cursor: pointer;
}

/* --- Job Cards (Cluster Cards) --- */
.jobs-list {
    display: grid;
    gap: 20px;
}

.job-card {
    background: var(--bg-card);
    background-image: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.job-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.job-card.temporary {
    border-color: rgba(245, 158, 11, 0.3);
}

.job-card.temporary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-warning);
}

.job-card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.job-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.job-detail-item i {
    color: var(--accent-blue);
    width: 16px;
}

.job-status {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-status.running {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.job-status.stopped {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.job-status.empty {
    background: rgba(113, 113, 122, 0.15);
    color: var(--text-muted);
}

.job-status.completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.job-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.job-details {
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.job-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
}

.job-actions button {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Account Details Container --- */
.account-details-container {
    width: 100%;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

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

.account-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-nickname {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-running {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    animation: pulse 2s infinite;
}

.badge-region {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.badge-temporary {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

/* --- Progress Section --- */
.progress-section {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar-container {
    height: 10px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stat-box {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.stat-box:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-label i {
    color: var(--accent-blue);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Admin Stats Grid --- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-card);
    background-image: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition-normal);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    justify-content: flex-start;
}

.stat-info .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
}

/* --- Spinner --- */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Alert Container --- */
.alert-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.alert-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.alert-info {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.9);
    color: #000;
}

/* --- Empty State --- */
.error-state, .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.error-state i, .empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.error-state p, .empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .app-container {
        padding-left: 0;
    }
    
    .desktop-sidebar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer {
        left: 0;
        width: 100%;
    }
    
    .dashboard-header {
        flex-direction: column;
    }
    
    .header-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
        padding-bottom: 100px;
    }
    
    .dashboard-title {
        font-size: 1.6rem;
    }
    
    .top-bar {
        padding: 0 16px;
    }
    
    .logo span {
        display: none;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .header-actions button {
        width: 100%;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .glass-modal {
        padding: 20px;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .job-status {
        align-self: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
