:root {
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --primary: #7C18D4;
    --primary-glow: rgba(124, 24, 212, 0.5);
    --secondary: #3498db;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

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

/* Header & Nav */
header {
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gradient-text {
    background: linear-gradient(to right, #7C18D4, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 100px 0;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Glass Cards */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.main-card {
    width: 100%;
    max-width: 500px;
    padding: 0;
    overflow: hidden;
}

.card-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-body {
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
}

.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; }

/* Features Section */
.features {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s both;
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-btns {
        justify-content: center;
    }
}

/* Join Us Section */
.join-us {
    padding: 80px 0;
    text-align: center;
}

.join-us .join-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(135deg, rgba(124, 24, 212, 0.1), rgba(52, 152, 219, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(124, 24, 212, 0.1);
    transition: transform 0.3s ease;
}

.join-us .join-container:hover {
    transform: scale(1.02);
}

.join-us .btn-primary {
    padding: 20px 45px;
    font-size: 1.3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* Floating Reviews Sidebar */
.reviews-sidebar {
    position: fixed;
    right: 30px;
    top: 150px;
    width: 280px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: fadeIn 1s ease-out;
}

.reviews-header {
    padding: 15px;
    background: rgba(124, 24, 212, 0.1);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reviews-content {
    flex: 1;
    position: relative;
    padding: 10px;
}

.reviews-scroller {
    position: absolute;
    width: 100%;
    animation: scrollUp 20s linear infinite;
}

.review-card {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.review-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
}

.review-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.review-text {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.4;
}

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

@media (max-width: 1200px) {
    .reviews-sidebar { display: none; }
}

/* Sidebar Layout */
.sidebar-left, .sidebar-right {
    position: fixed;
    top: 100px;
    bottom: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: fadeIn 1s ease-out;
}

.sidebar-left { left: 20px; }
.sidebar-right { right: 20px; }

.sidebar-header {
    padding: 20px;
    background: rgba(124, 24, 212, 0.1);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-content {
    flex: 1;
    position: relative;
    padding: 15px;
    overflow: hidden;
}

.scroller-v {
    position: absolute;
    width: calc(100% - 30px);
    animation: scrollUp 25s linear infinite;
}

.scroller-v:hover { animation-play-state: paused; }

.sidebar-card {
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.sidebar-card:hover { background: rgba(255,255,255,0.05); border-color: var(--primary); }

.card-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.card-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.announcement-card {
    border-left: 4px solid #f1c40f;
    background: rgba(241, 196, 15, 0.05);
}

.announcement-card h4 {
    color: #f1c40f;
    margin-bottom: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

@media (max-width: 1400px) {
    .sidebar-left, .sidebar-right { display: none; }
}

/* Common Dashboard Styles */
.image-preview-container {
    margin-top: 15px;
    position: relative;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    text-align: center;
}

.image-preview-container:hover, .image-preview-container.dragover {
    border-color: var(--primary);
    background: rgba(124, 24, 212, 0.05);
}

.image-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.drop-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
    padding: 20px;
}

.upload-zone {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.btn-upload {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-upload:hover {
    background: rgba(255,255,255,0.1);
}

.variable-btn, .variable-badge {
    background: rgba(124, 24, 212, 0.1);
    border: 1px solid rgba(124, 24, 212, 0.3);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

.variable-btn:hover, .variable-badge:hover {
    background: var(--primary);
    color: #fff;
}

/* Dashboard & Sidebar Shared Styles */
.dashboard-container { display: flex; min-height: 100vh; width: 100%; }

.sidebar { 
    width: 280px; 
    background: rgba(15, 15, 20, 0.4); 
    backdrop-filter: blur(20px); 
    border-right: 1px solid var(--glass-border); 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    position: sticky; 
    top: 0; 
    height: 100vh; 
    z-index: 100; 
    flex-shrink: 0; 
    overflow-y: auto; 
    scrollbar-width: thin; 
    scrollbar-color: var(--primary) transparent; 
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.sidebar-logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 40px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #fff; 
    text-decoration: none; 
}
.sidebar-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.guild-list { flex: 1; overflow-y: auto; padding-right: 5px; }
.guild-card { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px; 
    border-radius: 12px; 
    margin-bottom: 10px; 
    cursor: pointer; 
    transition: 0.3s; 
    border: 1px solid transparent; 
    color: var(--text-gray); 
    text-decoration: none; 
}
.guild-card:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.guild-card.active { background: rgba(124, 24, 212, 0.2); border-color: var(--primary); color: #fff; }

.guild-icon { 
    width: 40px; 
    height: 40px; 
    border-radius: 10px; 
    background: #222; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    overflow: hidden; 
    flex-shrink: 0;
}
.guild-icon img { width: 100%; height: 100%; object-fit: cover; }

.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: calc(100% - 280px); 
    position: fixed; 
    top: 0; 
    left: 280px; 
    z-index: 1001; 
    background: #0f0f14; 
    backdrop-filter: blur(20px); 
    padding: 25px 40px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    gap: 20px; 
    transition: all 0.3s ease; 
}
.top-bar h2 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; font-size: 1.5rem; }
.top-bar-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.main-content { 
    flex: 1; 
    padding: 120px 60px 40px; 
    min-width: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: stretch; 
}

.user-profile { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    background: rgba(255, 255, 255, 0.03); 
    padding: 8px 20px; 
    border-radius: 50px; 
    border: 1px solid var(--glass-border); 
}
.user-avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    border: 2px solid var(--primary); 
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.badge-danger { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }
