* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #44136c;
    --primary-light: #b965e1;
    --primary-soft: #e8ebff;
    --accent: #ffa8b5;
    --accent-light: #ffd6dd;
    --text: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: rgba(139, 157, 255, 0.15);
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #f9faff 0%, #f0f4ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter",
        sans-serif;
    padding: 20px;
    color: var(--text);
}

a {
    text-decoration: none;
    outline: none;
}

/* Gentle floating elements */
.floating-element {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-light),
        var(--accent-light)
    );
    opacity: 0.1;
    z-index: 1;
    animation: float 25s infinite linear;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 8%;
    animation-delay: 5s;
    animation-direction: reverse;
}

.element-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

.container {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px var(--shadow), 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(139, 157, 255, 0.1);
    text-align: center;
}

.header {
    margin-bottom: 40px;
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(139, 157, 255, 0.3);
    transform: rotate(0);
    transition: var(--transition);
}

.container:hover .icon-container {
    transform: rotate(5deg);
}

h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 35px;
}

/* Captcha Container */
.captcha-container {
    margin: 35px 0;
    padding: 25px;
    background: var(--primary-soft);
    border-radius: 18px;
    transition: var(--transition);
    border: 1px solid rgba(139, 157, 255, 0.2);
}

.captcha-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 157, 255, 0.15);
}

.captcha-label {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 500;
}

.captcha-container.hidden {
    opacity: 0;
    transform: scale(0.9);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Verification Message */
.verification-message {
    padding: 18px 20px;
    border-radius: 14px;
    margin: 25px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.verification-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.verification-loading {
    background: rgba(255, 168, 181, 0.1);
    color: var(--text);
    border-left: 4px solid var(--accent);
}

.verification-success {
    background: rgba(139, 157, 255, 0.1);
    color: var(--text);
    border-left: 4px solid var(--primary);
    animation: gentlePulse 2s infinite;
}

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

/* Download Button */
.download-container {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.download-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.download-button {
    width: 100%;
    padding: 22px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(139, 157, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.download-button::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.7s ease;
}

.download-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 157, 255, 0.4);
}

.download-button:hover:not(:disabled)::before {
    left: 100%;
}

.download-button:disabled {
    background: linear-gradient(135deg, #cbd5e0, #e2e8f0);
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
}

.download-button.enabled {
    animation: gentleGlow 3s infinite alternate;
}

@keyframes gentleGlow {
    from {
        box-shadow: 0 10px 30px rgba(139, 157, 255, 0.3);
    }
    to {
        box-shadow: 0 10px 40px rgba(139, 157, 255, 0.5);
    }
}

.button-icon {
    font-size: 20px;
    transition: var(--transition);
}

.download-button:hover:not(:disabled) .button-icon {
    transform: translateY(3px);
}

.download-button.enabled .button-icon {
    animation: gentleBounce 2s infinite;
}

@keyframes gentleBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.file-info {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Instructions */
.instructions {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(139, 157, 255, 0.1);
    line-height: 1.7;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Cloudflare Turnstile Custom Styling */
.cf-turnstile {
    border-radius: 12px !important;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 40px 25px;
        margin: 20px 0;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .captcha-container {
        padding: 20px;
    }

    .download-button {
        padding: 20px 25px;
        font-size: 17px;
    }

    .floating-element {
        display: none;
    }
}

/* Success Animation */
@keyframes successCheckmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    animation: successCheckmark 0.5s ease-out;
}

#adblock-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #900;
    font-weight: bold;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
#adblock-message .wrap {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
}
