
    /* 🎨 VISUALS & UI */
    :root {
        --primary: #4de6ff;
        --secondary: #bc13fe;
        --accent: #ff8a3c;
        --bg: #050712;
        --text: #e5e7eb;
        --card-bg: rgba(10, 12, 30, 0.9);
    }
    
    body {
        background-color: var(--bg);
        background-image:
            radial-gradient(circle at 20% 0%, rgba(188, 19, 254, 0.28) 0%, transparent 55%),
            radial-gradient(circle at 80% 100%, rgba(0, 243, 255, 0.22) 0%, transparent 60%);
        background-repeat: no-repeat;
        background-attachment: fixed;
        color: var(--text);
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        margin: 0;
        overflow-x: hidden;
        min-height: 100vh;
    }

    /* Import Fonts (headings only) */
    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

    /* #2 Starfield */
    #starfield {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
        opacity: 0.35; /* keep it subtle under the gradient background */
    }

    /* #1 3D Book Covers */
    .book-card {
        perspective: 1000px;
        width: 200px;
        height: 300px;
        margin: 20px;
        display: inline-block;
        position: relative;
        transition: transform 0.3s;
    }
    
    .book-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.45s ease, box-shadow 0.45s ease;
        transform-style: preserve-3d;
        cursor: pointer;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    }
    
    .book-card:hover .book-inner {
        transform: rotateY(10deg) scale(1.03);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    }
    
    .book-front {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(0, 243, 255, 0.3);
    }
    
    .book-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* #7 Holographic Tooltip */
    .holo-tooltip {
        visibility: hidden;
        width: 180px;
        background: rgba(0, 20, 40, 0.9);
        border: 1px solid var(--primary);
        color: var(--primary);
        text-align: center;
        border-radius: 6px;
        padding: 8px;
        position: absolute;
        z-index: 10;
        bottom: 105%;
        left: 50%;
        margin-left: -90px;
        opacity: 0;
        transition: all 0.3s;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.8em;
        text-transform: uppercase;
        box-shadow: 0 0 15px var(--primary);
    }

    .book-card:hover .holo-tooltip {
        visibility: visible;
        opacity: 1;
        transform: translateY(-5px);
    }

    /* #3 Glassmorphism (subtle, production-ready) */
    .glass-panel {
        background: var(--card-bg);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 24px;
        margin-bottom: 24px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    }

    .glass-panel h3 {
        font-family: 'Orbitron', system-ui, sans-serif;
        letter-spacing: 0.08em;
        color: #f9fafb;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(148, 163, 184, 0.35);
        padding-bottom: 10px;
        margin-top: 0;
        margin-bottom: 18px;
    }

    /* #9 Retro Terminal Toggle */
    body.terminal-mode {
        background-color: #000;
        color: #0f0;
        font-family: 'Courier New', monospace;
        background-image: none;
    }
    
    body.terminal-mode .glass-panel {
        border: 1px solid #0f0;
        background: black;
        box-shadow: none;
    }
    
    body.terminal-mode * {
        text-shadow: none !important;
        box-shadow: none !important;
    }

    /* #18 Spoiler Shield */
    .spoiler {
        filter: blur(8px);
        cursor: pointer;
        transition: all 0.5s;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    .spoiler:hover {
        filter: blur(4px);
        box-shadow: 0 0 15px var(--accent);
    }
    .spoiler.revealed {
        filter: blur(0);
        background: transparent;
    }
    
    /* #4 Warp Speed Transition */
    .warp-transition {
        animation: warpOut 0.5s forwards;
    }
    
    @keyframes warpOut {
        0% { transform: scale(1); opacity: 1; filter: hue-rotate(0deg); }
        100% { transform: scale(5); opacity: 0; filter: hue-rotate(90deg) blur(10px); }
    }

    /* #13 Kinetic Typography (Simple) */
    .kinetic-text {
        font-family: 'Orbitron', system-ui, sans-serif;
        font-size: 2.4em;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    
    /* #11 Artifact Viewer */
    .artifact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
    .artifact-card {
        background: rgba(0, 20, 40, 0.6);
        border: 1px solid rgba(0, 243, 255, 0.2);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
    }
    .artifact-card:hover {
        transform: translateY(-4px) scale(1.01);
        border-color: rgba(148, 163, 184, 0.6);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
    }
    .artifact-icon {
        font-size: 2.5em;
        margin-bottom: 10px;
        filter: drop-shadow(0 0 5px var(--primary));
    }

    /* #25 Character Constellations */
    #character-network {
        width: 100%;
        height: 400px;
        border: 1px solid rgba(0, 243, 255, 0.2);
        border-radius: 12px;
        background: radial-gradient(circle at center, rgba(0, 20, 40, 0.8), rgba(0,0,0,0.9));
    }

    #world-map {
        width: 100%;
        height: 260px;
        border-radius: 12px;
        overflow: hidden;
        margin-top: 12px;
    }

    /* #17 Author's Desk */
    .author-desk {
        display: flex;
        gap: 30px;
        align-items: center;
        background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(20,20,30,0.8));
        border-left: 4px solid var(--primary);
    }
    .author-img {
        width: 120px;
        height: 120px;
        border-radius: 15px;
        border: 2px solid var(--primary);
        object-fit: cover;
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    }

    /* Comparison Table */
    .comparison-table-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    .comparison-table {
        width: 100%;
        min-width: 640px;
        border-collapse: separate;
        border-spacing: 0 8px;
        margin-top: 20px;
    }
    .comparison-table th {
        text-align: left;
        padding: 15px;
        color: var(--primary);
        font-family: 'Orbitron', sans-serif;
        text-transform: uppercase;
        font-size: 0.9em;
        letter-spacing: 1px;
    }
    .comparison-table td {
        background: rgba(255, 255, 255, 0.03);
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .comparison-table th:last-child,
    .comparison-table td:last-child {
        text-align: right;
        padding-right: 24px;
    }
    .comparison-table tr:hover td {
        background: rgba(0, 243, 255, 0.05);
        border-color: rgba(0, 243, 255, 0.2);
    }
    .comparison-table img {
        width: 50px;
        height: 75px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .comparison-btn {
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(148, 163, 184, 0.7);
        color: #e5e7eb;
        padding: 6px 18px;
        text-decoration: none;
        border-radius: 999px;
        font-size: 0.78em;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 600;
        transition: all 0.2s ease-out;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        min-width: 135px;
        text-align: center;
        margin-right: 4px;
    }
    .comparison-btn:hover {
        background: #e5e7eb;
        color: #020617;
        border-color: #e5e7eb;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
    }

    /* MOBILE RESPONSIVENESS */
    @media (max-width: 768px) {
        body {
            font-size: 14px;
        }
        
        .hero {
            flex-direction: column !important;
        }
        
        .book-card {
            width: 150px;
            height: 225px;
            margin: 10px auto;
        }
       .grid,
       .content-grid {
            grid-template-columns: 1fr !important;
        }
        
        h1.kinetic-text {
            font-size: 1.5em !important;
        }
        
        .author-desk {
            flex-direction: column;
            text-align: center;
        }
        
        .nav-bar {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }
        
        .nav-bar a, .nav-bar button {
            width: 100%;
            text-align: center;
        }
        
        .buy-btn {
            width: 100%;
            margin: 5px 0 !important;
        }
        
        .cta-primary {
            font-size: 1.1em;
            padding: 15px 30px;
        }
    }

    /* Layout Wrapper */
    .content-wrapper {
        max-width: 1120px;
        margin: 0 auto;
        padding: 32px 24px 48px;
        display: block !important; /* Prevent accidental flex */
    }

    .section-band {
        margin-top: 32px;
        margin-bottom: 40px;
    }

    .section-secondary {
        margin-top: 16px;
    }

    .content-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
        gap: 24px;
        align-items: flex-start;
    }

    .column-stack {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* 🧭 NAVIGATION BAR */
    .nav-bar {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        margin-bottom: 30px;
        gap: 15px;
    }
    
    .nav-bar a, .nav-bar button {
        background: transparent;
        border: 1px solid var(--primary);
        color: var(--primary);
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.95em;
    }
    
    .nav-bar a:hover, .nav-bar button:hover {
        background: var(--primary);
        color: #000;
        box-shadow: 0 0 20px var(--primary);
    }
    
    .nav-bar span {
        color: var(--text);
        opacity: 0.8;
        font-size: 0.9em;
    }

    /* 💰 AFFILIATE CTA BUTTONS */
    .buy-btn {
        display: inline-block;
        padding: 12px 24px;
        margin: 8px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
    }
    
    .buy-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
    }
    
    /* Primary CTA - restrained, cinematic */
    .cta-primary {
        background: linear-gradient(135deg, #f97316, #fb923c);
        color: #0b1120;
        font-size: 1rem;
        padding: 14px 32px;
        border-radius: 999px;
        display: inline-block;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
        transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
    }
    
    .cta-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 1);
    }
    
    /* Secondary CTAs */
    .cta-secondary {
        background: linear-gradient(135deg, var(--primary), #00a8b5);
        color: #000;
    }
    
    .cta-tertiary {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text);
        border: 1px solid var(--primary);
    }
    
    .cta-tertiary:hover {
        background: var(--primary);
        color: #000;
    }

    /* 👕 MERCH SECTION */
    .merch-item {
        display: inline-block;
        min-width: 120px;
        text-align: center;
        padding: 15px;
        background: linear-gradient(135deg, rgba(188, 19, 254, 0.2), rgba(0, 243, 255, 0.1));
        border: 1px solid var(--secondary);
        border-radius: 12px;
        transition: all 0.3s ease;
        text-decoration: none;
        color: var(--text);
    }
    
    .merch-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(188, 19, 254, 0.3);
        border-color: var(--primary);
    }
    
    .merch-item .merch-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 10px;
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2em;
    }

    /* 🎯 CTA SECTION STYLING */
    .cta-section {
        text-align: center;
        padding: 30px;
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.05));
        border: 2px solid rgba(255, 107, 53, 0.3);
        border-radius: 20px;
        margin: 20px 0;
    }
    
    .cta-section h3 {
        color: #ff6b35;
        margin-bottom: 20px;
    }

    /* 📚 HERO SECTION FIX */
    .hero {
        display: flex;
        gap: 40px;
        margin-bottom: 50px;
        align-items: flex-start;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    
    .hero-content .summary {
        font-size: 1.1em;
        line-height: 1.7;
        opacity: 0.9;
    }

    .shelf-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1500;
    }

    .shelf-panel {
        max-width: 480px;
        width: 90%;
        max-height: 70vh;
        overflow-y: auto;
    }

    .shelf-list {
        list-style: none;
        padding: 0;
        margin: 16px 0 0 0;
    }

    .shelf-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }

    .shelf-list li span {
        flex: 1;
    }

    /* Gift Finder Quiz tweaks */
    #gift-finder-body h4 {
        margin-top: 0;
        margin-bottom: 8px;
    }

    #gift-finder-body p {
        margin-top: 4px;
        margin-bottom: 12px;
    }

    #gift-finder-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 12px;
    }

    .gift-option-selected {
        background: var(--primary);
        color: #020617;
        border-color: var(--primary);
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    }

    #gift-finder-body .gift-options {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
    }

    .gift-option-btn {
        width: 100%;
        text-align: left;
        margin: 0;
    }