/* -------------------------------------------------------------------------- */
/*                                 VARIABLES                                  */
/* -------------------------------------------------------------------------- */
:root {
    /* Brand Colors - Sleek & Neon */
    --primary: #00f2fe;
    --primary-dim: #4facfe;
    --accent: #7d5fff;
    --accent-glow: #a55eea;
    --danger: #ff4757;
    --success: #2ed573;
    --warning: #ffa502;

    /* Theme Accents */
    --accent-blue: #3b82f6;
    --accent-cyan: #00f2fe;
    --accent-purple: #8b5cf6;
    --accent-green: #2ed573;
    --accent-orange: #ffa502;
    --accent-pink: #ec4899;

    /* Backgrounds & Surfaces (Default Dark) */
    --bg-deep: #050508;
    --bg-surface: #0a0a0f;
    --bg-main: #06070a;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);

    /* Text Colors (Default Dark) */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Montserrat', sans-serif;

    /* Glassmorphism */
    --glass-bg: rgba(10, 10, 15, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blur: blur(20px);

    /* Spacing & Layout */
    --maxw: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    /* Transitions */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --primary: #0084ff;
    --primary-dim: #0056b3;
    --accent: #5f27cd;
    --accent-glow: #341f97;
    --danger: #eb2f06;
    --success: #10ac84;
    --warning: #ff9f43;

    --accent-blue: #2563eb;
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    --accent-green: #059669;
    --accent-orange: #d97706;
    --accent-pink: #db2777;

    --bg-deep: #f1f2f6;
    --bg-surface: #ffffff;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);

    --text-main: #1e293b;
    --text-muted: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --blur: blur(20px);
}

/* -------------------------------------------------------------------------- */
/*                                GLOBAL STYLES                               */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-main);
}

html {
    background-color: #050508;
}

body {
    background-color: transparent !important;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

/* -------------------------------------------------------------------------- */
/*                                 COMPONENTS                                 */
/* -------------------------------------------------------------------------- */
/* Glassmorphic Card */
.glass-card,
.card.glass,
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 24px;
    position: relative;
    box-sizing: border-box;
}

.glass-card:hover,
.card.glass:hover,
.card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.1);
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
    color: #fff;
}

.btn-outline,
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(0, 242, 254, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-outline,
[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(0, 132, 255, 0.35);
}

.btn-outline:hover,
.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 132, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 30px;
}

.btn-large {
    padding: 1rem 2.4rem;
    font-size: 1.15rem;
    border-radius: 50px;
}

.btn-icon {
    padding: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--text-main);
}

.btn-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* Glowing Border Elements */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.glow-box {
    position: relative;
}

.glow-box::after,
.glow-box::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), transparent 70%, var(--primary), var(--accent));
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 3px;
    border-radius: var(--radius-md);
    animation: 4s rotateGradient linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-box:hover::after,
.glow-box:hover::before {
    opacity: 1;
}

.glow-box::before {
    filter: blur(1.5rem);
}

/* HOVER TRIGGERS */
.hover-float {
    transition: transform 0.3s var(--ease-out);
}

.hover-float:hover {
    transform: translateY(-8px);
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.hover-shine:hover::after {
    animation: shine-sweep 1s ease forwards;
}

.hover-rotate {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

.hover-tilt {
    transition: transform 0.1s ease;
}

.hover-blur-bg {
    transition: backdrop-filter 0.3s ease;
}

.hover-blur-bg:hover {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.visual-box {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.visual-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.15);
}

@keyframes rotateGradient {
    to {
        --angle: 360deg;
    }
}

@keyframes shine-sweep {
    0% {
        left: -150%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

[data-theme="light"] .section-title {
    background: linear-gradient(to right, #000, #444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

/* -------------------------------------------------------------------------- */
/*                                   NAVBAR                                   */
/* -------------------------------------------------------------------------- */
#main-nav,
nav:not(.sidebar) {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: min(92%, 600px);
    max-width: calc(100vw - 32px);
    z-index: 10000;
    background: rgba(10, 10, 16, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.55rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.6rem, 1.2vw, 1.2rem);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-wrap: nowrap !important;
    box-sizing: border-box;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#main-nav::-webkit-scrollbar,
nav:not(.sidebar)::-webkit-scrollbar {
    display: none;
}

[data-theme="light"] #main-nav,
[data-theme="light"] nav:not(.sidebar) {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 25px rgba(0, 132, 255, 0.1);
}

#main-nav.hidden,
nav.hidden {
    transform: translate(-50%, -150%);
}

#main-nav .nav-brand,
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
}

#main-nav .nav-brand img,
.nav-brand img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.45);
    object-fit: cover;
}

#main-nav .nav-links,
#unified-nav-links,
nav:not(.sidebar) .nav-links,
nav:not(.sidebar) > .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: clamp(0.35rem, 0.8vw, 1rem) !important;
    align-items: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-shrink: 0 !important;
}

#main-nav .nav-links a,
#unified-nav-links a,
nav:not(.sidebar) .nav-links a,
nav:not(.sidebar) > .nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.35rem clamp(0.35rem, 0.5vw, 0.6rem);
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#main-nav .nav-links a:hover,
#main-nav .nav-links a.active,
#unified-nav-links a:hover,
#unified-nav-links a.active,
nav:not(.sidebar) .nav-links a:hover,
nav:not(.sidebar) .nav-links a.active {
    color: var(--primary) !important;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.7vw, 0.75rem);
    flex-shrink: 0;
    white-space: nowrap;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.lang-toggle-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

#theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

#theme-toggle:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(20deg) scale(1.05);
}

.btn-nav-invite {
    background: rgba(0, 242, 254, 0.08);
    color: var(--primary) !important;
    border: 1px solid rgba(0, 242, 254, 0.45);
    padding: 0.55rem 1.3rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-nav-invite:hover {
    background: var(--primary);
    color: #050508 !important;
    border-color: var(--primary);
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-nav-invite {
    background: rgba(0, 132, 255, 0.08);
    color: var(--primary) !important;
    border-color: rgba(0, 132, 255, 0.45);
}

[data-theme="light"] .btn-nav-invite:hover {
    background: var(--primary);
    color: #fff !important;
}

/* User Profile Pill in Navbar */
.nav-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 3px 8px 3px 4px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.12);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

[data-theme="light"] .nav-user-pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 132, 255, 0.35);
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.nav-user-name {
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--text-main);
    max-width: clamp(100px, 16vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-xs {
    padding: 0.3rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 20px !important;
    line-height: 1.2 !important;
}

.btn-user-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    color: #ff4757 !important;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-user-logout:hover {
    background: #ff4757;
    color: #fff !important;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.5);
}

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */
header {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: var(--maxw);
    padding: 2rem;
    text-align: left;
}

/* --- Hero Content --- */
.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

/* Glitch Title Effect */
.glitch-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    position: relative;
    color: var(--text-main);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-deep);
}

.glitch-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--danger);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(11px, 9999px, 81px, 0);
    }

    20% {
        clip: rect(109px, 9999px, 12px, 0);
    }

    40% {
        clip: rect(4px, 9999px, 116px, 0);
    }

    60% {
        clip: rect(66px, 9999px, 26px, 0);
    }

    80% {
        clip: rect(143px, 9999px, 15px, 0);
    }

    100% {
        clip: rect(138px, 9999px, 150px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(88px, 9999px, 16px, 0);
    }

    20% {
        clip: rect(145px, 9999px, 51px, 0);
    }

    40% {
        clip: rect(15px, 9999px, 102px, 0);
    }

    60% {
        clip: rect(72px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(123px, 9999px, 140px, 0);
    }

    100% {
        clip: rect(81px, 9999px, 49px, 0);
    }
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

[data-theme="light"] .hero-subtitle {
    background: linear-gradient(to right, #111, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Hero Visual (3D Logo) --- */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.hero-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
}

.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.game-modal:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.game-modal:not(.hidden) .game-content {
    animation: window-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes window-pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.game-content {
    background: var(--bg-surface);
    border: 1px solid var(--primary);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    text-align: center;
    overflow: hidden;
    width: 900px;
    max-width: 95vw;
}

@media screen and (max-width: 950px) {
    .game-content {
        width: 95vw;
    }

    #runner-canvas {
        width: 100%;
        height: auto;
        margin: 1rem auto;
    }
}

.game-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
}

.score-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

#game-lives {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

[data-theme="light"] .game-header {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

#runner-canvas {
    background: #000;
    display: block;
    margin: 1.5rem auto;
    border-radius: var(--radius-sm);
    max-width: 90%;
}

.game-controls {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    animation: rotate 20s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

/* Floating Elements */
.float-item {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.item-1 {
    top: 10%;
    right: 10%;
    color: var(--success);
    animation: float 5s ease-in-out infinite 0.5s;
}

.item-2 {
    bottom: 15%;
    left: 5%;
    color: var(--accent);
    animation: float 7s ease-in-out infinite 1s;
}

.item-3 {
    top: 40%;
    left: -10%;
    color: var(--warning);
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* -------------------------------------------------------------------------- */
/*                                  FEATURES                                  */
/* -------------------------------------------------------------------------- */
#features {
    padding: 2rem 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/*                               COMMAND EXPLORER                             */
/* -------------------------------------------------------------------------- */
#commands {
    padding: 6rem 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

/* Command Search Controls */
.cmd-search-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    position: relative;
    display: flex;
    align-items: center;
}

.cmd-search-wrapper i {
    position: absolute;
    left: 20px;
    color: var(--primary);
    font-size: 1.1rem;
    pointer-events: none;
}

.cmd-search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cmd-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.cmd-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: -1rem auto 2rem auto;
    padding: 0 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cmd-count-badge {
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.cmd-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="light"] .filter-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.cmd-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
    position: relative;
    user-select: none;
}

.cmd-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2);
}

.cmd-card:active {
    transform: scale(0.98);
}

.cmd-card::after {
    content: '📋 Copiar';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 700;
}

.cmd-card:hover::after {
    opacity: 0.8;
}

.cmd-card.hide {
    display: none;
}

.cmd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmd-name {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.cmd-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tag-admin {
    background: rgba(255, 71, 87, 0.2);
    color: var(--danger);
}

.tag-fun {
    background: rgba(255, 165, 2, 0.2);
    color: var(--warning);
}

.tag-mod {
    background: rgba(46, 213, 115, 0.2);
    color: var(--success);
}

.tag-music {
    background: rgba(125, 95, 255, 0.2);
    color: var(--accent);
}

.tag-util {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.tag-profile {
    background: rgba(0, 242, 255, 0.2);
    color: var(--primary);
}

.cmd-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 1rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-content {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 1rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

/* -------------------------------------------------------------------------- */
/*                                RESPONSIVE                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    nav:not(.sidebar) > .nav-links {
        gap: 1.2rem;
    }
    nav:not(.sidebar) > .nav-links a {
        font-size: 0.88rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {
    nav:not(.sidebar) {
        width: 96%;
        padding: 0.6rem 1.2rem;
    }

    nav:not(.sidebar) > .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                                 NEW SECTIONS                               */
/* -------------------------------------------------------------------------- */
/* Stats Section */
#stats {
    padding: 4rem 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Detailed Split Section */
.split-section {
    padding: 6rem 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-box {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(125, 95, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.visual-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    mask-image: radial-gradient(circle, black, transparent 80%);
}

.split-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.split-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* FAQ Section */
#faq {
    padding: 6rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(0, 242, 254, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--text-main);
    user-select: none;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 1rem;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    margin: 0;
}

.faq-item.active {
    background: rgba(0, 242, 254, 0.04);
    border-color: rgba(0, 242, 254, 0.3);
    border-left: 3px solid var(--primary);
}

.faq-item.active .faq-question {
    color: #ffffff;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.35rem;
    padding-top: 0.25rem;
    max-height: 500px;
}

@media (max-width: 900px) {
    .split-section,
    .split-section.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/*                                BENTO GRID                                  */
/* -------------------------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-flow: dense;
    gap: 1.5rem;
    padding: 1rem 0;
}

.bento-item {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

@media (min-width: 768px) {
    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
    }
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
    transform: translateZ(20px);
}

.bento-item:hover .bento-icon {
    transform: translateZ(40px) scale(1.1);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(15px);
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transform: translateZ(10px);
}

.bento-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

.bento-content-row .icon-col {
    font-size: 5rem;
    opacity: 0.2;
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.bento-item:hover .icon-col {
    opacity: 1;
    transform: translateZ(50px) rotate(-10deg);
}

.accent-glow {
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
}

.primary-glow {
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
}

.warning-glow {
    color: var(--warning);
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.2);
}

.success-glow {
    color: var(--success);
    text-shadow: 0 0 30px rgba(46, 213, 115, 0.4);
}

.error-glow {
    color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.2);
}

.info-glow {
    color: #70a1ff;
    box-shadow: 0 0 20px rgba(112, 161, 255, 0.2);
}

.sec-glow {
    color: #2ed573;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.2);
}

.violet-glow {
    color: #a55eea;
    box-shadow: 0 0 20px rgba(165, 94, 234, 0.2);
}

.js-tilt-glare {
    border-radius: inherit;
}

/* -------------------------------------------------------------------------- */
/*                              TESTIMONIALS                                  */
/* -------------------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: var(--maxw);
    margin: 0 auto;
}

.testimonial-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
    background-size: cover;
    background-position: center;
    transform: translateZ(20px);
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transform: translateZ(10px);
}

.testimonial-content h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    transform: translateZ(15px);
}

.testimonial-content span {
    font-size: 0.9rem;
    color: var(--primary);
    transform: translateZ(15px);
}

/* -------------------------------------------------------------------------- */
/*                                 TIMELINE                                   */
/* -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary);
    transition: all 0.3s ease;
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item:hover::after {
    background: var(--primary);
    transform: scale(1.2);
}

.timeline-content {
    padding: 1.5rem;
    position: relative;
    border-radius: 12px;
    transform-style: preserve-3d;
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transform: translateZ(10px);
}

.timeline-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    transform: translateZ(5px);
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateZ(15px);
}

.status.done {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.status.in-progress {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.status.upcoming {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                    CTA                                     */
/* -------------------------------------------------------------------------- */
.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 0, 0, 0.4));
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transform: translateZ(20px);
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    transform: translateZ(15px);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transform: translateZ(25px);
}

.section-spacer {
    margin-bottom: 6rem;
}

/* -------------------------------------------------------------------------- */
/*                                ANIMATIONS                                  */
/* -------------------------------------------------------------------------- */
.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* -------------------------------------------------------------------------- */
/*                                DASHBOARD APP                               */
/* -------------------------------------------------------------------------- */
#dashboard-app {
    background: radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.05), transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(79, 70, 229, 0.08), transparent 45%),
                rgba(7, 10, 18, 0.88) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 96px;
    color: var(--text-main);
}

.dash-workspace {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Dashboard Main Canvas */
.dash-main-canvas {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 32px 60px 32px;
}

.dash-canvas-header {
    margin-bottom: 16px;
}

.dash-titles h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.dash-titles p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Dashboard Overview Grid & Telemetry Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.tele-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 270px;
    background: rgba(18, 24, 38, 0.7);
    border-radius: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #fff;
}

.tele-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.circular-progress {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin: auto 0;
}

.circular-chart {
    display: block;
    width: 135px;
    height: 135px;
    max-width: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3.2;
}

.circle {
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpu-chart .circle {
    stroke: #00f2fe;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

.ram-chart .circle {
    stroke: #8b5cf6;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-bubble.cyan { background: rgba(0, 242, 254, 0.12); border: 1px solid rgba(0, 242, 254, 0.3); }
.icon-bubble.purple { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); }
.icon-bubble.blue { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); }
.icon-bubble.green { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-bubble.red { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
.icon-bubble.orange { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-bubble.pink { background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.3); }

.tele-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-indicator-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

/* Metric Cards */
.metric-card {
    grid-column: span 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: rgba(18, 24, 38, 0.7);
    border-radius: 20px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.icon-wrapper.blue { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.35); }
.icon-wrapper.pink { background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.35); }
.icon-wrapper.green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); }
.icon-wrapper.purple { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.35); }

.metric-info {
    flex: 1;
    min-width: 0;
}

.metric-info .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-info h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tele-card {
        grid-column: span 1;
    }
    .metric-card {
        grid-column: span 1;
    }
}

@media (max-width: 680px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .tele-card {
        grid-column: span 1;
    }
    .metric-card {
        grid-column: span 1;
    }
}

/* Server Selector Hub */
.selector-header-box {
    margin-bottom: 20px;
}

.guild-controls-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 18px;
    border-radius: 16px;
}

.guild-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.guild-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.guild-search-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
}

.guild-search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.guild-filter-chips {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-chip {
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 70, 229, 0.25));
    border-color: var(--primary);
    color: #fff;
}

.filter-chip.reload-btn {
    padding: 7px 10px;
}

/* Modern Guild Grid */
.guild-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.guild-card {
    background: rgba(18, 24, 38, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.guild-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.guild-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.15);
}

.guild-card:hover::before {
    opacity: 1;
}

.guild-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.guild-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.guild-card-initials {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.guild-card-meta {
    flex: 1;
    min-width: 0;
}

.guild-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.guild-card-role {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.guild-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-tag-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bot-tag-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.bot-tag-pill.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.guild-action-btn {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.guild-action-btn.manage {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0b1120;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}

.guild-action-btn.manage:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 242, 254, 0.4);
}

.guild-action-btn.invite {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.guild-action-btn.invite:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: #5865F2;
    color: #5865F2;
}

/* Server Configuration Hub */
.server-config-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-radius: 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(20, 28, 48, 0.8), rgba(11, 16, 28, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    gap: 20px;
    flex-wrap: wrap;
}

.btn-back-pill,
.btn-back {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    text-decoration: none;
}

.btn-back-pill:hover,
.btn-back:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-3px);
}

.config-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.banner-guild-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.guild-banner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.banner-guild-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-name-row h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.badge-live-connected {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.banner-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guild-id-pill {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: monospace;
    transition: 0.2s;
}

.guild-id-pill:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Modern Tab Navigation */
.config-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.dash-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.dash-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
}

.dash-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 70, 229, 0.25));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.25);
}

.dash-tab-btn .tab-icon {
    font-size: 1.1rem;
}

/* Config Tab Contents */
.config-tab-content {
    animation: fadeInContent 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Setting Hero Card */
.setting-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-card-left {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 600px;
}

.hero-icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 70, 229, 0.2));
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.hero-card-left h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.hero-card-left p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.hero-card-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.prefix-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prefix-box {
    width: 90px !important;
    text-align: center;
    font-size: 1.3rem !important;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: 2px;
}

.prefix-preview {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.prefix-preview code {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Section Titles */
.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 10px;
}

.section-title-wrap h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.plugins-status-tag {
    font-size: 0.78rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Modern Plugins Grid */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.plugin-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 24, 38, 0.5);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.plugin-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.plugin-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.plugin-icon.orange { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }
.plugin-icon.pink { background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.3); }
.plugin-icon.green { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.plugin-icon.red { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
.plugin-icon.purple { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); }
.plugin-icon.blue { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); }

.plugin-info {
    flex: 1;
    min-width: 0;
}

.plugin-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.plugin-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Modern iOS Style Switch */
.modern-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-track::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #cbd5e1;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.modern-switch input:checked + .switch-track {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.modern-switch input:checked + .switch-track::before {
    transform: translateX(22px);
    background-color: #fff;
}

/* Form Styles & Inputs */
.form-group-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-input,
.modern-select,
.modern-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.modern-select:focus, .modern-textarea:focus, .modern-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.modern-select option {
    background: #0f172a;
    color: #fff;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Welcome Config Layout */
.welcome-config-grid, .announcer-grid, .automod-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

@media (max-width: 960px) {
    .welcome-config-grid, .announcer-grid, .automod-grid {
        grid-template-columns: 1fr;
    }
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.card-title-row h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.card-title-row p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Variable Chips */
.variable-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chips-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.var-chip {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary);
    font-family: monospace;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.var-chip:hover {
    background: rgba(0, 242, 254, 0.25);
    transform: translateY(-1px);
}

/* Discord Chat Live Preview */
.discord-preview-card, .announcer-preview-card {
    background: #2b2d31 !important;
    border: 1px solid #1e1f22 !important;
    border-radius: 20px;
    padding: 20px;
    color: #dbdee1;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #949ba4;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-chat-container {
    background: #313338;
    border-radius: 12px;
    padding: 16px;
    font-family: 'Inter', system-ui, sans-serif;
}

.discord-message {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.discord-content {
    flex: 1;
    min-width: 0;
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.discord-author {
    color: #f2f3f5;
    font-weight: 600;
    font-size: 0.95rem;
}

.discord-bot-badge {
    background: #5865f2;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1.2;
}

.discord-timestamp {
    color: #949ba4;
    font-size: 0.72rem;
    margin-left: 4px;
}

.discord-body {
    color: #dbdee1;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
}

.discord-mention {
    background: rgba(88, 101, 242, 0.25);
    color: #c9cdfb;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.discord-strong {
    color: #fff;
    font-weight: 700;
}

.preview-hint {
    margin-top: 14px;
    font-size: 0.76rem;
    color: #949ba4;
    text-align: center;
}

/* Discord Embed Preview Box */
.discord-embed-box {
    background: #2b2d31;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 8px;
    max-width: 500px;
}

.discord-embed-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.discord-embed-desc {
    color: #dbdee1;
    font-size: 0.88rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Automod Toggles List */
.toggles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    gap: 16px;
}

.toggle-meta strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.toggle-meta span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Bad Words Interactive Chips */
.badwords-input-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.badwords-input-bar .modern-input {
    flex: 1;
    text-align: left;
}

.badwords-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 80px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.badword-chip {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.badword-chip .remove-chip-btn {
    background: none;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0;
    transition: 0.2s;
}

.badword-chip .remove-chip-btn:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Compact Config Cards */
.config-card-compact {
    max-width: 800px;
    margin: 0 auto;
    padding: 28px;
}

/* Color Picker Input */
.color-picker-input {
    width: 44px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.color-picker-label {
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 700;
}

/* Toast */
.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { background: var(--bg-card); backdrop-filter: var(--blur); border-left: 4px solid var(--accent-blue); padding: 16px 24px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); font-weight: 500; animation: slideIn 0.3s ease forwards, fadeOut 0.3s ease 2.7s forwards; }
.toast.success { border-color: var(--accent-green); }
.toast.error { border-color: var(--accent-pink); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* Spinner */
.loading-spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-left-color: var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }


/* Music Player Styles */
.music-search-bar { display: flex; gap: 12px; margin-bottom: 24px; }
.music-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.now-playing-card { display: flex; gap: 24px; align-items: center; }
.music-artwork { width: 160px; height: 160px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,0.4); border: 2px solid rgba(255,255,255,0.1); }
.music-details { flex: 1; }
.music-details h3 { font-size: 24px; margin-bottom: 4px; background: linear-gradient(to right, #fff, var(--accent-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }
.music-details p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }

.progress-container { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); font-family: 'Outfit', sans-serif; }
.progress-bar-bg { flex: 1; height: 8px; background: rgba(0,0,0,0.3); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); width: 0%; transition: width 0.5s linear; }

.music-controls { display: flex; justify-content: center; gap: 16px; align-items: center; margin-bottom: 16px; }
.control-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: white; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; }
.control-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.play-pause-btn { width: 56px; height: 56px; font-size: 22px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); border: none; }
.play-pause-btn:hover { background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink)); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }

.volume-slider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }

/* Volume value label */
.volume-label { min-width: 40px; text-align: right; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px; color: var(--text-main); }

/* Custom Range Slider */
.volume-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple) var(--vol-pct, 40%), rgba(255,255,255,0.08) var(--vol-pct, 40%));
    transition: background 0.1s ease;
}

/* Webkit (Chrome/Edge/Safari) — Track */
.volume-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: transparent;
}

/* Webkit — Thumb */
.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    margin-top: -6px;
    cursor: grab;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.volume-slider input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.7);
    transform: scale(1.15);
}
.volume-slider input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.9);
    transform: scale(1.25);
}

/* Firefox — Track */
.volume-slider input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: transparent;
    border: none;
}

/* Firefox — Thumb */
.volume-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    cursor: grab;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.volume-slider input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.7);
    transform: scale(1.15);
}
.volume-slider input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.9);
    transform: scale(1.25);
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.queue-header h3 { margin: 0; }
.queue-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.queue-opt-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.queue-opt-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}
.queue-opt-btn:active {
    transform: translateY(0);
}
.queue-opt-btn.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.queue-opt-btn .badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}
.queue-opt-btn.active .badge {
    background: #10b981;
    color: #042f2e;
}
.queue-opt-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.queue-list { list-style: none; display: flex; flex-direction: column; gap: 12px; max-height: 250px; overflow-y: auto; padding-right: 8px; }
.queue-list::-webkit-scrollbar { width: 6px; }
.queue-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.queue-list li {
    background: rgba(0,0,0,0.2);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.queue-list li.is-current {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}
.queue-list li .q-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}
.queue-list li .q-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.queue-list li .q-author {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.queue-list li .q-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.queue-list li .q-dur { color: var(--text-muted); font-size: 12px; }
.queue-list li .q-del-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.queue-list li .q-del-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 1000px) {
    .music-grid { grid-template-columns: 1fr; }
    .now-playing-card { flex-direction: column; text-align: center; }
}

/* ─────────────────────────────────────────────
   TERMINAL SSH & CYBER SHELL STYLES
───────────────────────────────────────────── */
.terminal-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.terminal-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
    gap: 12px;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.terminal-title .terminal-icon {
    font-size: 2rem;
}

.terminal-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.terminal-title .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin: 2px 0 0 0;
}

.terminal-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5f3fc;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.terminal-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.terminal-box {
    background: #090d16 !important;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(34, 211, 238, 0.03);
}

.terminal-top-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-top-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-top-controls .dot.red { background: #ff5f56; }
.terminal-top-controls .dot.yellow { background: #ffbd2e; }
.terminal-top-controls .dot.green { background: #27c93f; }

.term-title-text {
    margin-left: 8px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--text-muted, #94a3b8);
}

.terminal-screen {
    padding: 16px;
    min-height: 420px;
    max-height: 580px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: transparent;
}

#ssh-terminal-output {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.terminal-prompt {
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

#ssh-terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    caret-color: #38bdf8;
}

#page-music .filter-chip.active {
    background: rgba(236, 72, 153, 0.25) !important;
    border-color: #ec4899 !important;
    color: #f472b6 !important;
    font-weight: 700;
}

/* ─────────────────────────────────────────────
   HERO LIVE BADGE & BEACON
───────────────────────────────────────────── */
.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-main);
    backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.15);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* ─────────────────────────────────────────────
   MUSIC VISUALIZER SHOWCASE CARD
───────────────────────────────────────────── */
.music-showcase-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.7));
    border: 1px solid rgba(125, 95, 255, 0.35);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(125, 95, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: 2.5rem auto;
    max-width: 650px;
}

.music-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.music-showcase-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #f8fafc;
}

.music-showcase-title i {
    color: #00f2fe;
    font-size: 1.2rem;
}

.vis-canvas-container {
    background: rgba(3, 4, 8, 0.6);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#music-visualizer-canvas {
    width: 100%;
    height: 80px;
    display: block;
}

.music-showcase-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.music-track-info {
    display: flex;
    flex-direction: column;
}

.music-track-info .track-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}

.music-track-info .track-meta {
    font-size: 0.8rem;
    color: #00f2fe;
    font-family: monospace;
}

.music-dsp-pills {
    display: flex;
    gap: 6px;
}

.dsp-pill {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

/* Toast Animation */
@keyframes toastIn {
    from {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

