/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Viewport and Mobile Optimizations */
html {
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    /* Improve text rendering */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

body {
    /* Prevent horizontal scrolling */
    overflow-x: hidden;
    /* Better font rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent zoom on input focus (iOS Safari) */
    -webkit-text-size-adjust: 100%;
}

/* Prevent zoom on input focus for iOS */
input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Safe area handling for devices with notches */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Accessibility Styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

.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;
}

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #000 !important;
    }
    
    .feature-card {
        border: 2px solid #fff !important;
    }
    
    .cta-button {
        border: 2px solid #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: light) {
    body {
        background-color: #f8f9fa;
        color: #333;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Code elements styling for better readability */
code {
    background: rgba(102, 126, 234, 0.2);
    color: #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.discord-link {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
}

.discord-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation states */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: heroBackgroundMove 20s ease-in-out infinite;
}

@keyframes heroBackgroundMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #cccccc;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #aaaaaa;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaaaaa;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.server-ip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ip-label {
    color: #aaaaaa;
    font-weight: 500;
}

.ip-address {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.copy-btn {
    background: none;
    border: none;
    color: #aaaaaa;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: #667eea;
    background: rgba(255, 255, 255, 0.1);
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.cta-button:focus {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    background: linear-gradient(135deg, #4c51bf 0%, #5a67d8 100%);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
    color: #ffffff;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #aaaaaa;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
}

.store-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.store-visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.store-disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.store-disclaimer p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.disclaimer-notes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.disclaimer-notes p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.disclaimer-notes i {
    color: #ffd700;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: #aaaaaa;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* News Section */
.news {
    padding: 6rem 0;
    background: #0a0a0a;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-date {
    color: #aaaaaa;
    font-size: 0.9rem;
}

.news-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.news-card p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.update-highlights {
    margin: 1rem 0;
}

.update-highlights ul {
    list-style: none;
    padding: 0;
}

.update-highlights li {
    color: #cccccc;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    border-left: 2px solid rgba(102, 126, 234, 0.3);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* Commands Section */
.commands {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.command-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.command-category:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.command-category h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-category h3 i {
    color: #667eea;
    font-size: 1.1rem;
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.command-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #667eea;
}

.command-item code {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.command-item span {
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.4;
}

.free-to-play-notice {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin: 1rem 0;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    }
}

/* Quick Links Section */
.quick-links {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.quick-link-card:hover::before {
    left: 100%;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.quick-link-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.quick-link-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.command-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.command-preview code {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.more-indicator {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vote-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.reward-item i {
    color: #ffd700;
    font-size: 1.2rem;
}

.reward-item span {
    color: #ffffff;
    font-weight: 500;
}

.essential-commands {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.essential-commands h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.command-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.command-row .command-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.command-row .command-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.command-row .command-item code {
    display: block;
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.command-row .command-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.commands-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.commands-note i {
    color: #667eea;
    margin-right: 0.5rem;
}

.commands-note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.commands-note a:hover {
    color: #ffffff;
}

/* Store Section */
.store {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rank-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rank-card.popular {
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.rank-card.premium {
    border-color: rgba(138, 43, 226, 0.5);
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.rank-header {
    margin-bottom: 2rem;
}

.rank-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rank-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
}

.rank-features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaaaaa;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rank-features i {
    color: #4caf50;
    min-width: 16px;
    text-align: center;
}

.rank-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rank-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Specific Rank Styling */
.rank-card:nth-child(1) {
    /* Coal Rank */
    border-color: rgba(44, 44, 44, 0.5);
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.rank-card:nth-child(1) .rank-price {
    background: linear-gradient(135deg, #2c2c2c 0%, #5a5a5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-card:nth-child(1) .rank-button {
    background: linear-gradient(135deg, #2c2c2c 0%, #5a5a5a 100%);
}

.rank-card:nth-child(1) .rank-button:hover {
    box-shadow: 0 15px 30px rgba(44, 44, 44, 0.4);
}

.rank-card:nth-child(2) {
    /* Iron Rank */
    border-color: rgba(192, 192, 192, 0.5);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(169, 169, 169, 0.1) 100%);
}

.rank-card:nth-child(2) .rank-price {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-card:nth-child(2) .rank-button {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
    color: #2c2c2c;
}

.rank-card:nth-child(2) .rank-button:hover {
    box-shadow: 0 15px 30px rgba(192, 192, 192, 0.4);
}

.rank-card:nth-child(3) {
    /* Gold Rank - Most Popular */
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 235, 59, 0.1) 100%);
}

.rank-card:nth-child(3) .rank-price {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-card:nth-child(3) .rank-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 100%);
    color: #2c2c2c;
}

.rank-card:nth-child(3) .rank-button:hover {
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.rank-card:nth-child(4) {
    /* Diamond Rank - Premium */
    border-color: rgba(0, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(64, 224, 208, 0.1) 100%);
}

.rank-card:nth-child(4) .rank-price {
    background: linear-gradient(135deg, #00ffff 0%, #40e0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-card:nth-child(4) .rank-button {
    background: linear-gradient(135deg, #00ffff 0%, #40e0d0 100%);
    color: #2c2c2c;
}

.rank-card:nth-child(4) .rank-button:hover {
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
}

/* Community Section */
.community {
    padding: 6rem 0;
    background: #0a0a0a;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.discord-widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.discord-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discord-info i {
    font-size: 3rem;
    color: #5865f2;
}

.discord-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.discord-info p {
    color: #aaaaaa;
    margin-bottom: 1rem;
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
    color: #ffffff;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link i {
    font-size: 1.5rem;
}

.social-link.youtube:hover { border-color: #ff0000; }
.social-link.twitter:hover { border-color: #1da1f2; }
.social-link.instagram:hover { border-color: #e4405f; }
.social-link.tiktok:hover { border-color: #000000; }
.social-link.patreon:hover { border-color: #ff424d; }

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

.footer-bottom a {
    color: #667eea;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #764ba2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .quick-link-card {
        padding: 2rem;
    }
    
    .quick-link-card h3 {
        font-size: 1.5rem;
    }
    
    .command-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .essential-commands {
        padding: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-row: span 1;
    }

    .community-content {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .feature-card,
    .rank-card {
        padding: 1.5rem;
    }
    
    .rank-features {
        max-height: 250px;
    }
    
    .disclaimer-notes {
        flex-direction: column;
        gap: 1rem;
    }
    
    .store-disclaimer {
        padding: 1.5rem;
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Server status indicators */
.server-status {
    transition: color 0.3s ease;
}

.stat-number {
    transition: color 0.3s ease;
}

/* Status colors */
.status-online {
    color: #4caf50 !important;
}

.status-offline {
    color: #ff6b6b !important;
}

.status-checking {
    color: #ffa726 !important;
}

/* Login Modal Styles */
.login-btn, .logout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover, .logout-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.user-welcome {
    color: #667eea !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-welcome i {
    color: #667eea;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    margin: 10% auto;
    padding: 0;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header i {
    color: #667eea;
    font-size: 1.6rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.form-input:valid {
    border-color: #4caf50;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

.form-help {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.form-error {
    font-size: 0.9rem;
    color: #ff6b6b;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Player Profile Styles */
.player-profile-btn {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
}

.player-profile-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.player-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.player-head {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.player-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1a1a2e;
}

.player-status.online {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.player-status.away {
    background: #ffa726;
    box-shadow: 0 0 10px rgba(255, 167, 38, 0.5);
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.player-rank {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Special rank styling */
.player-rank[style*="color"] {
    font-weight: 600;
    text-shadow: 0 0 10px currentColor;
    animation: rankGlow 3s ease-in-out infinite;
}

@keyframes rankGlow {
    0%, 100% { text-shadow: 0 0 10px currentColor; }
    50% { text-shadow: 0 0 15px currentColor, 0 0 20px currentColor; }
}

.profile-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.player-profile-btn:hover .profile-arrow {
    transform: translateY(2px);
}

/* Player Profile Modal */
.player-profile-modal {
    max-width: 600px;
    width: 95%;
}

.player-profile-content {
    display: grid;
    gap: 2rem;
}

.player-avatar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.large-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
}

.player-body {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.avatar-overlay {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 64px;
    height: 64px;
    border: 3px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
}

.profile-head {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border-radius: 7px;
}

.player-identity {
    flex: 1;
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-uuid {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    word-break: break-all;
}

.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 167, 38, 0.2);
    color: #ffa726;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 167, 38, 0.3);
}

.player-stats-section h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.stat-item i.online {
    color: #4caf50;
}

.stat-item i.away {
    color: #ffa726;
}

.stat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stat-value[style*="color"] {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: profileRankGlow 2s ease-in-out infinite;
}

@keyframes profileRankGlow {
    0%, 100% { 
        text-shadow: 0 0 10px currentColor;
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
        transform: scale(1.02);
    }
}

/* Special user indicators */
.player-profile-btn[data-special="true"] {
    border-color: rgba(255, 215, 0, 0.5) !important;
    background: rgba(255, 215, 0, 0.1) !important;
}

.player-profile-btn[data-special="true"]:hover {
    border-color: rgba(255, 215, 0, 0.8) !important;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3) !important;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Notifications */
.custom-notification {
    min-width: 350px;
    padding: 1.5rem;
}

.player-welcome-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.welcome-text {
    flex: 1;
}

.welcome-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.welcome-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.welcome-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.welcome-stats span[style*="color"] {
    font-weight: 600;
    animation: welcomeRankGlow 2s ease-in-out infinite;
}

@keyframes welcomeRankGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.fallback-notice {
    color: #ffa726 !important;
}

/* No Data Notice */
.no-data-notice {
    background: rgba(255, 167, 38, 0.1);
    border: 1px solid rgba(255, 167, 38, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    color: #ffa726;
}

.no-data-notice i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.no-data-notice p {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.no-data-notice small {
    color: rgba(255, 167, 38, 0.8);
    font-size: 0.85rem;
}

/* Unknown status styling */
.player-status.unknown {
    background: #666666;
    box-shadow: 0 0 10px rgba(102, 102, 102, 0.5);
}

.stat-item i.unknown {
    color: #666666;
}

/* Mobile responsiveness for player profile */
@media (max-width: 768px) {
    .player-avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .player-profile-btn {
        min-width: 120px;
    }
    
    .player-name {
        font-size: 0.8rem;
    }
    
    .welcome-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Additional Viewport Safety Rules */

/* Ultra-wide screen optimization */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        margin: 0 auto;
    }
}

/* Ultra-narrow screen protection */
@media (max-width: 320px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .modal {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .main-hero {
        padding: 1rem 0;
    }
}

/* High DPI screen optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .server-icon, .player-head {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Prevent layout shift on iOS Safari */
@supports (-webkit-touch-callout: none) {
    .modal {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Legal Pages Styling */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.last-updated {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

.legal-content {
    line-height: 1.8;
    color: #e0e0e0;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    color: #4a90e2;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.legal-content h3 {
    color: #6bb6ff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.legal-content h4 {
    color: #8cc8ff;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    margin-top: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content ol li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #4a90e2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: #6bb6ff;
    border-bottom-color: #6bb6ff;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

/* Cookie Table Styling */
.cookie-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-table th {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table td {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Legal Page Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 1rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
    
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: 1rem;
    }
}

/* Cookie Consent Banner - Professional Design */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10002;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 120px;
}

.cookie-icon {
    font-size: 2.5rem;
    color: #4a90e2;
    flex-shrink: 0;
    margin-top: 0.25rem;
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.3));
}

.cookie-text {
    flex: 1;
    margin-right: 1rem;
}

.cookie-text h3 {
    margin: 0 0 0.75rem 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cookie-text p {
    margin: 0;
    color: #c1c1c1;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
}

.cookie-text a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.cookie-text a:hover {
    color: #6bb6ff;
    border-bottom-color: #6bb6ff;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 180px;
}

.cookie-actions .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.cookie-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cookie-actions .btn:hover::before {
    left: 100%;
}

.cookie-actions .btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.cookie-actions .btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2b67a6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.cookie-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.cookie-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cookie-actions .btn-tertiary {
    background: transparent;
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.5);
    font-size: 0.85rem;
}

.cookie-actions .btn-tertiary:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
    color: #6bb6ff;
    transform: translateY(-1px);
}

/* Cookie Preferences Modal - Enhanced */
.modal.cookie-modal,
.cookie-modal {
    z-index: 15000 !important;
    position: fixed !important;
}

.cookie-modal .modal-content {
    max-width: 650px;
    background: linear-gradient(145deg, #1a1a1a 0%, #252530 100%);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    z-index: 15000;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.cookie-modal .modal-header {
    background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2e 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.cookie-modal .modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.cookie-modal .modal-body {
    padding: 2rem;
    overscroll-behavior: contain;
    max-height: 70vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid #4a90e2;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-status.required {
    background: linear-gradient(135deg, #28a745 0%, #20a039 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #666;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cookie-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

.cookie-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cookie-category p {
    margin: 0;
    color: #b5b5b5;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Site Overlay Enhancement */
.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 20, 0.8);
    z-index: 10001;
    display: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.site-overlay.active {
    display: block;
}

/* Cookie Notification Enhancement */
.cookie-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #28a745 0%, #20a039 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    max-width: 300px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Cookie Consent Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: left;
        gap: 1.5rem;
        padding: 1.5rem;
        min-height: auto;
    }
    
    .cookie-icon {
        font-size: 2rem;
        margin-top: 0;
        align-self: flex-start;
    }
    
    .cookie-text {
        margin-right: 0;
    }
    
    .cookie-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
        min-width: auto;
        gap: 0.75rem;
    }
    
    .cookie-actions .btn {
        justify-content: center;
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .cookie-category {
        padding: 1.25rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cookie-modal .modal-content {
        margin: 1rem;
        max-width: none;
        border-radius: 12px;
    }
    
    .cookie-modal .modal-header,
    .cookie-modal .modal-body {
        padding: 1.5rem;
    }
    
    .cookie-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        padding: 1rem;
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-actions .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }
}
