body {
    background: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.download-container {
    width: 100%;
    max-width: 500px;
    padding: 120px 20px 40px; /* Space for fixed header */
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Glass Card Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card h2 {
    font-size: 24px;
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.step-indicator {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Form Styles */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Captcha Section Styles */
.captcha-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.02);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-image-container {
    flex: 1;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    overflow: hidden;
}

.captcha-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.refresh-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: var(--border-color);
    transform: rotate(45deg);
}

/* Button Styles */
.primary-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(118, 75, 162, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(118, 75, 162, 0.4);
    filter: brightness(1.1);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn.secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
}

.text-btn:hover {
    text-decoration: underline;
}

/* Checkbox Styles */
.masking-option {
    margin-bottom: 30px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--border-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Success Card */
.success-card {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

/* Loaders */
.loader-small {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    flex-shrink: 0;
}

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

/* Footer */
.download-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Transition Animations */
.glass-card {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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