/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent image dragging and selection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/* Custom text selection */
::selection {
    background: rgba(0, 212, 255, 0.2);
    color: inherit;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.2);
    color: inherit;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Special selection for different elements */
h1::selection, h2::selection, h3::selection {
    background: rgba(0, 212, 255, 0.15);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}

.premium-btn::selection {
    background: rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.btn-primary::selection {
    background: rgba(0, 212, 255, 0.25);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(91, 115, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
    z-index: -1;
}

.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.sparkle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #00d4ff;
    border-radius: 50%;
    animation: twinkle 4s infinite;
    box-shadow: 0 0 6px #00d4ff;
}

.sparkle:nth-child(2n) {
    background: #5b73ff;
    box-shadow: 0 0 6px #5b73ff;
    animation-delay: 1.5s;
}

.sparkle:nth-child(3n) {
    background: #ffffff;
    box-shadow: 0 0 4px #ffffff;
    animation-delay: 3s;
}

.sparkle:nth-child(4n) {
    background: #00d4ff;
    box-shadow: 0 0 8px #00d4ff;
    animation-delay: 0.5s;
    width: 2px;
    height: 2px;
}

.sparkle:nth-child(5n) {
    background: #5b73ff;
    box-shadow: 0 0 10px #5b73ff;
    animation-delay: 2.5s;
    width: 1.5px;
    height: 1.5px;
}

.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 212, 255, 1), rgba(0, 0, 255, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 1));
    animation: tail 4s ease-in-out infinite, shooting 4s ease-in-out infinite;
    z-index: 1;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), rgba(0, 212, 255, 1), rgba(0, 0, 255, 0));
    transform: translateX(50%) rotateZ(30deg);
    border-radius: 100%;
    animation: shining 4s ease-in-out infinite;
    animation-delay: inherit;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), rgba(0, 212, 255, 1), rgba(0, 0, 255, 0));
    transform: translateX(50%) rotateZ(-30deg);
    border-radius: 100%;
    animation: shining 4s ease-in-out infinite;
    animation-delay: inherit;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0) rotate(35deg); 
    }
    20% { 
        opacity: 1; 
        transform: scale(1) rotate(180deg); 
    }
    80% { 
        opacity: 0.8; 
        transform: scale(1.2) rotate(360deg); 
    }
}

@keyframes tail {
    0% {
        width: 0;
    }
    30% {
        width: 100px;
    }
    100% {
        width: 0;
    }
}

@keyframes shining {
    0% {
        width: 0;
    }
    50% {
        width: 30px;
    }
    100% {
        width: 0;
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(500px) translateY(-300px);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    border: none;
    z-index: 2000;
    padding: 1rem 0;
    box-shadow: none;
    filter: none;
}

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

.nav-logo h2 {
    color: #00d4ff;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
}

/* Keep premium button text color unchanged on hover/active */
.nav-link.premium-btn:hover,
.nav-link.premium-btn.active {
    color: #1a1a1a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Remove underline effect from premium button */
.nav-link.premium-btn::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(91, 115, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 30%),
        rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-height: 200px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.mobile-menu.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mobile-menu .nav-link {
    width: 90% !important;
    max-width: 300px;
    text-align: center;
    padding: 15px 20px;
    font-size: 1em;
    margin: 0 auto 10px auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Premium Button */
.premium-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffa500);
    border: 1px solid #ffd700;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: none;
    line-height: 1.4;
    vertical-align: middle;
}

/* Removed sliding highlight effect to prevent unwanted shadows */

.premium-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700, #ff8c00);
    border-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: none;
    color: #1a1a1a;
}

.premium-btn i {
    font-size: 1.1em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        filter: brightness(1.3);
    }
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem 2rem;
    text-align: center;
    position: relative;
}

.hero-title {
    animation: flyInSmooth 1.2s ease-out;
}

@keyframes flyInSmooth {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(-50px) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}

#welcomeText {
    animation: fadeInUp 1.5s ease-out 0.5s both;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientPulse 4s linear infinite;
}

.minermends-gradient {
    background: linear-gradient(270deg, #87ceeb, #5f9ea0, #4682b4, #6495ed, #1e90ff, #00bfff, #87ceeb);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: minermends-subtle-flow 12s ease-in-out infinite;
}

@keyframes minermends-subtle-flow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 25% 50%;
    }
    50% {
        background-position: 50% 50%;
    }
    75% {
        background-position: 75% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientPulse {
    0% {
        background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    25% {
        background: linear-gradient(135deg, #00e6ff 0%, #6b7fff 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    75% {
        background: linear-gradient(135deg, #00c7ff 0%, #5b73ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: 1px solid #00d4ff;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
    z-index: -1;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
    border-color: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Discord Button */
.discord-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4, #7289da);
    border: 1px solid #5865f2;
    color: white;
    position: relative;
    overflow: hidden;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
    z-index: -1;
    pointer-events: none;
}

.discord-btn:hover::before {
    left: 100%;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3a4bb8, #5b6eae);
    border-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Features Section */
.features {
    padding: 12rem 2rem 6rem 2rem;
    margin-top: 4rem;
}

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

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

/* Typing effect for section title */
#typeTarget {
    position: relative;
    z-index: 1;
    height: 1.2em;
    display: inline-block;
    overflow: hidden;
}

.section-title {
    position: relative;
    z-index: 1;
}

.u-anim {
    position: relative;
    display: inline-block;
    color: inherit;
    text-shadow: 0 0 6px rgba(255, 60, 60, 0.55);
}

.u-anim::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 3px;
    width: 0%;
    background: #ff0000;
    box-shadow: 0 0 20px #ff0000;
    animation: underlineSweep 0.9s ease forwards;
}

.u-anim-blue {
    position: relative;
    display: inline-block;
    color: inherit;
    text-shadow: 0 0 6px rgba(91, 115, 255, 0.55);
}

.u-anim-blue::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 3px;
    width: 0%;
    background: #00ffff;
    box-shadow: 0 0 20px #00ffff;
    animation: underlineSweep 0.9s ease forwards;
}

.u-anim-yellow {
    position: relative;
    display: inline-block;
    color: inherit;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.55);
}

.u-anim-yellow::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 3px;
    width: 0%;
    background: #ffff00;
    box-shadow: 0 0 20px #ffff00;
    animation: underlineSweep 0.9s ease forwards;
}

@keyframes underlineSweep {
    from { width: 0%; }
    to { width: 100%; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}


.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 30px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


.feature-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #667eea 0%, #5b73ff 50%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 25px;
    background-size: 120% 100%;
    background-position: 0% 50%;
    transition: all 0.6s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    margin-top: auto;
    text-align: center;
    box-sizing: border-box;
}

.feature-btn:hover {
    background: linear-gradient(90deg, #5b73ff 0%, #667eea 50%, #8a84ff 100%);
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Banner Section */
.banner-section {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.banner-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
}

.banner-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    padding: 40px 0 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-name {
    font-size: 1.2em;
    font-weight: 600;
    color: white;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
}

.premium-link {
    color: #ffd700 !important;
    font-weight: 600;
}

.premium-link:hover {
    color: #ffed4e !important;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.social-link:hover {
    background: linear-gradient(135deg, #4752c4, #3a4bb8);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

.social-link.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.footer-copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 6rem 1rem 4rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .banner-section {
        padding: 20px 0;
    }
    
    .banner-image {
        max-width: 80%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.85em;
    }
}

/* World Downloads Page Styles */
.worlds-header {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(91, 115, 255, 0.08) 100%);
}

.worlds-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.worlds-subtitle {
    font-size: 1.25rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.world-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.world-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.world-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.world-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.world-thumbnail-placeholder {
    color: white;
    font-size: 3rem;
    opacity: 0.7;
}

.world-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.world-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.world-description {
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    max-height: 4.5rem;
    text-overflow: ellipsis;
}

.world-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.world-views {
    color: #00d4ff;
    font-weight: 500;
    font-size: 0.9rem;
}

.world-date {
    color: #a0a0a0;
    font-size: 0.8rem;
}

.world-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-download {
    flex: 1;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: 1px solid #00d4ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
    border-color: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.btn-info {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.close {
    color: #a0a0a0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: white;
}

.modal-body {
    color: #a0a0a0;
    line-height: 1.6;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.modal-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.modal-body h3 {
    color: white;
    margin: 1.5rem 0 0.5rem 0;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin: 0.5rem 0;
}

/* Modal Stats Section */
.modal-stats {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.modal-stats p {
    margin: 0.5rem 0;
    color: #ccc;
    font-size: 0.95rem;
}

.modal-stats strong {
    color: #00d4ff;
}

/* Modal Description Section */
.modal-description {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.modal-description h4 {
    color: #00d4ff;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding-bottom: 0.5rem;
}

.description-content {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.description-content::-webkit-scrollbar {
    width: 6px;
}

.description-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #a0a0a0;
}

/* Add World Card */
.add-world-card {
    border: 2px dashed rgba(0, 212, 255, 0.3) !important;
    background: rgba(0, 212, 255, 0.05) !important;
}

.add-world-card:hover {
    border-color: rgba(0, 212, 255, 0.5) !important;
    background: rgba(0, 212, 255, 0.08) !important;
    transform: translateY(-4px) !important;
}

.add-world-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.add-world-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff 0%, #5b73ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.add-world-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.add-world-content p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.empty-icon {
    font-size: 4rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

/* Responsive adjustments for worlds page */
@media (max-width: 768px) {
    .worlds-title {
        font-size: 2.5rem;
    }
    
    .worlds-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .world-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* Hide scrollbars for image sliders */
.image-slider-container::-webkit-scrollbar,
.image-slider::-webkit-scrollbar {
    display: none;
}

.image-slider-container,
.image-slider {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Modal social links - inherit footer styling */
.modal-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ===== DOWNLOAD QUEUE MODAL ===== */
.queue-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.queue-modal[style*="display: block"],
.queue-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.queue-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.queue-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.queue-header h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

.queue-close {
    color: #999;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.queue-close:hover {
    color: #ff6b6b;
    transform: translateY(-50%) rotate(90deg);
}

.modal-header .queue-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-header .queue-close:hover {
    color: #ff6b6b;
    transform: translateY(-50%) rotate(90deg);
}

.queue-body {
    padding: 1rem;
}

.queue-timer-container {
    text-align: center;
    margin: 0 auto 1rem;
}

.queue-progress-ring {
    transform: rotate(-90deg);
}

.queue-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.queue-progress-bar {
    fill: none;
    stroke: url(#queueGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 421;
    stroke-dashoffset: 421;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.queue-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.queue-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    white-space: nowrap;
}

.queue-status {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.queue-progress-bar-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 0.8rem;
    position: relative;
}

.queue-progress-bar-bg {
	width: 100%;
	height: 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	z-index: 0;
}


.queue-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
	border-radius: 6px;
	width: 0%;
	transition: width 0.3s linear;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 1;
	overflow: hidden;
}

.queue-progress-bar-fill::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -10px;
	right: -10px;
	bottom: -2px;
	background: 
		radial-gradient(ellipse 20px 8px at 20% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
		radial-gradient(ellipse 15px 6px at 60% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
		radial-gradient(ellipse 18px 7px at 80% 70%, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
	background-size: 40px 20px, 35px 15px, 45px 18px;
	animation: liquidWave 3s ease-in-out infinite;
	opacity: 0.8;
}

.queue-progress-bar-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
	animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes liquidWave {
	0%, 100% {
		transform: translateX(-20px) scaleY(1);
	}
	25% {
		transform: translateX(10px) scaleY(1.1);
	}
	50% {
		transform: translateX(20px) scaleY(0.9);
	}
	75% {
		transform: translateX(5px) scaleY(1.05);
	}
}

.queue-banner {
    text-align: center;
    margin: 1rem 0;
    width: 100%;
}

.queue-banner img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 80px;
    object-fit: contain;
    max-width: 400px;
}

.queue-banner img:hover {
    transform: scale(1.05);
}

.queue-premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.queue-premium h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.queue-premium p {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.queue-premium ul {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.queue-premium li {
    color: #fff;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.3rem;
}

.queue-premium li:last-child {
    border-bottom: none;
}

.premium-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.queue-download-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.queue-download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.queue-download-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SVG Gradient for progress circle */
svg defs {
    display: none;
}
