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

body {
    margin: 0;
    padding: 0;
    background: #000000;
    overflow: hidden;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.8s ease-out;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.loading-logo {
    margin-bottom: 60px;
}

.loading-quen {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 80px rgba(0, 122, 255, 0.6),
        0 0 120px rgba(88, 86, 214, 0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: glow 3s ease-in-out infinite alternate;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 40px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #5856D6;
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #AF52DE;
    animation-duration: 0.8s;
}

.loading-text {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    color: #86868b;
    letter-spacing: 0.05em;
}

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



.spline-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #000000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

/* Text Overlay Styles */
.text-overlay {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1001;
    pointer-events: none;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.quen-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 80px rgba(0, 122, 255, 0.6),
        0 0 120px rgba(88, 86, 214, 0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    100% {
        filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 122, 255, 0.8));
    }
}

/* Contract Address Styles */
.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.ca-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #007aff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ca-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #007aff;
    letter-spacing: 0.05em;
    user-select: all;
}

.copy-btn {
    background: rgba(0, 122, 255, 0.2);
    border: 1px solid rgba(0, 122, 255, 0.4);
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #007aff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(0, 122, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.6);
    transform: scale(1.1);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Bottom Buttons Styles */
.bottom-buttons {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 24px;
    z-index: 1001;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    position: relative;
    padding: 18px 36px;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    min-width: 140px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn::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.6s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 50%, #AF52DE 100%);
    color: #ffffff;
    box-shadow: 
        0 8px 32px rgba(0, 122, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056D6 0%, #4A4AC4 50%, #9B4BC8 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 122, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-social {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px;
    min-width: 56px;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.btn-social:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-social:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-social svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Countdown Timer Styles */
.countdown-overlay {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.countdown-timer {
    display: flex;
    gap: 30px;
    align-items: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(0, 122, 255, 0.6),
        0 0 90px rgba(88, 86, 214, 0.4);
    margin-bottom: 8px;
}

.countdown-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #86868b;
    text-shadow: 0 0 20px rgba(134, 134, 139, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #86868b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    color: #86868b;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.waitlist-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.form-group input::placeholder {
    color: #86868b;
}

.form-group input:focus {
    outline: none;
    border-color: #007aff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.btn-loading {
    display: none;
}

.loading-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: loading-dots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-dots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Success Modal */
.success-modal .modal-header h2 {
    color: #007aff;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(52, 199, 89, 0.3);
}

.success-details {
    font-size: 1rem !important;
    color: #1d1d1f !important;
    font-weight: 500;
    margin: 20px 0 30px 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-overlay {
        top: 40px;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .quen-title {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }
    
    .contract-address {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .countdown-overlay {
        bottom: 220px; /* Increased to avoid overlap with buttons */
        padding: 20px;
        border-radius: 20px;
    }
    
    .countdown-timer {
        gap: 15px; /* Reduced gap for mobile */
    }
    
    .countdown-item {
        min-width: 50px; /* Smaller for mobile */
    }
    
    .countdown-number {
        font-size: 1.8rem; /* Smaller font for mobile */
    }
    
    .countdown-label {
        font-size: 0.7rem; /* Smaller font for mobile */
    }
    
    .bottom-buttons {
        bottom: 40px;
        gap: 15px;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        border-radius: 16px;
        min-height: auto; /* Remove fixed height */
    }
    
    .btn {
        padding: 16px 28px;
        font-size: 0.875rem;
        min-width: 200px;
        height: 52px;
    }
    
    .btn-social {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .text-overlay {
        top: 30px;
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .quen-title {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }
    
    .contract-address {
        padding: 12px;
        gap: 6px;
    }
    
    .countdown-overlay {
        bottom: 240px; /* Even more space for very small screens */
        padding: 15px;
        border-radius: 16px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 45px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .bottom-buttons {
        bottom: 30px;
        padding: 12px;
        gap: 12px;
    }
    
    .btn {
        min-width: 180px;
        height: 48px;
        font-size: 0.8rem;
    }
    
    .btn-social {
        min-width: 180px;
    }
}

@media (max-width: 360px) {
    .countdown-overlay {
        bottom: 260px; /* Maximum spacing for very small screens */
    }
    
    .quen-title {
        font-size: 1.8rem;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .countdown-item {
        min-width: 40px;
    }
}








