/* Enhanced Coming Soon Modal Styles - Theme-Matched */

/* Modal Overlay with animated gradient */
/* Modal Overlay - Enable scrolling */
/* Modal Overlay */
#coming-soon-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden; /* Prevent outer scroll */
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}


#coming-soon-modal.active {
    display: flex !important;
}

/* Override default modal structure for coming soon */
#coming-soon-modal .modal-header {
    display: none !important;
}

#coming-soon-modal .modal-body {
    padding: 0 !important;
}

#coming-soon-modal .modal-footer {
    display: none !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        background: linear-gradient(135deg, rgba(17, 24, 39, 0), rgba(31, 41, 55, 0));
    }
    to {
        opacity: 1;
        background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95));
    }
}

/* Coming Soon Modal Content - Glassmorphism effect  and - Adjust for scroll */
.coming-soon-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.18);
    margin: auto;
    padding: 2rem !important;
    border-radius: 24px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh; /* Limit height to viewport */
    overflow-y: auto; /* Allow content scrolling if needed */
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(245, 158, 11, 0.1),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for the modal content */
.coming-soon-content::-webkit-scrollbar {
    width: 8px;
}

.coming-soon-content::-webkit-scrollbar-track {
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
}

.coming-soon-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 4px;
}

.coming-soon-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
}

/* Dark mode scrollbar */
.dark .coming-soon-content::-webkit-scrollbar-track,
[data-theme="dark"] .coming-soon-content::-webkit-scrollbar-track {
    background: rgba(255, 213, 79, 0.1);
}

.dark .coming-soon-content::-webkit-scrollbar-thumb,
[data-theme="dark"] .coming-soon-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD54F, #FBC02D);
}

.dark .coming-soon-content::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .coming-soon-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FBC02D, #F9A825);
}

/* Animated background decoration */
.coming-soon-content::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
}

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

/* Dark mode styles */
.dark .coming-soon-content,
[data-theme="dark"] .coming-soon-content {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.9));
    border: 1px solid rgba(255, 213, 79, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(255, 213, 79, 0.15),
        inset 0 0 60px rgba(255, 213, 79, 0.05);
}

.dark .coming-soon-content::before,
[data-theme="dark"] .coming-soon-content::before {
    background: radial-gradient(circle, rgba(255, 213, 79, 0.1) 0%, transparent 70%);
}

/* Enhanced close button */
.coming-soon-content .modal-close-enhanced {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

.coming-soon-content .modal-close-enhanced:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, rgba(220, 38, 38, 1), rgba(185, 28, 28, 1));
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.coming-soon-content .modal-close-enhanced svg {
    color: white;
    width: 18px;
    height: 18px;
}

/* Coming Soon Header Section */
.coming-soon-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

/* Animated icon container - Using platform colors */
.coming-soon-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}

/* Dark mode icon */
.dark .coming-soon-icon,
[data-theme="dark"] .coming-soon-icon {
    background: linear-gradient(135deg, #FFD54F 0%, #FBC02D 100%);
    box-shadow: 0 10px 40px rgba(255, 213, 79, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(245, 158, 11, 0.6);
    }
}

/* Dark mode pulse animation */
.dark .coming-soon-icon,
[data-theme="dark"] .coming-soon-icon {
    animation: pulseDark 2s ease-in-out infinite;
}

@keyframes pulseDark {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 213, 79, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(255, 213, 79, 0.6);
    }
}

/* Ripple effect for icon */
.coming-soon-icon::before,
.coming-soon-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    opacity: 0.3;
    animation: ripple 2s ease-out infinite;
}

.dark .coming-soon-icon::before,
.dark .coming-soon-icon::after,
[data-theme="dark"] .coming-soon-icon::before,
[data-theme="dark"] .coming-soon-icon::after {
    background: linear-gradient(135deg, #FFD54F, #FBC02D);
}

.coming-soon-icon::after {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.coming-soon-icon svg {
    color: white;
    width: 50px;
    height: 50px;
    z-index: 1;
    position: relative;
}

.dark .coming-soon-icon svg,
[data-theme="dark"] .coming-soon-icon svg {
    color: #1E1E1E;
}

/* Modal title with gradient text - Platform colors */
.coming-soon-content .modal-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.dark .coming-soon-content .modal-title,
[data-theme="dark"] .coming-soon-content .modal-title {
    background: linear-gradient(135deg, #FFD54F 0%, #FBC02D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal subtitle */
.modal-subtitle {
    color: #78350F;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dark .modal-subtitle,
[data-theme="dark"] .modal-subtitle {
    color: #E0E0E0;
}

/* Feature items with hover effects - Platform colors */
.coming-soon-features {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.dark .coming-soon-features,
[data-theme="dark"] .coming-soon-features {
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.1), rgba(251, 192, 45, 0.1));
    border: 1px solid rgba(255, 213, 79, 0.2);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.feature-item:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-5px);
}

.dark .feature-item:hover,
[data-theme="dark"] .feature-item:hover {
    background: rgba(255, 213, 79, 0.2);
}

.feature-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.4s; }

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

.feature-item span:last-child {
    font-size: 0.875rem;
    color: #92400E;
    font-weight: 500;
}

.dark .feature-item span:last-child,
[data-theme="dark"] .feature-item span:last-child {
    color: #E0E0E0;
}

/* Enhanced form styling */
#coming-soon-form {
    margin-top: 1rem;
}

#coming-soon-form .form-group {
    margin-bottom: 1rem;
}

#coming-soon-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #78350F;
    font-weight: 600;
    font-size: 0.95rem;
}

.dark #coming-soon-form label,
[data-theme="dark"] #coming-soon-form label {
    color: #FFD54F;
}

#notify-email {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #F59E0B, #D97706) border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #78350F;
}

#notify-email:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1),
                0 10px 25px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
}

.dark #notify-email,
[data-theme="dark"] #notify-email {
    background: linear-gradient(#1f2937, #1f2937) padding-box,
                linear-gradient(135deg, #FFD54F, #FBC02D) border-box;
    color: #E0E0E0;
}

.dark #notify-email:focus,
[data-theme="dark"] #notify-email:focus {
    box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.1),
                0 10px 25px rgba(255, 213, 79, 0.15);
}

/* Animated submit button - Platform colors */
#coming-soon-form .submit-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
}

.dark #coming-soon-form .submit-btn,
[data-theme="dark"] #coming-soon-form .submit-btn {
    background: linear-gradient(135deg, #FFD54F 0%, #FBC02D 100%);
    color: #1E1E1E;
    box-shadow: 0 10px 25px rgba(255, 213, 79, 0.25);
}

#coming-soon-form .submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#coming-soon-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.35);
}

.dark #coming-soon-form .submit-btn:hover,
[data-theme="dark"] #coming-soon-form .submit-btn:hover {
    box-shadow: 0 15px 35px rgba(255, 213, 79, 0.35);
}

#coming-soon-form .submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

#coming-soon-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Footer text with animation */
.auth-footer {
    text-align: center;
    margin-top: 1rem;
    color: #92400E;
    font-size: 0.95rem;
}

.auth-footer strong {
    color: #F59E0B;
    font-weight: 700;
    animation: colorShift 3s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% { color: #F59E0B; }
    50% { color: #D97706; }
}

.dark .auth-footer,
[data-theme="dark"] .auth-footer {
    color: #E0E0E0;
}

.dark .auth-footer strong,
[data-theme="dark"] .auth-footer strong {
    animation: colorShiftDark 3s ease-in-out infinite;
}

@keyframes colorShiftDark {
    0%, 100% { color: #FFD54F; }
    50% { color: #FBC02D; }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .coming-soon-content {
        padding: 1.5rem !important;
        margin: 1rem;
    }
    
    .coming-soon-content .modal-title {
        font-size: 1.5rem;
    }
    
    .coming-soon-icon {
        width: 80px;
        height: 80px;
    }
    
    .coming-soon-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .coming-soon-features {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
}


/* Add this CSS to your existing coming soon modal CSS or create a new file */

/* Logged-in Message Container */
.logged-in-message {
    text-align: center;
    padding: 1.5rem 0;
    animation: fadeIn 0.5s ease;
}

/* Success Check Circle */
.success-check {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.dark .success-check,
[data-theme="dark"] .success-check {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Check Icon */
.check-icon {
    width: 50px;
    height: 50px;
    color: white;
    stroke-width: 3;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkDraw 0.8s ease 0.3s forwards;
}

/* Logged-in Title */
.logged-in-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
    animation: slideInUp 0.6s ease 0.2s both;
}

.dark .logged-in-title,
[data-theme="dark"] .logged-in-title {
    color: #10b981;
}

/* Logged-in Text */
.logged-in-text {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    animation: slideInUp 0.6s ease 0.3s both;
}

.logged-in-text strong {
    color: #F59E0B;
    font-weight: 600;
}

.dark .logged-in-text,
[data-theme="dark"] .logged-in-text {
    color: #9ca3af;
}

.dark .logged-in-text strong,
[data-theme="dark"] .logged-in-text strong {
    color: #FFD54F;
}

/* Benefits Container */
.logged-in-benefits {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    animation: slideInUp 0.6s ease 0.4s both;
}

.dark .logged-in-benefits,
[data-theme="dark"] .logged-in-benefits {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.2);
}

/* Individual Benefit Item */
.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #059669;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    animation: fadeIn 0.6s ease 0.5s both;
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.dark .benefit-item,
[data-theme="dark"] .benefit-item {
    color: #10b981;
}

/* Benefit Icon */
.benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    animation: bounce 2s ease-in-out infinite;
}

.benefit-item:nth-child(1) .benefit-icon { animation-delay: 0s; }
.benefit-item:nth-child(2) .benefit-icon { animation-delay: 0.2s; }
.benefit-item:nth-child(3) .benefit-icon { animation-delay: 0.4s; }

/* Animations */
@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkDraw {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .logged-in-message {
        padding: 1rem 0;
    }
    
    .success-check {
        width: 60px;
        height: 60px;
    }
    
    .check-icon {
        width: 35px;
        height: 35px;
    }
    
    .logged-in-title {
        font-size: 1.25rem;
    }
    
    .logged-in-text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .logged-in-benefits {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .benefit-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .benefit-icon {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
}

/* Ensure proper stacking in modal */
#coming-soon-modal .logged-in-message {
    position: relative;
    z-index: 1;
}

/* Smooth transitions when switching between states */
#coming-soon-form,
.logged-in-message {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#coming-soon-form[style*="display: none"] + .logged-in-message,
.logged-in-message:only-child {
    opacity: 1;
    visibility: visible;
}

/* Additional hover effects */
.logged-in-benefits:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Loading state for future API integration */
.logged-in-message.loading {
    opacity: 0.6;
    pointer-events: none;
}

.logged-in-message.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}