/* ═══════════════ PDF EXPORT FIXES ═══════════════ */

        /* 🛠️ PDF DEFINITIVE FIX: Safe mode for html2canvas */
        .pdf-export-mode {
            background: #0a1628 !important;
        }
        .pdf-export-mode .orb, 
        .pdf-export-mode::before, 
        .pdf-export-mode::after {
            display: none !important;
            background: none !important;
        }
        .pdf-export-mode .glass-card {
            background: #111d2f !important;
            backdrop-filter: none !important;
            transform: none !important;
            box-shadow: none !important;
            border: 1px solid rgba(255,255,255,0.15) !important;
        }
        .pdf-export-mode .vis-circle {
            background: #3b82f6 !important; /* Solid fallback for conic-gradient */
            box-shadow: none !important;
        }
        .pdf-export-mode .total-score-block {
            background: #1e293b !important;
            box-shadow: none !important;
        }
        .pdf-export-mode .total-score-block::after {
            display: none !important;
        }
        .pdf-export-mode .score-fill::after {
            display: none !important; /* Hide animated shimmers */
        }
    

/* ═══════════════ MAIN STYLES ═══════════════ */

        /* ─────────── RESET & VARIABLES ─────────── */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { overflow-x: hidden; }

        :root {
            --blue-950: #020617;
            --blue-900: #0a1628;
            --blue-800: #0f2447;
            --blue-700: #1a3a6e;
            --blue-500: #3b82f6;
            --blue-400: #60a5fa;
            --blue-300: #93c5fd;
            --cyan-400: #22d3ee;
            --indigo-500: #6366f1;
            --purple-500: #a855f7;
            --text-primary: #f0f8ff;
            --text-secondary: #94a3b8;
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-hover: rgba(255, 255, 255, 0.06);
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #f43f5e;
            /* New High-End Colors */
            --accent-glow: hsla(217, 91%, 60%, 0.15);
            --card-glow: hsla(217, 91%, 60%, 0.05);
        }

        body {
            font-family: 'Inter', sans-serif;
            background: radial-gradient(ellipse at top, #0a1628 0%, #020617 60%);
            min-height: 100vh;
            color: var(--text-primary);
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
            background-size: 80px 80px;
            z-index: 0;
            pointer-events: none;
        }

        /* ─────────── SCANLINES & NOISE ─────────── */
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
            background-size: 100% 4px, 3px 100%;
            pointer-events: none;
            z-index: 1000;
            opacity: 0.15;
        }

        /* ─────────── ORBS ─────────── */
        .orb { position: fixed; border-radius: 50%; filter: blur(140px); z-index: 0; pointer-events: none; opacity: 0.4; animation: float 20s infinite alternate; }
        .orb-1 { width: 600px; height: 600px; background: rgba(59,130,246,0.15); top: -200px; left: -200px; }
        .orb-2 { width: 450px; height: 450px; background: rgba(99,102,241,0.12); bottom: -150px; right: -150px; animation-delay: -5s; }
        .orb-3 { width: 350px; height: 350px; background: rgba(34,211,238,0.07); top: 30%; left: 50%; transform: translateX(-50%); animation-delay: -10s; }

        @keyframes float {
            0% { transform: translate(0, 0) rotate(0deg); }
            100% { transform: translate(40px, 40px) rotate(10deg); }
        }

        /* ─────────── LAYOUT ─────────── */
        .page-content {
            position: relative; z-index: 1;
            max-width: 1400px; margin: 0 auto; padding: 0 1.5rem;
        }

        /* ─────────── SETTINGS LINK ─────────── */
        .settings-link {
            position: fixed; top: 1.2rem; right: 1.5rem; z-index: 100;
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            border-radius: 50px; padding: 0.5rem 1rem; color: var(--text-secondary);
            font-size: 0.8rem; font-weight: 600; text-decoration: none;
            backdrop-filter: blur(16px); transition: all 0.25s ease; font-family: 'Inter', sans-serif;
        }
        .settings-link:hover { color: var(--text-primary); border-color: rgba(96,165,250,0.4); }

        /* ─────────── LANG TOGGLE ─────────── */
        #lang-toggle {
            position: fixed; top: 1.2rem; left: 1.5rem; z-index: 100;
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            border-radius: 50px; padding: 0.4rem 0.9rem;
            font-size: 0.8rem; font-weight: 700; cursor: pointer;
            backdrop-filter: blur(16px); transition: all 0.25s ease;
            font-family: 'Inter', sans-serif; color: var(--text-primary);
            display: flex; align-items: center; gap: 0.4rem;
        }
        #lang-toggle:hover { border-color: rgba(96,165,250,0.4); box-shadow: 0 0 12px rgba(59,130,246,0.2); }

        /* ─────────── HEADER / HERO ─────────── */
        header { text-align: center; padding: 4rem 1rem 1.5rem; }

        .badge {
            display: inline-flex; align-items: center; gap: 0.5rem;
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            border-radius: 50px; padding: 0.35rem 1.1rem; font-size: 0.75rem;
            color: var(--blue-300); letter-spacing: 0.1em; text-transform: uppercase;
            margin-bottom: 1.2rem; backdrop-filter: blur(10px);
        }
        .badge-dot { width: 7px; height: 7px; background: var(--cyan-400); border-radius: 50%; animation: pulse 2s infinite; }
        @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

        h1 {
            font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.1;
            letter-spacing: -0.03em;
            background: linear-gradient(135deg, #f0f8ff 0%, var(--blue-300) 50%, var(--cyan-400) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            margin-bottom: 0.8rem;
        }
        .hero-sub {
            font-size: 1.05rem; color: var(--text-secondary); max-width: 580px;
            margin: 0 auto 1.5rem; line-height: 1.65;
        }

        /* ─────────── HERO PILLS ─────────── */
        .hero-pills {
            display: flex; flex-wrap: wrap; justify-content: center;
            gap: 0.6rem; margin-bottom: 2.5rem;
        }
        .pill {
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            border-radius: 50px; padding: 0.4rem 1rem;
            font-size: 0.8rem; color: var(--text-secondary); backdrop-filter: blur(10px);
        }
        .pill span { color: var(--cyan-400); margin-right: 0.3rem; }

        /* ─────────── SEARCH BAR ─────────── */
        .search-wrapper {
            display: flex; gap: 10px; max-width: 680px; margin: 0 auto 3.5rem;
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            border-radius: 100px; padding: 8px 8px 8px 22px;
            backdrop-filter: blur(20px);
            box-shadow: 0 4px 40px rgba(59,130,246,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
            transition: box-shadow 0.3s ease, border-color 0.3s ease;
        }
        .search-wrapper:focus-within {
            border-color: rgba(96,165,250,0.5);
            box-shadow: 0 4px 40px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
        }
        input[type="url"] {
            flex: 1; background: none; border: none; outline: none;
            color: var(--text-primary); font-size: 1rem; font-family: 'Inter', sans-serif;
        }
        input[type="url"]::placeholder { color: var(--text-secondary); }
        #scanBtn {
            background: linear-gradient(135deg, var(--blue-500), var(--indigo-500));
            border: none; border-radius: 50px; padding: 0.8rem 1.8rem; color: #fff;
            font-size: 0.95rem; font-weight: 700; font-family: 'Inter', sans-serif;
            cursor: pointer; white-space: nowrap;
            box-shadow: 0 4px 20px rgba(59,130,246,0.4); transition: all 0.3s ease;
        }
        #scanBtn:hover:not(:disabled) { transform: scale(1.04); box-shadow: 0 6px 30px rgba(59,130,246,0.6); }
        #scanBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

        /* ─────────── LOADER ─────────── */
        #loader { display: none; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem 0; }
        .loader-ring {
            width: 56px; height: 56px;
            border: 3px solid rgba(59,130,246,0.2);
            border-top-color: var(--blue-400); border-right-color: var(--cyan-400);
            border-radius: 50%; animation: spin 0.9s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        #loadingStep { font-size: 0.95rem; color: var(--blue-300); font-weight: 500; }
        .loader-steps { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
        .loader-steps li { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.6rem; }
        .step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); transition: background 0.4s ease; }
        .step-dot.active { background: var(--cyan-400); box-shadow: 0 0 8px var(--cyan-400); }
        .step-dot.done { background: var(--success); }

        /* ─────────── GLASS CARD ─────────── */
        .glass-card {
            background: var(--glass-bg); border: 1px solid var(--glass-border);
            border-radius: 20px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            padding: 1.5rem; min-width: 0; overflow: hidden; word-break: break-word;
            box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
        }
        .card-title {
            font-size: 0.75rem; font-weight: 700; color: var(--blue-300);
            text-transform: uppercase; letter-spacing: 0.1em;
            margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem;
        }

        /* ─────────── MAIN DASHBOARD GRID ─────────── */
        #dashboard { display: none; gap: 1.25rem; margin-bottom: 1.25rem; }
        @media(min-width: 1024px) { #dashboard { display: none; grid-template-columns: 320px 1fr; } }

        /* ─────────── ADVISOR (full width, below grid) ─────────── */
        #advisor-card { display: none; margin-bottom: 4rem; }

        /* ─────────── LEFT COLUMN ─────────── */
        .left-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

        /* TOTAL SCORE */
        .total-score-block {
            background: radial-gradient(circle at top left, rgba(59,130,246,0.2), transparent), var(--glass-bg);
            border: 1px solid rgba(96,165,250,0.3); border-radius: 20px;
            padding: 2rem 1.4rem; text-align: center; margin-bottom: 2rem;
            box-shadow: 0 0 30px var(--accent-glow);
            position: relative; overflow: hidden;
        }
        .total-score-block::after {
            content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
            transform: rotate(45deg); animation: shimmer 6s infinite linear;
        }
        @keyframes shimmer { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }
        
        .total-score-label { font-size: 0.75rem; color: var(--blue-300); text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; margin-bottom: 0.5rem; }
        .total-score-number {
            font-size: 4.5rem; font-weight: 900; line-height: 1;
            background: linear-gradient(135deg, #fff 0%, var(--cyan-400) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
            filter: drop-shadow(0 0 15px rgba(34,211,238,0.4));
        }
        .total-score-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.4rem; }
        .score-grade {
            display: inline-block; margin-top: 1rem;
            padding: 0.3rem 1.2rem; border-radius: 50px;
            font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        .grade-low { background: rgba(244,63,94,0.15); color: #f43f5e; border: 1px solid rgba(244,63,94,0.4); box-shadow: 0 0 15px rgba(244,63,94,0.2); }
        .grade-mid { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.4); box-shadow: 0 0 15px rgba(245,158,11,0.2); }
        .grade-good { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.4); box-shadow: 0 0 15px rgba(16,185,129,0.2); }
        .grade-top { background: rgba(34,211,238,0.15); color: var(--cyan-400); border: 1px solid rgba(34,211,238,0.4); box-shadow: 0 0 20px rgba(34,211,238,0.3); }

        /* SCORE BARS */
        .scores-list { display: flex; flex-direction: column; gap: 1.1rem; }
        .score-item { }
        .score-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.45rem; }
        .score-name { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
        .score-value {
            font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums;
            background: linear-gradient(135deg, #fff, var(--cyan-400));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .score-track { height: 8px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
        .score-fill { 
            height: 100%; border-radius: 10px; width: 0%; 
            transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative; overflow: hidden;
        }
        .score-fill::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shimmer-bar 2s infinite;
        }
        @keyframes shimmer-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

        .fill-tecnica  { background: linear-gradient(90deg, #6d28d9, #a855f7); }
        .fill-aeo      { background: linear-gradient(90deg, #be123c, #fb7185); }
        .fill-content  { background: linear-gradient(90deg, #047857, #34d399); }
        .fill-eeat     { background: linear-gradient(90deg, #92400e, #fbbf24); }
        .fill-freshness{ background: linear-gradient(90deg, #0e7490, #67e8f9); }
        .fill-entity   { background: linear-gradient(90deg, #4338ca, #818cf8); }
        .fill-sameas   { background: linear-gradient(90deg, #9d174d, #f472b6); }
        .fill-author         { background: linear-gradient(90deg, #064e3b, #6ee7b7); }
        .fill-extractability { background: linear-gradient(90deg, #1e3a5f, #38bdf8); }

        /* KII BLOCK */
        .kii-block {
            background: linear-gradient(135deg, rgba(244,63,94,0.1), rgba(251,113,133,0.06));
            border: 1px solid rgba(244,63,94,0.25); border-radius: 14px; padding: 1.2rem;
            text-align: center;
        }
        .kii-label { font-size: 0.7rem; color: #fda4af; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
        .kii-number { font-size: 2.2rem; font-weight: 900; color: #f43f5e; line-height: 1; }
        .kii-sub { font-size: 0.72rem; color: var(--text-secondary); margin-top: 0.3rem; }

        /* LLMS.TXT CARD */
        .llms-status-row {
            display: flex; align-items: center; gap: 0.8rem;
            background: rgba(255,255,255,0.04); border-radius: 10px;
            padding: 0.8rem 1rem; margin-bottom: 1rem;
        }
        .llms-icon { font-size: 1.4rem; }
        .llms-info { flex: 1; }
        .llms-info strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
        .llms-info span { font-size: 0.78rem; color: var(--text-secondary); }
        .status-yes { color: var(--success) !important; }
        .status-no  { color: var(--danger)  !important; }
        .generate-btn {
            background: linear-gradient(135deg, var(--indigo-500), var(--purple-500));
            border: none; border-radius: 8px; padding: 0.55rem 1rem;
            color: white; font-size: 0.8rem; font-weight: 700;
            cursor: pointer; font-family: 'Inter', sans-serif;
            transition: transform 0.2s; width: 100%; margin-bottom: 0.8rem;
        }
        .generate-btn:hover { transform: scale(1.02); }
        .llms-preview {
            background: rgba(0,0,0,0.35); border: 1px solid var(--glass-border);
            border-radius: 10px; padding: 0.9rem; font-size: 0.72rem;
            color: var(--blue-300); font-family: monospace; line-height: 1.6;
            max-height: 200px; overflow-y: auto; display: none; white-space: pre-wrap;
            word-break: break-all;
        }
        .copy-btn {
            width: 100%; margin-top: 0.6rem; padding: 0.45rem;
            background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.25);
            color: var(--blue-300); border-radius: 8px; font-size: 0.75rem;
            cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600;
            display: none; transition: background 0.2s;
        }
        .copy-btn:hover { background: rgba(96,165,250,0.2); }

        /* META TAGS */
        .meta-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; }
        .meta-tag {
            background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.2);
            border-radius: 8px; padding: 0.25rem 0.7rem;
            font-size: 0.75rem; color: var(--blue-300); font-weight: 500;
        }

        /* ─────────── RIGHT COLUMN ─────────── */
        .right-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; overflow: hidden; }

        /* ─────────── MULTI-IA ROW ─────────── */
        .multi-ia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
        .ia-card {
            background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
            border-radius: 12px; padding: 1rem; text-align: center; transition: border-color 0.3s;
        }
        .ia-card.mentioned { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.06); }
        .ia-card.not-mentioned { border-color: rgba(244,63,94,0.3); background: rgba(244,63,94,0.04); }
        .ia-card.unavailable { opacity: 0.5; }
        .ia-model-name { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
        .ia-status { font-size: 1.5rem; margin-bottom: 0.3rem; }
        .ia-label { font-size: 0.7rem; color: var(--text-secondary); }

        /* ─────────── TRUTH CHECKER PANEL ─────────── */
        .visibility-score-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
        .vis-circle {
            width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem; font-weight: 900;
            background: conic-gradient(var(--cyan-400) var(--pct, 0%), rgba(255,255,255,0.07) 0%);
            box-shadow: 0 0 20px rgba(34,211,238,0.2);
        }
        .vis-circle-inner {
            width: 54px; height: 54px; border-radius: 50%;
            background: var(--blue-900); display: flex; align-items: center; justify-content: center;
            font-size: 1rem; font-weight: 900; color: var(--cyan-400);
        }
        .vis-meta strong { font-size: 1.1rem; color: var(--text-primary); display: block; }
        .vis-meta span { font-size: 0.8rem; color: var(--text-secondary); }

        /* TRUTH DETAIL ITEMS */
        .truth-item {
            background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
            border-radius: 12px; padding: 1rem; margin-bottom: 0.8rem;
        }
        .truth-item:last-child { margin-bottom: 0; }
        .truth-q { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-style: italic; }
        .truth-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
        .truth-badge {
            font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.6rem;
            border-radius: 50px; letter-spacing: 0.05em;
        }
        .tb-found   { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
        .tb-miss    { background: rgba(244,63,94,0.15); color: #f43f5e; border: 1px solid rgba(244,63,94,0.3); }
        .tb-aluci   { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
        .truth-excerpt { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; }
        .truth-competitors { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
        .comp-chip {
            font-size: 0.68rem; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
            color: #a5b4fc; border-radius: 50px; padding: 0.15rem 0.6rem;
        }

        /* ─────────── COMPETITORS PANEL ─────────── */
        .competitors-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
        .competitor-chip {
            background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.25);
            border-radius: 50px; padding: 0.35rem 1rem;
            font-size: 0.82rem; color: #d8b4fe; font-weight: 600;
        }

        /* ─────────── ADVISOR PANEL ─────────── */
        .advisor-header {
            display: flex; align-items: center; gap: 0.8rem;
            margin-bottom: 1.4rem; padding-bottom: 1rem;
            border-bottom: 1px solid var(--glass-border);
        }
        .advisor-icon {
            width: 40px; height: 40px;
            background: linear-gradient(135deg, var(--blue-500), var(--indigo-500));
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; flex-shrink: 0; box-shadow: 0 4px 16px rgba(99,102,241,0.4);
        }
        .advisor-meta h2 { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
        .advisor-meta span { font-size: 0.78rem; color: var(--text-secondary); }

        /* ─────────── MARKDOWN BODY ─────────── */
        .markdown-body { color: #cbd5e1; line-height: 1.75; font-size: 0.9rem; }
        .markdown-body h1, .markdown-body h2, .markdown-body h3 {
            color: var(--text-primary); font-weight: 700; margin: 1.4em 0 0.5em;
        }
        .markdown-body h2 { font-size: 1.1rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.4rem; }
        .markdown-body h3 { font-size: 0.95rem; color: var(--blue-300); }
        .markdown-body p { margin-bottom: 0.8em; }
        .markdown-body ul, .markdown-body ol { padding-left: 1.4rem; margin-bottom: 0.8em; }
        .markdown-body li { margin-bottom: 0.35em; }
        .markdown-body strong { color: var(--text-primary); font-weight: 600; }
        .markdown-body code {
            background: rgba(96,165,250,0.12); color: var(--blue-300);
            padding: 0.15em 0.4em; border-radius: 5px; font-family: 'Courier New', monospace; font-size: 0.85em;
        }
        .markdown-body pre {
            background: rgba(0,0,0,0.35); border: 1px solid var(--glass-border);
            border-radius: 10px; padding: 1rem; overflow-x: auto; margin: 0.8em 0;
            max-width: 100%;
        }
        .markdown-body pre code { background: none; padding: 0; font-size: 0.82em; }
        .markdown-body blockquote {
            border-left: 3px solid var(--blue-500); padding: 0.5rem 0.9rem;
            background: rgba(59,130,246,0.06); border-radius: 0 8px 8px 0;
            margin: 0.8em 0; color: var(--text-secondary);
        }
        .markdown-body hr { border: none; border-top: 1px solid var(--glass-border); margin: 1.2em 0; }

        /* ─────────── PLACEHOLDER ─────────── */
        .placeholder-msg {
            display: flex; flex-direction: column; align-items: center;
            text-align: center; gap: 0.7rem; padding: 2.5rem; color: var(--text-secondary);
        }
        .placeholder-icon { font-size: 2.2rem; opacity: 0.4; }

        /* ─────────── SECTION DIVIDER ─────────── */
        .section-row { display: grid; gap: 1.25rem; }
        @media(min-width: 700px) { .section-row.cols-2 { grid-template-columns: 1fr 1fr; } }

        /* ─────────── ERROR TOAST ─────────── */
        #errorToast {
            display: none; position: fixed; bottom: 2rem; right: 2rem;
            background: rgba(244,63,94,0.12); border: 1px solid rgba(244,63,94,0.4);
            border-radius: 14px; padding: 1rem 1.4rem; color: #fda4af;
            backdrop-filter: blur(20px); z-index: 1000; max-width: 360px;
            animation: slideUp 0.3s ease;
        }
        @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

        /* ─────────── MODAL LEAD MAGNET ─────────── */
        #leadModal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.87); backdrop-filter: blur(12px);
            display: none; align-items: center; justify-content: center; z-index: 9999;
        }
        .modal-box {
            background: var(--glass-bg); border: 1px solid rgba(96,165,250,0.3);
            padding: 2.8rem 2.2rem; border-radius: 28px; max-width: 460px; width: 92%;
            text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.6); backdrop-filter: blur(20px);
        }
        .modal-box h2 { margin-bottom: 0.6rem; color: #fff; font-size: 1.4rem; }
        .modal-box p { color: var(--text-secondary); margin-bottom: 1.6rem; line-height: 1.6; font-size: 0.9rem; }
        .modal-email-input {
            width: 100%; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
            padding: 0.85rem 1.1rem; border-radius: 12px; color: #fff; margin-bottom: 1rem;
            outline: none; font-size: 1rem; font-family: 'Inter', sans-serif;
        }
        .modal-email-input:focus { border-color: rgba(96,165,250,0.5); }
        .modal-submit-btn {
            background: linear-gradient(135deg, var(--blue-500), var(--indigo-500));
            color: white; padding: 0.85rem 2rem; border-radius: 50px;
            border: none; font-weight: 800; cursor: pointer; width: 100%;
            font-size: 1rem; font-family: 'Inter', sans-serif;
            box-shadow: 0 4px 20px rgba(59,130,246,0.4); transition: transform 0.2s;
        }
        .modal-submit-btn:hover { transform: scale(1.02); }
        .modal-fine-print { font-size: 0.68rem; margin-top: 0.8rem; opacity: 0.4; }

        /* ─────────── RESPONSIVE ─────────── */
        @media(min-width: 1024px) {
            #dashboard.active { display: grid !important; }
        }

        /* ─────────── SMALL PRINT EXPLANATIONS ─────────── */
        .small-print-explanation {
            font-size: 0.68rem;
            color: var(--text-secondary);
            opacity: 0.8;
            margin-top: 0.3rem;
            font-style: italic;
            line-height: 1.3;
            display: block;
        }
    