:root {
    --primary: #d4af37;
    --primary-glow: rgba(212, 175, 55, 0.5);
    --secondary: #f9d423;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px var(--primary));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px var(--primary));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px var(--primary));
    }
}

@keyframes circuitPulse {
    0% {
        opacity: 0.3;
        stroke-width: 1;
    }

    50% {
        opacity: 1;
        stroke-width: 2;
    }

    100% {
        opacity: 0.3;
        stroke-width: 1;
    }
}

@keyframes dataFlow {
    from {
        stroke-dashoffset: 100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.ani-icon {
    display: inline-block;
    animation: iconPulse 3s infinite ease-in-out;
}

.card:hover i {
    animation: iconBounce 0.5s ease-in-out infinite;
}

/* Bulletproof 3D Icons */
.icon-3d-container {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 25px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #000 !important;
    border: 2px solid var(--glass-border) !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 1) !important;
}

.img-3d {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* AI Trading Animations */
@keyframes moveScanline {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.floating {
    animation: floatingIcon 4s ease-in-out infinite !important;
}

@keyframes floatingIcon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.card:hover .icon-3d-container {
    border-color: var(--primary) !important;
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-glow) !important;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Bot Animation Area */
.bot-container {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.bot-core {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: iconPulse 2s infinite ease-in-out;
}

.circuit-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: -1;
}

/* Mobile Header Default Hidden */
.mobile-header {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Components */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 110%;
    max-width: 600px;
    mask-image: linear-gradient(to bottom, black 80%, transparent);
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
}

/* Features */
.section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

/* Dashboard UI */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-nav {
    margin-top: 50px;
    list-style: none;
    margin-bottom: 20px;
}

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

.sidebar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--glass);
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        #050505;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 1), rgba(30, 30, 30, 0.5));
    border: 1px solid var(--glass-border);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .change {
    font-size: 0.85rem;
    margin-top: 5px;
}

.change.up {
    color: #00ff88;
}

.change.down {
    color: #ff4444;
}

/* Chart Mockup */
.chart-container {
    height: 400px;
    margin-bottom: 30px;
    padding: 30px;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Animations for lines */
.chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s forwards ease-in-out;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
}

.faq-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-header:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-header span {
    font-weight: 600;
}

.faq-header i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-content {
    padding: 0 30px 30px;
    max-height: 200px;
}

.faq-item.active .faq-header i {
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 140px;
        /* Increased padding to avoid collision with fixed header */
        text-align: center;
        height: auto;
        /* Allow content to flow naturally on small screens */
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
        max-width: 100%;
        margin-top: 50px;
    }

    .nav-links {
        display: none;
    }

    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #000 !important;
        padding: 0 20px;
        z-index: 9999 !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid var(--primary);
    }

    .mobile-header .logo {
        color: #fff !important;
        font-weight: 800;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-header .logo i {
        color: var(--primary);
    }
    #navbar {
        display: none !important;
    }

    #ticker-wrapper {
        margin-top: 60px;
    }

    #mobile-cta {
        display: none !important;
    }

    /* Dashboard Mobile Settings */
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 2000;
        width: 250px;
        transition: var(--transition);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        padding: 20px;
        padding-top: 80px;
        /* Space for mobile header */
    }

}

/* Premium Form Utilities */
.form-group-premium {
    margin-bottom: 25px;
}

.form-group-premium label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-premium {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
}

.input-premium:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    outline: none;
}

/* Fix for Select Option Background in Dark Mode */
select.input-premium option, 
select.form-control option,
select option {
    background-color: #050505 !important;
    color: #ffffff !important;
}

.badge-premium {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-ai {
    background: linear-gradient(135deg, #00ff88, #00b8ff);
    color: #000;
}

/* Premium Dashboard Icons */
.glass-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: absolute;
    right: 20px;
    top: 20px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.glass-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

.stat-card:hover .glass-icon-wrapper {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.stat-card:hover .glass-icon-wrapper i {
    color: #000;
}

#side-menu.active {
    left: 0 !important;
}

#ticker-wrapper {
    margin-top: 75px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Profile Alert Responsive */
.profile-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .desktop-icons {
        display: none !important;
    }
    
    .profile-alert {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .profile-alert-content {
        align-items: flex-start !important;
    }
    
    .profile-alert .alert-btn {
        width: 100%;
        margin-top: 10px;
    }
}