:root {
    --primary-color: #4ECDC4;
    --primary-dark: #359691;
    --primary-light: #6ED7CE;
    --secondary-color: #45B7AA;
    --accent-color: #5B9BD5;
    --background: #0A1428;
    --surface: #1A2238;
    --surface-light: #243248;
    --text-primary: #FFFFFF;
    --text-secondary: #B8D4E6;
    --text-muted: #85A8C6;
    --border: #243248;
    --success: #4ECDC4;
    --warning: #F59E0B;
    --error: #EF4444;
    --gradient-primary: linear-gradient(135deg, #4ECDC4 0%, #5B9BD5 100%);
    --gradient-secondary: linear-gradient(135deg, #359691 0%, #4ECDC4 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --navbar-height: 80px;
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.invite-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Discord Auth System */
.auth-section {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.login-btn {
    background: #5865F2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.login-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.user-dropdown {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    min-height: 44px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.15s ease;
    width: 12px;
    height: 8px;
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: fixed;
    top: calc(var(--navbar-height, 80px) + 8px);
    right: 20px;
    min-width: 200px;
    background: rgba(26, 34, 56, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 205, 196, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    overflow: hidden;
    padding: 8px 0;
}

.user-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown.opening .dropdown-menu {
    opacity: 0;
    visibility: visible;
    transform: translateY(-8px) scale(0.98);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.15s ease;
    position: relative;
    margin: 0;
    border-radius: 8px;
    margin: 2px 8px;
}

.dropdown-item:hover {
    background-color: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    transform: translateX(2px);
}

.dropdown-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.dropdown-item:hover svg {
    opacity: 1;
    color: #4ECDC4;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 6px 12px;
}

.logout-item {
    color: #dc3545;
}

.logout-item {
    color: #f87171;
}

.logout-item:hover {
    background-color: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
    transform: translateX(2px);
}

.logout-item svg {
    color: #f87171;
    opacity: 0.8;
}

.logout-item:hover svg {
    color: #fca5a5;
    opacity: 1;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
    padding: 120px 0 80px;
    background: 
        radial-gradient(ellipse at top left, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(91, 155, 213, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.hero-logo {
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius-lg);
    filter: drop-shadow(0 0 30px rgba(78, 205, 196, 0.4)) drop-shadow(0 0 60px rgba(91, 155, 213, 0.2));
}

.features-preview {
    padding: 80px 0;
    background: var(--surface);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Improve Team Icon styling */
.team-icon i {
    font-size: 1.75rem;
    color: inherit;
}

/* Improve Metric Icon styling */
.metric-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    padding: 80px 0;
    background: 
        radial-gradient(ellipse at center, rgba(78, 205, 196, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at top, rgba(91, 155, 213, 0.08) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color);
}

.icon-shield:before { content: "\f3ed"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.icon-music:before { content: "\f001"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.icon-cog:before { content: "\f013"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.icon-gamepad:before { content: "\f11b"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.icon-chart:before { content: "\f080"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.icon-settings:before { content: "\f085"; font-family: "Font Awesome 6 Free"; font-weight: 900; }

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .auth-section {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-section {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .login-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .user-profile {
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }
    
    .user-name {
        font-size: 0.8rem;
        max-width: 80px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
    }
    
    .features-preview {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 2.5rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

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

.legal-section ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 1.5rem;
}

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

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.contact-info {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
}

.about-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 2.5rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-section ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 1.5rem;
}

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

.features-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin-bottom: 0;
}

.promise-box {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: all 0.5s ease;
    cursor: pointer;
    user-select: none;
}

.promise-box:hover {
    transform: scale(1.02);
}

.promise-box p {
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-primary);
}

.about-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .about-page {
        padding: 100px 0 60px;
    }
    
    .about-header h1 {
        font-size: 2rem;
    }
    
    .about-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-cta {
        flex-direction: column;
        align-items: center;
    }
}

.error-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.error-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.error-logo {
    margin-bottom: 2rem;
}

.floating-logo {
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius-lg);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.4)) drop-shadow(0 0 40px rgba(91, 155, 213, 0.2));
}

.floating-logo.sad {
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4)) drop-shadow(0 0 40px rgba(239, 68, 68, 0.2)) grayscale(20%);
}

.error-number {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

.coming-soon {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.coming-soon h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    width: 35%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

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

.bamboo-decoration {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1;
}

.bamboo-stalk {
    position: absolute;
    width: 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    opacity: 0.1;
    border-radius: 10px;
}

.bamboo-stalk.left {
    left: 5%;
    height: 80%;
    top: 10%;
    animation: sway 4s ease-in-out infinite;
}

.bamboo-stalk.right {
    right: 5%;
    height: 70%;
    top: 15%;
    animation: sway 4s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@media (max-width: 768px) {
    .error-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .bamboo-stalk {
        display: none;
    }
}

.status-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.status-header {
    text-align: center;
    margin-bottom: 3rem;
}

.status-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.status-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.status-content {
    max-width: 1000px;
    margin: 0 auto;
}

.status-overview {
    margin-bottom: 3rem;
}

.main-status {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.main-status.online {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.main-status.offline {
    border-color: var(--error);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.status-indicator {
    margin-right: 1.5rem;
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px var(--success);
}

.main-status.offline .status-dot {
    background: var(--error);
    box-shadow: 0 0 20px var(--error);
}

.status-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

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

.metric-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.metric-icon {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.metric-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.metric-offline {
    color: var(--error) !important;
}

.metric-card-offline {
    border-color: var(--error);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.metric-icon-offline i {
    color: var(--error) !important;
    animation: pulse 2s infinite;
}

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

.status-history {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.status-history h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.history-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    background: var(--success);
}

.history-item.offline .history-dot {
    background: var(--error);
}

.history-content {
    flex: 1;
}

.history-status {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.history-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.history-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.status-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .status-page {
        padding: 100px 0 60px;
    }
    
    .status-header h1 {
        font-size: 2rem;
    }
    
    .main-status {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .status-indicator {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .status-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .status-history {
        padding: 1.5rem;
    }
    
    /* Discord Auth Mobile Styles */
    .auth-section {
        margin-left: 0;
    }
    
    .user-name {
        max-width: 80px;
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-profile {
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }
    
    .dropdown-menu {
        min-width: calc(100vw - 20px);
        max-width: 280px;
        right: 10px !important;
        left: auto !important;
        top: calc(var(--navbar-height) + 8px) !important;
        background: rgba(26, 29, 41, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .dropdown-item {
        padding: 14px 16px;
        font-size: 14px;
        color: #cbd5e1;
        border-radius: 8px;
        margin: 2px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .dropdown-item:hover {
        background-color: rgba(16, 185, 129, 0.15);
        color: #10b981;
        transform: none;
    }
    
    .user-profile {
        padding: 6px 10px;
        gap: 8px;
        min-height: 40px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-name {
        font-size: 13px;
        max-width: 90px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .mobile-menu {
        display: flex;
    }
}

/* Small mobile devices - Better dropdown positioning */
@media (max-width: 480px) {
    .dropdown-menu {
        min-width: calc(100vw - 30px) !important;
        right: 15px !important;
        left: 15px !important;
        max-width: none !important;
        transform: translateY(-4px) scale(0.98) !important;
    }
    
    .dropdown-item {
        padding: 16px !important;
        font-size: 15px !important;
        min-height: 48px !important;
    }
    
    .user-profile {
        padding: 4px 8px !important;
        gap: 6px !important;
    }
}

/* ===== TEAM PAGE STYLES ===== */
.team-page {
    padding-top: var(--navbar-height);
}

.team-section {
    padding: 4rem 0;
    background: var(--surface);
}

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

.team-card {
    background: rgba(10, 27, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.member-avatar {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 120px;
    height: 120px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.default-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    border: 4px solid var(--primary-color);
}

.role-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--background);
}

.role-badge.role-developer {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
}

.role-badge.role-support {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    color: white;
}

.member-info {
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.member-since {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.join-team-section {
    padding: 4rem 0;
    background: var(--background);
    text-align: center;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Team page responsive design */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .member-avatar {
        width: 100px;
        height: 100px;
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
    
    .join-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 2rem 0;
    }
    
    .team-card {
        padding: 1rem;
    }
    
    .member-avatar {
        width: 80px;
        height: 80px;
    }
    
    .default-avatar {
        font-size: 2rem;
    }
    
    .member-name {
        font-size: 1.25rem;
    }
}

/* ===== ADMIN PAGE STYLES ===== */
.admin-page {
    padding-top: calc(var(--navbar-height) + 2rem);
    min-height: calc(100vh - var(--navbar-height));
    background: var(--background);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.permission-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permission-badge.permission-0 {
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
    color: white;
}

.permission-badge.permission-1 {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    color: white;
}

.permission-badge.permission-2 {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
}

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

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.admin-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface-light);
}

.action-icon {
    font-size: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.activity-text {
    color: var(--text-secondary);
}

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

/* Users Management */
.users-section {
    background: rgba(10, 27, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.users-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: flex;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.table-row {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background: var(--surface);
}

.table-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-cell:nth-child(1) { flex: 2; }
.table-cell:nth-child(2) { flex: 1; }
.table-cell:nth-child(3) { flex: 1; }
.table-cell:nth-child(4) { flex: 1; }

.user-cell {
    gap: 1rem;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar-small {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.permission-select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 100px;
}

.permission-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    width: 100%;
}

/* Admin responsive design */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .table-header {
        display: none;
    }
    
    .table-row {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .table-cell {
        justify-content: space-between;
    }
    
    .table-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.875rem;
    }
    
    .user-cell::before {
        content: 'User';
    }
}

@media (max-width: 480px) {
    .admin-page {
        padding-top: calc(var(--navbar-height) + 1rem);
    }
    
    .admin-header h1 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TEAM PAGE STYLES ===== */
.team-sections {
    padding: 4rem 0;
    background: var(--surface);
}

.team-section-wrapper {
    margin-bottom: 3rem;
}

.team-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.team-icon {
    font-size: 1.75rem;
}

.developer-icon {
    color: #A855F7;
    filter: none;
}

.support-icon {
    filter: hue-rotate(200deg);
}

.team-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
}

.team-member-card {
    background: rgba(26, 34, 56, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    min-height: 120px;
}

.team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.developer-card {
    border-left: 4px solid #A855F7;
}

.support-card {
    border-left: 4px solid #4ECDC4;
}

.member-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.member-avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    border: 3px solid var(--primary-color) !important;
    object-fit: cover !important;
    display: block !important;
}

.role-badge {
    position: absolute;
    bottom: 8px;
    right: -2px;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--surface);
}

.developer-badge {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.support-badge {
    background: linear-gradient(135deg, #4ECDC4 0%, #359691 100%);
    color: white;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-role {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.member-description {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
}

.empty-team-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-team-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.empty-team-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Team page responsive design */
@media (max-width: 768px) {
    .team-section-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }
    
    .team-icon {
        font-size: 1.5rem;
    }
    
    .team-cards-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-member-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .member-avatar {
        width: 56px !important;
        height: 56px !important;
    }
    
    .member-info {
        text-align: center;
    }
    
    .member-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

@media (max-width: 480px) {
    .team-sections {
        padding: 2rem 0;
    }
    
    .team-member-card {
        padding: 0.75rem;
    }
    
    .member-avatar {
        width: 48px !important;
        height: 48px !important;
    }
    
    .role-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
    }
}

/* Enhanced Admin Dashboard Styles */
.admin-header h1 i {
    color: var(--primary-color);
}

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

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.guild-icon { background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%); }
.users-icon { background: linear-gradient(135deg, #059669 0%, #10B981 100%); }
.commands-icon { background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%); }
.uptime-icon { background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%); }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #EF4444;
    animation: none;
}

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

.status-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.1);
    border-radius: var(--border-radius);
}

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

.metric span {
    font-weight: 600;
    color: var(--primary-color);
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.restart-btn {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.cache-btn {
    background: linear-gradient(135deg, #7C2D12 0%, #EA580C 100%);
}

.nav-card {
    text-align: center;
}

.nav-card h3 {
    margin-bottom: 0.75rem;
}

.nav-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.nav-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.alert-count {
    background: #EF4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.alerts-list {
    max-height: 200px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    border-left: 3px solid;
}

.alert-item.info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3B82F6;
}

.alert-icon {
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.view-all-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

.logs-preview {
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.log-entry {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
}

.log-entry.info { background: rgba(59, 130, 246, 0.05); }
.log-entry.success { background: rgba(34, 197, 94, 0.05); }

.log-time {
    color: var(--text-muted);
}

.log-level {
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.7rem;
    background: #3B82F6;
    color: white;
}

.log-entry.success .log-level {
    background: #22C55E;
}

.log-message {
    color: var(--text-primary);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Enhanced Bot Control Styles */
.alert-item.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-left-color: #22C55E;
}

.alert-item.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: #EF4444;
}

.alert-item.warning {
    background-color: rgba(251, 191, 36, 0.1);
    border-left-color: #FBBF24;
}

.alert-item.loading {
    background-color: rgba(107, 114, 128, 0.1);
    border-left-color: #6B7280;
}

.alert-item.success .alert-icon {
    color: #22C55E;
}

.alert-item.error .alert-icon {
    color: #EF4444;
}

.alert-item.warning .alert-icon {
    color: #FBBF24;
}

.alert-item.loading .alert-icon {
    color: #6B7280;
}

.bot-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.bot-detail-item:last-child {
    border-bottom: none;
}

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

.detail-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.detail-value.status-online {
    color: #22C55E;
    font-weight: 600;
}

.detail-value.status-offline {
    color: #EF4444;
    font-weight: 600;
}

.detail-value.status-errored {
    color: #FBBF24;
    font-weight: 600;
}

.action-btn.danger {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.action-btn.danger:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
}

.action-btn.secondary:hover {
    background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.action-btn:disabled:hover {
    transform: none;
    background: var(--gradient-primary);
}

.nav-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.nav-card:hover .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    transition: transform 0.2s ease;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Server Management Styles */
.server-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

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

.filter-select, .filter-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-select:focus, .filter-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.servers-section {
    background: rgba(10, 27, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

.servers-table {
    display: flex;
    flex-direction: column;
}

.server-row {
    transition: background-color 0.2s ease;
}

.server-row:hover {
    background: rgba(78, 205, 196, 0.05);
}

.server-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.server-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-server-avatar {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.server-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.server-name {
    font-weight: 600;
    color: var(--text-primary);
}

.server-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.server-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.feature-badge {
    background: rgba(78, 205, 196, 0.2);
    color: var(--primary-color);
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.owner-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.member-stats {
    text-align: right;
}

.member-count {
    font-weight: 600;
    color: var(--text-primary);
}

.online-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.region-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.server-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mini-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.server-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn-small {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.action-btn-small.primary {
    background: var(--gradient-primary);
    color: white;
}

.action-btn-small.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.action-btn-small:hover {
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin: 1rem 0 0.5rem 0;
}

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

/* Server Details Page */
.config-section {
    background: rgba(10, 27, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: rgba(78, 205, 196, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(78, 205, 196, 0.1);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border-radius: var(--border-radius);
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-family: monospace;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

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

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input, .form-select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.feature-toggles h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.toggle-item {
    background: rgba(78, 205, 196, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

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

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

.toggle-text {
    font-weight: 500;
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.role-item, .channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.role-info, .channel-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.role-name, .channel-name {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-color {
    font-size: 0.8rem;
}

.role-members, .channel-type {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.role-actions, .channel-actions {
    display: flex;
    gap: 0.5rem;
}

.channel-category {
    margin-bottom: 2rem;
}

.category-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.category-channels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    animation: slideInRight 0.3s ease forwards;
}

.notification.success {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.notification.error {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    color: var(--text-primary);
}

.loading-content i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.loading-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Command Analytics Styles */
.performance-controls {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.performance-controls label {
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

.commands-list {
    max-height: 400px;
    overflow-y: auto;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.command-item:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
}

.command-rank {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.command-info {
    flex: 1;
}

.command-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: monospace;
}

.command-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.usage-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.error-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.error-overview {
    display: flex;
    gap: 2rem;
}

.error-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.error-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.error-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
}

.error-rank {
    font-weight: 700;
    color: #EF4444;
    min-width: 30px;
    text-align: center;
}

.error-info {
    flex: 1;
}

.error-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.error-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.command-search {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-1px);
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(78, 205, 196, 0.1);
}

.result-name {
    font-weight: 600;
    color: var(--text-primary);
    font-family: monospace;
    margin-bottom: 0.25rem;
}

.result-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.command-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.detail-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.recent-usage-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.usage-item {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.usage-time {
    color: var(--text-muted);
    font-family: monospace;
}

.usage-user, .usage-server {
    color: var(--text-secondary);
}

.usage-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.usage-status.success {
    color: #22C55E;
}

.usage-status.error {
    color: #EF4444;
}

.top-servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.server-usage-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.server-rank {
    font-weight: 700;
    color: var(--primary-color);
}

.server-name {
    font-weight: 500;
    color: var(--text-primary);
}

.server-uses {
    color: var(--text-secondary);
    font-family: monospace;
}

.server-percentage {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.card-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* User Analytics Styles */
.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.user-item:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
}

.user-rank {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: monospace;
}

.user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.user-activity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
}

.activity-indicator.inactive {
    background: #94A3B8;
}

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

.search-result-item {
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(78, 205, 196, 0.1);
}

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

.result-name {
    font-weight: 600;
    color: var(--text-primary);
    font-family: monospace;
}

.result-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(91, 155, 213, 0.05);
    border: 1px solid rgba(91, 155, 213, 0.2);
    border-radius: var(--border-radius);
}

.server-info {
    flex: 1;
}

.server-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.server-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.server-usage {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.activity-time {
    color: var(--text-muted);
    font-family: monospace;
    min-width: 80px;
}

.activity-command {
    color: var(--text-primary);
    font-family: monospace;
    font-weight: 500;
}

.activity-server {
    color: var(--text-secondary);
}

.activity-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    justify-self: end;
}

.activity-status.success {
    color: #22C55E;
}

.activity-status.error {
    color: #EF4444;
}

.time-range-select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.time-range-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.large-modal {
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 800px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.error-content {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #22C55E;
}

.notification.error {
    background: #EF4444;
}

.notification.info {
    background: var(--primary-color);
}

/* Database Management Styles */
.stat-value.online {
    color: #22C55E;
}

.stat-value.offline {
    color: #EF4444;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.collection-item:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
}

.collection-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.collection-info {
    flex: 1;
}

.collection-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: monospace;
}

.collection-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
}

.query-interface {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.form-input, .form-textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-textarea {
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 100px;
}

.btn.full-width {
    width: 100%;
}

.query-results {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

.query-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

.json-output {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

.backup-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.backup-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.backup-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.backup-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.backup-info {
    flex: 1;
}

.backup-id {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

.backup-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.backup-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
}

.backup-status.completed {
    color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
}

.backup-status.in-progress {
    color: var(--primary-color);
    background: rgba(78, 205, 196, 0.1);
}

.backup-actions {
    display: flex;
    gap: 0.5rem;
}

.operation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.operation-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 80px;
    text-transform: uppercase;
}

.operation-type.insert {
    color: #22C55E;
}

.operation-type.update {
    color: var(--primary-color);
}

.operation-type.delete {
    color: #EF4444;
}

.operation-type.find {
    color: #5B9BD5;
}

.operation-details {
    flex: 1;
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.operation-collection {
    font-family: monospace;
    font-weight: 500;
}

.collection-overview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.collection-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

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

.stat-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: monospace;
}

.schema-section, .documents-section {
    margin-top: 1rem;
}

.schema-section h4, .documents-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.schema-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(91, 155, 213, 0.05);
    border: 1px solid rgba(91, 155, 213, 0.2);
    border-radius: var(--border-radius);
}

.field-name {
    font-family: monospace;
    font-weight: 500;
    color: var(--text-primary);
}

.field-type {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.document-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.document-json {
    margin: 0;
    padding: 1rem;
    background: transparent;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow-x: auto;
    white-space: pre-wrap;
}
