@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-500: #FF77A9;
    --primary-600: #F2528D;
    --background-color: #0B0B0B;
    --text-color: #FFFFFF;
    --accent-color: #FFFFFF;
    --primary-700: #F2528D;
    --secondary-500: #FFA1C4;
    --secondary-600: #FF77A9;
    --secondary-700: #F2528D;
    --gray-800: #1a1a1a;
    --gray-900: #0B0B0B;
    --gray-700: #2a2a2a;
    --gray-300: #e0e0e0;
    --gray-400: #a0a0a0;
    --gray-500: #808080;
    --text-primary: #FFFFFF;
    --text-secondary: #a0a0a0;
    --card-bg: transparent;
    --section-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

a {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

/* Navigation */
nav {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 3rem;
    width: 3rem;
    border-radius: 1.1rem;
    margin-right: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
    flex-direction: column;
    padding: 1rem;
    border-top: none;
    display: none;
}

.nav-links.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
        border: none;
        padding: 0;
        gap: 0.50rem;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.55rem 0.70rem;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background-color: rgba(173, 173, 173, 0.15);
}

.nav-link.active {
    color: var(--primary-500);
}

@media (max-width: 767px) {
    .nav-link {
        margin: 0.5rem 0;
        text-align: center;
        font-weight: 500;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: rgba(255, 119, 169, 0.2);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 11, 11, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        flex-direction: column;
        padding: 1rem;
        z-index: 1000;
    }

    .nav-link {
        margin: 0.25rem 0;
        text-align: center;
        font-weight: 500;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

/* Theme Toggle */
.theme-toggle-container {
    position: relative;
    display: inline-block;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    background: rgba(255, 119, 169, 0.2);
    transform: scale(1.05);
}

.theme-icon-sun,
.theme-icon-moon {
    transition: all 0.3s ease;
}

.theme-icon-sun {
    display: block;
}

.theme-icon-moon {
    display: none;
}

/* Theme Dropdown */
.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
}

.theme-option:hover {
    background: rgba(255, 119, 169, 0.1);
    color: #FF77A9;
}

.theme-option.active {
    background: rgba(255, 119, 169, 0.2);
    color: #FF77A9;
}

.theme-option svg {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
}

/* Auth Button */
.auth-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    gap: 0.75rem;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* User Menu Styles */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.user-menu-btn:hover {
    background: rgba(255, 119, 169, 0.2);
    transform: scale(1.05);
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 0.75rem;
}

.user-details {
    flex: 1;
}

.username {
    display: block;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.discriminator {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 119, 169, 0.1);
    color: #FF77A9;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-item .icon-sm {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 16.8rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.minecraft-btn, .copy-btn, .discord-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    gap: 0.75rem;
}

.minecraft-btn:hover, .copy-btn:hover, .discord-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features {
    padding: 5rem 1rem;
    background-color: transparent;
}

.features h2 {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: transparent;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    background-color: transparent;
    padding: 1rem;
    border-radius: 0.75rem;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Discord Section */
.discord-section {
    padding: 5rem 1rem;
}

.discord-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .discord-content {
        grid-template-columns: 1fr 1fr;
    }
}

.discord-info h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.discord-info p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.discord-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.discord-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-300);
}

.discord-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.discord-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.discord-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.online-fill {
    background: var(--primary-500);
}

.members-fill {
    background: var(--secondary-500);
}

.discord-invite {
    text-align: center;
}

.invite-code {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: monospace;
    color: var(--primary-500);
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.5rem;
}

.footer-link a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Microtext */
.microtext {
    margin-top: 2rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Status badge */
.badge-status {
    margin-top: 1rem;
    text-align: center;
}

.status-active {
    color: #10b981;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-inactive {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Badge card improvements */
.badge-card .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
}

.badge-card h4 {
    margin: 1rem 0 0.5rem 0;
}

.badge-card p {
    min-height: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .badge-card {
        padding: 1.25rem;
    }
    
    .badge-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

/* Notifications */
.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: #0B0B0B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #FFFFFF !important;
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.notification-message {
    color: #FFFFFF !important;
    font-weight: 500;
    font-size: 14px;
    margin-right: 10px;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: #FFFFFF !important;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Notification types */
.notification-success .notification-message::before {
    content: "✅ ";
}

.notification-error .notification-message::before {
    content: "❌ ";
}

.notification-warning .notification-message::before {
    content: "⚠️ ";
}

.notification-info .notification-message::before {
    content: "ℹ️ ";
}

/* Profile Section */
.profile-section {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
}

.head-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.head-viewer {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
}

.head-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-info p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 404 Page Styles */
.error-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.error-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-btn, .back-btn {
    background: transparent;
    gap: 0.75rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.home-btn:hover, .back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .home-btn, .back-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
}

/* About Page Styles */
.server-hero {
    position: relative;
    padding: 12rem 1rem 6rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 119, 169, 0.1) 0%, rgba(255, 161, 196, 0.05) 100%);
}

.server-content {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.server-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-radius: 4345px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.25rem;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.server-tab {
    padding: 0.55rem 1.1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.91rem;
    border-radius: 125435px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.server-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 119, 169, 0.2), transparent);
}

.server-tab:hover::before {
    left: 100%;
}

.server-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.server-tab.active {
    color: white;
}

.server-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0b0b0b00, var(--secondary-500), #0b0b0b00);
    border-radius: 212rem;
}

.server-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.server-section.active {
    display: block;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.6s ease-out;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 119, 169, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-500);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

/* Color palette */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.color-item {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.6s ease-out;
}

.color-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.color-preview {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.color-item:hover .color-preview {
    transform: scale(1.05);
}

.color-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.color-code {
    font-family: monospace;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-code:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.color-code.copied::after {
    content: 'Скопировано!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    animation: fadeInDown 0.3s ease;
}

/* Seasons */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.season-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.6s ease-out;
}

.season-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.season-card.expanded {
    grid-column: 1 / -1;
    animation: pulse 0.5s ease;
}

.season-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: scaleIn 0.5s ease-out;
}

.season-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.season-badge.completed {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.season-badge.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.season-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.season-info {
    margin-bottom: 1.5rem;
}

.season-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.season-info svg {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    color: var(--primary-500);
}

.season-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.season-card.expanded .season-details {
    max-height: 1000px;
    animation: fadeInUp 0.5s ease;
}

.world-saves {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.world-saves h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.save-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.save-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.save-info h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.save-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.save-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.save-btn:hover::before {
    left: 100%;
}

.save-btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 119, 169, 0.3);
}

.save-btn.saved {
    background: #10b981;
}

/* Design gallery */
.design-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.design-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.6s ease-out;
}

.design-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.design-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.design-item:hover .design-image {
    background: rgba(255, 255, 255, 0.15);
}

.design-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.design-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.design-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Content delays */
.content-delay-1 { animation-delay: 0.1s; }
.content-delay-2 { animation-delay: 0.2s; }
.content-delay-3 { animation-delay: 0.3s; }
.content-delay-4 { animation-delay: 0.4s; }
.content-delay-5 { animation-delay: 0.5s; }

@media (max-width: 768px) {
    .server-tabs {
        flex-direction: column;
        align-items: center;
        max-width: 300px;
    }
    
    .server-tab {
        width: 100%;
        text-align: center;
    }
    
    .features-list,
    .seasons-grid,
    .color-palette,
    .design-gallery {
        grid-template-columns: 1fr;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .season-card.expanded {
        grid-column: 1;
    }
}

/* Map Page Styles */
.content {
    margin-top: 80px;
    height: calc(100vh - 80px);
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    z-index: 50;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-500);
}

.map-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.map-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.map-btn:hover {
    background: rgba(217, 70, 239, 0.2);
    border-color: rgba(217, 70, 239, 0.4);
}

@media (max-width: 768px) {
    .content {
        margin-top: 70px;
        height: calc(100vh - 70px);
    }
    
    .map-info {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Demo notification */
.demo-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4f46e5;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 10000;
    font-weight: 500;
}

/* Guarantee working dropdowns */
.theme-dropdown.show,
.user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.nav-links.active {
    display: flex !important;
}

#loginBtn[style*="display: none"] {
    display: none !important;
}

#user-section[style*="display: none"] {
    display: none !important;
}

#loginBtn[style*="display: flex"] {
    display: flex !important;
}

#user-section[style*="display: flex"] {
    display: flex !important;
}