:root {
    /* --- Modern Premium Palette --- */
    --bg-deep: #05070A;
    --bg-surface: #0B0E14;
    --bg-glass: rgba(15, 23, 42, 0.6);

    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --accent-blue: #38BDF8;
    --accent-violet: #8B5CF6;
    --accent-pink: #F472B6;
    --accent-glow: rgba(56, 189, 248, 0.15);

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-radius: 20px;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --grad-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Animated Background Elements --- */
.bg-glow-1 {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.bg-glow-2 {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -1px;
}

.logo-glow {
    width: 12px;
    height: 12px;
    background: var(--grad-primary);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--accent-blue);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background: var(--bg-surface);
    color: white;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Hero --- */
.hero {
    padding: 140px 0 100px;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -3px;
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 4rem 0;
}

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-surface);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-glass);
}

.glass-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 3rem;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-glass);
    margin: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-glass);
    margin-top: 8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

/* --- Special Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
        gap: 2rem;
    }

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }
}

/* --- Dashboard Layout --- */
.dash-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-deep);
}

.sidebar {
    width: 280px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    padding: 1.5rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style: none;
}

.sidebar-label {
    padding: 1.5rem 1.2rem 0.6rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.nav-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-btn.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.dash-main {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 3.5rem;
    scroll-behavior: smooth;
}

/* --- Plugin Grid System --- */
.plugin-category {
    margin-bottom: 3.5rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.plugin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.plugin-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.plugin-info {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.plugin-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.plugin-meta {
    flex: 1;
}

.plugin-meta h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.plugin-meta p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.plugin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.plugin-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748B;
}

.status-active .status-indicator {
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.btn-config {
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border-glass);
    transition: 0.2s;
}

.btn-config:hover {
    background: rgba(255, 255, 255, 0.1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.module-title h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.config-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
}

.input-field {
    background: var(--bg-deep);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 14px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Custom Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-deep);
    border: 1px solid var(--border-glass);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--accent-blue);
}

input:checked+.toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

/* --- Reveal/Animations --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: slideIn 0.5s ease forwards;
}

/* --- Command Lab Overhaul --- */
.command-category {
    margin-bottom: 2.5rem;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.command-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.command-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.command-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.command-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.command-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.category-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .dash-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
}