:root {
    --bg-dark: #0B0A1A;
    --bg-gradient: linear-gradient(135deg, #0B0A1A 0%, #1A183A 50%, #2D1B4E 100%);
    --glass-bg: rgba(20, 18, 48, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #F4F4F9;
    --text-muted: #A8A6CD;
    --accent: #B088F9;
    --accent-hover: #D4BDFC;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-focus: rgba(176, 136, 249, 0.2);
    --danger: #FF6B6B;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 4rem 1rem;
    gap: 2rem;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    position: absolute;
    top: 20px;
    width: 140px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: loader-pulse 2s infinite ease-in-out;
}

@keyframes loader-pulse {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)); }
    50% { transform: translateY(-5px) scale(1.05); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)); }
    100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)); }
}

.loader-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    overflow: hidden;
}

.l-cloud {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    filter: blur(10px);
    animation: floatUp 2.5s infinite ease-in;
}

.l-cloud-1 { width: 80px; height: 30px; left: 10%; animation-delay: 0s; }
.l-cloud-2 { width: 120px; height: 40px; right: 10%; animation-delay: 0.8s; }
.l-cloud-3 { width: 60px; height: 25px; left: 40%; animation-delay: 1.6s; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-200px) scale(1.2); opacity: 0; }
}

.loader-text {
    position: relative;
    z-index: 2;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 2px;
    margin-top: 150px;
    animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
    0% { opacity: 0.5; filter: blur(1px); }
    100% { opacity: 1; filter: blur(0); text-shadow: 0 0 10px rgba(176,136,249,0.5); }
}

body.loading {
    overflow: hidden;
}

/* Background Layers */
.night-sky {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-gradient);
    z-index: -4;
}

.stars {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    z-index: -3;
    animation: twinkle 10s infinite alternate linear;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: translateY(0); }
    100% { opacity: 0.7; transform: translateY(-10px); }
}

.moon {
    position: fixed;
    top: 5%;
    right: 5%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: transparent;
    box-shadow: -20px 10px 0 10px #f6f1d5;
    z-index: -2;
    transform: rotate(-15deg);
    transition: all 0.5s ease;
}

.moon.glow-active {
    box-shadow: -20px 10px 15px 10px #fffae6, 0 0 40px 10px rgba(246, 241, 213, 0.4);
    transform: rotate(-10deg) scale(1.05);
}

.clouds {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.08); /* More subtle, transluscent */
    border-radius: 100px;
    filter: blur(20px);
}

.cloud-1 {
    width: 300px; height: 100px;
    top: 20%; left: -10%;
    animation: float-right 40s linear infinite;
}

.cloud-2 {
    width: 400px; height: 150px;
    top: 60%; right: -20%;
    animation: float-left 50s linear infinite;
    background: rgba(176, 136, 249, 0.06);
}

.cloud-3 {
    width: 250px; height: 80px;
    bottom: 10%; left: 10%;
    animation: float-right 35s linear infinite;
}

.cloud-4 {
    width: 500px; height: 200px;
    top: 5%; right: 10%;
    animation: float-left 60s linear infinite;
}

@keyframes float-right {
    0% { transform: translateX(0); }
    100% { transform: translateX(120vw); }
}

@keyframes float-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-120vw); }
}

/* Glassmorphism Container */
.container {
    width: 100%;
    max-width: 600px;
    perspective: 1000px;
    z-index: 10;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.glass-panel.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(176, 136, 249, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(176, 136, 249, 0.2);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #D4BDFC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sparkle {
    display: inline-block;
    animation: sparkle-anim 2s infinite alternate ease-in-out;
}

@keyframes sparkle-anim {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    100% { transform: scale(1.2) rotate(15deg); filter: brightness(1.5); }
}

.header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Animated Info Blocks */
.program-info {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(176, 136, 249, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: inset 0 0 20px rgba(176, 136, 249, 0.02);
    transition: all 0.3s ease;
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(176, 136, 249, 0.3);
    transform: translateY(-2px);
}

.info-block h3 {
    font-size: 1.1rem;
    color: var(--accent-hover);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.info-block p, .process-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.process-list {
    list-style: none;
    padding-left: 0.5rem;
}

.process-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.process-list li::before {
    content: "✨";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 0.9rem;
}

.process-list li strong {
    color: var(--accent);
}

.info-glow-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(176, 136, 249, 0.8);
    background: linear-gradient(to right, #B088F9, #D4BDFC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Form Styles */
.dream-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

input, select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input::placeholder, select:invalid {
    color: rgba(168, 166, 205, 0.5);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A8A6CD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--input-focus);
    box-shadow: 0 0 15px rgba(176, 136, 249, 0.2);
}

/* Custom Checkbox & Animation */
.terms-group {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.custom-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.check-icon {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Micro-Animation */
.star-animation {
    position: absolute;
    width: 2px;
    height: 10px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 10px 2px var(--accent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) rotate(45deg);
}

.custom-checkbox-wrapper input:checked ~ .custom-checkbox {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(176, 136, 249, 0.5);
}

.custom-checkbox-wrapper input:checked ~ .custom-checkbox .check-icon {
    opacity: 1;
    transform: scale(1);
    color: var(--bg-dark);
}

.custom-checkbox-wrapper input:checked ~ .custom-checkbox .star-animation {
    animation: shooting-star 0.6s ease-out forwards;
}

@keyframes shooting-star {
    0% { opacity: 1; transform: translate(15px, -20px) rotate(45deg) scale(1); }
    50% { opacity: 1; filter: brightness(1.5); }
    100% { opacity: 0; transform: translate(-10px, 10px) rotate(45deg) scale(0); }
}

.terms-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.custom-checkbox-row:hover .terms-text {
    color: var(--text-main);
}

/* Submit Button */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #895CF2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(137, 92, 242, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(137, 92, 242, 0.4);
}

.submit-btn:hover .btn-glow {
    transform: scale(1);
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Success Panel */
.success-panel {
    display: none;
    margin: 0 auto;
    transform: translateY(0) scale(1);
    width: 100%;
    max-width: 500px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    z-index: 20;
}

.success-panel.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.9);
}

.success-content .success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.success-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.success-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.success-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.success-link svg {
    width: 20px;
    height: 20px;
}

.web-link {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.web-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ig-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border: none;
}

.ig-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 39, 67, 0.4);
}

/* Platform Checkboxes */
.platform-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.platform-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-left: 0;
}

.platform-label:hover {
    background: rgba(176, 136, 249, 0.1);
    border-color: rgba(176, 136, 249, 0.3);
}

.platform-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
    margin: 0;
    padding: 0;
}

/* FAQ Section */
.faq-container {
    margin-top: -1rem;
    margin-bottom: 3rem;
}

#faq-panel .faq-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-hover);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--accent);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-bottom: 1rem;
}

/* Modal Styling */
.text-link {
    background: none;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}

.text-link:hover {
    color: var(--accent-hover);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 10, 26, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(20px) scale(0.95);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-header h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--accent-hover);
    padding-right: 2rem;
}

.modal-body h4 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.modal-body p, .modal-body ul {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

.modal-footer-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(176, 136, 249, 0.3);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(176, 136, 249, 0.6);
}

/* Responsive */
@media (max-width: 600px) {
    .glass-panel {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .two-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    h1 { font-size: 1.6rem; }
    
    .moon {
        width: 60px; height: 60px;
        top: 3%; right: 3%;
        box-shadow: -10px 5px 0 5px #f6f1d5;
    }
    .moon.glow-active {
        box-shadow: -10px 5px 8px 5px #fffae6, 0 0 20px 5px rgba(246, 241, 213, 0.4);
    }
}
