/* Custom Font - Minecraftia */
@font-face {
    font-family: 'Minecraftia';
    src: url('../fonts/minecraftia/Minecraftia-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minecraft End Theme - Mysterious and Dark */
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #4c1d95 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    --ender-cyan: #00ffff;
    --dragon-gold: #fbbf24;
    --end-purple: #6d28d9;
    --obsidian-black: #0a0a0f;
    --void-black: #030304;
    --dark-bg: #0a0a0f;
    --darker-bg: #030304;
    --glass-bg: rgba(109, 40, 217, 0.1);
    --glass-border: rgba(139, 92, 246, 0.2);
    --text-primary: #e0e0ff;
    --text-secondary: #c4b5fd;
    --glow-cyan: rgba(0, 255, 255, 0.3);
    --glow-purple: rgba(139, 92, 246, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}


/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.animated-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/background.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--dark-bg), transparent);
}

.hero-content {
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Minecraftia', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow:
        0 0 3px rgba(139, 92, 246, 1),
        0 0 6px rgba(139, 92, 246, 0.5),
        0 3px 5px rgba(0, 0, 0, 1),
        0 5px 10px rgba(0, 0, 0, 0.9),
        0 8px 15px rgba(0, 0, 0, 0.8),
        0 12px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    letter-spacing: 4px;
}

@keyframes glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Button Styles - Minecraft Style */
.btn-primary,
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    color: white;
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 50%, #4c1d95 100%);
    border: none;
    border-radius: 0;
    cursor: pointer;
    overflow: visible;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    /* Bordes tipo bisel - luz arriba/izquierda, sombra abajo/derecha */
    border-top: 4px solid rgba(167, 139, 250, 0.5);
    border-left: 4px solid rgba(167, 139, 250, 0.5);
    border-bottom: 4px solid rgba(0, 0, 0, 0.8);
    border-right: 4px solid rgba(0, 0, 0, 0.8);
    /* Sombra exterior para profundidad con brillo End */
    box-shadow:
        0 8px 0 0 #1e1b4b,
        0 8px 16px 0 rgba(139, 92, 246, 0.4);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.btn-secondary {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 50%, #000000 100%);
    color: #c084fc;
    border-top: 4px solid rgba(192, 132, 252, 0.3);
    border-left: 4px solid rgba(192, 132, 252, 0.3);
    box-shadow:
        0 8px 0 0 #000000,
        0 8px 16px 0 rgba(192, 132, 252, 0.3);
}

.btn-primary::before,
.btn-secondary::before {
    display: none;
}

.btn-primary:hover,
.btn-secondary:hover {
    background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
    transform: translateY(0px);
    /* Iluminar bordes superiores en hover con brillo púrpura */
    border-top: 4px solid rgba(167, 139, 250, 0.8);
    border-left: 4px solid rgba(167, 139, 250, 0.8);
    box-shadow:
        0 8px 0 0 #1e1b4b,
        0 8px 16px 0 rgba(139, 92, 246, 0.6),
        0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #262626 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e9d5ff;
    box-shadow:
        0 8px 0 0 #000000,
        0 8px 16px 0 rgba(192, 132, 252, 0.6),
        0 0 20px rgba(192, 132, 252, 0.4);
    border-top: 4px solid rgba(192, 132, 252, 0.5);
    border-left: 4px solid rgba(192, 132, 252, 0.5);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(6px);
    /* Invertir bordes al presionar para efecto "hundido" */
    border-top: 4px solid rgba(0, 0, 0, 0.8);
    border-left: 4px solid rgba(0, 0, 0, 0.8);
    border-bottom: 4px solid rgba(167, 139, 250, 0.3);
    border-right: 4px solid rgba(167, 139, 250, 0.3);
    /* Reducir sombra al presionar */
    box-shadow:
        0 2px 0 0 #1e1b4b,
        0 2px 4px 0 rgba(139, 92, 246, 0.3);
}

.btn-secondary:active {
    box-shadow:
        0 2px 0 0 #000000,
        0 2px 4px 0 rgba(192, 132, 252, 0.3);
}

/* Section Styles */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Hero section should be visible on load */
section.hero {
    opacity: 1;
    transform: translateY(0);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Minecraftia', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tutorial Section */
.tutorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(10px);
    border-color: rgba(139, 92, 246, 0.5);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    font-family: 'Minecraftia', cursive;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Content Styles for Historia and Normas */
.content-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 20px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.content-subtitle {
    font-family: 'Minecraftia', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-primary);
    margin: 40px 0 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 30px 0;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
}

.rules-list {
    list-style: none;
    counter-reset: rule-counter;
}

.rules-list li {
    counter-increment: rule-counter;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
    padding-left: 70px;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(10px);
    border-color: rgba(139, 92, 246, 0.5);
}

.rules-list li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6), 0 0 20px rgba(0, 255, 255, 0.3);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Toast Notification */
.toast,
.toastYappy {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 40px;
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 50%, #4c1d95 100%);
    border-radius: 0;
    border-top: 4px solid rgba(167, 139, 250, 0.5);
    border-left: 4px solid rgba(167, 139, 250, 0.5);
    border-bottom: 4px solid rgba(0, 0, 0, 0.8);
    border-right: 4px solid rgba(0, 0, 0, 0.8);
    box-shadow:
        0 8px 0 0 #1e1b4b,
        0 8px 16px 0 rgba(139, 92, 246, 0.4);
    transform: translateX(calc(100% + 50px));
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show,
.toastYappy.show {
    transform: translateX(0);
}

/* Back Button */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 25px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        letter-spacing: 2px;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-buttons .btn-primary,
    .nav-buttons .btn-secondary {
        width: fit-content;
    }

    .rules-list li {
        padding-left: 20px;
        padding-top: 60px;
    }

    .rules-list li::before {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }


}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-12px);
    }

    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--text-secondary);
    border-bottom: 3px solid var(--text-secondary);
    transform: rotate(45deg);
    opacity: 0.7;
}

.scroll-indicator::after {
    content: 'SCROLL';
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Custom backgrounds for each page */
/* Default: index uses background.png (already defined above) */

/* Historia page - replace 'background-historia.png' with your own image */
body.historia .hero-background {
    background-image: url('../img/historia.jpg');
}

/* Normas page - replace 'background-normas.png' with your own image */
body.normas .hero-background {
    background-image: url('../img/background-normas.png');
}

/* Pagos page - replace 'background-pagos.png' with your own image */
body.pagos .hero-background {
    background-image: url('../img/pagos.jpg');
}

/* Payment Page Specific Styles */
.payment-intro {
    text-align: center;
    margin-bottom: 60px;
}

.payment-methods {
    margin: 60px 0;
}

.payment-option {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.12);
}

.payment-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.payment-method-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.qr-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    min-width: 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.qr-placeholder:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
}

.phone-number-container {
    margin: 30px 0;
}

.phone-number-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(79, 172, 254, 0.2));
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Minecraftia', cursive;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-section {
    margin: 60px 0;
    text-align: center;
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    max-width: 500px;
    margin: 30px auto;
}

.price-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.currency {
    font-size: 2rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 4rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Minecraftia', cursive;
}

.period {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

.payment-instructions {
    margin: 60px 0;
}

.instructions-list {
    list-style: none;
    counter-reset: instruction-counter;
    margin-top: 30px;
}

.instructions-list li {
    counter-increment: instruction-counter;
    padding: 20px;
    padding-left: 70px;
    margin-bottom: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.instructions-list li:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(10px);
    border-color: rgba(139, 92, 246, 0.5);
}

.instructions-list li::before {
    content: counter(instruction-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--secondary-gradient);
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.btn-primary svg,
.btn-secondary svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.payment-faq {
    margin: 60px 0;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
}

.faq-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Payment Form Styles */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.payment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-form label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.payment-form input[type="text"],
.payment-form input[type="tel"],
.payment-form input[type="file"] {
    width: 100%;
    padding: 15px 20px;
    background: var(--darker-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.payment-form input[type="text"]:focus,
.payment-form input[type="tel"]:focus,
.payment-form input[type="file"]:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: var(--dark-bg);
}

.payment-form input[type="file"] {
    padding: 12px 20px;
}

.payment-form input[type="file"]::file-selector-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.payment-form input[type="file"]::file-selector-button:hover {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Redirect Overlay */
.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.redirect-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.redirect-content {
    text-align: center;
    padding: 40px;
}

.redirect-title {
    font-family: 'Minecraftia', cursive;
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

.redirect-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Minecraft Style Loader */
.minecraft-loader {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.minecraft-loader .cube {
    width: 25px;
    height: 25px;
    background: var(--end-purple);
    border: 3px solid rgba(0, 0, 0, 0.5);
    /* Simulated 3D block shading */
    box-shadow:
        inset 4px 4px 0 rgba(255, 255, 255, 0.3),
        inset -4px -4px 0 rgba(0, 0, 0, 0.4);
    animation: bounce-block 0.6s infinite alternate;
}

.minecraft-loader .cube:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--ender-cyan);
}

.minecraft-loader .cube:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce-block {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-25px);
    }
}

/* ========== Real-time Form Validation ========== */
.payment-form input:invalid:not(:placeholder-shown) {
    border-color: #f87171;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.2);
}

.payment-form input:valid:not(:placeholder-shown) {
    border-color: rgba(139, 92, 246, 0.6);
}

/* ========== IP Display Block ========== */
.ip-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.ip-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.7;
}

.ip-address {
    /* Minecraft bevel block */
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 50%, #000000 100%);
    border-top: 4px solid rgba(192, 132, 252, 0.3);
    border-left: 4px solid rgba(0, 0, 0, 0.8);
    border-bottom: 4px solid rgba(0, 0, 0, 0.9);
    border-right: none;
    padding: 14px 30px;
    box-shadow:
        0 6px 0 0 #000,
        inset 0 0 30px rgba(0, 255, 255, 0.03);

    /* Terminal text style */
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    font-weight: 700;
    color: var(--end-purple);
    letter-spacing: 2px;
    text-shadow:
        0 0 8px rgba(139, 92, 246, 0.35),
        0 0 20px rgba(139, 92, 246, 0.2);
}

.ip-row {
    display: flex;
    align-items: stretch;
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.25);
}

.ip-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 50%, #000000 100%);
    border: none;
    border-top: 4px solid  rgba(192, 132, 252, 0.3);
    border-right: 4px solid rgba(0, 0, 0, 0.8);
    border-bottom: 4px solid rgba(0, 0, 0, 0.9);
    color: #c084fc;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 6px 0 0 #000000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.ip-copy-btn:hover {
    background: linear-gradient(180deg, #262626 0%, #1a1a1a 50%, #0f0f0f 100%);
    box-shadow: 0 6px 0 0 #1e1b4b, 0 0 15px rgba(139, 92, 246, 0.4);
}

.ip-copy-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 0 #1e1b4b;
}



@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ========== Hero Stats Bar ========== */
.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
    margin-bottom: 10px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.hero-stat .stat-icon {
    font-size: 1.1rem;
}

/* ========== Section Subtitle ========== */
.section-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}