/* ScalpMate Master Design System - Modern Glassmorphism & Cyber Aesthetics */
:root {
    --bg-main: #0B0E14;
    --bg-card: rgba(19, 26, 42, 0.75);
    --bg-card-solid: #131A2A;
    --bg-card-hover: rgba(28, 38, 60, 0.85);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --accent: #00E5FF;       /* Cyber Cyan */
    --success-green: #00E676; /* Vibrant Emerald Green */
    --error-red: #FF5252;     /* Neon Red */
    --gold: #FFD700;          /* Glowing Gold */
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 25px rgba(0, 230, 118, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography & Text Utilities */
.nova-text { font-family: 'Nova Flat', cursive, sans-serif; }
.lora-text { font-family: 'Lora', serif; }
.hind-text { font-family: 'Hind', sans-serif; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-green { color: var(--success-green); }
.text-red { color: var(--error-red); }
.text-gold { color: var(--gold); }
.text-white { color: #ffffff; }
.text-muted { color: var(--text-muted); }

.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 25px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }

/* Layout & Containers */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Unsplash Background Hero Banner */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.85) 0%, rgba(11, 14, 20, 0.98) 100%), 
                url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, rgba(0, 229, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: ambientPulse 8s infinite alternate ease-in-out;
}

@keyframes ambientPulse {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.5));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--success-green);
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-headline {
    font-size: 1.25rem;
    color: #CBD5E1;
    max-width: 780px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

/* Glassmorphism Cards & Badges */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 15px 35px rgba(0, 230, 118, 0.12);
    transform: translateY(-3px);
}

.card {
    background: var(--bg-card-solid);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #1E293B;
    transition: 0.3s;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 230, 118, 0.12);
    color: var(--success-green);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Eye-Catching Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    color: #020617;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.5);
    background: linear-gradient(135deg, #00FF84 0%, #00E676 100%);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
    display: flex;
}

.btn-login-trigger {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-login-trigger:hover {
    background: var(--accent);
    color: #020617;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Section Layouts */
.section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border-glass);
}

.section-title {
    font-size: 2.2rem;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 45px;
}

.card-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Interactive Calculator & EA Trade Simulator */
.calculator-card {
    background: linear-gradient(145deg, rgba(19, 26, 42, 0.9), rgba(11, 14, 20, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider-group {
    margin-bottom: 20px;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.custom-range {
    width: 100%;
    height: 8px;
    background: #1E293B;
    border-radius: 4px;
    outline: none;
    accent-color: var(--success-green);
    cursor: pointer;
}

.sim-output-box {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    text-align: center;
}

.sim-metric-val {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Interactive Trade Simulation Animation */
.trade-sim-container {
    background: #020617;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    transition: top 0.5s ease;
}

.line-entry { top: 60%; background: var(--accent); border-top: 1px dashed var(--accent); }
.line-sl { top: 85%; background: var(--error-red); transition: top 0.4s ease; }
.line-tp { top: 20%; background: var(--success-green); }

/* Accordion FAQ */
.accordion-item {
    background: rgba(19, 26, 42, 0.6);
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    transition: 0.3s;
}

.accordion-btn {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.accordion-btn:hover, .accordion-btn.active {
    background: rgba(28, 38, 60, 0.9);
    color: var(--success-green);
}

.accordion-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--success-green);
}

.accordion-content {
    padding: 0 20px 20px;
    display: none;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-box {
    background: #0F172A;
    width: 90%;
    max-width: 460px;
    padding: 35px;
    border-radius: 18px;
    border: 1px solid rgba(0, 230, 118, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 18px; right: 18px;
    background: none; border: none;
    color: #64748B; font-size: 1.4rem;
    cursor: pointer;
}

.close-modal:hover { color: #FFF; }

.header-auth-tabs {
    display: flex;
    align-items: center;
    background: #020617;
    border: 1px solid #1E293B;
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
}

.header-tab-btn {
    padding: 8px 20px;
    border-radius: 24px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-tab-btn:hover {
    color: #FFF;
}

.header-tab-btn.active {
    background: var(--success-green);
    color: #020617;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.35);
}

.header-tab-btn.tab-register-btn.active {
    background: linear-gradient(135deg, #00E676 0%, #00E5FF 100%);
    color: #020617;
}

.auth-toggle {
    display: flex;
    margin-bottom: 25px;
    background: #020617;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid #1E293B;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    padding: 11px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--success-green);
    color: #020617;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

.toggle-btn#tab-register.active {
    background: linear-gradient(135deg, #00E676 0%, #00E5FF 100%);
}

.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group input, .form-control {
    width: 100%;
    padding: 12px 16px;
    background: #020617;
    border: 1px solid #1E293B;
    color: #FFF;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.input-group input:focus, .form-control:focus {
    outline: none;
    border-color: var(--success-green);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

/* Bottom Navigation (Mobile PWA) */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: 65px;
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748B;
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.3s;
}

.bottom-nav-item svg {
    margin-bottom: 2px;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--success-green);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-glass);
    color: #64748B;
    font-size: 0.9rem;
}

.footer a {
    color: #94A3B8;
    text-decoration: none;
    margin: 0 8px;
}

.footer a:hover {
    color: var(--success-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .hero-section {
        padding: 85px 12px 35px !important;
    }
    .hero-section h1, .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    .sub-headline {
        font-size: 0.9rem !important;
        line-height: 1.45 !important;
        margin-bottom: 20px !important;
    }
    .section-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }
    .section-subtitle {
        font-size: 0.88rem !important;
    }
    .badge-pill {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }
    .btn-primary, .btn-secondary, .btn-login-trigger {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }
    .calculator-card {
        padding: 18px 12px !important;
        margin-top: 25px !important;
    }
    .sim-output-box {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .sim-metric-val {
        font-size: 1.1rem !important;
    }
    .accordion-btn {
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section h1, .hero-content h1 {
        font-size: 1.35rem !important;
    }
    .logo-text {
        font-size: 1.15rem !important;
    }
    .logo-icon {
        width: 26px !important;
        height: 26px !important;
    }
    .header-top {
        padding: 10px 0 !important;
    }
}
