/* ===== ENHANCED HEADER FROM ABOUT.HTML ===== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; /* Completely transparent when not scrolled */
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95); /* White background when scrolled */
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Quantum Text Logo - Your specific colors with reduced font weight */
.quantum-text-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600; /* Reduced from 800 to 600 */
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

/* "quantum" - ALWAYS WHITE */
.logo-text-main {
    color: white !important; /* Permanent white */
    transition: color 0.3s ease;
    font-weight: 600; /* Reduced font weight */
}

/* "X" - BRIGHT PURPLE */
.logo-text-accent {
    color: #9333EA !important; /* X - bright purple */
    -webkit-text-fill-color: #9333EA !important;
    background: none !important; /* Remove any gradient */
    margin: 0 2px;
    font-weight: 600; /* Reduced font weight */
}

/* "vault" - BLUE */
.logo-text-sub {
    color: #3B82F6 !important; /* vault - blue */
    font-size: 1rem;
    margin-left: 5px;
    align-self: flex-end;
    font-weight: 500; /* Reduced font weight */
}

/* Make the menu toggle (hamburger X) bright purple */
.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #9333EA !important; /* Bright purple color */
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span {
    background: #9333EA !important; /* Keep bright purple when active */
}

/* Navigation Links - Change color based on scroll state */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white; /* White when not scrolled */
    text-decoration: none;
    font-weight: 500; /* Reduced font weight */
    transition: color 0.3s ease;
    position: relative;
}

/* When scrolled with white background, nav links become dark */
#main-header.scrolled .nav-links a {
    color: rgba(0, 0, 0, 0.8) !important; /* Dark color on white background */
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

/* Translator Button */
.translator-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border when not scrolled */
    color: white; /* White when not scrolled */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
}

/* When scrolled, adjust translator button colors */
#main-header.scrolled .translator-btn {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.translator-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Rest of your existing CSS remains the same */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500; /* Reduced font weight */
}

.dropdown-menu a:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

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

.theme-toggle {
    width: 50px;
    height: 26px;
    background: var(--gray);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.theme-toggle i {
    font-size: 0.8rem;
    color: var(--text-light);
    z-index: 2;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    left: 3px;
    transition: transform 0.3s ease;
}

body.dark-theme .theme-toggle::after {
    transform: translateX(24px);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600; /* Reduced font weight */
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white; /* White when not scrolled */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border when not scrolled */
}

/* When scrolled, adjust outline button colors */
#main-header.scrolled .btn-outline {
    color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.menu-toggle span:nth-child(1) {
    margin-bottom: 6px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--darker);
    z-index: 1001;
    transition: right 0.4s ease;
    padding: 100px 30px 30px;
    overflow-y: auto;
    border-left: 1px solid var(--glass-border);
}

.nav-mobile.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 12px 0;
    font-weight: 500; /* Reduced font weight */
    border-bottom: 1px solid var(--glass-border);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
}

.mobile-top-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {  
        display: flex;  
    }
}
/* Mobile Navigation Fix */
.nav-mobile {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 100% !important;
    height: 100vh !important;
    background: var(--primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999 !important;
    overflow-y: auto !important;
}

.nav-mobile.active {
    right: 0 !important;
}

/* Ensure navbar stays in place */
.navbar {
    position: relative !important;
    z-index: 1001 !important;
}

/* Quantum Logo - Ensure it stays in header */
.quantum-logo {
    position: relative !important;
    z-index: 1002 !important;
}

/* Mobile menu toggle button */
.menu-toggle {
    position: relative !important;
    z-index: 1002 !important;
}
    
    .navbar {
        height: auto !important;
        padding: 12px 0 !important;
    }
    
    /* Adjust content padding for mobile header */
    main, .hero, .section:first-of-type {
        padding-top: 0 !important; /* Remove forced padding */
    }
    
    /* Ensure all header content stays within bounds */
    .quantum-logo,
    .nav-buttons,
    .menu-toggle {
        position: relative;
        z-index: 1002;
    }
    
    main, .hero, .section:first-of-type {
        padding-top: 0 !important; /* Remove forced padding */
    }
}
    main, .hero, .section:first-of-type {
        padding-top: 0 !important; /* Remove forced padding */
    }
}
/* Quantum Logo Container */
.quantum-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 55px;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 180px;
}

/* Quantum Logo Image */
.quantum-logo-img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: none !important; /* Remove all filters to show original image */
}

/* Quantum Text Logo (Fallback) */
.quantum-logo-text {
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    display: none; /* Hidden by default, shows if image fails */
    background: linear-gradient(135deg, #ffffff 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
}




/* Animation for Logo Load */
@keyframes quantumLogoPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quantum-logo-loaded {
    animation: quantumLogoPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Logo container - keep existing structure */
.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 42px; /* Match your current header height */
}

/* Logo image styling */
/* Two-logo solution */
.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.4s ease;
}

/* Show dark logo by default, hide light logo */
.logo-light {
    display: none;
}

.logo-dark {
    display: block;
}

/* On transparent header (dark background) - show light logo */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}


/* Dark theme (dark background) - show light logo */
.dark-theme .logo-light {
    display: block;
}

.dark-theme .logo-dark {
    display: none;
}

/* Keep all existing header behaviors */
.logo {
    font-size: 32px;
    font-weight: 900;
    display: flex;
    align-items: center;
    z-index: 1001;
    color: var(--white);
    transition: color 0.4s ease;
    letter-spacing: -1px;
}

/* Light theme - default state */
.logo-img {
    filter: brightness(0) invert(1); /* White logo on dark header */
}


/* Dark theme - default state */
.dark-theme .logo-img {
    filter: brightness(0) invert(1); /* White logo */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }
}

/* Ensure navbar alignment remains unchanged */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    transition: padding 0.4s ease;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    /* Show mobile elements */
    .menu-toggle {
        display: flex !important;
    }
    
    .mobile-translator {
        display: flex !important;
        margin-right: 10px;
    }
    
    /* Hide desktop buttons on mobile */
    .nav-buttons .btn,
    .nav-buttons .theme-toggle:not(#themeToggleMobile),
    .nav-buttons .translator-btn:not(.mobile-translator-btn) {
        display: none;
    }
    
    /* Show mobile translator button */
    .mobile-translator-btn {
        display: flex !important;
    }
}
/* TEMPORARY FIX - Force visibility */
.mobile-translator {
    display: flex !important;
    margin-right: 10px;
}

.menu-toggle {
    display: flex !important;
}

/* Make sure translator button is visible */
.mobile-translator .translator-btn {
    display: flex !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
/* TEMPORARY FIX - Force mobile elements to show */
.mobile-translator {
    display: flex !important;
    margin-right: 10px;
}

.menu-toggle {
    display: flex !important;
}

/* Make sure colors are correct */
.menu-toggle span {
    background-color: #ffffff !important; /* White by default */
}

Mobile Translator Button - Make it visible */
.mobile-translator {
    display: flex !important;
    margin-right: 10px;
}

.mobile-translator .translator-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobile-translator .translator-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    transform: scale(1.05);
}
/* Enhanced Mobile Navigation */
.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #0066ff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0 25px;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links li a {
    display: block;
    padding: 20px 15px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

.mobile-nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding-left: 25px;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.mobile-dropdown.active .mobile-dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
}

.mobile-dropdown-menu li {
    border-bottom: none;
    opacity: 1 !important;
    transform: none !important;
}

.mobile-dropdown-menu li a {
    padding: 15px 15px 15px 30px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

/* Mobile Navigation Buttons */
.nav-mobile .nav-buttons {
    padding: 20px 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.7s;
}

.nav-mobile.active .nav-buttons {
    opacity: 1;
    transform: translateY(0);
}

.mobile-top-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.mobile-translator-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
}

.mobile-translator-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    transform: scale(1.05);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-auth-buttons .btn {
    width: 100%;
    text-align: center;
    margin: 0;
}

/* Enhanced Menu Toggle - Longer bars with reduced spacing */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 36px; /* Increased width */
    height: 20px; /* Reduced height to decrease spacing */
    position: relative;
    z-index: 1001;
    margin-left: 15px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

/* Top bar - Longer */
.menu-toggle span:nth-child(1) {
    width: 36px; /* Increased length */
    height: 3px;
}

/* Bottom bar - Longer but still shorter than top */
.menu-toggle span:nth-child(2) {
    width: 30px; /* Increased length but still shorter */
    height: 3px;
    margin-left: auto; /* Align to right */
}


/* Active state animations */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 36px; /* Maintain full length */
    height: 3px;
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
    width: 36px; /* Extend to full length when active */
    opacity: 1;
    margin-left: 0; /* Center when active */
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    width: 32px; /* Maintain full length */
    height: 3px;
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-10px) rotate(-45deg);
    width: 32px; /* Extend to full length when active */
    opacity: 1;
    margin-left: 0; /* Center when active */
}

/* Mobile Translator in Header */
.mobile-translator {
    display: none;
    margin-right: 10px;
}

/* Staggered animation delays for mobile menu items */
.mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }
.mobile-nav-links li:nth-child(7) { transition-delay: 0.4s; }
.mobile-nav-links li:nth-child(8) { transition-delay: 0.45s; }
.mobile-nav-links li:nth-child(9) { transition-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-translator {
        display: flex;
    }
    
    /* Hide desktop buttons on mobile */
    .nav-buttons .btn,
    .nav-buttons .theme-toggle,
    .nav-buttons .translator-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-nav-links li a {
        padding: 18px 15px;
        font-size: 1rem;
    }
    
    .mobile-dropdown-menu li a {
        padding: 12px 15px 12px 25px;
    }
    
    .mobile-top-buttons {
        gap: 12px;
    }
    
    .mobile-translator-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-links {
        padding: 0 20px;
    }
    
    .nav-mobile .nav-buttons {
        padding: 20px;
    }
    
    .mobile-nav-links li a {
        padding: 16px 12px;
        font-size: 0.95rem;
    }
}

/* Compact Crypto Swap Widget */
.crypto-swap-widget {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
    margin-top: 40px;
    max-width: 380px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.swap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.swap-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
}

.swap-header i {
    color: var(--accent);
    font-size: 1.1rem;
}

.swap-amount {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.amount-input {
    display: flex;
    align-items: center;
    background: var(--section-bg);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--gray);
    gap: 12px;
    transition: all 0.3s ease;
}

.amount-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(120, 90, 251, 0.1);
}

.amount-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--primary);
    outline: none;
    min-width: 0;
}

.amount-input input::placeholder {
    color: var(--text);
    opacity: 0.6;
}

.token-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    min-width: 90px;
    transition: all 0.3s ease;
}

.token-selector:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(120, 90, 251, 0.3);
}

.token-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.swap-arrow {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.swap-arrow i {
    background: var(--section-bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swap-arrow i:hover {
    background: var(--accent);
    color: var(--white);
    transform: rotate(180deg);
}

.swap-button {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.swap-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(120, 90, 251, 0.4);
}

/* Token Selection Modal */
.token-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.token-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    max-width: 320px;
    width: 90%;
    max-height: 400px;
    overflow: hidden;
    border: 1px solid var(--gray);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray);
}

.modal-header h4 {
    color: var(--primary);
    margin: 0;
    font-size: 1.1rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--section-bg);
    color: var(--primary);
}

.token-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.token-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.token-option:hover {
    background: var(--section-bg);
    transform: translateX(5px);
}

.token-option span {
    color: var(--primary);
    font-weight: 500;
}

/* Scrollbar Styling */
.token-list::-webkit-scrollbar {
    width: 4px;
}

.token-list::-webkit-scrollbar-track {
    background: var(--section-bg);
    border-radius: 2px;
}

.token-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .crypto-swap-widget {
        max-width: 100%;
        margin: 20px 10px;
        padding: 20px;
    }
    
    .amount-input {
        padding: 12px;
    }
    
    .token-selector {
        min-width: 80px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .token-icon {
        width: 18px;
        height: 18px;
    }
    
    .amount-input input {
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .crypto-swap-widget {
        padding: 15px;
    }
    
    .swap-header h3 {
        font-size: 1.1rem;
    }
    
    .amount-input {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .token-selector {
        align-self: flex-start;
    }
}

        /* Enhanced Font Rendering */
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            font-smoothing: antialiased;
            text-rendering: optimizeLegibility;
        }

        html { scroll-behavior: smooth; }
        @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

        /* Hide css box */
        .custom-code {display: none;}

        /* Show the loader */
        .loader_component {display: block;}

        /* Sets the colour of text once highlighted */
        ::selection {background: #000000; color: #FFFFFF; text-shadow: none;}

        :root {
            /* Light Theme (Default) */
            --primary: #0a1629;
            --secondary: #00d4ff;
            --accent: #785afb;
            --accent-light: #9d8aff;
            --light: #f5f8fa;
            --dark: #0a1629;
            --text: #50667b;
            --white: #ffffff;
            --gray: #e0e6ed;
            --gradient: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
            --gradient-dark: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
            --shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
            --radius: 16px;
            --card-bg: #ffffff;
            --section-bg: #f5f8fa;
            --header-bg: rgba(255, 255, 255, 0.95);
            --footer-bg: var(--primary);
            --glass: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            
            /* Additional colors from reference CSS */
            --brand: #263CD0;
            --brand-pressed: #2032AF;
            --brand-light: #DDE1FF;
            --brand-dark: #16216B;
            --secondary1: #601FC9;
            --secondary2: #B786F0;
            --secondary3: #D1A9FF;
            --secondary4: #E1CAFF;
            --accent1: #65DDF7;
            --accent1-pressed: #65D9F1;
            --accent2: #CDDBFF;
            --accent2-pressed: #CDDBFF;
            --black: #000000;
            --black-pressed: #292929;
            --grey1: #1C1C1E;
            --grey2: #444447;
            --grey3: #73757B;
            --grey4: #A0A1A8;
            --grey5: #E7E7ED;
            --grey6: #F1F1F4;
            --grey-pressed: #DCDCE2;
            --grey-disabled: #73757B;
            --border: #E1E2E6;
            --error: #F7718A;
        }

        .dark-theme {
            /* Dark Theme */
            --primary: #f5f8fa;
            --secondary: #00d4ff;
            --accent: #785afb;
            --accent-light: #9d8aff;
            --light: #0a1629;
            --dark: #f5f8fa;
            --text: #a0aec0;
            --white: #1a202c;
            --gray: #2d3748;
            --card-bg: #2d3748;
            --section-bg: #1a202c;
            --header-bg: rgba(26, 32, 44, 0.95);
            --footer-bg: #0a1629;
            --glass: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--light);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        /* Enhanced Preloader */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .quantum-loader {
            position: relative;
            width: 120px;
            height: 120px;
        }

        .quantum-loader .orbit {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 2px solid transparent;
            border-radius: 50%;
            animation: orbit 3s linear infinite;
        }

        .quantum-loader .orbit:nth-child(1) {
            border-top-color: var(--secondary);
            animation-duration: 2s;
        }

        .quantum-loader .orbit:nth-child(2) {
            border-right-color: var(--accent);
            animation-duration: 3s;
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
        }

        .quantum-loader .orbit:nth-child(3) {
            border-bottom-color: var(--accent-light);
            animation-duration: 4s;
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
        }

        .quantum-loader .center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            background: var(--gradient);
            border-radius: 50%;
            box-shadow: 0 0 20px var(--accent);
        }

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

        .loading-text {
            margin-top: 20px;
            color: var(--white);
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

/* Enhanced Header with beautiful glassmorphism */
header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0; /* Reduced padding for compact header */
    transition: padding 0.4s ease;
}

header.scrolled .navbar {
    padding: 8px 0; /* Even more compact when scrolled */
}
/* Compact Logo with Image */
.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    transition: all 0.4s ease;
    height: 42px; /* Fixed height */
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* Logo colors - white by default (blending with hero) */
.logo-img {
    filter: brightness(0) invert(1) !important; /* White logo */
}

/* When scrolled - black logo for light background */
header.scrolled .logo-img {
    filter: brightness(0) invert(0) !important; /* Black logo */
}

/* Dark theme - always white logo */
.dark-theme .logo-img {
    filter: brightness(0) invert(1) !important; /* White logo */
}

.dark-theme header.scrolled .logo-img {
    filter: brightness(0) invert(1) !important; /* White logo */
}

/* Compact Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px; /* Reduced spacing */
    position: relative;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s;
    color: #ffffff !important; /* White by default */
    font-size: 0.9rem; /* Slightly smaller font */
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

header.scrolled .nav-links a {
    color: var(--primary) !important; /* Black when scrolled */
    text-shadow: none;
}

.dark-theme header.scrolled .nav-links a {
    color: #ffffff !important; /* White in dark theme */
}

/* Navigation Buttons - More Compact */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced gap */
}

.btn {
    padding: 10px 18px; /* More compact buttons */
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem; /* Smaller font */
    position: relative;
    overflow: hidden;
}

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 35px;
            position: relative;
        }

        .nav-links a {
            text-decoration: none;
            font-weight: 600;
            padding: 5px 0;
            position: relative;
            transition: all 0.3s;
            color: var(--white);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
        }

        header.scrolled .nav-links a {
            color: var(--primary);
        }

        .dark-theme header.scrolled .nav-links a {
            color: var(--white);
        }

        .nav-links a:hover {
            color: var(--accent) !important; 
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            bottom: -5px;
            left: 0;
            background: var(--gradient);
            transition: width 0.3s ease-out;
            border-radius: 3px;
        }

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

        /* Dropdown Menu */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--card-bg);
            min-width: 200px;
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 1000;
            border: 1px solid var(--gray);
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu li {
            margin: 0;
        }

        .dropdown-menu a {
            color: var(--primary);
            padding: 12px 20px;
            display: block;
            border-bottom: 1px solid var(--gray);
            font-size: 0.9rem;
        }

        .dropdown-menu a:hover {
            background: var(--section-bg);
            color: var(--accent);
        }

        .dropdown-menu a::after {
            display: none;
        }

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

        .btn {
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            cursor: pointer;
            display: inline-block;
            text-align: center;
            font-size: 0.95rem;
            position: relative;
            overflow: hidden;
        }
        
        .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.7s;
        }
        
        .btn:hover::before {
            left: 100%;
        }
        
        .btn-outline {
            border: 1px solid rgba(255, 255, 255, 0.7);
            color: var(--white);
            background: transparent;
        }
        
        header.scrolled .btn-outline {
            border: 1px solid var(--primary);
            color: var(--primary);
        }

        .dark-theme header.scrolled .btn-outline {
            border: 1px solid var(--white);
            color: var(--white);
        }
        
        .btn-outline:hover {
            background: rgba(255, 255, 255, 0.2);
            color: var(--white);
            transform: translateY(-2px);
        }
        
        header.scrolled .btn-outline:hover {
            background: var(--primary);
            color: var(--white);
        }

        .dark-theme header.scrolled .btn-outline:hover {
            background: var(--white);
            color: var(--primary);
        }
        
        .btn-primary {
            background: var(--gradient);
            color: var(--white);
            border: none;
            box-shadow: 0 5px 15px rgba(120, 90, 251, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(120, 90, 251, 0.4);
        }



        /* Enhanced Hero Section with Particle Background */
        .hero {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--white);
            overflow: hidden;
        }

        .video-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }

        .video-background video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.6);
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 22, 41, 0.7);
            z-index: 2;
        }

        .hero-content {
            position: relative;
            z-index: 3;
            max-width: 900px;
            padding: 0 20px;
        }

        .hero-text h1 {
            font-size: 4rem;
            line-height: 1.1;
            color: var(--white);
            margin-bottom: 20px;
            font-weight: 900;
            text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease forwards 0.5s;
            letter-spacing: -1px;
        }

        .hero-text p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            color: rgba(255, 255, 255, 0.9);
            max-width: 650px;
            margin: 0 auto 40px;
            font-weight: 500;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease forwards 0.8s;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 1s ease forwards 1.1s;
        }

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

        /* Particle Background */
        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 2;
        }

        /* Enhanced Features Section */
        .features {
            padding: 120px 0;
            background: var(--section-bg);
        }

        .section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 60px;
        }

        .section-header h2 {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 15px;
            font-weight: 800;
            letter-spacing: -1px;
        }

        .section-header p {
            font-size: 1.2rem;
            color: var(--text);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .feature-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 40px 30px;
            box-shadow: var(--shadow);
            transition: all 0.4s ease;
            text-align: center;
            border: 1px solid var(--gray);
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            box-shadow: 0 8px 20px rgba(120, 90, 251, 0.4);
            transition: transform 0.3s;
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .feature-icon i {
            font-size: 32px;
            color: var(--white);
        }

        .feature-card h3 {
            font-size: 1.6rem;
            color: var(--primary);
            margin-bottom: 15px;
            font-weight: 700;
        }

        .feature-card p {
            color: var(--text);
            margin-bottom: 20px;
        }

/* Advanced Trading Solutions Section with Glassmorphism */
.advanced-trading {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: var(--white);
}

.advanced-trading-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.advanced-trading-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.advanced-trading-bg video.active {
    opacity: 0.3;
    z-index: 2;
}

.advanced-trading-bg video.inactive {
    opacity: 0;
    z-index: 1;
}

.advanced-trading .container {
    position: relative;
    z-index: 3;
}

.advanced-trading-content {
    text-align: left;
    max-width: 600px;
    margin: 0;
    padding: 80px 20px 80px 0;
    transition: opacity 0.8s ease;
}

.advanced-trading h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--white);
    letter-spacing: -1px;
}

.advanced-trading p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.video-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.advanced-trading .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

        
        /* Trust Premium Section - Transparent background */
        .trust-premium-section {
            position: relative;
            width: 100%;
            min-height: 400px;
            background: url('bg2.jpg') center/cover no-repeat;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            padding: 100px 0;
        }

        /* Overlay */
        .trust-overlay {
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.85));
            backdrop-filter: blur(2px);
            z-index: 1;
        }

        .trust-container {
            position: relative;
            z-index: 5;
            padding: 40px;
            width: 100%;
            max-width: 1200px;
        }

        /* Card */
        .trust-card {
            background: transparent;
            backdrop-filter: none;
            border-radius: 28px;
            padding: 50px 45px;
            border: none;
            box-shadow: none;
            opacity: 0;
            transform: translateY(80px) scale(0.95);
            transition: 1s ease;
            width: 100%;
            max-width: 95%;
            margin: 0 auto;
        }

        /* ---- Typography Improvements ---- */
        .trust-card h2 {
            font-size: 48px;
            font-weight: 900;
            letter-spacing: 1px;
            color: #f0f8ff;
            text-shadow: 0 2px 6px rgba(0,0,0,0.25);
            opacity: 0;
            transform: translateY(30px) scale(0.95);
            transition: 0.9s ease;
        }

        .trust-card p {
            color: #e6edff;
            font-size: 18px;
            font-weight: 600;
            letter-spacing: 0.3px;
            line-height: 1.85;
            margin-bottom: 18px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.2);
            opacity: 0;
            transform: translateY(40px);
            transition: 0.9s ease;
        }

        /* Button */
        .trust-btn {
            display: inline-block;
            margin-top: 25px;
            padding: 15px 34px;
            background: linear-gradient(135deg, #00c8ff, #006dff);
            color: #fff;
            font-size: 17px;
            font-weight: 600;
            border-radius: 12px;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(40px) scale(0.9);
            box-shadow:
                0 6px 18px rgba(0, 120, 255, 0.38),
                inset 0 0 10px rgba(255,255,255,0.25);
            transition: 0.9s ease;
        }

        .trust-btn:hover {
            transform: translateY(-4px) scale(1.03);
            box-shadow:
                0 10px 28px rgba(0, 140, 255, 0.55),
                inset 0 0 13px rgba(255,255,255,0.4);
        }

        /* Staggered delays */
        .delay-1 { transition-delay: 0.2s; }
        .delay-2 { transition-delay: 0.4s; }
        .delay-3 { transition-delay: 0.6s; }

        /* Active state when scrolled into view */
        .active {
            opacity: 1 !important;
            transform: translateY(0) scale(1) !important;
        }

        /* Investment Plans with Enhanced Cards - Redesigned with light theme */
        .plans {
            padding: 80px 0;
            background: var(--section-bg);
        }

        .plans-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .plan-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 40px 30px;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.4s;
            position: relative;
            border: 1px solid var(--gray);
            overflow: hidden;
        }

        .plan-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--gradient);
            transform: scaleX(0);
            transition: transform 0.4s;
        }

        .plan-card:hover::before {
            transform: scaleX(1);
        }

        .plan-card.featured {
            transform: scale(1.05);
            border: 3px solid var(--accent);
            box-shadow: 0 20px 40px rgba(120, 90, 251, 0.2);
        }

        .plan-card.featured::before {
            content: "MOST POPULAR";
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--gradient);
            padding: 7px 20px;
            font-size: 0.9rem;
            border-radius: 20px;
            color: var(--white);
            font-weight: 700;
            transform: translateX(-50) scaleX(1);
        }
        
        .plan-name {
            font-size: 1.7rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .plan-price {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .plan-price span {
            font-size: 1.1rem;
            color: var(--text);
            font-weight: 500;
        }

        .plan-features {
            list-style: none;
            margin-bottom: 30px;
        }

        .plan-features li {
            padding: 12px 0;
            border-bottom: 1px solid var(--gray);
            color: var(--text);
            font-weight: 500;
        }

        .plan-features li:last-child {
            border-bottom: none;
        }

        /* New Premium Investment Plans Section - Redesigned with light theme */
        .premium-investment-section {
            padding: 80px 0;
            background: linear-gradient(135deg, #f5f8fa 0%, #e0e6ed 50%, #f5f8fa 100%);
            position: relative;
            overflow: hidden;
        }

        .premium-investment-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
            pointer-events: none;
        }

        .premium-investment-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
            gap: 35px;
            margin-top: 60px;
            position: relative;
            z-index: 2;
        }

        .premium-investment-card {
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            padding: 45px 35px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
        }

        .premium-investment-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
            background-size: 200% 100%;
            animation: shimmer 3s ease-in-out infinite;
        }

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

        .premium-investment-card:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 
                0 25px 60px rgba(59, 130, 246, 0.15),
                0 15px 35px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .plan-header-premium {
            margin-bottom: 35px;
            position: relative;
            z-index: 2;
        }

        .plan-name-premium {
            color: #1e293b;
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            display: inline-block;
            background: linear-gradient(135deg, #1e293b, #475569);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .plan-return-premium {
            color: #3b82f6;
            font-size: 52px;
            font-weight: 800;
            margin: 25px 0;
            position: relative;
            display: inline-block;
            text-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .plan-duration-premium {
            color: #64748b;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            background: rgba(59, 130, 246, 0.1);
            padding: 8px 20px;
            border-radius: 20px;
            display: inline-block;
        }

        .plan-details-premium {
            margin: 35px 0;
            background: rgba(248, 250, 252, 0.8);
            border-radius: 18px;
            padding: 30px;
            border: 1px solid rgba(226, 232, 240, 0.8);
            backdrop-filter: blur(10px);
        }

        .plan-detail-item-premium {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid rgba(226, 232, 240, 0.8);
            color: #475569;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .plan-detail-item-premium:hover {
            color: #1e293b;
            transform: translateX(8px);
        }

        .plan-detail-item-premium:last-child {
            border-bottom: none;
        }

        .plan-detail-label-premium {
            text-align: left;
        }

        .plan-detail-value-premium {
            text-align: right;
            font-weight: 700;
            color: #1e293b;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .plan-button-premium {
            width: 100%;
            padding: 18px 30px;
            background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
            color: #ffffff;
            border: none;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.4s ease;
            margin-top: 25px;
            position: relative;
            overflow: hidden;
            z-index: 2;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        }

        .plan-button-premium:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
            background: linear-gradient(135deg, #2563eb, #4f46e5, #7c3aed);
        }

        /* Premium Popular Badge */
        .plan-popular-premium {
            border: 2px solid rgba(59, 130, 246, 0.3);
            transform: scale(1.05);
            position: relative;
            background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
        }

        .plan-popular-premium:hover {
            transform: scale(1.05) translateY(-12px);
        }

        .popular-badge-premium {
            position: absolute;
            top: -15px;
            right: 25px;
            background: linear-gradient(135deg, #3b82f6, #6366f1);
            color: #ffffff;
            padding: 10px 25px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
            z-index: 3;
        }

        /* Premium Ribbon for Special Plans */
        .plan-ribbon-premium {
            position: absolute;
            top: 25px;
            left: -35px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: #ffffff;
            padding: 10px 45px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            transform: rotate(-45deg);
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
            z-index: 3;
        }

        /* VIP Ribbon */
        .plan-ribbon-vip {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }

        /* Section Title Styling for Premium Theme */
        .premium-investment-section .sec-title .sub-title h3 {
            color: #cbd5e1;
            font-weight: 600;
        }

        .premium-investment-section .sec-title h2 {
            color: #1e293b;
            font-size: 52px;
            text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .premium-investment-section .sec-title p {
            color: #64748b;
            font-size: 18px;
            margin-top: 20px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.7;
            font-weight: 400;
        }

        /* Security Badge */
        .security-badge {
            margin-top: 40px;
            text-align: center;
        }

        .security-badge p {
            color: #94a3b8;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .security-badge p::before {
            content: '🔒';
            font-size: 16px;
        }

        /* The Card Section */
        .the-card-section {
            padding: 120px 0;
            background: var(--section-bg);
            position: relative;
        }

        .card-design_component {
            display: flex;
            flex-direction: column;
            gap: 60px;
        }

        .card-design_title {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .card-design_title h2 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 30px;
            color: var(--primary);
            line-height: 1.1;
        }

        .card-design_title p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            color: var(--text);
            line-height: 1.6;
        }

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

       /* The Card Section - COMPLETELY remove all backgrounds */
.the-card-section {
    padding: 120px 0;
    background: var(--section-bg);
    position: relative;
}

/* Remove the background block from the card image container */
.card-design_image {
    position: relative;
    z-index: 2;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important; /* Remove the red debug border */
}

.card-design_image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    background: transparent !important;
    display: block;
}

/* Also remove any background from the parent wrapper */
.card-design_wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    background: transparent !important;
    border: none !important; /* Remove the red debug border */
}

/* Remove the debug borders from everything */
.card-design_wrapper * {
    border: none !important;
}

/* Keep the text items transparent (your previous changes) */
.card-design_item {
    position: absolute;
    background: transparent !important;
    border-radius: 16px;
    padding: 25px;
    box-shadow: none !important;
    border: none !important;
    max-width: 280px;
    z-index: 3;
}
/* If there's still a background, try inspecting what element has it */
.card-design_component {
    display: flex;
    flex-direction: column;
    gap: 60px;
    background: transparent !important; /* Remove component background */
}

        .card-design_item.is-1 {
            top: 10%;
            left: 5%;
        }

        .card-design_item.is-2 {
            top: 40%;
            right: 5%;
        }

        .card-design_item.is-3 {
            bottom: 10%;
            left: 15%;
        }

        .card-design_item h3 {
            font-size: 1.2rem;
            color: var(--primary);
            margin-bottom: 0;
        }

        .card-design_item-border {
            height: 2px;
            background: var(--gradient);
            margin: 15px 0;
        }

        .card-design_item-border.is-landscape {
            width: 100px;
        }

        .card-design_item-border.is-opposite {
            margin-left: auto;
            width: 80px;
        }

        /* Step by step instructions */
        .step-instructions {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 60px;
            flex-wrap: wrap;
        }

        .step {
            text-align: center;
            max-width: 250px;
        }

        .step-number {
            width: 60px;
            height: 60px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--white);
            font-size: 24px;
            font-weight: 700;
        }

        .step h4 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .step p {
            color: var(--text);
        }

        /* The App Section */
        .the-app-section {
            padding: 120px 0;
            background: var(--card-bg);
        }

        .home-app_component {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .home-app_component h2 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 30px;
            color: var(--primary);
            line-height: 1.1;
        }

        .home-app_component p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            color: var(--text);
            line-height: 1.6;
        }

        .home-app_image-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .home-app_image {
            position: absolute;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            max-width: 80%;
            transition: transform 0.5s ease;
        }

        .home-app_image.is-1 {
            z-index: 3;
            transform: rotate(-5deg);
        }

        .home-app_image.is-2 {
            z-index: 2;
            transform: rotate(5deg) translateX(-20px);
        }

        .home-app_image.is-3 {
            z-index: 1;
            transform: rotate(0deg) translateX(20px);
        }

        .home-app_image-wrapper:hover .home-app_image.is-1 {
            transform: rotate(-8deg) translateY(-10px);
        }

        .home-app_image-wrapper:hover .home-app_image.is-2 {
            transform: rotate(8deg) translateX(-25px) translateY(5px);
        }

        .home-app_image-wrapper:hover .home-app_image.is-3 {
            transform: rotate(0deg) translateX(25px) translateY(10px);
        }

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

        /* Crypto Swap Widget - Newsletter Form */
       .crypto-swap-widget {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px; /* Reduced from 30px */
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
    margin-top: 40px;
    max-width: 380px; /* Further reduced */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box; /* Include padding in width calculation */
}

        .swap-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .swap-header h3 {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .swap-amount {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%; /* Ensure it takes full width of container */
}
@media (max-width: 768px) {
    .premium-investment-section {
        padding: 60px 0;
    }
    
    .premium-investment-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .premium-investment-card {
        padding: 30px 20px;
        margin: 0 10px; /* ← CHANGE THIS LINE */
        max-width: 100%;
    }
       .amount-input {
    display: flex;
    align-items: center;
    background: var(--section-bg);
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    gap: 10px;
    min-width: 0; /* Allow proper flex shrinking */
}
        .amount-input input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 1.2rem;
            color: var(--primary);
            outline: none;
        }
        
.amount-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--primary);
    outline: none;
    min-width: 0; /* This is crucial for flexbox */
    width: 100%; /* Ensure it takes available space */
}


.token-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    min-width: 80px; /* Fixed width */
    max-width: 100px; /* Maximum width */
    justify-content: space-between;
    flex-shrink: 0; /* Prevent shrinking */
}

        .swap-button {
            width: 100%;
            padding: 18px;
            background: var(--gradient);
            color: var(--white);
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .swap-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(120, 90, 251, 0.4);
        }

        /* OTC Section with Enhanced Form */
        .otc {
            padding: 120px 0;
            background: var(--card-bg);
        }

        .otc-content {
            display: flex;
            align-items: flex-start;
            gap: 50px;
        }

        .otc-text {
            flex: 1;
            padding-top: 20px;
        }

        .otc-text h2 {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
            font-weight: 800;
            letter-spacing: -1px;
        }

        .otc-text p {
            font-size: 1.15rem;
            margin-bottom: 30px;
            color: var(--text);
        }

        .otc-features {
            list-style: none;
            margin-bottom: 30px;
        }

        .otc-features li {
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--primary);
        }

        .otc-features li i {
            color: var(--accent);
            margin-right: 12px;
            font-size: 1.3rem;
        }

        .otc-visual {
            flex: 1;
            background: var(--section-bg);
            border-radius: var(--radius);
            padding: 40px;
            box-shadow: var(--shadow);
            border: 1px solid var(--gray);
        }
        
        .otc-visual h3 {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 25px;
            text-align: center;
        }

        .otc-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-group label {
            font-weight: 600;
            color: var(--primary);
            display: block;
            margin-bottom: 8px;
        }

        .form-control {
            padding: 14px 15px;
            border: 1px solid var(--gray);
            border-radius: 10px;
            font-size: 1rem;
            width: 100%;
            background: var(--card-bg);
            color: var(--text);
            transition: border 0.3s;
        }

        .form-control:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(120, 90, 251, 0.2);
            outline: none;
        }

        .form-row {
            display: flex;
            gap: 20px;
        }
        
        .form-row .form-group {
            flex: 1;
        }


@media (max-width: 768px) {
    .crypto-swap-widget {
        max-width: 100%;
        padding: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .token-selector {
        min-width: 70px;
        max-width: 85px;
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .amount-input {
        padding: 10px 12px;
    }
    
    .amount-input input {
        font-size: 1rem;
    }
}
        @keyframes ticker-scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        /* Enhanced Footer */
        footer {
            background: var(--footer-bg);
            color: var(--white);
            padding: 80px 0 40px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
            gap: 50px;
        }

        .footer-col .logo {
             color: var(--white);
             margin-bottom: 15px;
        }
        
        .footer-col p {
            color: rgba(255, 255, 255, 0.7);
            max-width: 300px;
            font-size: 1rem;
        }

        .social-links {
            margin-top: 20px;
        }
        
        .social-links a {
            color: var(--secondary);
            font-size: 20px;
            margin-right: 15px;
            transition: color 0.3s;
        }
        
        .social-links a:hover {
            color: var(--white);
        }
        
       

        /* Enhanced Theme Toggle */
        .theme-toggle {
            position: relative;
            width: 60px;
            height: 30px;
            background: var(--gray);
            border-radius: 50px;
            cursor: pointer;
            margin-right: 20px;
            transition: background 0.3s;
        }

        .theme-toggle::before {
            content: '';
            position: absolute;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--white);
            top: 3px;
            left: 3px;
            transition: transform 0.3s, background 0.3s;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .dark-theme .theme-toggle::before {
            transform: translateX(30px);
            background: var(--primary);
        }

        .theme-toggle i {
            position: absolute;
            top: 7px;
            font-size: 16px;
            color: var(--primary);
        }

        .theme-toggle .fa-sun {
            left: 8px;
        }

        .theme-toggle .fa-moon {
            right: 8px;
        }

        /* New: Live Crypto Ticker */
        .crypto-ticker {
            background: var(--gradient);
            color: white;
            padding: 10px 0;
            overflow: hidden;
            position: relative;
            font-weight: 600;
        }

        .ticker-content {
            display: flex;
            animation: ticker-scroll 30s linear infinite;
            white-space: nowrap;
        }

        .ticker-item {
            display: flex;
            align-items: center;
            margin-right: 40px;
        }

        .ticker-item span {
            margin: 0 10px;
        }

        .ticker-item .change {
            color: #00ff8c;
        }

        .ticker-item .change.negative {
            color: #ff4d4d;
        }

        /* Pop-up Notifications - Redesigned */
        .popup-notifications {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 300px;
        }

        .popup-notification {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border-left: 4px solid var(--accent);
            transform: translateX(400px);
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0;
        }

        .popup-notification.show {
            transform: translateX(0);
            opacity: 1;
        }

        .popup-notification i {
            color: var(--accent);
            font-size: 18px;
        }

        .popup-content {
            flex: 1;
        }

        .popup-content h4 {
            font-size: 14px;
            margin-bottom: 5px;
            color: var(--primary);
        }

        .popup-content p {
            font-size: 12px;
            color: var(--text);
            margin: 0;
        }

        .popup-badge {
            background: var(--gradient);
            color: white;
            padding: 3px 8px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 600;
        }

        /* Financial Freedom Section - Subtle Grey Background */
        .financial-freedom-section {
            padding: 100px 0;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            position: relative;
            overflow: hidden;
        }

        .financial-freedom-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 90, 251, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
        }

        .financial-freedom-content {
            position: relative;
            z-index: 2;
            text-align: center;
            max-width: 900px;
            margin: 0 auto;
        }

        .financial-freedom-content h2 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 30px;
            color: var(--primary);
            line-height: 1.1;
        }

        .financial-freedom-content p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            color: var(--text);
            line-height: 1.6;
        }

        /* Newsletter Form */
        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
            gap: 10px;
        }

        .newsletter-input {
            flex: 1;
            padding: 15px 20px;
            border: 1px solid var(--gray);
            border-radius: 10px;
            font-size: 1rem;
            background: var(--card-bg);
            color: var(--text);
            transition: border 0.3s;
        }

        .newsletter-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(120, 90, 251, 0.2);
            outline: none;
        }

        .newsletter-button {
            padding: 15px 30px;
            background: var(--gradient);
            color: var(--white);
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .newsletter-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(120, 90, 251, 0.4);
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .hero-text h1 {
                font-size: 3.2rem;
            }
            .advanced-trading h2 {
                font-size: 2.8rem;
            }
            .footer-content {
                grid-template-columns: 2fr 1fr 1fr;
            }
            .premium-investment-grid {
                grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
                gap: 30px;
            }
            
            .plan-popular-premium {
                transform: scale(1);
            }
            
            .plan-popular-premium:hover {
                transform: translateY(-12px);
            }

            .card-design_item.is-1 {
                left: 0;
            }
            
            .card-design_item.is-2 {
                right: 0;
            }
            
            .card-design_item.is-3 {
                left: 5%;
            }
        }
        
        @media (max-width: 992px) {
            .nav-links {
                display: none;
            }
            .menu-toggle {
                display: flex;
            }
            
            .mobile-translator {
                display: flex;
            }
            
            /* Hide desktop buttons on mobile */
            .nav-buttons .btn,
            .nav-buttons .theme-toggle,
            .nav-buttons .translator-btn {
                display: none;
            }
            
            .features-grid, .plans-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .staking-grid, .team-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .otc-content, .about-content, .qfs-content {
                flex-direction: column;
            }
            .footer-content {
                grid-template-columns: 1fr 1fr;
            }
            .faq-grid {
                grid-template-columns: 1fr;
            }
            
            .advanced-trading h2 {
                font-size: 2.5rem;
            }
            
            .advanced-trading p {
                font-size: 1.1rem;
            }

            .advanced-trading {
                padding: 60px 0;
            }

            .advanced-trading-content {
                max-width: 100%;
                padding: 0;
            }
            
            .premium-investment-section {
                padding: 80px 0;
            }
            
            .premium-investment-grid {
                grid-template-columns: 1fr;
                gap: 30px;
                margin-top: 50px;
            }
            
            .premium-investment-card {
                padding: 35px 25px;
                margin: 0 10px;
            }
            
            .plan-name-premium {
                font-size: 18px;
            }
            
            .plan-return-premium {
                font-size: 46px;
            }
            
            .plan-details-premium {
                padding: 25px;
            }

            .home-app_component {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .home-app_image-wrapper {
                order: -1;
            }

            .card-design_wrapper {
                flex-direction: column;
                gap: 30px;
            }

            .card-design_item {
                position: static;
                max-width: 100%;
            }

            .newsletter-form {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {
            .hero {
                height: 85vh;
            }
            .hero-text h1 {
                font-size: 2.5rem;
            }
            .hero-text p {
                font-size: 1.1rem;
            }
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
            .features-grid, .plans-grid, .staking-grid, .team-grid {
                grid-template-columns: 1fr;
            }
            .form-row {
                flex-direction: column;
                gap: 0;
            }
            .footer-content {
                grid-template-columns: 1fr;
            }
            .btn {
                width: 100%;
                text-align: center;
            }
            .ticker-item {
                min-width: 300px;
            }
            
            /* Header adjustments for mobile */
            .navbar {
                padding: 15px 0;
            }
            
            .logo {
                font-size: 28px;
            }
            
            .advanced-trading h2 {
                font-size: 2.2rem;
            }
            
            .advanced-trading p {
                font-size: 1rem;
            }
            
            .premium-investment-card {
                padding: 30px 20px;
                margin: 0 5px;
            }
            
            .plan-detail-item-premium {
                flex-direction: column;
                align-items: flex-start;
                text-align: left;
            }
            
            .plan-detail-value-premium {
                margin-top: 5px;
                font-size: 16px;
            }
            
            .plan-ribbon-premium {
                left: -40px;
                padding: 8px 40px;
                font-size: 11px;
            }
            
            .premium-investment-section .sec-title h2 {
                font-size: 42px;
            }

            .card-design_title h2,
            .home-app_component h2,
            .financial-freedom-content h2 {
                font-size: 2.5rem;
            }

            .card-design_title p,
            .home-app_component p,
            .financial-freedom-content p {
                font-size: 1.1rem;
            }

            .popup-notifications {
                right: 10px;
                max-width: 250px;
            }
        }

        @media (max-width: 480px) {
            .hero-text h1 {
                font-size: 2rem;
            }
            .section-header h2 {
                font-size: 2.2rem;
            }
            .nav-buttons .btn {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
            
            /* Further mobile header adjustments */
            .navbar {
                padding: 12px 0;
            }
            
            .logo {
                font-size: 24px;
            }
            
            .advanced-trading h2 {
                font-size: 1.8rem;
            }
            
            .advanced-trading p {
                font-size: 0.9rem;
            }

            .card-design_title h2,
            .home-app_component h2,
            .financial-freedom-content h2 {
                font-size: 2rem;
            }

            .card-design_title p,
            .home-app_component p,
            .financial-freedom-content p {
                font-size: 1rem;
            }
        }
        
/* Premium Quantum Statistics Section */
.quantum-stats {
    padding: 120px 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(10, 22, 41, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 100, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0a0f1f 0%, #1a1f3f 50%, #0a0f1f 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.quantum-stats .section-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 20;
    text-align: center;
}

.quantum-stats .section-header h2 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(79, 172, 254, 0.4);
    animation: title-glow 4s ease-in-out infinite;
}

.quantum-stats .section-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Quantum Stats Container */
.quantum-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    z-index: 15;
}

/* Quantum Orb Stat */
.quantum-orb-stat {
    text-align: center;
    perspective: 1000px;
}

.quantum-orb-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
    transform-style: preserve-3d;
}

.quantum-orb {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: quantum-float 8s ease-in-out infinite;
}

.orb-core {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #00f2fe, #4facfe);
    box-shadow: 
        0 0 40px #00f2fe,
        0 0 80px rgba(0, 242, 254, 0.5);
    z-index: 3;
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: core-pulse 2s ease-out infinite;
}

.core-energy {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        #00f2fe,
        #4facfe,
        transparent
    );
    animation: energy-rotate 3s linear infinite;
    opacity: 0.6;
}

.orb-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid rgba(79, 172, 254, 0.4);
    border-radius: 50%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ring-1 {
    animation: ring-rotate-1 6s linear infinite;
    border-color: rgba(0, 242, 254, 0.6);
}

.ring-2 {
    animation: ring-rotate-2 8s linear infinite reverse;
    border-color: rgba(79, 172, 254, 0.4);
    transform: scale(0.8);
}

.ring-3 {
    animation: ring-rotate-3 10s linear infinite;
    border-color: rgba(0, 242, 254, 0.3);
    transform: scale(0.6);
}

.orb-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.quantum-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #00f2fe, #4facfe);
    border-radius: 50%;
    filter: blur(1px);
    animation: quantum-orbit 4s infinite linear;
}

.quantum-particle:nth-child(1) { 
    animation-delay: 0s; 
    animation-duration: 6s;
}
.quantum-particle:nth-child(2) { 
    animation-delay: 1s; 
    animation-duration: 8s;
}
.quantum-particle:nth-child(3) { 
    animation-delay: 2s; 
    animation-duration: 10s;
}
.quantum-particle:nth-child(4) { 
    animation-delay: 3s; 
    animation-duration: 7s;
}
.quantum-particle:nth-child(5) { 
    animation-delay: 4s; 
    animation-duration: 9s;
}

.orb-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    gap: 5px;
    z-index: 10;
}

/* Data Stream Stat */
.data-stream-stat {
    text-align: center;
}

.stream-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
}

.stream-tower {
    position: absolute;
    width: 60px;
    height: 160px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tower-base {
    position: absolute;
    width: 80px;
    height: 20px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

.tower-pillar {
    position: absolute;
    width: 8px;
    height: 140px;
    background: linear-gradient(to top, #4facfe, #00f2fe);
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.tower-node {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #00f2fe;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    box-shadow: 0 0 20px #00f2fe;
    animation: node-pulse 2s ease-in-out infinite;
}

.data-stream {
    position: absolute;
    width: 200px;
    height: 120px;
    top: 40px;
    left: 10px;
    overflow: hidden;
}

.stream-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f2fe, transparent);
    top: 50%;
    transform: translateY(-50%);
    animation: stream-flow 3s linear infinite;
}

.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00f2fe;
    border-radius: 50%;
    animation: data-flow 4s linear infinite;
    box-shadow: 0 0 10px #00f2fe;
}

.data-point:nth-child(1) { animation-delay: 0s; top: 30%; }
.data-point:nth-child(2) { animation-delay: 0.8s; top: 50%; }
.data-point:nth-child(3) { animation-delay: 1.6s; top: 70%; }
.data-point:nth-child(4) { animation-delay: 2.4s; top: 40%; }
.data-point:nth-child(5) { animation-delay: 3.2s; top: 60%; }

.stream-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    gap: 5px;
    z-index: 10;
}

/* Hologram Stat */
.hologram-stat {
    text-align: center;
}

.hologram-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 30px;
}

.hologram-cube {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg);
    transform-style: preserve-3d;
    animation: hologram-rotate 15s infinite linear;
}

.hologram-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 242, 254, 0.6);
    background: rgba(0, 242, 254, 0.1);
    backdrop-filter: blur(10px);
}

.hologram-face.face-1 { transform: translateZ(50px); }
.hologram-face.face-2 { transform: rotateY(90deg) translateZ(50px); }
.hologram-face.face-3 { transform: rotateY(180deg) translateZ(50px); }
.hologram-face.face-4 { transform: rotateY(-90deg) translateZ(50px); }

.hologram-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: grid-shift 4s linear infinite;
}

.hologram-pulse {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border: 1px solid rgba(0, 242, 254, 0.4);
    animation: hologram-pulse 3s ease-in-out infinite;
}

.hologram-beams {
    position: absolute;
    width: 100%;
    height: 100%;
}

.beam {
    position: absolute;
    background: linear-gradient(transparent, #00f2fe, transparent);
    width: 2px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    animation: beam-rotate 6s infinite linear;
}

.beam-1 { animation-delay: 0s; }
.beam-2 { animation-delay: 2s; }
.beam-3 { animation-delay: 4s; }

.hologram-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    gap: 5px;
    z-index: 10;
}

/* Common Elements */
.value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 
        0 0 20px #00f2fe,
        0 0 40px rgba(0, 242, 254, 0.5);
    line-height: 1;
}

.suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00f2fe;
    text-shadow: 0 0 10px #00f2fe;
}

.stat-info {
    margin-top: 20px;
}

.label {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sub-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Advanced Background Animation */
.quantum-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
}

.neural-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 242, 254, 0.6);
    border-radius: 50%;
    animation: neural-pulse 4s infinite ease-in-out;
}

.neural-node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.neural-node:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.neural-node:nth-child(3) { top: 80%; left: 30%; animation-delay: 2s; }
.neural-node:nth-child(4) { top: 40%; left: 70%; animation-delay: 3s; }
.neural-node:nth-child(5) { top: 10%; left: 50%; animation-delay: 4s; }

.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.3), transparent);
    animation: neural-connect 8s infinite linear;
}

.neural-connection:nth-child(6) { 
    top: 20%; left: 10%; width: 200px; 
    animation-delay: 0s;
}
.neural-connection:nth-child(7) { 
    top: 60%; left: 30%; width: 150px; 
    animation-delay: 2s;
}
.neural-connection:nth-child(8) { 
    top: 40%; left: 50%; width: 180px; 
    animation-delay: 4s;
}
.neural-connection:nth-child(9) { 
    top: 80%; left: 20%; width: 220px; 
    animation-delay: 6s;
}

.data-streams-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stream-bg {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.2), transparent);
    animation: stream-bg-flow 20s infinite linear;
}

.stream-1 { top: 30%; width: 300px; animation-delay: 0s; }
.stream-2 { top: 60%; width: 400px; animation-delay: 7s; }
.stream-3 { top: 80%; width: 350px; animation-delay: 14s; }

.quantum-waves {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse, transparent 30%, rgba(0, 242, 254, 0.03) 70%, transparent 100%);
    animation: wave-expand 15s infinite linear;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: 5s; }
.wave-3 { animation-delay: 10s; }

/* Optimized Animations - Reduced GPU load */
@keyframes title-glow {
    0%, 100% { text-shadow: 0 4px 30px rgba(79, 172, 254, 0.4); }
    50% { text-shadow: 0 4px 50px rgba(79, 172, 254, 0.8), 0 0 60px rgba(0, 242, 254, 0.6); }
}

@keyframes quantum-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

@keyframes ring-rotate-1 {
    0% { transform: rotateX(60deg) rotateY(0deg); }
    100% { transform: rotateX(60deg) rotateY(360deg); }
}

@keyframes ring-rotate-2 {
    0% { transform: scale(0.8) rotateX(30deg) rotateZ(0deg); }
    100% { transform: scale(0.8) rotateX(30deg) rotateZ(360deg); }
}

@keyframes ring-rotate-3 {
    0% { transform: scale(0.6) rotateY(60deg) rotateX(0deg); }
    100% { transform: scale(0.6) rotateY(60deg) rotateX(360deg); }
}

@keyframes quantum-orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 20px #00f2fe; transform: translateX(-50%) scale(1); }
    50% { box-shadow: 0 0 30px #00f2fe; transform: translateX(-50%) scale(1.05); }
}

@keyframes stream-flow {
    0% { transform: translateY(-50%) translateX(-100%); }
    100% { transform: translateY(-50%) translateX(100%); }
}

@keyframes data-flow {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes hologram-rotate {
    0% { transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg); }
    100% { transform: translate(-50%, -50%) rotateX(45deg) rotateY(405deg); }
}

@keyframes grid-shift {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

@keyframes hologram-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes beam-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg) scaleY(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scaleY(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scaleY(1); }
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

@keyframes neural-connect {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 0.4; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

@keyframes stream-bg-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes wave-expand {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

/* Performance Optimizations */
.quantum-stats {
    /* Enable GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.quantum-orb, .hologram-cube, .stream-container {
    /* Optimize animations */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* Reduce animation intensity when scrolling */
@media (prefers-reduced-motion: reduce) {
    .quantum-stats * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .quantum-stats-container {
        gap: 40px;
    }
    
    .quantum-orb-wrapper,
    .stream-container,
    .hologram-container {
        width: 180px;
        height: 180px;
    }
    
    .value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .quantum-stats {
        padding: 80px 0;
        min-height: auto;
    }
    
    .quantum-stats-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    
    .quantum-stats .section-header h2 {
        font-size: 2.5rem;
    }
    
    .quantum-orb-wrapper,
    .stream-container,
    .hologram-container {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .quantum-stats .section-header h2 {
        font-size: 2rem;
    }
    
    .quantum-stats .section-header p {
        font-size: 1.1rem;
    }
    
    .value {
        font-size: 2.2rem;
    }
    
    .label {
        font-size: 1.1rem;
    }
}