body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.elite-nav {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    background: rgba(0, 0, 0, 0.9);
}

.elite-logo {
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-family: 'Orbitron';
}

.tool-header-badge {
    border: 2px solid #007bff;
    padding: 8px 25px;
    display: inline-block;
    color: #007bff;
    font-family: 'Orbitron';
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Exceptional Input Styling */
.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 69, 0, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #FF6600;
    background: rgba(255, 69, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

.form-label {
    color: #FF6600;
    font-family: 'Orbitron';
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.send-btn {
    background: linear-gradient(90deg, #FF4500, #FF8C00);
    font-family: 'Orbitron';
    font-weight: 900;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.4);
    filter: brightness(1.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6600' 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;
}



.elite-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    background: rgba(0, 0, 0, 0.9);
}

.elite-logo {
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF4500, #FF8C00);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.elite-button {
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    color: #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.elite-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.5);
}


/* --- MODERN LOADER CONTAINER --- */

.modern-loader-container {

    /* Fixed position prevents the UI from scattering/shifting */

    position: fixed;

    top: 0;

    left: 0;

    width: 100vw;

    height: 100vh;

    background-color: #000000;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    z-index: 9999;
    /* Higher than your nav (z-50) and scroll indicator (z-100) */

    transition: opacity 0.8s ease, visibility 0.8s;

}



.logo-wrapper {

    position: relative;

    width: 120px;

    height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

}



.pulse-ring {

    position: absolute;

    width: 100%;

    height: 100%;

    border-radius: 50%;

    border: 2px solid rgba(255, 69, 0, 0.4);

    animation: hyper-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;

}



.pulse-ring:nth-child(2) {

    animation-delay: 0.5s;

}



.loader-logo {

    width: 80px;

    height: 80px;

    object-fit: contain;

    z-index: 21;

    filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.6));

    animation: logo-breathe 2s ease-in-out infinite;

}



.loading-text {

    margin-top: 24px;

    font-family: 'Orbitron', sans-serif;

    font-size: 10px;

    letter-spacing: 4px;

    color: #fff;

    text-transform: uppercase;

    background: linear-gradient(90deg, #333, #ff4500, #333);

    background-size: 200% auto;

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: text-shimmer 2s linear infinite;

}



/* --- ALL ANIMATION KEYFRAMES --- */

@keyframes hyper-pulse {

    0% {

        transform: scale(0.8);

        opacity: 0;

    }

    50% {

        opacity: 1;

        border-width: 3px;

    }

    100% {

        transform: scale(1.5);

        opacity: 0;

    }

}



@keyframes logo-breathe {

    0%,
    100% {

        transform: scale(1);

        filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.4));

    }

    50% {

        transform: scale(1.1);

        filter: drop-shadow(0 0 25px rgba(255, 69, 0, 0.8));

    }

}



@keyframes text-shimmer {

    to {

        background-position: 200% center;

    }

}



/* --- UTILITY FIXES --- */

/* Prevent body scroll during the 5-second load */

.loading-lock {

    overflow: hidden !important;

}



/* Custom Scrollbar for the Dropdown */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF4500, #B8860B);
    border-radius: 10px;
}



/* --- MOBILE NAVBAR RESPONSIVENESS --- */

/* Hide desktop nav on mobile */
@media (max-width: 767px) {
    .elite-nav .hidden.md\\:flex {
        display: none !important;
    }

    .elite-button.hidden.md\\:block {
        display: none !important;
    }
}

@media (min-width: 767px) {
    #mobileMenuButton {
        display: none !important;
    }
}

/* Mobile navbar container adjustments */
@media (max-width: 767px) {
    .elite-nav {
        padding: 12px 16px !important;
    }

    .elite-logo {
        font-size: 1.25rem !important;
    }

    .elite-nav img {
        height: 50px !important;
    }
}

/* Mobile hamburger menu button styling */
#mobileMenuButton {
    color: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

#mobileMenuButton:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5);
}

/* Mobile dropdown menu - FIXED FOR SCROLLING */
.mobile-dropdown-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 5, 0, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 69, 0, 0.25);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto !important;
    /* Force scrollable */
    -webkit-overflow-scrolling: touch !important;
    /* Smooth iOS scrolling */
    touch-action: pan-y !important;
    /* Allow vertical scrolling */
}

.mobile-dropdown-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(10, 5, 0, 0.98);
    z-index: 1;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.mobile-menu-logo h2 {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #FF8C00;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 69, 0, 0.1);
}

/* Main content area - FIXED FOR SCROLLING */
.mobile-menu-content {
    padding: 20px;
    min-height: calc(100vh - 80px);
    overflow-y: visible !important;
    /* Changed from auto to visible */
    height: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-nav-link {
    padding: 16px 20px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    touch-action: manipulation;
    /* Better touch handling */
}

.mobile-nav-link:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #FF8C00;
    border-color: rgba(255, 69, 0, 0.3);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    color: #FF8C00;
    border-color: rgba(255, 69, 0, 0.4);
}

.mobile-nav-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover i {
    transform: translateX(4px);
}

/* Mobile dropdown submenu - FIXED FOR SCROLLING */
.mobile-submenu {
    padding-left: 20px;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-submenu.open {
    max-height: 400px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

.mobile-submenu-link {
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 4px;
    border-left: 2px solid transparent;
    touch-action: manipulation;
}

.mobile-submenu-link:hover {
    color: #FF8C00;
    background: rgba(255, 69, 0, 0.05);
    border-left-color: #FF4500;
}

/* Mobile auth buttons */
.mobile-auth-section {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.mobile-auth-button {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.mobile-auth-button.signup {
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    color: #000;
}

.mobile-auth-button.signin {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile scrollbar styling */
.mobile-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 69, 0, 0.1);
}

.mobile-dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF4500, #FF8C00);
    border-radius: 2px;
}

.mobile-submenu.open::-webkit-scrollbar {
    width: 3px;
}

.mobile-submenu.open::-webkit-scrollbar-thumb {
    background: rgba(255, 69, 0, 0.5);
}

/* Tablet responsive adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .elite-nav {
        padding: 16px 24px !important;
    }

    .elite-logo {
        font-size: 1.5rem !important;
    }

    .elite-nav nav {
        gap: 20px !important;
    }

    .elite-nav a {
        font-size: 0.875rem !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-dropdown-menu {
        height: -webkit-fill-available;
    }

    .mobile-menu-content {
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
}

/* Fix for Android Chrome */
@media (hover: none) and (pointer: coarse) {
    .mobile-dropdown-menu {
        overflow-y: scroll !important;
    }
}


    /* CSS layer to prevent text highlighting */
    body {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
