:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --border-color: rgba(240, 246, 252, 0.1);
    --sidebar-width: 280px;
    --topbar-height: 80px;
    --transition-speed: 0.3s;
    --font-inter: 'Inter', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-inter);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 10px; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--accent-glow);
}

.logo-text {
    font-family: var(--font-montserrat);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed);
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(0, 242, 254, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    border-left: 3px solid var(--accent-primary);
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.discord-widget {
    background-color: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
}

/* Main Content */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
}

.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.search-bar {
    background-color: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 400px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
    border: none;
}

.btn-ghost { color: var(--text-primary); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #0d1117;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

/* Hero Section */
.hero { padding: 6rem 3rem; position: relative; overflow: hidden; }
.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -2;
    opacity: 0.3;
}

.hero-tagline {
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-title {
    font-family: var(--font-montserrat);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

.hero-description { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 2.5rem; line-height: 1.6; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 150px); gap: 2rem; margin-top: 4rem; }
.stat-item h3 { font-size: 2rem; font-weight: 800; }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; font-weight: 600; }

/* Sections */
.section { padding: 4rem 3rem; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; font-family: var(--font-montserrat); font-weight: 800; margin-bottom: 0.5rem; }

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

.creator-card {
    background: rgba(22, 27, 34, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.creator-card:hover {
    background: rgba(33, 38, 45, 0.6);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.creator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), #fff);
    opacity: 0;
    transition: var(--transition-speed);
}
.creator-card:hover::before { opacity: 1; }

.creator-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.creator-avatar { width: 60px; height: 60px; border-radius: 12px; background-color: var(--bg-tertiary); object-fit: cover; }
.creator-tags { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tag { background-color: var(--bg-tertiary); color: var(--text-secondary); padding: 0.3rem 0.8rem; border-radius: 5px; font-size: 0.75rem; font-weight: 600; }
.creator-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.price { font-weight: 700; color: var(--text-primary); }
.price span { color: var(--text-muted); font-size: 0.8rem; }

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px; padding: 2.5rem;
    width: 90%; max-width: 480px;
    position: relative; transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute; top: 24px; right: 24px;
    background: var(--bg-tertiary); border: 1px solid var(--border-color);
    color: var(--text-muted); width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}

/* Toast System */
.toast-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 12px; z-index: 1100; }
.toast {
    background: rgba(22, 27, 34, 0.85);
    border: 1px solid var(--border-color);
    padding: 1.2rem 1.6rem; border-radius: 16px;
    color: var(--text-primary); display: flex; align-items: center; gap: 14px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px); min-width: 280px;
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
.toast.success { border-left: 4px solid var(--accent-primary); }
.toast.info { border-left: 4px solid var(--accent-secondary); }

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

/* Animations */
.animate { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.animate.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) {
    .sidebar { width: 80px; padding: 2rem 0.5rem; }
    .logo-text, .nav-item span, .sidebar-footer, .search-bar { display: none; }
    .main-wrapper { margin-left: 80px; }
    .nav-item { justify-content: center; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .section { padding: 3rem 1.5rem; }
}
