/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-dark: #020308; /* Darker obsidian background */
    --bg-panel: rgba(10, 12, 26, 0.65); /* Richer glass base */
    --bg-panel-solid: #0a0c1a;
    --accent-cyan: #d4af37; /* Luxury Royal Gold */
    --accent-purple: #c5a880; /* Champagne Gold Accent */
    --accent-pink: #ff3366; /* Vibrant Ruby Pink */
    --accent-gold: #e5c158; /* Bright Highlight Gold */
    --accent-blue: #a3b8cc;
    --candle-green: #00e676; /* Trading green */
    --candle-red: #ff3d00; /* Trading red */
    --text-white: #f8f9fc;
    --text-gray: #9ba0b8; /* Increased readability */
    --border-glow: rgba(212, 175, 55, 0.18);
    --glow-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    --glow-shadow-pink: 0 0 20px rgba(255, 51, 102, 0.25);
    --glow-shadow-green: 0 0 20px rgba(0, 230, 118, 0.25);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Logo image style */
.logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px;
    background: rgba(2, 3, 8, 0.5);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

/* Background Cyber Grid Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient glow blobs */
.glow-blob {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.08) 0%, rgba(212, 175, 55, 0.02) 60%, transparent 100%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}
.blob-1 { top: -10%; left: -10%; }
.blob-2 { bottom: -10%; right: -10%; }

/* Typography */
h1, h2, h3, h4, .font-futuristic {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 700;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-white);
    text-shadow: 0 0 8px var(--accent-cyan);
}

/* Header & Navigation */
header {
    background: rgba(4, 2, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.logo span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.menu-btn {
    display: none;
}

.nav-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: var(--transition);
}

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

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

/* Glassmorphism Panel / Card */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 254, 0.05),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.glass-panel:hover::before {
    left: 120%;
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 242, 254, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #04020f;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: var(--text-white);
    box-shadow: 0 0 25px rgba(127, 0, 255, 0.6);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--text-white);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

.btn-pink {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: var(--text-white);
    box-shadow: var(--glow-shadow-pink);
}

.btn-pink:hover {
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.7);
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: rgba(4, 2, 15, 0.6);
    border: 1px solid var(--border-glow);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glow);
    background: #04020f;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-gray);
    margin-top: 4rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
    transform: scale(1.1);
}

/* Grid & Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-responsive-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.grid-responsive-2col-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.flex-responsive {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    .logo {
        font-size: 1.15rem;
    }
    .menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
    }
    .menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-white);
        transition: var(--transition);
    }
    /* Transform three lines to X when active */
    .menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--accent-cyan);
    }
    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--accent-cyan);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: rgba(4, 2, 15, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid var(--border-glow);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 3rem;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-links.active {
        right: 0;
    }

    .flex-responsive {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        text-align: center;
    }

    .flex-responsive .btn,
    .flex-responsive a.btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 1200px) {
    .grid-responsive-2col,
    .grid-responsive-2col-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    .glass-panel {
        padding: 1.25rem;
    }
    .auth-container {
        margin: 3rem auto !important;
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 100%;
        right: -100%;
    }
    .nav-links.active {
        right: 0;
    }
    .glass-panel {
        padding: 1rem;
    }
    .auth-container {
        margin: 2rem auto !important;
        padding: 1.25rem !important;
    }
}

/* ==========================================
   PREMIUM TRADING & HUD VISUAL COMPONENTS
   ========================================== */

/* Live Trades Ticker */
.ticker-ribbon {
    width: 100%;
    background: rgba(10, 12, 26, 0.95);
    border-bottom: 1px solid var(--border-glow);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    box-sizing: border-box;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    z-index: 99;
}
.ticker-wrap {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}
.ticker-item {
    display: inline-block;
    margin-right: 3rem;
    color: var(--text-gray);
}
.ticker-item strong {
    color: var(--text-white);
}
.ticker-item .profit-up {
    color: var(--candle-green);
    text-shadow: 0 0 5px rgba(0, 230, 118, 0.2);
}
.ticker-item .profit-down {
    color: var(--candle-red);
    text-shadow: 0 0 5px rgba(255, 61, 0, 0.2);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* AI Engine HUD Hologram Console */
.hud-console {
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.05) 0%, rgba(10, 12, 26, 0.85) 70%);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.05), var(--glow-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.hud-console::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%;
    z-index: 10;
    pointer-events: none;
}
.hud-scanning-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    left: 0;
    top: 0;
    opacity: 0.7;
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 11;
}

@keyframes scanline {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* Rotating Gold Core Visualizer */
.hud-core-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 240px;
    margin: 1rem 0;
}
.hud-outer-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1.5px dashed rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    animation: spinHUD 20s linear infinite;
}
.hud-middle-ring {
    position: absolute;
    width: 170px;
    height: 170px;
    border: 2px dotted rgba(197, 168, 128, 0.3);
    border-radius: 50%;
    animation: spinHUD 12s linear infinite reverse;
}
.hud-inner-ring {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 3px double var(--accent-cyan);
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinHUD 6s linear infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}
.hud-core-nodes {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(2, 3, 8, 0.95) 75%);
    border: 1px solid var(--accent-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-weight: 700;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.35);
    animation: pulseGlow 3s ease-in-out infinite;
}
.hud-core-nodes i {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

@keyframes spinHUD {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.25); transform: scale(1); }
    50% { box-shadow: 0 0 45px rgba(212, 175, 55, 0.55); transform: scale(1.03); }
}

/* scrolling logs */
.hud-terminal {
    background: rgba(2, 3, 8, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    height: 120px;
    overflow-y: hidden;
    color: var(--accent-purple);
    line-height: 1.5;
    position: relative;
}
.hud-terminal::before {
    content: "LOG CONSOLE";
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 0.6rem;
    color: rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
}
.terminal-log-line {
    margin-bottom: 0.25rem;
}
.terminal-log-line .timestamp {
    color: rgba(212, 175, 55, 0.5);
    margin-right: 0.5rem;
}
.terminal-log-line.success {
    color: var(--candle-green);
}
.terminal-log-line.info {
    color: #a3b8cc;
}
.terminal-log-line.warning {
    color: var(--accent-pink);
}

/* console readouts */
.hud-readouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.hud-metric-card {
    background: rgba(10, 12, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.6rem;
    text-align: center;
}
.hud-metric-card .title {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}
.hud-metric-card .value {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: 0.25rem;
}

/* Interactive Candlestick Chart styling */
.chart-card {
    padding: 1.5rem;
}
.chart-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.chart-info-group {
    display: flex;
    gap: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}
.chart-info-item span {
    color: var(--text-gray);
}
.chart-info-item strong.up {
    color: var(--candle-green);
}
.chart-info-item strong.down {
    color: var(--candle-red);
}
.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    background: rgba(2, 3, 8, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    overflow: hidden;
}
.canvas-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.chart-overlay-msg {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(212, 175, 55, 0.45);
    background: rgba(2, 3, 8, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    pointer-events: none;
}

