:root {
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #1E40AF;
    --accent: #60A5FA;
    --background: #030712;
    --card: #0b0f19;
    --card-surface: #0e1322;
    --border-color: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: #F8FAFC;
    overflow-x: hidden;
}

/* Gradient Text & Brand */
.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Unified Pill Navigation Container */
.nav-pill-container {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-pill-item {
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94A3B8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-pill-item:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.nav-pill-item.active {
    background: #3B82F6;
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Custom Scrollbars */
#members-list, #profile-display, .custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #3B82F6 #0B0F19;
}

#members-list::-webkit-scrollbar,
#profile-display::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

#members-list::-webkit-scrollbar-track,
#profile-display::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

#members-list::-webkit-scrollbar-thumb,
#profile-display::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #3B82F6;
    border-radius: 9999px;
}

/* Discord View Styles */
.role-item {
    transition: all 0.2s ease;
}

.role-item.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: #FFFFFF;
    border-left: 3px solid #3B82F6;
}

.member-item {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.member-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.member-item.active {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Mobile 3D Cards */
.mobile-card {
    background-color: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.mobile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Discord Floating Action Button */
.discord-float {
    position: fixed;
    z-index: 40;
    bottom: 2rem;
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #5865F2;
    color: #FFFFFF;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-float:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.6);
}

/* Editor Specific Styles */
.editor-controls { display: none; }
body.editor-active .editor-controls { display: flex; }
.sortable-ghost {
    opacity: 0.4;
    background: #1e293b;
    border: 1px dashed #3B82F6;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #0b0f19;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.15);
    border-radius: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-input {
    background-color: #030712;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    transition: border-color 0.2s ease;
}

.modal-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
