/* 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;
    -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);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

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;
    position: relative;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    background-image: 
        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;
    margin: 0;
    padding: 0;
}

.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;
}

/* Twinkling stars styles are kept in the .sparkle class */

@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%, 100% { 
        opacity: 0.8; 
    }
    50% { 
        opacity: 1; 
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0);
    }
}

.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: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-top: auto;
    text-align: center;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

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

.feature-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

/* 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);
}

/* Membership Promo Section */
.membership-promo {
    padding: 20px 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.membership-promo .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.promo-sub {
    font-size: 1.1rem;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(0, 212, 255, 1), 0 0 30px rgba(0, 212, 255, 0.5);
    }
}

/* 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%;
    min-height: 500px;
}

.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;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    image-rendering: -webkit-optimize-contrast; /* Better scaling */
    image-rendering: crisp-edges; /* Sharper images */
    position: relative;
}

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

.world-thumbnail.premium {
    border: 2px solid transparent;
    background: linear-gradient(90deg, #00ffff, #0080ff, #4000ff, #8000ff, #ff0080, #ff4000, #ff8000, #00ffff);
    background-size: 800% 100%;
    animation: tronGlow 20s linear infinite;
    padding: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), inset 0 0 20px rgba(255, 0, 128, 0.3);
    overflow: hidden;
    box-sizing: border-box;
}

.world-thumbnail.premium img {
    border-radius: 8px;
}

@keyframes tronGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 800% 0%;
    }
}

.world-thumbnail-slider {
    width: 100%;
    height: 200px !important;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.world-thumbnail-slider.premium {
    position: relative;
    padding: 2px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), inset 0 0 20px rgba(255, 0, 128, 0.3);
}

.world-thumbnail-slider.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #00ffff, #0080ff, #4000ff, #8000ff, #ff0080, #ff4000, #ff8000, #00ffff);
    background-size: 800% 100%;
    animation: tronGlow 20s linear infinite;
    border-radius: 12px;
    z-index: -1;
}

.world-thumbnail-slider.premium .thumbnail-slides {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    z-index: 1;
}

.world-thumbnail-slider.premium .thumbnail-slides img {
    border-radius: 8px;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Game Version Chip */
.game-version-chip {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 20;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-version-chip.java,
.game-version-chip.bedrock,
.game-version-chip:not(.java):not(.bedrock):not(.premium) {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.game-version-chip.premium {
    background: linear-gradient(45deg, #8B0000, #B8860B, #556B2F, #2F4F4F, #191970, #4B0082, #800080);
    background-size: 400% 400%;
    animation: premiumChipGlow 2s ease-in-out infinite;
    color: white;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes premiumChipGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.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-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.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;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    flex-grow: 1;
    word-wrap: break-word;
    max-height: 3rem;
}

/* Ensure images in world card descriptions don't break layout */
.world-description img {
    display: none; /* Hide images in preview text */
}

/* Clean up line breaks in world card descriptions */
.world-description br {
    display: none;
}

.world-description p {
    margin: 0;
    display: inline;
}

.world-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: auto;
    align-items: flex-start;
    min-height: 2.5rem; /* Reserve space even when empty to keep downloads aligned - matches actual tag height */
}

/* When empty, use fixed height to match tag row height exactly */
.world-tags:empty {
    height: 2.5rem;
    margin-bottom: 1rem;
}

.world-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(91, 115, 255, 0.2) 100%);
    color: #00d4ff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.world-tag:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(91, 115, 255, 0.3) 100%);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

.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;
}

.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-download.premium-blocked {
    flex: 1;
    background: linear-gradient(45deg, #1e3a8a, #3730a3, #1e40af, #2563eb, #3b82f6, #1e40af, #3730a3, #1e3a8a);
    background-size: 400% 400%;
    animation: premiumButtonGlow 4s ease-in-out infinite;
    color: white;
    border: 1px solid #3b82f6;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.premium-unlock {
    font-size: 0.75rem;
    color: #ffc107;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.8);
}

@keyframes premiumButtonGlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 200% 50%;
    }
    75% {
        background-position: 300% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

.btn-download.premium-blocked:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 50%, #3730a3 100%);
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Premium Popup Styling */
.premium-popup .queue-time {
    color: #ffd700;
    font-weight: 700;
}

.premium-popup .queue-message {
    color: #a0a0a0;
}

.premium-upgrade-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
    border: 1px solid #3b82f6;
    color: white;
}

.premium-upgrade-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 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: 3% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;
    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+ */
    display: flex;
    gap: 2rem;
}

.modal-main-content {
    flex: 2;
    min-width: 0;
}

.modal-sidebar {
    flex: 1;
    max-width: 350px;
    min-width: 300px;
}

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

.related-worlds {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-world-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.related-world-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.related-world-thumbnail-slider.premium .thumbnail-slides {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

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

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

.related-world-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-world-stats {
    font-size: 0.8rem;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-world-downloads {
    color: #00d4ff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modal-sidebar {
        max-width: none;
        min-width: 0;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 5% auto;
    }
}

.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;
}

/* Search Bar and Filters */
.search-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    top: 20px;
    z-index: 1000;
    background: rgba(10, 20, 30, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.search-filters {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: #a0e6ff;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.select-wrapper {
    position: relative;
    min-width: 180px;
}

.select-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff;
    pointer-events: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 8px 35px 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.filter-select option {
    background: #0a1a2e;
    color: #fff;
    padding: 8px;
}

/* Checkbox styling for Hide Premium */
.checkbox-group {
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #a0e6ff;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}

.premium-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.premium-checkbox:hover {
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.premium-checkbox:checked {
    background: #00d4ff;
    border-color: #00d4ff;
}

.premium-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a1a2e;
    font-size: 12px;
    font-weight: bold;
}

.checkmark {
    display: none; /* Hide the custom checkmark since we're using ::after */
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.search-icon {
    color: #a0e6ff;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
}

.search-input::placeholder {
    color: #6b8a99;
}

.clear-search {
    background: none;
    border: none;
    color: #6b8a99;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-left: 0.5rem;
}

.clear-search:hover {
    color: #00d4ff;
}

.no-results {
    display: none;
    position: relative;
    top: 55%;  /* Moved down slightly */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #a0e6ff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 320px;  /* Increased minimum width */
    max-width: 90%;
    padding: 2.5rem 2rem;  /* Increased padding */
    z-index: 999;
    pointer-events: none;
    margin-top: 40px;  /* Added top margin for spacing from search bar */
}

/* Desktop specific styles */
@media (min-width: 1024px) {
    .no-results {
        position: absolute;
        top: 300px;  /* Fixed pixel value to ensure it moves down */
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        padding: 3rem 2.5rem;
        min-width: 350px;
    }
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: #00d4ff;
}

.no-results p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    padding: 0 1rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    .search-container {
        position: relative;
        top: 10px;
        padding: 20px;  /* Increased padding for more breathing room */
        margin: 0 10px 1.5rem;  /* Added more bottom margin */
        z-index: 1000;
        background: rgba(10, 20, 30, 0.9);
        border-radius: 12px;  /* Slightly larger border radius */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);  /* Enhanced shadow */
        box-sizing: border-box;
        width: calc(100% - 20px);
    }
    
    /* Adjust the search box inside the container */
    .search-box {
        padding: 10px 12px;  /* More padding inside search box */
        border-radius: 8px;  /* Slightly larger border radius */
    }
    
    /* Adjust the search input */
    .search-input {
        font-size: 1rem;  /* Slightly larger font */
        padding: 8px 10px;  /* More padding inside input */
    }
    
    /* Adjust the filter dropdowns */
    .filter-select {
        padding: 10px 12px;  /* More padding in dropdowns */
        font-size: 0.95rem;  /* Slightly larger font */
    }
    
    .no-results {
        top: 60%;
        transform: translate(-50%, -50%);
        width: 90%;
        padding: 1.5rem 1rem;
    }
    
    .no-results i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .no-results p {
        font-size: 1rem;
    }
}

/* Prevent body scroll when no results are shown */
body.no-scroll {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Add this to your existing script.js */
/*
function toggleNoResults(show) {
    const noResults = document.getElementById('noResults');
    if (show) {
        document.body.classList.add('no-scroll');
        noResults.style.display = 'flex';
    } else {
        document.body.classList.remove('no-scroll');
        noResults.style.display = 'none';
    }
}
*/

@media (min-width: 769px) {
    .no-results {
        position: relative;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 2rem;
        margin-top: 1.5rem;
        background: rgba(0, 0, 0, 0.85);
    }
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: #00d4ff;
}

.no-results p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Worlds Section */
.worlds-header {
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* 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(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    position: relative;
}

.modal-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(91, 115, 255, 0.03) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.modal-description h4 {
    display: none; /* Hide the Description title */
}

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

/* Fix oversized images in description content */
.description-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Fix excessive line breaks in description content */
.description-content p {
    margin: 0.5rem 0;
}

.description-content br + br {
    display: none;
}

.description-content p:empty {
    display: none;
}

.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);
}

/* Pagination */
.pagination-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
    flex-wrap: wrap;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.pagination-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
    font-weight: 600;
}

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

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
}


.items-per-page::before {
    display: none;
}

.items-per-page-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.items-per-page-select:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.items-per-page-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3);
}

.items-per-page-select option {
    background: #0a1a2e;
    color: #fff;
    padding: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination-container {
        margin: 2rem 0;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .items-per-page {
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
    }
    
    .items-per-page::before {
        display: none;
    }
    
    /* Hide the vertical separator line on mobile to prevent horizontal line display */
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 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); }
}

/* Select Dropdown Styling */
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 180px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.filter-select:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3);
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff;
    pointer-events: none;
    font-size: 0.8rem;
}

/* 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;
    }
    
    .search-container {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .search-box {
        border-radius: 20px;
        padding: 0.5rem 1rem;
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }
    
    .search-icon {
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .clear-search {
        padding: 0.2rem;
    }
    
    .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;
    }
}

/* Modal Image Slider Styles - Fix size consistency */
.modal-image-slider {
    margin-bottom: 20px;
}

.modal-image-slider h4 {
    color: #00d4ff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    font-size: 1.2rem !important;
}

.image-slider-container {
    position: relative;
    width: 100%;
    height: 300px; /* Fixed height to prevent jumping */
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Force consistent image sizing in modal slider */
.image-slider img {
    min-width: 100% !important;
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center !important;
    flex-shrink: 0;
    border-radius: 0;
}

/* Slider navigation buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer;
    z-index: 10;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Image counter */
.image-slider-container div[id^="imageCounter_"] {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 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;
    margin: 40px 0 1.5rem;
    padding: 2rem 0 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.world-info-section .download-section {
    text-align: center;
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
    position: relative;
    top: 20px;
    margin-bottom: 30px;
}

/* Removed duplicate .download-section rule */

/* ===== 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 Membership Promo */
.queue-membership-promo {
    text-align: center;
    margin: 10px 0 15px;
    padding: 8px 10px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.queue-membership-promo .promo-text {
    color: #a0e6ff;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    animation: subtlePulse 3s infinite ease-in-out;
}

.queue-membership-promo a {
    color: #ffd700 !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.queue-membership-promo a:hover {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    text-decoration: none !important;
}

/* Removed underline effect from queue membership promo link */

@keyframes subtlePulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.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;
}

/* Quill Rich Text Editor Dark Theme Customization */
.ql-toolbar.ql-snow {
    border: 2px solid rgba(0, 212, 255, 0.3) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(91, 115, 255, 0.06) 100%) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 16px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1) !important;
}

.ql-container.ql-snow {
    border: 2px solid rgba(0, 212, 255, 0.2) !important;
    border-top: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 0 12px 12px !important;
    color: #fff !important;
    font-size: 1rem !important;
}

.ql-editor {
    min-height: 150px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
}

.ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: normal !important;
}

/* Toolbar buttons - white and highly visible */
.ql-snow .ql-stroke {
    stroke: #ffffff !important;
}

.ql-snow .ql-fill {
    fill: #ffffff !important;
}

.ql-snow .ql-picker-label {
    color: #ffffff !important;
}

.ql-snow .ql-picker-label svg {
    opacity: 1 !important;
}

/* Toolbar button hover effects */
.ql-toolbar.ql-snow button {
    transition: all 0.2s ease !important;
}

.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow button:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1) !important;
    border-radius: 4px !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke {
    stroke: #00d4ff !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill {
    fill: #00d4ff !important;
}

/* Active button state */
.ql-toolbar.ql-snow button.ql-active,
.ql-toolbar.ql-snow .ql-picker-label.ql-active {
    background: rgba(0, 212, 255, 0.2) !important;
    border-radius: 4px !important;
}

.ql-toolbar.ql-snow button.ql-active .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-stroke {
    stroke: #00d4ff !important;
}

.ql-toolbar.ql-snow button.ql-active .ql-fill,
.ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-fill {
    fill: #00d4ff !important;
}

/* Tooltips for toolbar buttons */
.ql-toolbar button::before,
.ql-toolbar .ql-picker-label::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.9);
    color: #00d4ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0.5s, transform 0.3s ease 0.5s;
    z-index: 1000;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.ql-toolbar button:hover::before,
.ql-toolbar .ql-picker-label:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Specific tooltip content */
.ql-bold::before { content: 'Bold (Ctrl+B)' !important; }
.ql-italic::before { content: 'Italic (Ctrl+I)' !important; }
.ql-underline::before { content: 'Underline (Ctrl+U)' !important; }
.ql-strike::before { content: 'Strikethrough' !important; }
.ql-list[value="ordered"]::before { content: 'Numbered List' !important; }
.ql-list[value="bullet"]::before { content: 'Bullet List' !important; }
.ql-link::before { content: 'Insert Link' !important; }
.ql-clean::before { content: 'Clear Formatting' !important; }
.ql-header .ql-picker-label::before { content: 'Heading Size' !important; }
.ql-color .ql-picker-label::before { content: 'Text Color' !important; }
.ql-background .ql-picker-label::before { content: 'Highlight Color' !important; }
.ql-align .ql-picker-label::before { content: 'Text Alignment' !important; }

/* Dropdown menus */
.ql-snow .ql-picker-options {
    background: rgba(15, 15, 35, 0.98) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 4px !important;
}

.ql-snow .ql-picker-item {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s ease !important;
}

.ql-snow .ql-picker-item:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
}

.ql-snow a {
    color: #00d4ff !important;
}

/* Editor content styling for headers */
.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
    color: #00d4ff !important;
    font-weight: 700 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.ql-editor h1 {
    font-size: 2rem !important;
}

.ql-editor h2 {
    font-size: 1.5rem !important;
}

.ql-editor h3 {
    font-size: 1.25rem !important;
}

/* Rich text content styling for display */
.rich-text-content {
    line-height: 1.6;
}

.rich-text-content p {
    margin-bottom: 0.75rem;
    display: block;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

.rich-text-content strong {
    font-weight: 700;
    color: #ffffff;
}

.rich-text-content em {
    font-style: italic;
    color: #e0e0e0;
}

.rich-text-content u {
    text-decoration: underline;
}

.rich-text-content s {
    text-decoration: line-through;
    opacity: 0.7;
}

.rich-text-content ol,
.rich-text-content ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.rich-text-content ol {
    list-style-type: decimal;
}

.rich-text-content ul {
    list-style-type: disc;
}

.rich-text-content li {
    margin-bottom: 0.25rem;
    display: list-item;
}

.rich-text-content a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.rich-text-content a:hover {
    border-bottom-color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* Headers in rich text content */
.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3 {
    color: #00d4ff;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.rich-text-content h1 {
    font-size: 2rem;
}

.rich-text-content h2 {
    font-size: 1.5rem;
}

.rich-text-content h3 {
    font-size: 1.25rem;
}

/* Text alignment */
.rich-text-content .ql-align-center {
    text-align: center;
}

.rich-text-content .ql-align-right {
    text-align: right;
}

.rich-text-content .ql-align-justify {
    text-align: justify;
}

/* Blockquotes */
.rich-text-content blockquote {
    border-left: 4px solid #00d4ff;
    padding-left: 16px;
    margin: 12px 0;
    color: #b8c5d6;
    font-style: italic;
    background: rgba(0, 212, 255, 0.05);
    padding: 12px 16px;
    border-radius: 4px;
}

/* Code blocks */
.rich-text-content pre,
.rich-text-content pre.ql-syntax {
    background: rgba(0, 0, 0, 0.4);
    color: #00ff00;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 12px 0;
}

.rich-text-content code {
    background: rgba(0, 0, 0, 0.3);
    color: #00d4ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Font sizes */
.rich-text-content .ql-size-small {
    font-size: 0.75em;
}

.rich-text-content .ql-size-large {
    font-size: 1.5em;
}

.rich-text-content .ql-size-huge {
    font-size: 2em;
    font-weight: 600;
}

/* Subscript and superscript */
.rich-text-content sub {
    vertical-align: sub;
    font-size: 0.75em;
}

.rich-text-content sup {
    vertical-align: super;
    font-size: 0.75em;
}

/* Indentation */
.rich-text-content .ql-indent-1 {
    padding-left: 3em;
}

.rich-text-content .ql-indent-2 {
    padding-left: 6em;
}

.rich-text-content .ql-indent-3 {
    padding-left: 9em;
}

.rich-text-content .ql-indent-4 {
    padding-left: 12em;
}

.rich-text-content .ql-indent-5 {
    padding-left: 15em;
}

.rich-text-content .ql-indent-6 {
    padding-left: 18em;
}

.rich-text-content .ql-indent-7 {
    padding-left: 21em;
}

.rich-text-content .ql-indent-8 {
    padding-left: 24em;
}

/* World description styling with rich text support */
.world-description {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.world-description strong {
    font-weight: 600;
    color: #c0c0c0;
}

.world-description em {
    font-style: italic;
}

.world-description u {
    text-decoration: underline;
}

.world-description ol,
.world-description ul {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

.world-description li {
    margin-bottom: 0.25rem;
}

/* Mobile responsive styles for queue modal */
@media (max-width: 768px) {
    .queue-modal-content {
        width: 85%;
        max-width: none;
        max-height: 90vh;
        margin: 2vh auto;
        overflow-y: auto;
    }
    
    .queue-body {
        padding: 0.8rem;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
        /* Auto-scroll to show download button area */
        scroll-behavior: smooth;
    }
    
    .queue-header {
        padding: 0.8rem;
        flex-shrink: 0;
    }
    
    .queue-header h2 {
        font-size: 1.5rem;
    }
    
    .queue-premium {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .queue-premium h3 {
        font-size: 1rem;
    }
    
    .queue-premium p,
    .queue-premium li {
        font-size: 0.8rem;
    }
    
    .queue-download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .queue-banner img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .queue-modal-content {
        width: 90%;
        max-height: 85vh;
        margin: 1vh auto;
    }
    
    .queue-body {
        padding: 0.6rem;
        max-height: calc(85vh - 100px);
    }
    
    .queue-header {
        padding: 0.6rem;
    }
    
    .queue-header h2 {
        font-size: 1.3rem;
    }
    
    .queue-close {
        font-size: 2rem;
    }
    
    .queue-time {
        font-size: 1.5rem;
    }
    
    .queue-premium {
        padding: 0.5rem;
    }
    
    .queue-download-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .queue-banner img {
        height: 50px;
    }
}

/* About Us Page Styles */
.about-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%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease-out;
}

.about-subtitle {
    font-size: 1.3rem;
    color: #9aa0a6;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.channels-section {
    padding: 6rem 0;
}

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

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.channel-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 172, 254, 0.3);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.1);
}

.channel-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
}

.channel-card:hover .channel-avatar {
    border-color: rgba(79, 172, 254, 0.6);
    transform: scale(1.05);
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-avatar img {
    transform: scale(1.1);
}

.channel-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #e8eaed;
    margin-bottom: 1rem;
}

.channel-description {
    font-size: 1.1rem;
    color: #9aa0a6;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.channel-subscribe {
    margin: 1rem 0 1.5rem;
    text-align: center;
}

.channel-subscribe .subscribe-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 25px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
    width: auto !important;
    height: auto !important;
}

.channel-subscribe .subscribe-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4) !important;
    background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%) !important;
}

.channel-subscribe .subscribe-btn:active {
    transform: translateY(0) scale(1.02) !important;
}

.channel-subscribe .subscribe-btn i {
    font-size: 1.1rem !important;
}

/* Contact Section Styles */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(91, 115, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
}

.contact-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-email {
    margin-top: 2rem;
}

.email-link {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.email-link i {
    margin-right: 10px;
    color: #00d4ff;
    font-size: 1.4rem;
}

.email-link:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Copied state */
.email-link.copied {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 255, 179, 0.5);
    box-shadow: 0 4px 20px rgba(0, 255, 179, 0.2);
}

.email-link .copied-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.email-link.copied .copied-message {
    opacity: 1;
    transform: translateY(0);
}

/* Animation for the copied message */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-link:active {
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .email-link {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Fallback styles to ensure subscribe button is visible */
a.subscribe-btn {
    display: inline-block !important;
    background: #ff0000 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    margin: 10px 0 !important;
}

.channel-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.channel-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    justify-items: center;
    align-items: end;
    margin-top: auto;
    min-height: 80px;
}

.tag {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    color: #4facfe;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(79, 172, 254, 0.3);
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
}

.community-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.community-description {
    font-size: 1.2rem;
    color: #9aa0a6;
    line-height: 1.7;
    margin-bottom: 3rem;
}

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

.back-section {
    padding: 4rem 0;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8eaed;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 172, 254, 0.3);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.2);
    color: #4facfe;
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* Mobile Responsiveness for About Us */
@media (max-width: 768px) {
    .about-header {
        padding: 6rem 0 3rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .channels-section {
        padding: 4rem 0;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .channel-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .channel-avatar {
        width: 100px;
        height: 100px;
    }
    
    .channel-name {
        font-size: 1.5rem;
    }
    
    .channel-description {
        font-size: 1rem;
    }
    
    .subscribe-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .community-section {
        padding: 4rem 0;
    }
    
    .community-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .community-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .community-buttons .btn {
        width: 200px;
    }
    
    .back-section {
        padding: 3rem 0;
    }
    
    .back-btn {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 2rem;
    }
    
    .channel-card {
        padding: 1.5rem;
    }
    
    .channel-avatar {
        width: 80px;
        height: 80px;
    }
    
    .channel-name {
        font-size: 1.3rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .channel-tags {
        gap: 0.6rem;
        min-height: 70px;
    }
}
