/* ==========================================================================
   TradexGrowth - Premium Fintech Design System & Stylesheet
   ========================================================================== */

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

:root {
    /* Color Palette */
    --bg-dark: #050811;
    --bg-darker: #02040a;
    --bg-card: rgba(13, 19, 39, 0.45);
    --bg-card-hover: rgba(20, 30, 60, 0.65);
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.4);
    --primary-light: #60a5fa;
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);
    --emerald-light: #34d399;
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.35);
    --gold-light: #fbbf24;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    
    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
    
    /* Glassmorphism properties */
    --glass-blur: blur(16px);
    --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Layout Elements */
.section-padding {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Gradients & Lights */
.bg-glow-radial {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(5,8,17,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.bg-glow-emerald {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--emerald-glow) 0%, rgba(5,8,17,0) 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

/* Top Tick Banner */
.tick-banner {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-items {
    display: flex;
    white-space: nowrap;
    animation: ticker-slide 40s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 25px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.ticker-item .rate {
    margin-left: 8px;
    font-weight: 600;
}

.ticker-item .up {
    color: var(--emerald-light);
}

.ticker-item .down {
    color: #ef4444;
}

@keyframes ticker-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Top Header Actions */
.top-header {
    background: rgba(5, 8, 17, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 0.85rem;
    z-index: 1000;
    position: relative;
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-info {
    display: flex;
    gap: 20px;
    list-style: none;
}

.top-header-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.top-header-info a {
    color: var(--text-secondary);
}

.top-header-info a:hover {
    color: var(--text-white);
}

.top-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Primary Header & Navbar */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(5, 8, 17, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header.is-sticky {
    background: rgba(2, 4, 10, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 42px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-item:hover > .nav-link {
    color: var(--text-white);
}

/* Dropdown Menu */
.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    background: #0f1322;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    list-style: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.nav-item:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu-custom li a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.dropdown-menu-custom li a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 16px;
}

.navbar-cta {
    display: flex;
    gap: 15px;
}

/* Premium Buttons */
.btn-premium {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary-premium {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary-premium:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-gold-premium {
    background: linear-gradient(135deg, var(--gold) 0%, #b45309 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    background: radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.15) 0%, rgba(5,8,17,0) 50%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 20px;
}

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

/* Glass Card Overlay Visuals */
.glass-card-mockup {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-shine {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: var(--primary);
    filter: blur(80px);
    pointer-events: none;
}

/* Section Headings */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    position: relative;
    z-index: 2;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--emerald-light);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
}

/* Why Choose Us Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-card {
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.15);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--primary-light);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    z-index: 2;
    position: relative;
}

.market-card {
    padding: 30px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

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

.market-icon {
    font-size: 2rem;
    color: var(--primary-light);
}

.market-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.market-rate {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 15px 0;
}

.market-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.market-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.market-change.positive {
    color: var(--emerald-light);
}

/* Premium Account Grid */
.account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    z-index: 2;
    position: relative;
}

.account-card {
    padding: 50px 35px;
    border-radius: 20px;
    position: relative;
}

.account-card.vip-card {
    border: 1px solid var(--gold);
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12) 0%, var(--bg-card) 60%);
    box-shadow: 0 10px 40px -15px rgba(245, 158, 11, 0.2);
}

.account-card.vip-card::after {
    content: 'VIP';
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--gold);
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.account-type {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.account-card h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.account-features {
    list-style: none;
    margin-bottom: 40px;
}

.account-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.account-features li svg {
    color: var(--emerald-light);
    flex-shrink: 0;
}

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

/* Testimonials / Live feeds */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    z-index: 2;
    position: relative;
}

.testimonial-card {
    padding: 30px;
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-light);
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-white);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
    position: relative;
}

.faq-item {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
}

.faq-item.active {
    border-color: rgba(37, 99, 235, 0.25);
    background: var(--bg-card-hover);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Onboarding Stepper Form */
.form-stepper {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(13, 19, 39, 0.55);
}

.stepper-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.stepper-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.step-node.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-node.completed .step-circle {
    border-color: var(--emerald);
    background: var(--emerald);
    color: var(--text-white);
}

.step-label {
    margin-top: 10px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.step-node.active .step-label {
    color: var(--text-white);
}

.step-node.completed .step-label {
    color: var(--emerald-light);
}

.form-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.form-group-full {
    grid-column: span 2;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input, .form-select {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(5, 8, 17, 0.6);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* Grid & Tables for Market Comparison */
.comparison-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    background: rgba(2, 4, 10, 0.8);
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-white);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td {
    padding: 20px 24px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-white);
}

/* Call to Action Wrapper */
.cta-wrapper {
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.2) 0%, rgba(5,8,17,0) 40%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.15) 0%, rgba(5,8,17,0) 40%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.cta-inner p {
    margin-bottom: 35px;
    font-size: 1.1rem;
}

/* Footer styles */
.footer-wrapper {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.6fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 42px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links-title {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    margin-bottom: 30px;
}

.footer-disclaimer h4 {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-white);
    margin-bottom: 12px;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Features Grid (shared across market & feature pages) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    z-index: 2;
    position: relative;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--primary-light);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.08);
    box-shadow: 0 4px 18px var(--primary-glow);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Header logo img */
.logo img,
.logo .logo-img {
    height: 42px;
    width: auto;
    display: block;
}

/* Footer logo img */
.footer-brand .logo-img {
    height: 38px;
    margin-bottom: 20px;
    width: auto;
}

/* Social link SVG icons */
.social-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-link.twitter:hover { background: #000; border-color: #000; }
.social-link.instagram:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #e6683c; }
.social-link.youtube:hover { background: #FF0000; border-color: #FF0000; }
.social-link.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-link.telegram:hover { background: #0088cc; border-color: #0088cc; }

/* Hero Image Styles */
.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 17, 0.4) 100%);
    pointer-events: none;
}

/* Section image cards */
.section-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================
   PREMIUM PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.preloader-logo {
    height: 48px;
    width: auto;
    animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.97); }
}

/* Candlestick Chart Animation */
.preloader-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 50px;
    padding: 0 10px;
}

.candle {
    width: 8px;
    border-radius: 2px;
    position: relative;
    animation: candleGrow 1.4s ease-in-out infinite alternate;
}

.candle::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: inherit;
    border-radius: 1px;
}

.candle.green {
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald-glow);
}

.candle.green::before {
    background: var(--emerald);
    top: -5px;
    height: 5px;
}

.candle.red {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.candle.red::before {
    background: #ef4444;
    bottom: -5px;
    height: 5px;
}

.candle:nth-child(1) { height: 22px; animation-delay: 0s; }
.candle:nth-child(2) { height: 35px; animation-delay: 0.15s; }
.candle:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.candle:nth-child(4) { height: 40px; animation-delay: 0.45s; }
.candle:nth-child(5) { height: 28px; animation-delay: 0.6s; }
.candle:nth-child(6) { height: 45px; animation-delay: 0.75s; }
.candle:nth-child(7) { height: 30px; animation-delay: 0.9s; }
.candle:nth-child(8) { height: 20px; animation-delay: 1.05s; }

@keyframes candleGrow {
    0% { transform: scaleY(0.6); opacity: 0.5; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* Animated price line */
.preloader-line {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-line::after {
    content: '';
    position: absolute;
    left: -50%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), var(--emerald), transparent);
    animation: preloaderSlide 1.5s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { left: -50%; }
    100% { left: 100%; }
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Responsive Grid and Styles */
@media (max-width: 1024px) {
    .account-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-subtitle {
        display: inline-flex;
    }
    .account-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none; /* Controlled by mobile drawer */
    }
    .navbar-toggler {
        display: block !important;
    }
    .navbar-cta {
        display: none;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .markets-grid {
        grid-template-columns: 1fr;
    }
    .top-header-info {
        display: none;
    }
}

/* Custom Responsive Utilities */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.hero-image-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; height: 100%; }
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-slider { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-image-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .hero-image-grid img { grid-column: 1 / -1 !important; grid-row: auto !important; height: 250px !important; }
}


/* Mobile Menu Scroll Lock */
body.scroll-off {
    overflow: hidden !important;
    touch-action: none;
}
