/* 
   ELIT.PL - Quantum Dynamics Portal v9.0 (STABILIZATION EDITION)
   Focus: Premium Trading Aesthetic + Unshakeable Grid Logic
   Author: Antigravity
*/

:root {
    --primary: #d4af37;
    --primary-bright: #fbbf24;
    --primary-glow: rgba(212, 175, 55, 0.45);
    --secondary: #0a192f;
    --accent: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.4);
    --accent-red: #ff4d4d;
    --bg: #020617;
    --bg-alt: #080e1e;
    --grid-color: rgba(255, 255, 255, 0.04);
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
}

/* --- RESET & BASE --- */
* { margin:0; padding:0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: var(--font-body); 
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- DYNAMIC OVERLAYS --- */
.scanline-overlay {
    position: fixed; inset: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px; z-index: 10000; pointer-events: none; opacity: 0.1;
}
.noise-overlay {
    position: fixed; inset: -50%; width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 9999; pointer-events: none; opacity: 0.02;
    animation: noiseShift 0.2s steps(2) infinite;
}
@keyframes noiseShift {
    0% { transform: translate(0,0); }
    100% { transform: translate(5%,5%); }
}

.bg-grid {
    position: fixed; inset: 0;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px; z-index: -2;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* --- NAVIGATION --- */
.market-ticker-banner {
    width: 100%; height: 32px; background: rgba(0,0,0,0.9);
    border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 1100; overflow: hidden;
    display: flex; align-items: center;
}
.status-label {
    background: #000;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0 1.2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-right: 1px solid var(--primary-glow);
    box-shadow: 10px 0 20px rgba(0,0,0,0.8);
    white-space: nowrap;
    z-index: 10;
    position: relative;
}
.ticker-flow { display: flex; white-space: nowrap; animation: tickerMove 40s linear infinite; }
.ticker-item { 
    padding: 0 2rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
    display: flex; gap: 0.5rem; flex-shrink: 0; align-items: center;
}
@media (max-width: 640px) {
    .ticker-item { padding: 0 1rem; font-size: 0.6rem; }
}
@keyframes tickerMove { 100% { transform: translateX(-50%); } }

nav {
    position: sticky; top: 32px; width: 100%; z-index: 1000;
    padding: 1.2rem 0; background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease;
}
nav.scrolled { padding: 0.8rem 0; background: rgba(2, 6, 23, 0.95); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
}

.logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.logo-icon { 
    width: 38px; height: 38px; border: 2px solid var(--primary); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow); transition: all 0.3s ease;
}
.logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: #fff; letter-spacing: -0.02em; }
@media (max-width: 480px) {
    .logo-text { font-size: 1.1rem; }
    .logo-icon { width: 32px; height: 32px; }
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { 
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; 
    text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }

.nav-actions { 
    display: flex !important; 
    gap: 1.5rem; 
    align-items: center; 
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .nav-links, .nav-cta { display: none !important; } 
}

/* --- HAMBURGER --- */
.hamburger {
    display: none !important; 
    width: 40px !important; 
    height: 40px !important; 
    flex-direction: column !important; 
    justify-content: center !important;
    align-items: center !important;
    background: rgba(255,255,255,0.05) !important; 
    border: 1px solid var(--glass-border) !important; 
    cursor: pointer !important; 
    padding: 10px !important; 
    z-index: 1200 !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    gap: 6px !important;
}

.hamburger span { 
    display: block !important;
    width: 20px !important; 
    height: 2px !important; 
    background: var(--text) !important; 
    transition: all 0.3s ease !important; 
    border-radius: 4px !important; 
}

.hamburger span:last-child { 
    width: 14px !important; 
    background: var(--primary) !important; 
}

@media (max-width: 1024px) {
    .hamburger { display: flex !important; }
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed !important; 
    top: 0 !important; 
    right: -100% !important; 
    width: 100% !important;
    max-width: 320px !important;
    height: 100vh !important; 
    background: #020617 !important; 
    border-left: 1px solid var(--primary-glow) !important;
    z-index: 10001 !important; 
    padding: 3rem 2rem !important; 
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important; 
    flex-direction: column !important; 
    gap: 2rem !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-drawer.active { 
    right: 0 !important; 
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: -20px 0 100px rgba(0,0,0,1) !important; 
}

.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.btn-close-drawer { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); 
    color: var(--text); 
    font-size: 1.5rem; 
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 
}

.drawer-links { display: flex; flex-direction: column; gap: 0; }
.drawer-link { 
    font-size: 1.2rem; 
    font-family: var(--font-heading); 
    font-weight: 700; 
    color: #fff; 
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.drawer-overlay {
    position: fixed !important; 
    inset: 0 !important; 
    background: rgba(0,0,0,0.8) !important; 
    backdrop-filter: blur(10px) !important;
    z-index: 10000 !important; 
    opacity: 0 !important; 
    pointer-events: none !important; 
    transition: opacity 0.5s ease !important;
}

.drawer-overlay.active { 
    opacity: 1 !important; 
    pointer-events: all !important; 
}

/* --- HERO SECTION --- */
.hero { min-height: 80vh; display: flex; align-items: flex-start; position: relative; padding: 4rem 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: flex-start; padding-top: 2rem; width: 100%; }

h1 { font-family: var(--font-heading); font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 900; }
.gradient-text { background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; margin-bottom: 2rem; }
}

@media (max-width: 640px) {
    .hero { padding: 2rem 0; min-height: auto; }
    h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
}

.cta-group { display: flex; gap: 1.5rem; }
.btn { 
    display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 2.5rem;
    border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.3s ease;
    cursor: pointer; font-size: 0.9rem; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #000; box-shadow: 0 10px 20px rgba(212,175,55,0.3); }
.btn-primary:hover { background: var(--primary-bright); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* --- TERMINAL VISUAL --- */
.terminal-container {
    background: #020617; border: 1px solid var(--glass-border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.5); position: relative;
    max-width: 100%;
}
.terminal-header { 
    background: #0f172a; padding: 0.75rem 1.2rem; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim);
}
.terminal-dots { display: flex; gap: 0.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-screen { aspect-ratio: 16/10; position: relative; background: #000; }

.terminal-status-bar { 
    padding: 1rem 1.5rem; background: rgba(15,23,42,0.8); border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 640px) {
    .terminal-status-bar { padding: 0.75rem; }
    .status-indicator span { font-size: 0.6rem; }
}

.status-indicator { display: flex; align-items: center; gap: 0.6rem; color: var(--accent); font-size: 0.7rem; font-weight: 800; }
.status-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }

.price-display { text-align: right; }

#terminalData { 
    position: absolute; inset: 0; padding: 1.5rem; font-family: var(--font-mono); 
    font-size: 0.7rem; line-height: 1.4; overflow: hidden; z-index: 2;
}
@media (max-width: 640px) {
    #terminalData { font-size: 0.6rem; padding: 1rem; }
}

/* --- SECTIONS --- */
section { padding: 8rem 0; position: relative; }
@media (max-width: 768px) {
    section { padding: 4rem 0; }
}
.section-tag { display: inline-block; color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; margin-bottom: 1.5rem; text-transform: uppercase; }
h2 { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; margin-bottom: 3rem; line-height: 1.1; }
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; margin-bottom: 2rem; }
}

/* --- GRID SYSTEM (STABILIZED) --- */
.grid { display: grid !important; gap: 1.5rem; position: relative; width: 100%; }
@media (min-width: 1025px) {
    #overview .grid { grid-template-columns: repeat(4, 1fr) !important; }
    #prop-firms .grid, #indicators .grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 1024px) and (min-width: 641px) {
    .grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr !important; gap: 1rem; }
}

/* --- CARDS --- */
.glass-card {
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 2.5rem; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
@media (max-width: 640px) {
    .glass-card { padding: 1.5rem; }
}
.glass-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.glass-card::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(212,175,55,0.1), transparent);
    opacity: 0; transition: opacity 0.4s ease;
}
.glass-card:hover::before { opacity: 1; }

.glass-card:hover .btn-primary {
    background: var(--primary-bright);
    transform: translateY(-2px);
}

.badge-tag {
    background: var(--primary); color: #000; padding: 0.2rem 0.6rem; border-radius: 4px;
    font-size: 0.65rem; font-weight: 800; font-family: var(--font-mono);
}

/* --- TABLE --- */
.table-wrapper { 
    background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
    overflow-x: auto; margin-top: 4rem;
}
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 600px; }
.comparison-table th { background: rgba(15,23,42,0.8); padding: 1.5rem; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--glass-border); }
.comparison-table td { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
@media (max-width: 640px) {
    .comparison-table th, .comparison-table td { padding: 1rem; font-size: 0.8rem; }
}
.comparison-table tr:last-child td { border-bottom: none; }

/* --- ANIMATIONS --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.animate-on-scroll.active { opacity: 1 !important; transform: translateY(0) !important; }

/* --- FOOTER --- */
.footer { background: #01040a; padding: 6rem 0 4rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-inner .logo { justify-content: center; }
    .footer-inner p { margin: 0 auto; }
    .footer-nav { display: flex; justify-content: space-around; gap: 2rem; }
}
@media (max-width: 480px) {
    .footer-nav { flex-direction: column; gap: 2rem; align-items: center; }
}

.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.75rem; }
.footer ul li a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; }
.footer ul li a:hover { color: var(--primary); }

.floating-orb {
    position: absolute; border-radius: 50%; filter: blur(100px); z-index: -1; pointer-events: none; opacity: 0.1;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: 10%; left: -10%; }
.orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: 10%; right: -10%; }

/* --- TV TERMINAL EXTENSIONS (REFACTORED TO MODAL) --- */
.tv-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.tv-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.tv-overlay.hidden { display: none; }

.tv-container {
    width: 95%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0,0,0,1);
    transform: scale(0.95) translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media (max-width: 768px) {
    .tv-container { aspect-ratio: auto; height: 60vh; }
}

.tv-overlay.active .tv-container {
    transform: scale(1) translateY(0);
}

.btn-tv-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}
@media (max-width: 640px) {
    .btn-tv-close { top: 0.75rem; right: 0.75rem; }
}

.btn-tv-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

.btn-tv-toggle.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
}

.nav-tv-btn {
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent);
    padding: 0 1.2rem;
    height: 38px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: visible; 
    backdrop-filter: blur(5px);
}

.nav-tv-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
}

.nav-tv-btn:hover {
    border-color: var(--accent);
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

.nav-tv-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.nav-tv-btn:hover span {
    color: #000;
}

/* Pulsing Status Dot */
.nav-tv-btn::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: livePulseNav 1.5s infinite;
}

@keyframes livePulseNav {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1.4); opacity: 0; box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { transform: scale(1); opacity: 0; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

@media (max-width: 768px) {
    .nav-tv-btn {
        width: 40px !important;
        padding: 0 !important;
        justify-content: center;
        gap: 0;
    }
    .nav-tv-btn span {
        display: none !important;
        visibility: hidden !important;
    }
}

.tv-static {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    animation: tvNoise 0.1s steps(2) infinite;
    z-index: 1;
}
@keyframes tvNoise {
    0% { transform: translate(0,0); }
    100% { transform: translate(1%,1%); }
}

.terminal-fade {
    animation: terminalFade 0.5s ease;
}
@keyframes terminalFade {
    0% { opacity: 0; transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { opacity: 0.5; box-shadow: 0 0 5px var(--accent); }
    50% { opacity: 1; box-shadow: 0 0 15px var(--accent); }
    100% { opacity: 0.5; box-shadow: 0 0 5px var(--accent); }
}

#tvToggleButton {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

#tvToggleButton:hover {
    background: rgba(255,255,255,0.05);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed; bottom: -300px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 650px; background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1.8rem; z-index: 9999;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
}
.cookie-banner.show { bottom: 20px; }
.cookie-content { display: flex; flex-direction: column; gap: 1.5rem; }
.cookie-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.cookie-buttons { display: flex; gap: 1.2rem; align-items: center; }
.cookie-link { color: var(--text-dim); text-decoration: none; font-size: 0.8rem; font-weight: 600; border-bottom: 1px solid transparent; transition: all 0.3s ease; }
.cookie-link:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.8rem; }

@media (max-width: 768px) {
    .cookie-banner { padding: 1.25rem; }
    .cookie-buttons { flex-direction: column-reverse; align-items: stretch; gap: 0.75rem; }
    .cookie-link { text-align: center; padding: 0.5rem; }
    .btn-sm { padding: 0.8rem; }
}

/* --- KNOWLEDGE HUB HUB MOBILE --- */
@media (max-width: 1024px) {
    #knowledge .glass-card > div { grid-template-columns: 1fr !important; gap: 3rem !important; }
}

.knowledge-title, .contact-title { font-size: 3rem; }
@media (max-width: 768px) {
    .knowledge-title, .contact-title { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .knowledge-title, .contact-title { font-size: 1.8rem; }
}

#prop-firms .grid { margin-bottom: 2rem; }

/* --- BOOKS / PUBLISHING SECTION --- */
.book-carousel {
    position: relative;
    width: 100%;
}
.book-img-wrapper:hover .book-main-img {
    transform: scale(1.05);
}
.carousel-nav-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1.5rem 0.5rem 0.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    letter-spacing: 1px;
}
.book-img-wrapper:hover .carousel-nav-hint {
    opacity: 1;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}
.dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    width: 20px;
    border-radius: 4px;
}
#publishing .glass-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#publishing .glass-card:hover {
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    #publishing .combo-card-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    #publishing .combo-card-grid div:last-child {
        text-align: center !important;
    }
}


