@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-dark: #07070a;
    --bg-panel: rgba(22, 22, 30, 0.4);
    --bg-panel-border: rgba(255, 255, 255, 0.05);
    --bg-panel-hover: rgba(30, 30, 42, 0.7);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.5);
    
    --accent: #ec4899;
    --accent-glow: rgba(236, 72, 153, 0.5);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Global Aesthetics */
.gradient-text {
    background: linear-gradient(135deg, #a855f7, #ec4899, #6366f1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-panel-border);
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800;
}
.logo-wrapper { position: relative; width: 40px; height: 40px; }
.nav-logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 2; }
.logo-glow { position: absolute; top:0; left:0; width: 100%; height: 100%; background: var(--primary); filter: blur(15px); opacity: 0.6; z-index: 1; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: white; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.btn-login {
    background: rgba(255,255,255,0.05); border: 1px solid var(--bg-panel-border);
    padding: 10px 24px; border-radius: var(--radius-full);
    font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.btn-login:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ── MEGA HERO ── */
.hero-complex {
    position: relative;
    padding: 12rem 2rem 6rem;
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 4rem;
    min-height: 100vh;
}
.hero-bg-shapes { position: absolute; top:0; left:0; width: 100%; height: 100%; overflow: hidden; z-index: -1; }
.shape { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.4; }
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -200px; animation: float 10s infinite; }
.shape-2 { width: 500px; height: 500px; background: var(--accent); bottom: 100px; right: -100px; animation: float 14s infinite reverse; }
.shape-3 { width: 400px; height: 400px; background: #0ea5e9; top: 40%; left: 40%; animation: float 12s infinite 2s; opacity: 0.2;}

@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-50px) scale(1.1); } }

.hero-content { flex: 1.2; max-width: 700px; z-index: 10; }
.badge-animated {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
    padding: 8px 20px; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}
.badge-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); animation: pulse 2s infinite; }

.hero-title { font-size: 4.5rem; letter-spacing: -1.5px; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; line-height: 1.8; }

.hero-buttons-lg { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn-mega {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 28px; border-radius: var(--radius-full);
    transition: var(--transition);
}
.btn-mega i { font-size: 1.5rem; }
.btn-mega div { display: flex; flex-direction: column; text-align: left; }
.btn-mega strong { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.btn-mega span { font-size: 0.8rem; opacity: 0.8; }

.btn-mega.primary {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white; box-shadow: 0 10px 30px var(--primary-glow);
}
.btn-mega.primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 40px var(--primary-glow); }
.btn-mega.secondary {
    background: rgba(255,255,255,0.03); border: 1px solid var(--bg-panel-border);
    backdrop-filter: blur(10px);
}
.btn-mega.secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }

/* MOCKUP */
.hero-dashboard-mockup {
    flex: 1; min-width: 500px;
    background: rgba(15,15,20,0.6); backdrop-filter: blur(30px);
    border: 1px solid var(--bg-panel-border); border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transform: perspective(1200px) rotateY(-12deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-dashboard-mockup:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(2deg) translateY(-10px); }

.mockup-header { background: rgba(0,0,0,0.4); padding: 12px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--bg-panel-border); }
.mockup-header .dots i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; }
.mockup-header .r { background: #ff5f56; } .mockup-header .y { background: #ffbd2e; } .mockup-header .g { background: #27c93f; }
.mockup-url { background: rgba(255,255,255,0.05); padding: 4px 0; border-radius: 6px; flex:1; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

.mockup-body { display: flex; height: 380px; }
.m-sidebar { width: 140px; background: rgba(0,0,0,0.2); border-right: 1px solid var(--bg-panel-border); padding: 15px 10px; }
.ms-item { padding: 10px; border-radius: 8px; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 5px; display: flex; gap: 8px; align-items: center; }
.ms-item.active { background: rgba(99,102,241,0.2); color: var(--primary); }

.m-content { flex: 1; padding: 20px; }
.m-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.m-header h2 { font-size: 1.2rem; }
.m-user img { width: 32px; height: 32px; border-radius: 50%; }

.m-stats { display: flex; gap: 15px; margin-bottom: 25px; }
.m-stat-box { flex:1; background: rgba(255,255,255,0.03); border: 1px solid var(--bg-panel-border); padding: 15px; border-radius: 12px; }
.m-stat-title { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; }
.m-stat-val { font-size: 1.5rem; font-weight: 700; font-family: var(--font-heading); }

.m-toggle-row { background: rgba(255,255,255,0.02); padding: 12px 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; font-size: 0.85rem; border: 1px solid var(--bg-panel-border); }
.m-switch { width: 34px; height: 20px; background: rgba(255,255,255,0.1); border-radius: 10px; position: relative; }
.m-switch.on { background: var(--success); }
.m-switch::after { content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:white; }
.m-switch.on::after { left: 16px; }

@media (max-width: 1024px) {
    .hero-complex { flex-direction: column; text-align: center; padding-top: 10rem; }
    .hero-buttons-lg { justify-content: center; }
    .hero-dashboard-mockup { min-width: 100%; transform: none; }
}

/* ── TRUSTED BY (MARQUEE) ── */
.trusted-by { padding: 4rem 0; border-top: 1px solid var(--bg-panel-border); border-bottom: 1px solid var(--bg-panel-border); background: rgba(0,0,0,0.2); overflow: hidden; }
.trust-title { text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 2rem; }
.trust-title span { color: white; }
.marquee-wrapper { display: flex; width: 100%; overflow: hidden; position: relative; }
.marquee-wrapper::before, .marquee-wrapper::after { content: ''; position: absolute; top:0; width: 200px; height: 100%; z-index: 2; }
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }
.marquee-content { display: flex; animation: marquee 30s linear infinite; white-space: nowrap; gap: 3rem; padding: 0 2rem; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; opacity: 0.6; filter: grayscale(1); transition: var(--transition); }
.marquee-item:hover { opacity: 1; filter: grayscale(0); transform: scale(1.05); }
.marquee-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.mq-ph { width: 48px; height: 48px; border-radius: 50%; background: #2d2d3a; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.marquee-item span { font-weight: 600; font-family: var(--font-heading); font-size: 1.1rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── BENTO FEATURES ── */
.section-heading { text-align: center; max-width: 800px; margin: 0 auto 5rem; }
.section-heading h2 { font-size: 3rem; margin-bottom: 1rem; letter-spacing: -1px; }
.section-heading p { font-size: 1.2rem; color: var(--text-muted); }

.bento-features { padding: 8rem 2rem; max-width: 1400px; margin: 0 auto; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}
.bento-card {
    background: var(--bg-panel); border: 1px solid var(--bg-panel-border);
    border-radius: var(--radius-xl); padding: 2.5rem;
    position: relative; overflow: hidden; backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: flex-end;
    transition: var(--transition);
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.bento-large { grid-row: span 2; }
.bento-wide { grid-column: span 2; }

.bento-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: auto; z-index: 2; position: relative; }
.bento-card h3 { font-size: 1.6rem; margin-bottom: 0.5rem; z-index: 2; position: relative; }
.bento-card p { color: var(--text-muted); font-size: 1rem; z-index: 2; position: relative; }

.bento-bg-gradient { position: absolute; bottom: -50%; right: -50%; width: 150%; height: 150%; border-radius: 50%; opacity: 0; transition: var(--transition); z-index: 1; filter: blur(60px); }
.bento-card:hover .bento-bg-gradient { opacity: 0.15; }
.bento-bg-gradient.music { background: var(--primary); }
.bento-bg-gradient.lock { background: var(--danger); }
.bento-bg-gradient.support { background: var(--success); }
.bento-bg-gradient.game { background: var(--warning); left:-50%; }

@media (max-width: 900px) { .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } .bento-large, .bento-wide { grid-row: span 1; grid-column: span 1; } }

/* ── SHOWCASE SECTION ── */
.showcase-section { padding: 8rem 2rem; max-width: 1400px; margin: 0 auto; overflow: hidden;}
.showcase-row { display: flex; align-items: center; gap: 6rem; margin-bottom: 10rem; }
.showcase-row.reverse { flex-direction: row-reverse; }

.showcase-text { flex: 1; }
.showcase-badge { display: inline-block; padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem; background: rgba(99,102,241,0.1); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }
.showcase-text h2 { font-size: 3rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
.showcase-text p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }

.check-list { list-style: none; margin-bottom: 2.5rem; }
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; font-size: 1.1rem; color: #cbd5e1; }
.check-list i { color: var(--primary); font-size: 1.2rem; }

.inline-link { font-size: 1.1rem; color: var(--success); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.inline-link:hover { gap: 12px; color: #34d399; }

.showcase-visual { flex: 1; position: relative; display: flex; justify-content: center; }
.visual-card { background: rgba(22,22,30,0.7); backdrop-filter: blur(20px); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-xl); padding: 2rem; box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative; }
.visual-card::before { content:''; position: absolute; top:-2px; left:-2px; right:-2px; bottom:-2px; background: linear-gradient(135deg, var(--primary), transparent, transparent, var(--accent)); border-radius: calc(var(--radius-xl) + 2px); z-index: -1; opacity: 0.5; }
.float-anim { animation: float 6s ease-in-out infinite; }

/* Mockup Rank Card */
.rank-card { display: flex; align-items: center; gap: 20px; width: 100%; max-width: 450px; }
.rank-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--bg-dark); }
.rank-info { flex:1; }
.r-name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.r-name span { color: var(--text-muted); font-size: 1rem; }
.r-bar-container { background: rgba(255,255,255,0.1); height: 12px; border-radius: 6px; margin-bottom: 6px; overflow: hidden; }
.r-bar { background: linear-gradient(90deg, var(--primary), var(--accent)); height: 100%; border-radius: 6px; }
.r-stats { font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.rank-badge { width: 40px; height: 40px; background: rgba(250,204,21,0.2); color: #facc15; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }

/* Mockup Eco Card */
.eco-card { width: 100%; max-width: 400px; }
.e-header { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 600; margin-bottom: 2rem; }
.e-bal { display: flex; flex-direction: column; margin-bottom: 2rem; }
.e-amount { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; line-height: 1; }
.e-coin { padding-left: 5px; color: #10b981; font-weight: 600; }
.e-buttons { display: flex; gap: 10px; }
.e-buttons button { flex:1; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--bg-panel-border); border-radius: 12px; color: white; font-weight: 600; }
.e-buttons button:nth-child(2) { background: #10b981; border: none; color: #000; }

@media (max-width: 900px) { .showcase-row, .showcase-row.reverse { flex-direction: column; gap: 4rem; text-align: center; } .check-list li { justify-content: center; } }


/* ── LIVE STATS ── */
.live-stats { padding: 8rem 2rem; position: relative; overflow: hidden; text-align: center; }
.bg-blur-circle { position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 60%); filter: blur(80px); z-index: -1; }
.stats-header h2 { font-size: 3.5rem; margin-bottom: 1rem; }
.stats-header p { font-size: 1.2rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4rem; }
.pulse-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 0 rgba(16,185,129,0.7); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1400px; margin: 0 auto; }
.stat-item { padding: 3rem 2rem; background: rgba(255,255,255,0.02); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-xl); backdrop-filter: blur(10px); }
.stat-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.stat-item h3 { font-size: 3.5rem; font-weight: 800; margin-bottom: 0.5rem; color: white; }
.stat-item span { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ── FAQ ACCORDION ── */
.faq-section { padding: 8rem 2rem; max-width: 800px; margin: 0 auto; }
.faq-accordion { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-panel); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.faq-item.active { border-color: rgba(99,102,241,0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.3); background: rgba(30,30,42,0.6); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; background: transparent; border: none; color: white; font-size: 1.15rem; font-weight: 600; text-align: left; cursor: pointer; font-family: var(--font-body); }
.faq-btn i { color: var(--primary); transition: 0.3s; }
.faq-content { padding: 0 2rem 1.5rem; color: var(--text-muted); line-height: 1.7; }
/* Alpine collapse transition support if not loaded correctly */
.faq-content[style*="display: none"] { display: none; }

/* ── BOTTOM CTA ── */
.cta-bottom { position: relative; padding: 10rem 2rem; text-align: center; border-top: 1px solid var(--bg-panel-border); overflow: hidden; }
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: 4rem; margin-bottom: 1.5rem; letter-spacing: -1.5px; }
.cta-content p { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 3rem; }
.cta-gradient-overlay { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 500px; background: radial-gradient(ellipse at bottom, rgba(99,102,241,0.2) 0%, transparent 70%); z-index: 1; pointer-events: none; }

/* ── MEGA FOOTER ── */
.mega-footer { border-top: 1px solid var(--bg-panel-border); background: #050508; padding: 6rem 2rem 2rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 6rem; }
.brand-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem; color: white; }
.footer-brand p { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; max-width: 350px; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white; transition: var(--transition); border: 1px solid var(--bg-panel-border); }
.social-links a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

.footer-links h3 { font-size: 1.2rem; margin-bottom: 2rem; color: white; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--bg-panel-border); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.made-with a { color: var(--primary); font-weight: 600; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 3rem; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }


/* ──────────────────────────────────────────────────────────
   PREVIOUS DASHBOARD & SERVERS PAGE COMPATIBILITY STYLES
   ────────────────────────────────────────────────────────── */
.app { display: flex; height: 100vh; overflow: hidden; background: var(--bg-dark); }
.sidebar { width: 280px; background: rgba(10, 10, 15, 0.6); border-right: 1px solid var(--bg-panel-border); display: flex; flex-direction: column; padding: 1.5rem; backdrop-filter: blur(20px); z-index: 50; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; margin-bottom: 2.5rem; padding: 0 10px; }
.nav-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin: 1.5rem 0 0.75rem 10px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--radius-md); background: transparent; color: var(--text-main); border: none; cursor: pointer; text-align: left; font-size: 0.95rem; font-weight: 500; transition: var(--transition); margin-bottom: 4px; font-family: var(--font-body); }
.nav-item svg { color: var(--text-muted); transition: var(--transition); }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.nav-item.active { background: var(--primary); color: white; box-shadow: 0 4px 15px var(--primary-glow); }
.nav-item.active svg { color: white; }

.main-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.topbar { padding: 1rem 2.5rem; background: transparent; border-bottom: 1px solid var(--bg-panel-border); display: flex; justify-content: space-between; align-items: center;}
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-heading); }
.breadcrumb a:hover { color: white; }
#breadcrumbGuild { color: white; font-weight: 600; }

.profile-dropdown { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--bg-panel-border); padding: 6px 16px 6px 6px; border-radius: var(--radius-full); color: white; font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: var(--transition); }
.profile-btn:hover { background: rgba(255,255,255,0.1); }
.profile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.dropdown-menu { position: absolute; top: calc(100% + 10px); right: 0; background: rgba(20, 20, 28, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-md); width: 220px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text-main); font-size: 0.9rem; border-radius: 8px; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(239, 68, 68, 0.1); }

.guild-main { flex: 1; padding: 2.5rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.guild-main::-webkit-scrollbar { width: 6px; }
.guild-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* Dashboard Content */
.section-header { margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { font-size: 2rem; margin-bottom: 5px; }
.section-header p { color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card { background: var(--bg-panel); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; backdrop-filter: blur(10px); }
.stat-value { font-size: 2.5rem; font-family: var(--font-heading); font-weight: 800; margin-bottom: 5px; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.systems-section-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 700; }
.systems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.system-card { background: var(--bg-panel); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-lg); padding: 1.5rem; cursor: pointer; transition: var(--transition); backdrop-filter: blur(10px); }
.system-card:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.system-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.system-card-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--primary); border: 1px solid var(--bg-panel-border); }
.system-card h4 { font-size: 1.1rem; }
.system-card p { color: var(--text-muted); font-size: 0.9rem; }
.status-badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.active { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.inactive { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Forms & Cards used by guild.js */
.card { background: var(--bg-panel); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; backdrop-filter: blur(10px); }
.card-title { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--bg-panel-border); padding-bottom: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group.disabled { opacity: 0.5; pointer-events: none; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
input[type="text"], select, textarea { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--bg-panel-border); color: white; padding: 12px 16px; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition); }
input[type="text"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); background: rgba(0,0,0,0.4); }
textarea { resize: vertical; min-height: 100px; }

/* Toggles */
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: rgba(255,255,255,0.02); border-radius: var(--radius-md); border: 1px solid var(--bg-panel-border); margin-bottom: 1rem; }
.toggle-info h4 { font-size: 1rem; margin-bottom: 2px; }
.toggle-info p { font-size: 0.85rem; color: var(--text-muted); }
.toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle 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); border-radius: 30px; transition: 0.4s; border: 1px solid var(--bg-panel-border); }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 3px; background-color: white; border-radius: 50%; transition: 0.4s; }
input:checked + .toggle-slider { background-color: var(--success); border-color: var(--success); }
input:checked + .toggle-slider:before { transform: translateX(20px); }

/* Auto Responses Lists */
.ar-list { display: flex; flex-direction: column; gap: 10px; }
.ar-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(0,0,0,0.2); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-md); }
.ar-trigger { font-weight: 600; color: var(--primary); width: 30%; }
.ar-response { flex:1; color: var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Loaders & Toasts */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; gap: 1rem; color: var(--text-muted); }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(99, 102, 241, 0.2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 2rem; right: 2rem; display:flex; align-items:center; gap: 12px; padding: 14px 24px; border-radius: var(--radius-md); color: white; font-weight: 500; font-size: 0.95rem; transform: translateY(100px); opacity: 0; transition: var(--transition); z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: rgba(16, 185, 129, 0.9); border: 1px solid var(--success); backdrop-filter: blur(10px); }
.toast.error { background: rgba(239, 68, 68, 0.9); border: 1px solid var(--danger); backdrop-filter: blur(10px); }
.empty { text-align: center; color: var(--text-muted); padding: 3rem; font-size: 1.1rem; background: rgba(255,255,255,0.02); border-radius: var(--radius-lg); border: 1px dashed var(--bg-panel-border); }

/* SERVERS PAGE COMPAT */
.servers-page { padding: 4rem; max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }
.servers-section-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-muted); margin: 2rem 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--bg-panel-border); grid-column: 1 / -1; }
.servers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.server-card { background: var(--bg-panel); border: 1px solid var(--bg-panel-border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; align-items: center; gap: 1.25rem; transition: var(--transition); backdrop-filter: blur(10px); }
.server-card:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.4); background: var(--bg-panel-hover); }
.server-icon { position: relative; width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.server-icon img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.server-icon-placeholder { width: 100%; height: 100%; border-radius: 16px; background: linear-gradient(135deg, #2d2d3a, #1f1f2e); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; color: white; }
.bot-badge { position: absolute; bottom: -6px; right: -6px; width: 24px; height: 24px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; border: 3px solid var(--bg-dark); }
.server-info { flex: 1; overflow: hidden; }
.server-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.server-name-row h3 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: white; }
.boost-badge { background: rgba(244, 127, 255, 0.1); color: #f47fff; padding: 2px 6px; border-radius: 6px; font-size: 0.75rem; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border: 1px solid rgba(244, 127, 255, 0.2); }
.server-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); }
.server-status.added { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.server-status.not-added { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
