:root {
            --bg-dark: #050711;
            --card-bg: #101320;
            --primary: #00ff88; 
            --secondary: #ff0055;
            --text-main: #ffffff;
            --text-muted: #8b9bb4;
            --glass: rgba(255, 255, 255, 0.05);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            overflow-x: hidden;
            overflow-y: auto;
        }

        a {
            color: inherit;
        }

        .nav {
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 32px;
            z-index: 20;
            background: transparent;
            backdrop-filter: brightness(0.3);
            border-bottom: 3px solid #00ff88;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }

.nav-logo {
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            /* Gradient brand text */
            background: linear-gradient(90deg, #ffffff 0%, var(--primary) 40%, #42ffd2 70%, #ffffff 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Subtle animated sheen on hover */
        .nav-logo:hover {
            background-position: 100% 0;
            transition: background-position 0.8s ease;
        }

        .nav-logo span {
            display: inline-flex;
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: radial-gradient(circle at 30% 30%, #fff, var(--primary));
            box-shadow: 0 0 16px rgba(0,255,136,0.8);
        }

        .nav-links {
            display: flex;
            gap: 20px;
            font-size: 0.9rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-muted);
            padding-bottom: 2px;
            border-bottom: 1px solid transparent;
            transition: color 0.2s ease, border-color 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--text-main);
            border-color: var(--primary);
        }
        
        .nav-links li {
            margin-right:20px;
        }

        /* Price Ticker */
        .price-ticker {
            position: sticky;
            top: 64px;
            left: 0;
            right: 0;
            height: 48px;
            background: rgba(16, 19, 32, 0.95);
            border-bottom: 1px solid rgba(0, 255, 136, 0.2);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            z-index: 15;
            overflow: hidden;
        }

        .ticker-label {
            padding: 0 20px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--primary);
            border-right: 1px solid rgba(0, 255, 136, 0.2);
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ticker-label::after {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .ticker-content {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 32px;
            padding: 0 20px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .ticker-content::-webkit-scrollbar {
            display: none;
        }

        .ticker-pair {
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            font-size: 0.85rem;
            transition: transform 0.2s ease;
        }

        .ticker-pair:hover {
            transform: translateY(-1px);
        }

        .pair-name {
            font-weight: 600;
            color: var(--text-main);
            letter-spacing: 0.05em;
        }

        .pair-price {
            font-family: 'Courier New', monospace;
            font-weight: 600;
            color: var(--text-main);
            min-width: 80px;
            text-align: right;
        }

        .pair-change {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 4px;
            min-width: 50px;
            text-align: center;
        }

        .pair-change.positive {
            color: var(--primary);
            background: rgba(0, 255, 136, 0.1);
        }

        .pair-change.negative {
            color: var(--secondary);
            background: rgba(255, 0, 85, 0.1);
        }

        .pair-change.neutral {
            color: var(--text-muted);
        }

        .price-update {
            animation: priceFlash 0.3s ease;
        }

        @keyframes priceFlash {
            0% { background: transparent; }
            50% { background: rgba(0, 255, 136, 0.2); }
            100% { background: transparent; }
        }

        .hamburger {
            display: none;
            cursor:pointer;
        }

        .hamburger span {
            display: block;
            width: 25px;
            height: 3px;
            background-color: #fff;
            margin:5px 0;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            max-width: 85vw;
            height: 100vh;
            background: var(--card-bg);
            border-right: 2px solid var(--primary);
            z-index: 10000;
            padding: 80px 0 20px 0;
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
            transform: translateZ(0);
            will-change: left;
        }

        .sidebar.show {
            left: 0;
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 9999;
            pointer-events: none;
            transform: translateZ(0);
            will-change: opacity, visibility;
        }

        .sidebar-overlay.show {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
        }

        .sidebar ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .sidebar li {
            margin: 0;
            padding: 0;
        }

        .sidebar a {
            display: block;
            padding: 16px 24px;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.95rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.2s ease;
            position: relative;
        }

        .sidebar a:hover {
            background: rgba(0, 255, 136, 0.1);
            color: var(--primary);
            padding-left: 32px;
        }

        .sidebar a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--primary);
            transform: scaleY(0);
            transition: transform 0.2s ease;
        }

        .sidebar a:hover::before {
            transform: scaleY(1);
        }

        header {
            height: 70vh;
            min-height: 500px;
            max-height: 800px;
            background-image: url('/img/forex.jpg');
            background-size: cover;
            background-position: center;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
            -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
            overflow: hidden;
        }

        header::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 10% 0%, rgba(0,255,136,0.14), transparent 60%),
                        radial-gradient(circle at 90% 0%, rgba(255,0,85,0.14), transparent 55%),
                        rgba(5, 7, 17, 0.78);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            transform-style: preserve-3d;
            padding: 0 16px;
            width: 100%;
            max-width: 1200px;
            overflow: visible;
        }

        h1 {
            font-size: clamp(2rem, 6vw, 4rem);
            margin: 0;
            text-transform: uppercase;
            letter-spacing: -0.06em;
            background: linear-gradient(to right, #fff, var(--text-muted));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 10px 30px rgba(0,0,0,0.5);
            line-height: 1.1;
        }

        .subtitle {
            color: var(--primary);
            font-size: clamp(0.75rem, 2vw, 0.95rem);
            letter-spacing: 0.2em;
            margin-top: 1rem;
            text-transform: uppercase;
        }

        .hero-grid {
            max-width: 100%;
            margin: 24px auto 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            color: var(--text-muted);
            font-size: clamp(0.8rem, 2vw, 0.95rem);
        }

        .hero-pill {
            background: rgba(0,0,0,0.35);
            border-radius: 999px;
            padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 16px);
            border: 1px solid rgba(255,255,255,0.06);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hero-pill-dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
        }

        .hero-pill-dot.green {
            background: var(--primary);
        }

        .hero-pill-dot.red {
            background: var(--secondary);
        }

        .hero-cta-row {
            margin-top: clamp(20px, 4vw, 28px);
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 0 8px;
        }

        .btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 28px;
            border-radius: 999px;
            text-decoration: none;
            border: 1px solid var(--primary);
            background: radial-gradient(circle at 0% 0%, rgba(0,255,136,0.45), rgba(0,255,136,0.1));
            color: #fff;
            font-weight: 600;
            font-size: 0.95rem;
            box-shadow: 0 14px 35px rgba(0,255,136,0.25);
            transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 20px 45px rgba(0,255,136,0.35);
            background: radial-gradient(circle at 0% 0%, rgba(0,255,136,0.9), rgba(0,255,136,0.4));
        }

        .btn-ghost {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 11px 24px;
            border-radius: 999px;
            text-decoration: none;
            border: 1px solid rgba(255,255,255,0.16);
            color: var(--text-main);
            font-size: 0.9rem;
            background: rgba(0,0,0,0.45);
            backdrop-filter: blur(10px);
            gap: 8px;
            font-weight:bolder;
            transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
            position: relative;
            overflow: hidden;
        }
        .btn-ghost:hover {
            background-color: #00ff88;
            color: white;
            border:1px solid #00ff88;
            background: radial-gradient(circle at 0% 0%, rgba(0,255,136,0.45), rgba(0,255,136,0.1));
            transform: translateY(-1px);
        }

        .btn-ghost span {
            font-size: 1.1rem;
        }

        /* Main Content */
        main {
            max-width: 1200px;
            margin: -60px auto 64px;
            position: relative;
            z-index: 10;
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        @media (max-width: 1200px) {
            main {
                padding: 20px;
            }
        }

        @media (max-width: 768px) {
            main {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        .section-heading {
            grid-column: 1 / -1;
            margin-bottom: 8px;
            font-size: 1.1rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--text-muted);
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .section-heading.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .section-subtitle {
            grid-column: 1 / -1;
            margin-bottom: 24px;
            color: var(--text-main);
            font-size: 1.4rem;
            max-width: 100%;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
        }

        .section-subtitle.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* 3D Cards */
        .card-container {
            perspective: 1000px;
            transform-style: preserve-3d;
        }

        .market-snapshot {
            grid-column: 1 / -1; /* span full grid width */
        }

        .market-snapshot .card {
            min-height: auto;
        }

        .market-tabs {
            display: inline-flex;
            gap: 8px;
            margin-top: 8px;
            padding: 4px;
            border-radius: 999px;
            background: rgba(0,0,0,0.4);
            flex-wrap: wrap;
            justify-content: center;
        }

        .market-tab {
            border: none;
            background: transparent;
            color: var(--text-muted);
            font-size: 0.8rem;
            padding: 4px 10px;
            border-radius: 999px;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .market-tab.active {
            background: rgba(0,255,136,0.12);
            color: var(--primary);
        }

        .tradingview-widget-container {
            margin-top: 12px;
            border-radius: 12px;
            overflow: hidden;
            width: 100%;
        }

        .card {
            background: var(--card-bg);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px;
            padding: 24px 24px 22px;
            position: relative;
            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s, border-color 0.3s ease, background 0.3s ease;
            transform-style: preserve-3d;
            box-shadow: 0 15px 35px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 260px;
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.6s, border-color 0.3s ease, background 0.3s ease;
        }

        .card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .card:hover {
            box-shadow: -20px 20px 50px rgba(0,255,136,0.18);
            border-color: var(--primary);
            background: radial-gradient(circle at 0 0, rgba(0,255,136,0.15), rgba(16,19,32,1));
        }

        .card-label {
            position: absolute;
            top: 18px;
            right: 18px;
            font-size: 0.7rem;
            letter-spacing: 0.13em;
            text-transform: uppercase;
            color: var(--text-muted);
            background: rgba(0,0,0,0.55);
            border-radius: 999px;
            padding: 6px 12px;
            border: 1px solid rgba(255,255,255,0.08);
            transform: translateZ(40px);
        }

        .card-icon {
            font-size: 2.3rem;
            color: var(--primary);
            transform: translateZ(40px);
            margin-bottom: 16px;
            display: inline-block;
        }

        .card h2 {
            font-size: 1.3rem;
            margin: 0;
            transform: translateZ(30px);
        }

        .card p {
            color: var(--text-muted);
            line-height: 1.6;
            transform: translateZ(20px);
            font-size: 0.96rem;
        }

        .card-list {
            margin-top: 10px;
            padding-left: 18px;
            color: var(--text-muted);
            font-size: 0.9rem;
            transform: translateZ(20px);
        }

        .card-list li {
            margin-bottom: 4px;
        }

        .btn {
            display: inline-block;
            margin-top: 18px;
            padding: 10px 20px;
            background: var(--glass);
            color: white;
            text-decoration: none;
            border-radius: 999px;
            border: 1px solid var(--primary);
            transform: translateZ(30px);
            transition: 0.25s;
            text-align: center;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            background: var(--primary);
            color: black;
        }

        .btn-secondary {
            border-color: rgba(255,255,255,0.25);
        }

        .level-row {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
            margin-top: 8px;
        }

        .level-row .card {
            transition-delay: 0s;
        }

        .level-row .card:nth-child(2) {
            transition-delay: 0.1s;
        }

        .level-card {
            background: radial-gradient(circle at 0 0, rgba(0,255,136,0.18), rgba(16,19,32,1));
        }

        .level-card.pro {
            background: radial-gradient(circle at 0 0, rgba(255,0,85,0.18), rgba(16,19,32,1));
        }

        .level-badge {
            font-size: 0.8rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 6px;
        }

        /* Decorative Background Glows */
        .glow {
            position: fixed;
            width: 420px;
            height: 420px;
            background: var(--primary);
            filter: blur(150px);
            opacity: 0.1;
            border-radius: 50%;
            z-index: -1;
            pointer-events: none;
        }

        .glow-1 { top: -120px; left: -120px; }
        .glow-2 { bottom: 0; right: 0; background: var(--secondary); }

        /* Ripple Effect */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            transform: scale(0);
            animation: ripple-animation 0.6s ease-out;
            pointer-events: none;
        }

        @keyframes ripple-animation {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Risk Calculator */
        .risk-calculator {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 360px;
            background: var(--card-bg);
            border: 2px solid var(--primary);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            transform: translateY(400px);
            opacity: 0;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        }

        .risk-calculator.show {
            transform: translateY(0);
            opacity: 1;
        }

        .calculator-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .calculator-header h3 {
            margin: 0;
            font-size: 1.2rem;
            color: var(--primary);
        }

        .calculator-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .calculator-close:hover {
            background: rgba(255, 0, 85, 0.2);
            color: var(--secondary);
        }

        .calculator-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-group label {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tooltip-trigger {
            position: relative;
            cursor: help;
            font-size: 0.9rem;
            opacity: 0.7;
            transition: opacity 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .tooltip-trigger:hover {
            opacity: 1;
        }

        .tooltip-trigger::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-8px);
            background: var(--card-bg);
            color: var(--text-main);
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 0.8rem;
            line-height: 1.4;
            white-space: normal;
            width: 240px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(0, 255, 136, 0.3);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
            pointer-events: none;
            z-index: 10000;
            text-align: left;
        }

        .tooltip-trigger:hover::after,
        .tooltip-trigger:focus::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-12px);
        }

        .tooltip-trigger::before {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-4px);
            border: 6px solid transparent;
            border-top-color: rgba(0, 255, 136, 0.3);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
            pointer-events: none;
            z-index: 10001;
        }

        .tooltip-trigger:hover::before,
        .tooltip-trigger:focus::before {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-8px);
        }

        .form-group input {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px 12px;
            color: var(--text-main);
            font-size: 0.95rem;
            font-family: 'Courier New', monospace;
            transition: border-color 0.2s ease;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
        }

        .calculator-result {
            margin-top: 16px;
            padding: 16px;
            background: rgba(0, 255, 136, 0.1);
            border: 1px solid var(--primary);
            border-radius: 8px;
            text-align: center;
        }

        .calculator-result-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .calculator-result-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            font-family: 'Courier New', monospace;
        }

        .calculator-toggle {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 52px;
            height: 52px;
            background: var(--card-bg);
            border: 1.5px solid var(--primary);
            border-radius: 12px;
            color: var(--primary);
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transition: all 0.2s ease;
            z-index: 1001;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }

        .calculator-toggle:hover {
            background: rgba(0, 255, 136, 0.1);
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 255, 136, 0.2);
        }

        .calculator-toggle:active {
            transform: translateY(0);
        }

        .calculator-toggle.hidden {
            display: none;
        }

        @media (max-width: 480px) {
            .risk-calculator {
                width: calc(100% - 32px);
                right: 16px;
                bottom: 16px;
            }

            .calculator-toggle {
                right: 16px;
                bottom: 16px;
                width: 48px;
                height: 48px;
                font-size: 1.1rem;
            }

            .tooltip-trigger::after {
                width: 200px;
                font-size: 0.75rem;
                padding: 8px 10px;
                left: auto;
                right: 0;
                transform: translateX(0) translateY(-8px);
            }

            .tooltip-trigger:hover::after,
            .tooltip-trigger:focus::after {
                transform: translateX(0) translateY(-12px);
            }

            .tooltip-trigger::before {
                left: auto;
                right: 12px;
                transform: translateX(0) translateY(-4px);
            }

            .tooltip-trigger:hover::before,
            .tooltip-trigger:focus::before {
                transform: translateX(0) translateY(-8px);
            }
        }

        /* Footer */
        footer {
            max-width: 1200px;
            margin: 0 auto 40px;
            padding: 0 20px;
            color: var(--text-muted);
            font-size: 0.8rem;
            border-top:3px solid #00ff88;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }

        .footer-inner {
            border-top: 1px solid rgba(255,255,255,0.08);
            padding-top: 16px;
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
            gap: 24px;
        }

        .footer-legal {
            line-height: 1.5;
        }

.footer-meta {
            text-align: right;
        }

        .footer-meta-top {
            display: flex;
            justify-content: flex-end;
            gap: 24px;
            margin-bottom: 8px;
        }

        .footer-links-group {
            text-align: left;
        }

        .footer-links-heading {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .footer-links-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .footer-links-list li {
            margin-bottom: 2px;
        }

        .footer-links-list a {
            text-decoration: none;
            color: var(--text-main);
            font-size: 0.8rem;
        }

        .footer-links-list a:hover {
            color: var(--primary);
        }

        .footer-copy {
            font-size: 0.8rem;
            margin-top: 4px;
        }

        @media (max-width: 720px) {
            .footer-meta-top {
                justify-content: flex-start;
                flex-wrap: wrap;
            }
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            header {
                height: auto;
                min-height: 450px;
                max-height: 600px;
                padding: 50px 0;
            }

            .hero-content {
                padding: 0 24px;
            }

            .hero-grid {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
                gap: 10px;
            }
        }

        @media (max-width: 768px) {
            .nav {
                padding: 0 20px;
                height: 60px;
            }

            .nav-logo {
                font-size: 0.85rem;
            }

            .price-ticker {
                top: 60px;
                height: 42px;
            }

            header {
                height: auto;
                min-height: 400px;
                max-height: none;
                padding: 40px 0;
            }

            .hero-content {
                padding: 0 20px;
                overflow: visible;
            }

            h1 {
                font-size: clamp(1.8rem, 8vw, 3rem);
                line-height: 1.2;
                margin-bottom: 0.5rem;
            }

            .subtitle {
                font-size: 0.85rem;
                margin-top: 0.5rem;
            }

            .hero-grid {
                grid-template-columns: 1fr;
                gap: 8px;
                margin-top: 16px;
            }

            .hero-pill {
                justify-content: flex-start;
                padding: 8px 12px;
                font-size: 0.85rem;
            }

            .hero-cta-row {
                flex-direction: column;
                align-items: center;
                gap: 10px;
                margin-top: 20px;
            }

            .btn-primary,
            .btn-ghost {
                width: 100%;
                max-width: 300px;
                padding: 12px 24px;
            }

            main {
                margin-top: 0;
                padding: 16px;
            }

            .section-heading {
                font-size: 0.95rem;
            }

            .section-subtitle {
                font-size: 1.2rem;
            }

            /* Market snapshot: tighter padding on smaller screens */
            .market-snapshot .card {
                padding: 20px;
            }

            .market-tabs {
                gap: 6px;
            }
        }

        @media (max-width: 720px) {
            .nav {
                padding: 0 16px;
                height: 56px;
            }

            .nav-links {
                display: none;
            }

            .hamburger {
                display: block;
            }

            .price-ticker {
                top: 56px;
                height: 40px;
            }

            .ticker-label {
                padding: 0 12px;
                font-size: 0.7rem;
            }

            .ticker-label::after {
                width: 6px;
                height: 6px;
            }

            .ticker-content {
                gap: 16px;
                padding: 0 12px;
            }

            .ticker-pair {
                font-size: 0.7rem;
                gap: 6px;
            }

            .pair-price {
                min-width: 65px;
                font-size: 0.75rem;
            }

            .pair-change {
                font-size: 0.65rem;
                min-width: 40px;
                padding: 1px 4px;
            }

            header {
                height: auto;
                min-height: 350px;
                max-height: none;
                padding: 30px 0;
            }

            .hero-content {
                padding: 0 16px;
            }

            h1 {
                font-size: clamp(1.6rem, 9vw, 2.5rem);
                line-height: 1.15;
                margin-bottom: 0.5rem;
            }

            .subtitle {
                font-size: 0.8rem;
                margin-top: 0.5rem;
            }

            .hero-grid {
                margin-top: 14px;
                gap: 8px;
            }

            .hero-pill {
                font-size: 0.8rem;
                padding: 8px 12px;
            }

            .hero-cta-row {
                margin-top: 18px;
                gap: 10px;
            }

            main {
                margin-top: 0;
                padding: 16px;
            }

            .footer-inner {
                grid-template-columns: 1fr;
                text-align: left;
            }

            /* Market snapshot full-width behavior already ensured by grid-column */
            .market-snapshot .card {
                padding: 18px;
            }

            .footer-meta {
                text-align: left;
            }
        }

        @media (max-width: 480px) {
            .nav {
                padding: 0 12px;
                height: 52px;
            }

            .nav-logo {
                font-size: 0.75rem;
            }

            .price-ticker {
                top: 52px;
                height: 36px;
            }

            .ticker-label {
                padding: 0 10px;
                font-size: 0.65rem;
            }

            .ticker-content {
                gap: 12px;
                padding: 0 10px;
            }

            .ticker-pair {
                font-size: 0.65rem;
                gap: 4px;
            }

            .pair-price {
                min-width: 60px;
                font-size: 0.7rem;
            }

            .pair-change {
                font-size: 0.6rem;
                min-width: 35px;
                padding: 1px 3px;
            }

            header {
                height: auto;
                min-height: 320px;
                max-height: none;
                padding: 24px 0;
            }

            .hero-content {
                padding: 0 12px;
            }

            h1 {
                font-size: clamp(1.4rem, 10vw, 2rem);
                line-height: 1.15;
                margin-bottom: 0.4rem;
            }

            .subtitle {
                font-size: 0.75rem;
                margin-top: 0.4rem;
            }

            .hero-grid {
                margin-top: 12px;
                gap: 6px;
            }

            .hero-pill {
                font-size: 0.75rem;
                padding: 6px 10px;
            }

            .hero-cta-row {
                margin-top: 16px;
                gap: 8px;
            }

            /* Market snapshot tighter layout on very small widths */
            .market-tabs {
                padding: 3px;
            }

            .market-tab {
                font-size: 0.78rem;
                padding: 3px 8px;
            }

            .btn-primary,
            .btn-ghost {
                font-size: 0.9rem;
                padding: 10px 20px;
                max-width: 100%;
            }

            main {
                margin-top: 0;
                padding: 12px;
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .section-heading {
                font-size: 0.85rem;
            }

            .section-subtitle {
                font-size: 1.1rem;
            }

            .card {
                min-height: auto;
                padding: 20px;
            }

            .card h2 {
                font-size: 1.15rem;
            }

            .card p {
                font-size: 0.9rem;
            }

            .level-row {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .risk-calculator {
                width: calc(100% - 24px);
                right: 12px;
                bottom: 12px;
                padding: 20px;
            }

            .calculator-toggle {
                width: 48px;
                height: 48px;
                font-size: 1.1rem;
                right: 12px;
                bottom: 12px;
            }
        }

        @media (max-width: 360px) {
            .sidebar {
                width: 280px;
                padding: 70px 0 20px 0;
            }

            .sidebar a {
                padding: 14px 20px;
                font-size: 0.9rem;
            }

            header {
                min-height: 320px;
            }

            h1 {
                font-size: 1.4rem;
            }

            .hero-pill {
                font-size: 0.7rem;
                padding: 6px 8px;
            }

            .card {
                padding: 16px;
            }

            .ticker-content {
                gap: 10px;
            }
        }

