:root {
    /* --- L-KIT ULTIMATE COLOR PALETTE --- */
    --bg-core: #030712;
    --bg-glass: rgba(17, 24, 39, 0.75);
    --bg-glass-hover: rgba(31, 41, 55, 0.85);
    
    /* Neon Accents */
    --primary: #3b82f6;       /* Azure Blue */
    --primary-dim: rgba(59, 130, 246, 0.15);
    --primary-glow: rgba(59, 130, 246, 0.4);
    
    --secondary: #6366f1;     /* Indigo */
    --accent: #ef4444;        /* Red */
    --success: #10b981;       /* Emerald */
    --warning: #f59e0b;       /* Amber */
    --gold: #eab308;          /* Premium */
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Borders & Glows */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.3);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-core);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0; height: 100vh; display: flex; overflow: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px; background: var(--bg-glass); backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass); display: flex; flex-direction: column; padding: 20px; z-index: 100;
}
.logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 40px; display: flex; align-items: center; gap: 12px; }
.logo-icon { 
    width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-item {
    padding: 12px 16px; border-radius: 10px; cursor: pointer; color: var(--text-muted);
    transition: all 0.2s; display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
    font-weight: 500; font-size: 0.9rem;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.03); color: white; }
.nav-item.active { background: rgba(59, 130, 246, 0.1); color: var(--primary); }

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1; padding: 30px; overflow-y: auto; position: relative;
    background: radial-gradient(circle at center, transparent 0%, #030712 100%);
}
.glass-panel {
    background: var(--bg-glass); backdrop-filter: blur(12px); border: 1px solid var(--border-glass);
    border-radius: 16px; padding: 24px; box-shadow: var(--shadow-glass); margin-bottom: 24px;
}

/* --- HERO SECTION --- */
.hero-section { display: flex; gap: 30px; margin-bottom: 40px; }
.hero-main {
    flex: 2; background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--border-glass); border-radius: 20px; padding: 40px; position: relative; overflow: hidden;
}
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.hero-title span { background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin-bottom: 30px; }
.hero-stats { flex: 1; display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.stat-card { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 16px; padding: 20px; transition: 0.3s; }
.stat-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.stat-value { font-size: 2rem; font-weight: 700; color: white; }
.stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- INPUTS & BUTTONS --- */
button {
    background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
button:hover { filter: brightness(1.1); box-shadow: 0 0 15px var(--primary-dim); }
input {
    background: rgba(17, 24, 39, 0.8); border: 1px solid var(--border-glass); color: white; padding: 10px 14px; border-radius: 8px; outline: none; font-family: 'Fira Code', monospace;
}
input:focus { border-color: var(--primary); }

/* --- MARKET STYLES --- */
.market-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-glass); padding-bottom: 20px; margin-bottom: 25px; }
.market-title { margin: 0; font-size: 1.5rem; font-weight: 800; }
.market-tabs { display: flex; gap: 8px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 10px; }
.tab-btn { background: transparent; border: none; color: var(--text-muted); padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.tab-btn.active { background: var(--primary); color: white; }

.premium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.plugin-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); border-radius: 16px;
    padding: 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.3s;
    position: relative; overflow: hidden;
}
.plugin-card:hover { background: rgba(255,255,255,0.05); border-color: var(--primary); transform: translateY(-5px); }
.plugin-icon { width: 48px; height: 48px; border-radius: 12px; background: #1f2937; object-fit: cover; }
.plugin-info h4 { margin: 0 0 4px; color: white; }
.plugin-info p { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.install-tag { position: absolute; top: 10px; right: 10px; font-size: 0.6rem; font-weight: 800; color: var(--primary); background: var(--primary-dim); padding: 2px 6px; border-radius: 4px; opacity: 0; transition: 0.2s; }
.plugin-card:hover .install-tag { opacity: 1; }

.core-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border-glass); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.2s; }
.core-card:hover { border-color: var(--gold); background: rgba(255,255,255,0.04); }
.core-logo img { width: 40px; height: 40px; object-fit: contain; }

.market-cat-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin: 30px 0 15px; text-transform: uppercase; letter-spacing: 1px; }

/* --- TERMINAL --- */
.terminal-container { background: #0d1117; border: 1px solid #30363d; border-radius: 12px; padding: 20px; font-family: 'Fira Code', monospace; color: #c9d1d9; min-height: 400px; }

/* --- MODALS --- */
.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: 9999; display: none; justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex !important; }
.modal-content { background: #111827; border: 1px solid var(--border-glass); border-radius: 16px; padding: 25px; width: 100%; max-width: 500px; }
.modal-header { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-glass); padding-bottom: 15px; margin-bottom: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* --- TOASTS --- */
.l-toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.l-toast { background: #1f2937; color: white; padding: 12px 20px; border-radius: 8px; border-left: 4px solid var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.3); min-width: 300px; }

/* --- SETTINGS & DEPLOY --- */
.deploy-title { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 5px; }
.deploy-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
.deploy-grid { display: flex; flex-direction: column; gap: 10px; }
.deploy-btn {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); color: var(--text-muted); padding: 12px 16px;
    border-radius: 10px; text-align: left; font-family: 'Fira Code', monospace; font-size: 0.85rem; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px;
}
.deploy-btn:hover { background: rgba(255,255,255,0.05); border-color: var(--primary); color: white; transform: translateX(5px); }
.deploy-btn.glow { background: var(--primary-dim); border-color: var(--primary); color: var(--primary); font-weight: 700; justify-content: center; text-align: center; }
.deploy-btn.glow:hover { background: var(--primary); color: white; box-shadow: 0 0 15px var(--primary-dim); transform: translateY(-2px); }

/* Theme Engine */
.theme-grid { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 15px; }
.theme-card { background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); border-radius: 12px; padding: 15px; width: 110px; text-align: center; cursor: pointer; transition: 0.3s; }
.theme-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.05); }
.theme-card.active { border-color: white; box-shadow: 0 0 15px rgba(255,255,255,0.1); }
.theme-preview { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px auto; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.theme-card span { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; display: block; }
.theme-card.active span { color: white; }
select { background: rgba(17, 24, 39, 0.8); border: 1px solid var(--border-glass); color: white; padding: 10px 14px; border-radius: 8px; outline: none; width: 100%; font-family: 'Inter', sans-serif; cursor: pointer; }
select option { background: #111827; color: white; padding: 10px; }

/* --- UTILS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.view-section { display: none; animation: fadeIn 0.4s ease; }
.view-section.active { display: block; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,0.5); }
.status-indicator.connected { background: #10b981; box-shadow: 0 0 10px rgba(16,185,129,0.5); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }