/* ══════════════════════════════════════════════════════════
   BlockTicker v6.1 — PATCH CSS
   Add this AFTER the existing frontend.css content
   Includes: Navbar, Footer, Animations, Forex fix, Mobile
   ══════════════════════════════════════════════════════════ */

/* ── CUSTOM NAVBAR ── */
.cp-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
    background: rgba(10,14,26,.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s, box-shadow .3s;
}
.cp-navbar.scrolled {
    background: rgba(10,14,26,.98);
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.cp-nav-inner {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 64px;
}
.cp-nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none !important; flex-shrink: 0;
}
.cp-logo-icon { display: flex; align-items: center; }
.cp-logo-text {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 20px !important; font-weight: 700 !important;
    color: #fff !important; letter-spacing: -0.5px;
}
.cp-logo-accent {
    background: linear-gradient(135deg, #00d4aa, #0099ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop nav links */
.cp-nav-links {
    display: flex; align-items: center; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
}
.cp-nav-links::-webkit-scrollbar { display: none; }
.cp-nav-link {
    font-size: 13px !important; font-weight: 500 !important;
    color: #94a3b8 !important; text-decoration: none !important;
    padding: 6px 12px; border-radius: 8px;
    white-space: nowrap; transition: all .2s;
}
.cp-nav-link:hover { color: #fff !important; background: rgba(255,255,255,.05); }
.cp-nav-link.active { color: #00d4aa !important; background: rgba(0,212,170,.08); }

/* Hamburger */
.cp-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; position: relative;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.cp-hamburger span {
    display: block; width: 22px; height: 2px; background: #e2e8f0;
    border-radius: 2px; transition: all .3s;
}
.cp-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.cp-hamburger.open span:nth-child(2) { opacity: 0; }
.cp-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.cp-mobile-menu {
    display: none; flex-direction: column;
    background: rgba(10,14,26,.98);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 12px 20px 24px;
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease, padding .3s;
}
.cp-mobile-menu.open { max-height: 600px; display: flex; }
.cp-mobile-link {
    font-size: 15px !important; color: #e2e8f0 !important;
    text-decoration: none !important; padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color .2s;
}
.cp-mobile-link:hover, .cp-mobile-link.active { color: #00d4aa !important; }
.cp-mobile-secondary { color: #64748b !important; font-size: 13px !important; }
.cp-mobile-divider { height: 1px; background: rgba(255,255,255,.08); margin: 8px 0; }

@media (max-width: 1024px) {
    .cp-nav-links { display: none; }
    .cp-hamburger { display: flex; }
    .cp-mobile-menu { display: flex; max-height: 0; }
    .cp-mobile-menu.open { max-height: 600px; }
}

/* ── CUSTOM FOOTER ── */
.cp-footer {
    background: #060a14; border-top: 1px solid rgba(255,255,255,.06);
    padding: 48px 0 0; margin-top: 48px;
}
.cp-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.cp-footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px; padding-bottom: 36px;
}
@media (max-width: 768px) { .cp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cp-footer-grid { grid-template-columns: 1fr; } }
.cp-footer-col h4 {
    color: #fff !important; font-size: 13px !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px !important;
}
.cp-footer-col a {
    display: block; color: #64748b !important; text-decoration: none !important;
    font-size: 13px !important; padding: 4px 0; transition: color .2s;
}
.cp-footer-col a:hover { color: #00d4aa !important; }
.cp-footer-brand .cp-footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cp-footer-desc { color: #475569 !important; font-size: 13px !important; line-height: 1.6; margin: 0 0 16px !important; }
.cp-footer-socials { display: flex; gap: 8px; }
.cp-footer-social {
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(255,255,255,.05); color: #94a3b8 !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; text-decoration: none !important;
    transition: all .2s;
}
.cp-footer-social:hover { background: rgba(0,212,170,.15); color: #00d4aa !important; }
.cp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0; text-align: center;
}
.cp-footer-bottom p { color: #334155 !important; font-size: 11px !important; margin: 0 !important; }

/* ══════════════════════════════════════════════════
   CINEMATIC ANIMATIONS
   ══════════════════════════════════════════════════ */

/* ── SCROLL REVEAL (elements fade + slide up on scroll) ── */
.fxlm-section-header,
.fxlm-news-item,
.fxlm-price-card,
.fxlm-broker-card,
.fxlm-top-pick,
.fxlm-learn-card,
.fxlm-table-wrap,
.fxlm-chart-wrap,
.fxlm-fng-widget,
.fxlm-converter,
.fxlm-newsletter,
.fxlm-cta-strip,
.fxlm-glossary-term,
.fxlm-signal-item {
    opacity: 0;
    transform: translateY(30px);
    animation: cp-reveal 0.7s ease forwards;
}

/* Staggered delays for grid items */
.fxlm-price-cards > :nth-child(1) { animation-delay: 0.05s; }
.fxlm-price-cards > :nth-child(2) { animation-delay: 0.12s; }
.fxlm-price-cards > :nth-child(3) { animation-delay: 0.19s; }
.fxlm-price-cards > :nth-child(4) { animation-delay: 0.26s; }
.fxlm-price-cards > :nth-child(5) { animation-delay: 0.33s; }
.fxlm-price-cards > :nth-child(6) { animation-delay: 0.40s; }

.fxlm-news-feed > :nth-child(1) { animation-delay: 0.05s; }
.fxlm-news-feed > :nth-child(2) { animation-delay: 0.10s; }
.fxlm-news-feed > :nth-child(3) { animation-delay: 0.15s; }
.fxlm-news-feed > :nth-child(4) { animation-delay: 0.20s; }
.fxlm-news-feed > :nth-child(5) { animation-delay: 0.25s; }

.fxlm-top-picks > :nth-child(1) { animation-delay: 0.1s; }
.fxlm-top-picks > :nth-child(2) { animation-delay: 0.2s; }
.fxlm-top-picks > :nth-child(3) { animation-delay: 0.3s; }

.fxlm-learn-grid > :nth-child(1) { animation-delay: 0.05s; }
.fxlm-learn-grid > :nth-child(2) { animation-delay: 0.12s; }
.fxlm-learn-grid > :nth-child(3) { animation-delay: 0.19s; }
.fxlm-learn-grid > :nth-child(4) { animation-delay: 0.26s; }

@keyframes cp-reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ── HERO CINEMATIC ENTRANCE ── */
.fxlm-hero {
    position: relative; overflow: hidden;
}
.fxlm-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 30% 50%, rgba(0,212,170,.08), transparent),
        radial-gradient(ellipse 500px 350px at 70% 40%, rgba(0,153,255,.06), transparent);
    animation: cp-hero-glow 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes cp-hero-glow {
    0% { opacity: .6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.fxlm-hero-badge {
    animation: cp-badge-in .8s ease .2s both;
}
.fxlm-hero-title {
    animation: cp-title-in 1s ease .4s both;
}
.fxlm-hero-tagline {
    animation: cp-title-in 1s ease .5s both;
}
.fxlm-hero-sub {
    animation: cp-title-in 1s ease .6s both;
}
.fxlm-hero-btns {
    animation: cp-title-in 1s ease .75s both;
}
.fxlm-hero-stats {
    animation: cp-title-in 1s ease .85s both;
}

@keyframes cp-badge-in {
    from { opacity: 0; transform: translateY(-20px) scale(.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cp-title-in {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── FLOATING PARTICLES in hero background ── */
.fxlm-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(0,212,170,.4), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(0,153,255,.3), transparent),
        radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,.15), transparent),
        radial-gradient(1px 1px at 70% 70%, rgba(0,212,170,.35), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(0,153,255,.25), transparent),
        radial-gradient(1.5px 1.5px at 20% 80%, rgba(255,255,255,.2), transparent),
        radial-gradient(1px 1px at 60% 15%, rgba(0,212,170,.3), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(0,153,255,.2), transparent),
        radial-gradient(1.5px 1.5px at 45% 50%, rgba(255,255,255,.12), transparent),
        radial-gradient(1px 1px at 15% 45%, rgba(0,212,170,.25), transparent);
    animation: cp-stars 20s linear infinite;
    pointer-events: none;
}
@keyframes cp-stars {
    from { transform: translateY(0); }
    to { transform: translateY(-30px); }
}

/* ── GLOWING ACCENTS ── */
.fxlm-section-badge {
    animation: cp-badge-pulse 3s ease-in-out infinite;
}
@keyframes cp-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,.15); }
    50% { box-shadow: 0 0 12px 4px rgba(0,212,170,.12); }
}

/* ── PRICE CARD GLOW on hover ── */
.fxlm-price-card:hover {
    box-shadow: 0 0 24px rgba(0,212,170,.1), 0 8px 32px rgba(0,0,0,.3);
}

/* ── TICKER GLOW LINE ── */
.fxlm-ticker-wrap {
    position: relative;
}
.fxlm-ticker-wrap::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4aa, #0099ff, transparent);
    animation: cp-ticker-glow 3s ease-in-out infinite;
}
@keyframes cp-ticker-glow {
    0%, 100% { opacity: .3; }
    50% { opacity: .8; }
}

/* ── BREAKING BAR PULSE ── */
.fxlm-breaking-label {
    animation: cp-breaking-flash 2s ease-in-out infinite;
}
@keyframes cp-breaking-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

/* ── TRENDING BAR animated gradient ── */
.fxlm-trending-bar {
    background: linear-gradient(90deg, rgba(15,22,41,.95), rgba(10,14,26,.95));
    position: relative;
}

/* ── FEAR & GREED gauge animation ── */
.fxlm-fng-circle {
    animation: cp-gauge-in 1.2s ease .3s both;
}
@keyframes cp-gauge-in {
    from { transform: scale(.5) rotate(-90deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ── TABLE ROW hover glow ── */
.fxlm-table tr:hover td {
    background: rgba(0,212,170,.06);
    transition: background .3s;
}

/* ── NEWS CARD hover lift ── */
.fxlm-news-item {
    transition: border-color .3s, transform .25s, box-shadow .3s;
}
.fxlm-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

/* ── CTA STRIP gradient animation ── */
.fxlm-cta-strip {
    background-size: 200% 100%;
    animation: cp-cta-shimmer 6s ease infinite;
}
@keyframes cp-cta-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── BUTTON hover effects ── */
.fxlm-cta-btn, .fxlm-btn-affiliate {
    transition: all .3s !important;
    position: relative; overflow: hidden;
}
.fxlm-cta-btn:hover, .fxlm-btn-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,212,170,.25);
}

/* ── CHART LOADING shimmer ── */
.fxlm-chart-wrap {
    position: relative; overflow: hidden;
}
.fxlm-chart-wrap::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,212,170,.03), transparent);
    animation: cp-chart-load 2s ease infinite;
    pointer-events: none; z-index: 1;
}
@keyframes cp-chart-load {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ── NEWSLETTER glow border ── */
.fxlm-newsletter-banner {
    position: relative;
}
.fxlm-newsletter-banner::before {
    content: ''; position: absolute; inset: -1px; border-radius: 15px;
    background: linear-gradient(135deg, rgba(0,212,170,.3), rgba(0,153,255,.2), rgba(0,212,170,.1));
    z-index: -1;
    animation: cp-newsletter-glow 4s ease-in-out infinite alternate;
}
@keyframes cp-newsletter-glow {
    0% { opacity: .4; }
    100% { opacity: .8; }
}

/* ── SCROLL-BASED NAVBAR transparency ── */
@media (prefers-reduced-motion: no-preference) {
    .cp-navbar { transition: all .3s; }
}

/* ── FOREX TABLE FIX — ensure demo data renders ── */
.fxlm-loading {
    animation: cp-loading-pulse 1.5s ease-in-out infinite;
}
@keyframes cp-loading-pulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* ── MOBILE IMPROVEMENTS ── */
@media (max-width: 640px) {
    .fxlm-hero { padding: 40px 16px 36px; }
    .fxlm-hero-title { font-size: clamp(26px,7vw,44px) !important; }
    .fxlm-hero-tagline { font-size: 14px !important; letter-spacing: 1px; }
    .fxlm-hero-btns { flex-direction: column; align-items: center; }
    .fxlm-price-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .fxlm-price-card { padding: 14px; }
    .fxlm-price-card-price { font-size: 18px !important; }
    .fxlm-fng-widget { flex-direction: column; text-align: center; }
    .fxlm-fng-history { width: 100%; }
    .fxlm-newsletter { flex-direction: column; text-align: center; }
    .fxlm-newsletter-form { width: 100%; }
    .fxlm-newsletter-form input { min-width: 0; width: 100%; }
    .cp-footer-grid { gap: 24px; }
}
