* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --primary-light: #7289DA;
    --secondary: #57F287;
    --accent: #FEE75C;
    --background: #0A0A0F;
    --surface: rgba(26, 26, 46, 0.6);
    --surface-solid: #1A1A2E;
    --surface-light: rgba(37, 37, 56, 0.8);
    --text: #FFFFFF;
    --text-muted: #B9BBBE;
    --border: rgba(88, 101, 242, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --glow-primary: 0 0 40px rgba(88, 101, 242, 0.4);
    --glow-secondary: 0 0 40px rgba(87, 242, 135, 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(88, 101, 242, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(87, 242, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(26, 26, 46, 0.8);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-brand a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-brand a:hover::after {
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.5));
}

.logo svg {
    width: 32px;
    height: 32px;
    color: #667eea;
    transition: all 0.3s ease;
}

.nav-brand a:hover .logo svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.8));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    opacity: 0.1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-primary), 0 15px 35px rgba(88, 101, 242, 0.5);
}

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

.btn-secondary {
    background: rgba(37, 37, 56, 0.6);
    color: var(--text);
    border: 2px solid rgba(88, 101, 242, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: 
        linear-gradient(135deg, rgba(20, 20, 21, 0.9) 0%, rgba(15, 15, 15, 0.9) 100%),
        url('/img/bg-elixir.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>'),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(87, 242, 135, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-tagline {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 90%;
}

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

.hero-buttons .btn {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-buttons .btn:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-buttons .btn:nth-child(2) {
    animation-delay: 0.4s;
}

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

/* Bot Preview */
.bot-preview {
    perspective: 1500px;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.preview-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 80px rgba(88, 101, 242, 0.2);
    transform: rotateY(-8deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.preview-card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        var(--glow-primary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bot-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(88, 101, 242, 0.5); }
    50% { box-shadow: 0 0 30px rgba(88, 101, 242, 0.8); }
}

.bot-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #43b581;
    box-shadow: 0 0 10px #43b581;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: #747f8d;
    box-shadow: 0 0 10px #747f8d;
    animation: none;
}

.status-indicator.idle {
    background: #faa61a;
    box-shadow: 0 0 10px #faa61a;
}

.status-indicator.dnd {
    background: #f04747;
    box-shadow: 0 0 10px #f04747;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.status-text {
    color: var(--text-muted);
    font-weight: 500;
}

.bot-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(88, 101, 242, 0.2);
}

.mini-stat {
    text-align: center;
}

.mini-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.mini-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bot-tag {
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    background: rgba(37, 37, 56, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.1);
}

.progress-bar {
    background: rgba(10, 10, 15, 0.8);
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    margin: 0.75rem 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) inset;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
}

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

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

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.5), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(37, 37, 56, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 20px 40px rgba(88, 101, 242, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-icon {
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.5));
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.stat-icon svg {
    color: var(--primary);
    stroke-width: 2;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.8));
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

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

/* Features Section */
.features {
    padding: 7rem 0;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.375rem;
    margin-bottom: 4rem;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: rgba(37, 37, 56, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 20px 50px rgba(88, 101, 242, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.5));
    transition: all 0.5s;
    position: relative;
    z-index: 1;
}

.feature-icon svg {
    color: var(--primary);
    stroke-width: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 30px rgba(88, 101, 242, 0.8));
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.0625rem;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta {
    padding: 7rem 0;
    background: 
        linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(13, 13, 13, 0.9) 100%),
        url('/img/bg-elixir.webp') center/cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    animation: ctaMove 30s linear infinite;
}

@keyframes ctaMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.cta h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.cta p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.cta .btn {
    position: relative;
    z-index: 1;
    background: rgb(97, 120, 249);
    color: white;
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(88, 101, 242, 0.2);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 37, 56, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
}

.social-links a:hover {
    border-color: var(--primary);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a svg {
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
}

/* Page Header */
.page-header {
    padding: 4rem 0 2rem;
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(13, 13, 13, 0.9) 100%),
        url('/img/bg-elixir.webp') center/cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* Commands Page */
.commands-section {
    padding: 4rem 0;
}

.command-category {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.5));
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.command-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.command-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.2);
}

.command-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.command-description {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Features Detail Page */
.features-detail {
    padding: 4rem 0;
}

.feature-detail-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.feature-detail-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.feature-detail-card.right:hover {
    transform: translateX(-10px);
}

.feature-detail-icon {
    text-align: center;
}

.feature-detail-icon svg {
    color: var(--primary);
    stroke-width: 2;
    filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.5));
}

.feature-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-detail-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Error Page */
.error-page {
    padding: 8rem 0;
    text-align: center;
    background: 
        linear-gradient(135deg, rgba(16, 16, 16, 0.9) 0%, rgba(16, 16, 16, 0.9) 100%),
        url('/img/bg-elixir.webp') center/cover no-repeat;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.error-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive for new pages */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-detail-card:hover,
    .feature-detail-card.right:hover {
        transform: translateY(-5px);
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-buttons {
        flex-direction: column;
    }
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header svg {
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.5));
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.modal-body {
    margin-top: 2rem;
}

.login-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(88, 101, 242, 0.1);
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
    transform: translateX(5px);
}

.info-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.info-item span {
    font-size: 0.9375rem;
    color: var(--text);
}

.login-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(254, 231, 92, 0.1);
    border: 1px solid rgba(254, 231, 92, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.login-notice svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.login-notice p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

#discord-login-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
}

#discord-login-btn svg {
    margin-right: 0.75rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .info-item {
        padding: 0.75rem;
    }
}


/* Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
    position: relative;
    z-index: 1;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: url('/img/bg-elixir.webp') center/cover;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.2),
        0 0 40px rgba(102, 126, 234, 0.1),
        inset 0 0 20px rgba(102, 126, 234, 0.05);
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 12, 12, 0.95), rgba(12, 12, 12, 0.95));
    z-index: 1;
}

.dashboard-hero h1,
.dashboard-hero p {
    position: relative;
    z-index: 3;
}

.dashboard-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

.dashboard-hero .gradient-text {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.dashboard-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 24px;
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.03);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 15px rgba(102, 126, 234, 0.2),
        0 0 30px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.05);
}

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

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--success), #45d98b);
    box-shadow: 0 8px 24px rgba(87, 242, 135, 0.4);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

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

.servers-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.server-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.03);
}

.server-card-bg {
    position: absolute;
    inset: 0;
    background-image: var(--server-banner);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.server-card:hover .server-card-bg {
    opacity: 0.25;
}

.server-card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.server-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 15px rgba(102, 126, 234, 0.2),
        0 0 30px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.05);
}

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

.server-icon {
    position: relative;
    width: 64px;
    height: 64px;
}

.server-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.server-icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bot-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    color: white;
    box-shadow: 0 2px 8px rgba(87, 242, 135, 0.5);
}

.server-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.server-id {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
}

.server-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.server-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
}

.no-servers {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
}

.no-servers svg {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-servers h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.no-servers p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 100px 1rem 2rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h2 {
        font-size: 1.5rem;
    }

    .servers-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}


/* User Menu Styles */
#user-menu {
    display: flex;
    align-items: center;
}

.user-profile-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-profile-container:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

#user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.logout-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    color: #ED4245;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logout-icon-btn:hover {
    background: rgba(237, 66, 69, 0.2);
    border-color: rgba(237, 66, 69, 0.6);
    box-shadow: 
        0 0 15px rgba(237, 66, 69, 0.4),
        0 0 30px rgba(237, 66, 69, 0.2);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #user-name {
        max-width: 100px;
    }
    
    .user-profile-container {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .user-profile-link {
        gap: 0.5rem;
    }
    
    .logout-icon-btn {
        width: 28px;
        height: 28px;
    }
    
    .logout-icon-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    #user-name {
        display: none;
    }
    
    .user-profile-container {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .user-profile-link {
        gap: 0.5rem;
    }
}

.btn-logout {
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    color: #ED4245;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(237, 66, 69, 0.2);
    border-color: rgba(237, 66, 69, 0.6);
    box-shadow: 
        0 0 20px rgba(237, 66, 69, 0.3),
        0 0 40px rgba(237, 66, 69, 0.15);
    transform: translateY(-2px);
}


/* Server Management Styles */
.manage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
    position: relative;
    z-index: 1;
}

.server-header {
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: url('/img/bg-elixir.webp') center/cover;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.2),
        0 0 40px rgba(102, 126, 234, 0.1),
        inset 0 0 20px rgba(102, 126, 234, 0.05);
}

.server-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    z-index: 1;
}

.server-header-content {
    position: relative;
    z-index: 3;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.server-title {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.server-icon-large {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.server-icon-large img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.server-icon-placeholder-large {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.server-title-info h1 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin: 0 0 0.5rem;
}

.server-title-info .server-id {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    margin: 0;
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.manage-section {
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.03);
}

.manage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.manage-section:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 15px rgba(102, 126, 234, 0.2),
        0 0 30px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.05);
}

.manage-section:hover::before {
    transform: scaleX(1);
}

.section-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.manage-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
}

.manage-section > p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.03);
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        0 0 40px rgba(102, 126, 234, 0.15),
        inset 0 0 10px rgba(102, 126, 234, 0.05);
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-name {
    font-weight: 600;
    color: white;
    font-size: 0.9375rem;
}

.setting-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.setting-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.setting-value.toggle {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.setting-value.toggle.active {
    background: rgba(87, 242, 135, 0.2);
    color: var(--success);
    border-color: rgba(87, 242, 135, 0.6);
    box-shadow: 
        0 0 15px rgba(87, 242, 135, 0.4),
        0 0 30px rgba(87, 242, 135, 0.2);
}

.quick-actions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.03);
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2),
        inset 0 0 10px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.1),
        inset 0 0 10px rgba(102, 126, 234, 0.03);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        0 0 40px rgba(102, 126, 234, 0.15),
        inset 0 0 10px rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive Management */
@media (max-width: 1024px) {
    .manage-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .manage-container {
        padding: 100px 1rem 2rem;
    }

    .server-title {
        flex-direction: column;
        text-align: center;
    }

    .server-title-info h1 {
        font-size: 2rem;
    }

    .quick-actions-list {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* Panel Style Layout */
.panel-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 50px 2rem 4rem;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.panel-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    padding: 1.5rem;
    border-radius: 16px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.server-icon-small {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.server-icon-small img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.server-icon-placeholder-small {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.sidebar-server-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-server-info p {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: white;
    border-color: rgba(102, 126, 234, 0.3);
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: white;
}

/* Panel Content */
.panel-content {
    min-height: 600px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-title {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
                url('/img/bg-elixir.webp');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.section-title.analytics-header {
    padding: 3rem 2rem;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.9)),
                url('/img/bg-elixir.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-card {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-4px);
}

.analytics-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analytics-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.analytics-icon.success {
    background: linear-gradient(135deg, var(--success), #45d98b);
    box-shadow: 0 4px 12px rgba(87, 242, 135, 0.3);
}

.analytics-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.analytics-icon.info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analytics-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.analytics-value {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.analytics-change {
    font-size: 0.8125rem;
    font-weight: 600;
}

.analytics-change.positive {
    color: var(--success);
}

.analytics-change.negative {
    color: var(--error);
}

.analytics-change.neutral {
    color: var(--text-secondary);
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-panel {
    padding: 1.5rem;
    border-radius: 16px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.time-filter {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.chart-placeholder {
    margin-bottom: 1rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.primary {
    background: var(--primary);
}

/* Leaderboard Mini */
.leaderboard-mini {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.rank {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 32px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.username {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
}

.user-xp {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Quick Actions Panel */
.quick-actions-panel {
    padding: 1.5rem;
    border-radius: 16px;
}

.quick-actions-panel h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.actions-grid-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-panel:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Settings Panel */
.settings-panel {
    padding: 1.5rem;
    border-radius: 16px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.setting-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.settings-panel .btn {
    margin-top: 1rem;
    width: 100%;
}

/* Coming Soon */
.coming-soon {
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 16px;
}

.coming-soon svg {
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.coming-soon h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
}

.coming-soon p {
    margin: 0;
    color: var(--text-secondary);
}

/* Responsive Panel Layout */
@media (max-width: 1024px) {
    .panel-container {
        grid-template-columns: 1fr;
    }

    .panel-sidebar {
        position: relative;
        top: 0;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .panel-container {
        padding: 100px 1rem 2rem;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid-panel {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Info Boxes Grid */
.info-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-box {
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-4px);
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box-header svg {
    color: var(--primary);
}

.info-box-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.info-box-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Status Items */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.status-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: rgba(87, 242, 135, 0.2);
    color: var(--success);
    border: 1px solid rgba(87, 242, 135, 0.4);
}

.status-badge.active {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.status-text {
    font-size: 0.875rem;
    color: white;
    font-weight: 600;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(87, 242, 135, 0.2);
    color: var(--success);
}

.activity-icon.primary {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
}

.activity-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: white;
    font-weight: 600;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Info Stats */
.info-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    font-size: 0.875rem;
    color: white;
    font-weight: 700;
}

/* Engagement Stats */
.engagement-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.engagement-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.engagement-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.engagement-fill.success {
    background: linear-gradient(90deg, var(--success), #45d98b);
}

.engagement-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.engagement-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.engagement-label span:first-child {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.engagement-percent {
    font-size: 0.875rem;
    color: white;
    font-weight: 700;
}

/* Responsive Info Boxes */
@media (max-width: 768px) {
    .info-boxes-grid {
        grid-template-columns: 1fr;
    }
}


/* Analytics Section Styles */
.analytics-controls {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.analytics-time-filter,
.analytics-metric-filter {
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analytics-time-filter:hover,
.analytics-metric-filter:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(15, 23, 42, 0.7);
}

.analytics-detailed-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-main-chart {
    grid-row: span 2;
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.chart-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.main-chart-container {
    height: 300px;
    position: relative;
}

.analytics-side-chart {
    padding: 1.5rem;
}

.analytics-side-chart h3 {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.growth-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.growth-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.growth-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.growth-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.growth-value.positive {
    color: var(--success);
}

.mini-chart-container {
    height: 150px;
    position: relative;
}

.engagement-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.breakdown-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breakdown-percent {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

.breakdown-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-fill.primary {
    background: var(--primary);
}

.breakdown-fill.success {
    background: var(--success);
}

.breakdown-fill.warning {
    background: var(--warning);
}

.breakdown-fill.info {
    background: var(--info);
}

.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(87, 242, 135, 0.2);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(254, 231, 92, 0.2);
    color: var(--warning);
}

.stat-icon.info {
    background: rgba(88, 101, 242, 0.2);
    color: var(--info);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-content .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-content .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-content .stat-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-content .stat-change.positive {
    color: var(--success);
}

.stat-content .stat-change.negative {
    color: var(--error);
}

.top-performers {
    padding: 1.5rem;
}

.top-performers h3 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

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

.performer-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.performer-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 900;
    flex-shrink: 0;
}

.performer-rank.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.performer-rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: #000;
}

.performer-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.performer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.performer-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
}

.performer-stat {
    font-size: 0.875rem;
    color: var(--text-secondary);
}


/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: rgba(87, 242, 135, 0.5);
}

.toast.error {
    border-color: rgba(237, 66, 69, 0.5);
}

.toast.warning {
    border-color: rgba(254, 231, 92, 0.5);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: white;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toast-close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-slider:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.toggle-switch input:checked + .toggle-slider:hover {
    background-color: rgba(102, 126, 234, 0.8);
}

/* Editable Setting Inputs */
.setting-input {
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    width: 120px;
    text-align: right;
    transition: all 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-input:hover {
    border-color: rgba(102, 126, 234, 0.5);
}

.setting-row.editable {
    padding: 1rem 1.5rem;
}

.settings-panel .btn {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.settings-panel .btn svg {
    width: 16px;
    height: 16px;
}
